Recent content by chown

  1. C

    try blocks can transform an abort into a return value?

    I'm seriously banging my head against a wall here. How is that the "default"? By "default", functions are only called in contexts where no calling function has a return value?? Because otherwise, they certainly don't abort! (Or, not without the script author explicitly adding an abort().)...
  2. C

    try blocks can transform an abort into a return value?

    But, in order to get that behavior, our code needs to either explicitly check every return value, and abort as appropriate, or else always terminate when any function that calls these functions (possibly indirectly) returns zero. That non-local aspect really has me puzzled. Why are we allowed...
  3. C

    GameInform Dungeon script

    Neither try-finally nor return values alone are able to distinguish the reason why adv1 did not spend any adventures. It could be that a timer expired, (well, if you aren't ignoring them entirely) you could be at 0 HP or drunk, or you might not have that area open. (And maybe there are other...
  4. C

    try blocks can transform an abort into a return value?

    So, do I understand correctly that not capturing a return value (by which I mean using it like a "void" function) from the various Mafia functions that can "fail" propagates an exception-like condition (not technically an abort?) up the call chain, until it reaches the innermost function call...
  5. C

    Edscension - Your #1 Karma Farming Script

    Sorry about being absent so long. I'll try to address as many of these issues as I can.... Oh, for future refernce: "set choiceAdventure1023", without any new value, will show you the current setting. This is definitely Edscension. I believe it's the choice adventure where we leave (& then...
  6. C

    Feature - Implemented maximizer doesn't equip both an accessory and an outfit that includes an accessory

    At least, I think that's what's going on here. ? > equip Hat: Crown of the Goblin King Weapon: Staff of Ed Off-hand: orcish stud-finder Shirt: (none) Pants: filthy corduroys Acc. 1: astral bracer Acc. 2: batskin belt Acc. 3: solid gold pegleg Pet: (none) Item: (none) > maximize equip solid...
  7. C

    Edscension - Your #1 Karma Farming Script

    Yeah, definitely! The log snippet you posted appears to be an excellent example of that. You might be able to delete the whole "test5" if block around line 540 in ed_combat.ash. I wrote separate logic for visiting the underworld that ought to be less susceptible to that. Regarding the...
  8. C

    Edscension - Your #1 Karma Farming Script

    Hey, sorry I haven't had any time to look into those last couple of issues. And, I probably won't for the next couple of days. Although, quick question: did the script actually go into an infinite loop? I thought I had eliminated that in most cases. As in, the top level loop never runs more...
  9. C

    Bug - Fixed r16294, "maximize sea" not working for me.

    > equip mer-kin gladiator mask Putting on Mer-kin gladiator mask... Equipment changed. > equip das boot Putting on das boot... Equipment changed. > maximize sea Maximizing... 540 combinations checked, best score 0.00 (FAIL) Putting on intimidating coiffure... Equipment changed. Putting on...
  10. C

    try blocks can transform an abort into a return value?

    Right. That's exactly why I _DON'T_ want it doing that. Go re-read my initial post? Sigh. Okay, but there is. How do you explain the behavior I described in my original post? But, why does it do that _only_ when there's a try-finally involved?
  11. C

    try blocks can transform an abort into a return value?

    Also, maybe it's not quite as bad as I think. I found the exact code that I've been trying to write in CounterChecker.ash: // Handle the 0-turn lights out adventure. Make sure to reset original preferences void advLightsOut(location hauntedLoc, string choice) { string originalValue =...
  12. C

    try blocks can transform an abort into a return value?

    I'm also a bit confused as to how the Mafia code that Veracity quotes (before her changes) is changing return values. Is it the "result = newResult"? It looks to me like that should only execute if there is an abort from inside the finally block. Are there other cases where...
  13. C

    try blocks can transform an abort into a return value?

    Hmm. Now I'm even more confused. Isn't a return statement in a finally block supposed to convert the abort to a regular return value? As in, put the interpreter back into STATE_NORMAL, or whatever? I would have expected (based on my many-years-stale experience with Java) Veracity's programs...
  14. C

    Edscension - Your #1 Karma Farming Script

    Yeah, the script currently does do a bunch of unnecessary maximize commands. It may be a little while before I can address that properly. On the other hand, I have some easy fixes to macro-ify combat in some simple cases. So you won't have to wait for 30 network trips each time Ed wants to...
Top