Giter VIP home page Giter VIP logo

Comments (5)

Solinur avatar Solinur commented on June 24, 2024

At the moment the timestamp would be the unique ID.
Wouldn't this suffice? Or do you have something different in mind?

from combatmetrics.

Karnak19 avatar Karnak19 commented on June 24, 2024

hummm yes it's not that false.
Actually, if i'm not wrong when I delete my fight 1, the fight 2 become the fight 1 and so on ?
Wouldn't be better to auto-increment the ID ? Like if I delete my fight 1, my fight 2 will still be 2, for his whole life.

I currently have in mind to create a parse-sharing web platform using these SavedVariables, and I don't really know how to handle this ID issue while having a clean and not too heavy code ^^

from combatmetrics.

Solinur avatar Solinur commented on June 24, 2024

Yes that is just the local index in the table and for technical reasons in lua this has to be continuous, starting at 1. I'd really recommend using the timestamp as a unique id for your purposes.

from combatmetrics.

Solinur avatar Solinur commented on June 24, 2024

Every fight has a field "date" which actually is a standard unix timestamp (which is converted on display)

from combatmetrics.

Karnak19 avatar Karnak19 commented on June 24, 2024

Oh yes I didn't notice the date field, good ! thanks

from combatmetrics.

Related Issues (12)

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.