Giter VIP home page Giter VIP logo

Comments (7)

Flamanis avatar Flamanis commented on July 21, 2024

The same issue would be achieved using the npc id. There is functionally 0 difference.

The unique identifer you are looking for is actually the GUID, which is unique per mob. Storing combat data by guid would massively inflate the size of combats due to having each individual add in a fight have their own data stucture. Not something we'd implement.

from details-damage-meter.

Grapjas93 avatar Grapjas93 commented on July 21, 2024

You missed the last part, but it doesnt matter anymore since im already building my own database that suits my needs and not gonna use Details api.

from details-damage-meter.

Flamanis avatar Flamanis commented on July 21, 2024

I did not miss the last part. You want to be able to uniquely identify how much damage someone did to each individual mob. In a way where mobs with the same npc (unit) id are separated. The only way to achieve that would be through the GUID. and would massively inflate the size of combats or increase the computation required for displaying data. We are not going to be changing that.

Your own solution/addon would be best given that what you want is not feasible in the scope of Details. I wish you the best of luck achieving that.

Unless you're referring to a Unit Token which is absolutely not unique in any sense.

from details-damage-meter.

Grapjas93 avatar Grapjas93 commented on July 21, 2024

You are greatly exaggerating the complexity / performance cost of what im asking for. You already have the GUID in the current code where actor.targets is being set, what i was simply asking for is using that instead of (or along side with) the name for actor.targets, and while you have it might aswell make a accurate per target basis. Even if you don't want to do the latter, the former is extremely simple and would've been appreciated for someone like me making a module for Plater in combination with Details.

It's nothing more than getting and setting a value in a table, which is something lua is extremely efficient at. Your computations wouldn't even change if all you did was store the GUID. Even at like a 100k entries with 2 keys you are looking at less than 5mb in memory size (roughly). Even if you'd play 24 hours straight without closing the game i doubt you get something remotely close to a 100k entry database.

I respect not wanting to do it though, which i kinda anticipated and why i already had started to go my own route. GL to you too.

from details-damage-meter.

Tercioo avatar Tercioo commented on July 21, 2024

Adding [unitGUID] = damage would be very easy to accomplish, the issue comes with the memory chunk which will need to be allocated for a feature that not many would use.
We could design a plugin to handle the extra data and make use of it.

from details-damage-meter.

Flamanis avatar Flamanis commented on July 21, 2024

from details-damage-meter.

Grapjas93 avatar Grapjas93 commented on July 21, 2024

Like i said, you don't necessarily have to split the data if you don't want to, Just having access to the GUID is good enough. [unitGUID] = {name=name, amount=amount}

It may not have alot of usecases for modders, but it may end up getting used alot depending on how my mod will be received.

But since im the only one who requested this and i'm already making something myself, i don't see the need for this anymore.

from details-damage-meter.

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.