Search results

  1. roippi

    the DOM, regex, scalability, and other jargony words

    Sure. > test xpath charpane.html //tr[td[a[@class="familiarpick"]]]/text() 1: Tron, the 35 pound Rogue Program > test xpath charpane-fambelow.html //tr[td[a[@class="familiarpick"]]]/text() 1: Tron, the 35 pound Rogue Program
  2. roippi

    the DOM, regex, scalability, and other jargony words

    p.s. just to convince people that xpath is cool > test xpath charpane.html //span[@class="black"]/text() 1: 760 / 809 2: 718 / 1168 3: 21,756,038 4: 194 My HP, MP, meat, and adv. > test xpath charpane.html //center[3]//td[@valign="center"]/text() 1: The Sonata of Sneakiness (2) 2: Smooth...
  3. roippi

    the DOM, regex, scalability, and other jargony words

    Well for the charpane specifically we actually only load it during relay adventuring. But a lot of my points were meant in a general sense. I'm not terribly interested in profiling performance improvements exhaustively here. If we can cut our processing time by an order of magnitude, I...
  4. roippi

    the DOM, regex, scalability, and other jargony words

    That's one thing I haven't looked into. I know that HTMLCleaner works by creating a valid XML tree out of arbitrary HTML, in a fault-tolerant way like browsers do. I know that it provides some *Serializer helper classes but I haven't seen if you can serialize back to HTML equivalent to its...
  5. roippi

    the DOM, regex, scalability, and other jargony words

    I've considered it, yes :) It's something that should happen, in some form or other. Recreating the full API in ASH is a bit much, but we should be able to do something with xpath. The only question is how far down the rabbithole to go, heh.
  6. roippi

    the DOM, regex, scalability, and other jargony words

    Also also, I won't be committing anything on this before the upcoming point release.
  7. roippi

    the DOM, regex, scalability, and other jargony words

    Heh. I recently did some comparison shopping too, and I agree - you chose well. I love that it supports XPath queries. I might update it, though - it's still well-maintained and our version is from 2007 :)
  8. roippi

    the DOM, regex, scalability, and other jargony words

    tl;dr: I'm going to refactor the charpane to do its parsing using a dedicated HTML parser. It would be cool if other developers took note of this and used an HTML parser in the future when grabbing specific things from the DOM of other pages.
  9. roippi

    the DOM, regex, scalability, and other jargony words

    - Motivation There is a *lot* of code in mafia. Mafia just does a lot of stuff. But if one were to characterize what mafia spends all of its processor time doing, you would find that the lion's share is spent processing text. Searching for stuff in strings, really - that's what we spend our...
  10. roippi

    the DOM, regex, scalability, and other jargony words

    So, I'm on to the next thing that catches my whimsy, and this one's a doozy. But unlike many other Roippi Projects™, this one I can't do alone - I'm asking for a cultural shift amongst fellow developers, as much as anything else. Executive summary Instead of parsing HTML with regex, we should...
  11. roippi

    Bug - Fixed continuationState stuck at PENDING after "Script" button is used in the relay browser

    Yes, I know. That's intentional - and probably more correct than the old behavior, anyway. People are welcome to discuss, of course, but the whole point of the continuationState change was to segregate relay behavior from main interface behavior. This is consistent with that.
  12. roippi

    Bug - Fixed continuationState stuck at PENDING after "Script" button is used in the relay browser

    I was never questioning whether you were making it up. There's some sort of race condition that happens on slower systems that I just don't want to think about debugging. Try r14760?
  13. roippi

    Bug - Fixed "dvorak" command does not show final response

    Yup. r14757, untested (rather, r14758, now that I've remembered how to boolean logic)
  14. roippi

    Bug - Fixed "dvorak" command does not show final response

    Oh, I know how I messed this up. I'll take this.
  15. roippi

    Bug - Fixed continuationState stuck at PENDING after "Script" button is used in the relay browser

    Well, I can't reproduce, sorry. I guess you can open up a DEBUG log and run a combat in your vanilla copy, see if there's anything noteworthy in there.
  16. roippi

    Bug - Fixed continuationState stuck at PENDING after "Script" button is used in the relay browser

    continuationState and displayState are actually distinct things, yes - and really it's just the latter that's being messed up here. Still, relay threads shouldn't be able to interact with displayState either so there's presumably something to fix.
  17. roippi

    Bug - Fixed continuationState stuck at PENDING after "Script" button is used in the relay browser

    Download a vanilla copy of mafia to a folder somewhere and see if you can reproduce it there.
  18. roippi

    Bug - Fixed Chat debug log

    Update your mafia.
  19. roippi

    Bug - Fixed continuationState stuck at PENDING after "Script" button is used in the relay browser

    Do you have a before/between/after battle (adventure) script? fight.ash relay override?
  20. roippi

    Bug - Fixed continuationState stuck at PENDING after "Script" button is used in the relay browser

    Do you have a before/between/after battle (adventure) script?
Back
Top