Code Monkey home page Code Monkey logo

Comments (6)

FreedomFaighter avatar FreedomFaighter commented on August 17, 2024

[Wed Mar 06 21:46:26 2024] <Player2|Victim> was chilled to the bone for <NPC1|damage shield points> points of non-melee damage.
[Wed Mar 06 21:46:26 2024] <Player2|Attacker> slashes <NPC1|Victim> for<Player2|damage points> points of damage. (Lucky Critical)

NPC1 is the attacker in line 1

from advancedcombattracker.

EQAditu avatar EQAditu commented on August 17, 2024

I don't really understand. You're talking about a limitation in your own plugin? This isn't really the place for advice or general discussion.

That said, I believe the EQ2 parser handles two such situations like this. Ward absorption and spell reflects. In both cases, information from one log line is temporarily stored to be used when a future log line appears.

In your case, I imagine you would not create a combat action for the first line, but store the victim and damage amount. If the very next line has a matching attacker compared to the previous victim, then you may emit the combat action for the previous line using the newly gained information and then handle the second line normally. (then clear out the temporary data)

from advancedcombattracker.

FreedomFaighter avatar FreedomFaighter commented on August 17, 2024

With back filled damage shield has this filled in best I could manage, point of contention would be storing this information outside a MasterSwing object as the masterswing object can't be altered once created and the current method is to grab those values and create a new object with the filled in attacker name

from advancedcombattracker.

EQAditu avatar EQAditu commented on August 17, 2024

One direction is easier than the other. It's possible you have encountered the more difficult direction where you want to modify already created data? As you said, MasterSwing objects cannot be changed. Because ACT uses incremental caching, it's not good to modify old data because the cache can become incorrect and future calculations will also be incorrect.

If I remember correctly, you don't have to generate a combat action for a given log line. Just keep the pieces of the MasterSwing as temporary variables to use later... then add two at once when you have the proper data. If possible, also create a TimeSorter number at each line so you have a unique value for each MasterSwing.

from advancedcombattracker.

FreedomFaighter avatar FreedomFaighter commented on August 17, 2024

That is what I attempted to do is get a GTS value and hold it over in a temporary MasterSwing until the next logline is read to complete both loglines once the attacker value is grabbed from the victim value in the second logline associated with that combat action

from advancedcombattracker.

FreedomFaighter avatar FreedomFaighter commented on August 17, 2024

Processed by check for default on chilled MasterSwing object not equal to default

from advancedcombattracker.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.