Raised This Month: $32 Target: $400
 8% 

Vault to store multiple data of a unit


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 10-18-2021 , 18:35   Vault to store multiple data of a unit
Reply With Quote #1

Hello. I was wondering if there is any way to store more than one information on a singe data unit. An example is my steamid saving both levels and xp into the same vault. An option or the only option is formatting the text so I can fit the whole thing in a single line but I did't want to do that.
bigdaddy424 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-18-2021 , 18:59   Re: Vault to store multiple data of a unit
Reply With Quote #2

Search for nvault array
__________________
Bugsy is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 10-18-2021 , 21:08   Re: Vault to store multiple data of a unit
Reply With Quote #3

Any way to store limitless values. Like on Excel: you got rows full of steamids and columns full of information.
bigdaddy424 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-18-2021 , 22:11   Re: Vault to store multiple data of a unit
Reply With Quote #4

I'm pretty sure nVault has enough storage capacity to any type of player data. Can you provide a realistic set of data attributes that you do not think there is room for?
__________________
Bugsy is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 10-19-2021 , 00:33   Re: Vault to store multiple data of a unit
Reply With Quote #5

Game Hashes. Generated hashes that I'll never throw an eye on. I just need them logged and accessible for ever player.
bigdaddy424 is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 10-19-2021 , 00:42   Re: Vault to store multiple data of a unit
Reply With Quote #6

Here's a picture of how the table is supposed to look like
bigdaddy424 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-19-2021 , 08:22   Re: Vault to store multiple data of a unit
Reply With Quote #7

What is the maximum length of a hash?

You could have the plugin use a separate text or binary file for each player:
STEAM_0:0:12345.dat
STEAM_0:0:45678.dat
STEAM_0:0:11111.dat
__________________

Last edited by Bugsy; 10-19-2021 at 16:28.
Bugsy is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 10-20-2021 , 04:38   Re: Vault to store multiple data of a unit
Reply With Quote #8

That's what I first did but it turned out a lot of files. It became hard to work with them. Later I thought about using mysql but it's a load of data to pass through and that takes a while, not including that I don't know how to work with it mysql either.
Why wasn't this idea ever made. You can technically use this for everything you could ever need for a bulk storage. A long never ending table with never ending attributes.
Game hashes are 64 character long. 128 is a bit overkill.

Last edited by bigdaddy424; 10-20-2021 at 04:38.
bigdaddy424 is offline
Bugsy
AMX Mod X Moderator
Join Date: Feb 2005
Location: NJ, USA
Old 10-20-2021 , 18:25   Re: Vault to store multiple data of a unit
Reply With Quote #9

Why do you need to hash/encrypt player data, are you storing credit cards and social security numbers?? Just use plain text and store using SQL or nVault.
__________________
Bugsy is offline
bigdaddy424
Senior Member
Join Date: Oct 2021
Location: Jupiter
Old 10-20-2021 , 22:35   Re: Vault to store multiple data of a unit
Reply With Quote #10

This is not on my end. This is how provably fair gambling system works. The future of online gambling. I've also attached a githup repo with more info about how this works. You might say why am I doing this, just boredom. Noone has ever done it. Seemd like a fun small project and it didn't turn out so.
https://github.com/alexcambose/provably-fair-example
bigdaddy424 is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 05:54.


Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.
Theme made by Freecode