Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[REQ] ID for saved Nades #98

Open
dreaNN1337 opened this issue Feb 21, 2024 · 2 comments
Open

[REQ] ID for saved Nades #98

dreaNN1337 opened this issue Feb 21, 2024 · 2 comments

Comments

@dreaNN1337
Copy link

Hey

If its possible give IDs to any saved nades that you are able to load the nade faster.
It can be annyoing to type: .loadnade B-Smoke-Long-From-RightSide instead of .loadnade 1 (when its the first saved Nade on the server)

Greetings and keep moving :)

@shobhit-pathak
Copy link
Owner

Hey!

Yes I'll have a rework on grenade system in future. For now, maybe you can use shorter names to save the nades :P

Thanks!

@fredmatix
Copy link

Hello Guys

If you change the system to ID based, please make sure that youre always reading the savednades.json first to get the next ID to be written when saving a nade. Other pracc plugins use a ID based system. But i think the IDs are saved in RAM once, and the server keeps on increasing the IDs in RAM while in parallel writing in the file. The problem is, if youre runnig multiple servers which rely on the same json file they will all have different knowledge about the current ID. which leads to nades being overwritten.
Your system currently works perfect because its SteamID based. no matter how many servers rely on the same json nades are always being written properly, which is actually really nice atm 😀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants