elanthia-online / illthorn

Electron-based FE
18 stars 10 forks source link

WIP: DOMParser based implementation; #100

Closed ondreian closed 4 years ago

ondreian commented 4 years ago

laying some groundwork and toying around with #18

non of the parser events are wired up to the UI yet, they just print to the console, I didn't want to do any of that until I was sure of the new structure.

Writing to SessionState provides a good API boundary though, so I can experiment nicely here.

chriscoyier commented 4 years ago

I was just about to log a bug that Illthorn doesn't catch skill enhansives like StormFront does...

Screen Shot 2020-08-12 at 6 27 59 AM

But this update fixes it! 🍻

chriscoyier commented 4 years ago

Talking is doubled up:

Screen Shot 2020-08-16 at 2 48 19 PM

On both sides:

Screen Shot 2020-08-16 at 2 48 38 PM
chriscoyier commented 4 years ago

Inventory seems doubled-up, both a vertical list and comma-separated list:

Screen Shot 2020-08-16 at 2 56 47 PM
chriscoyier commented 4 years ago

"look" in your own inventory doesn't return anything:

Screen Shot 2020-08-16 at 2 58 05 PM
chriscoyier commented 4 years ago

Known TODO: wire up streams.

chriscoyier commented 4 years ago

Round/Cast Time bars don't work. They are there, and they re-rerender when timers are triggered (I think?), but there are no values to use.

Screen Shot 2020-08-16 at 3 02 27 PM
chriscoyier commented 4 years ago

There might be something weird with the Mana vital too, sometimes it would disappear for me.

chriscoyier commented 4 years ago

Sometimes game output text is within a roundtime element

illthorn:parser parsed:: +1ms <roundtime value="1597798318"><dialogdata class="expr"><label id="yourLvl" value="Level 67" top="0" left="0" align="n" width="160" height="15"><progressbar id="mindState" value="75" text="becoming numbed" top="45" left="3" align="n" width="160" height="15"><progressbar id="nextLvlPB" value="7" text="90579 until next level" top="20" left="3" align="n" width="160" height="15"></progressbar></progressbar></label></dialogdata>You search around and find 21 bloodscrip, which you pocket!</roundtime>

illthorn:parser buffer:: +1ms Roundtime: 5 sec.