27.04.2016, 23:54
I have been scripting my RP script for 1-2 weeks now and so far the progression of the development is good. However, I am worried about the speed performance of my server when it comes to saving the datas for players, dealerships, vehicles and all.Before we jump in talking about the saving systems, here is the files that are being saved in the scriptfiles/renegade (Yes, I am using YSI - YINI) .
server.ini - tax vaults news ( Loaded and checked OnGameModeInit & is saved every time there is a changes made on taxes, news etc. or OnGameModeExit)
/users/ - Player accounts, looping the weapons. There are at least 30-40+ datas stored per player file.
/users/inventory - Players inventory, there are at least 25 stored datas in here that are parsed in after the usera main file.
/users/vehicles - Players vehicle, there are at least 10 vehicles stored datas (Paintjob, Impounded etc), the file is parsed after the inventory.
/users/tickets/ - Players ticket, there are 10 stored datas in here (fee, reason, date). It is parsed after the vehicles.
/dynamic/factions/ - Factions with 20+ stored datas, they are parsed OnGameModeInit.
/dynamic/factions/payment/ - Factions payment with 10+ stored datas, they are parsedin at the same time of factions.
/dynamic/dealerships/ - Dealerships, 20+ stored datas. They are parsed in the last place @ OnGameModeInit.
/dynamic/impounds/ - Impound Yards, there are 5+ stored datas in here. They are parsed in at OnGameModeInit.
-----------
It is pretty obvious that my script is loading a lot of files but I am fully confident that YINI can load them all at a fast rate but I might be wrong so that is why am asking yall.
What would be recommended saving system for an RP gamemode. YINI, MySQL, or SQLite, I know this has been asked a lot but I didnt found any thread about YINIs performance on RP scripts with tons of data being loaded.
Again am so sorry if this is a 100th post asking the same stuff all over again. Postdown below if you need more info.
P.S. Sorry about my grammar and my typings (am on mobile)
server.ini - tax vaults news ( Loaded and checked OnGameModeInit & is saved every time there is a changes made on taxes, news etc. or OnGameModeExit)
/users/ - Player accounts, looping the weapons. There are at least 30-40+ datas stored per player file.
/users/inventory - Players inventory, there are at least 25 stored datas in here that are parsed in after the usera main file.
/users/vehicles - Players vehicle, there are at least 10 vehicles stored datas (Paintjob, Impounded etc), the file is parsed after the inventory.
/users/tickets/ - Players ticket, there are 10 stored datas in here (fee, reason, date). It is parsed after the vehicles.
/dynamic/factions/ - Factions with 20+ stored datas, they are parsed OnGameModeInit.
/dynamic/factions/payment/ - Factions payment with 10+ stored datas, they are parsedin at the same time of factions.
/dynamic/dealerships/ - Dealerships, 20+ stored datas. They are parsed in the last place @ OnGameModeInit.
/dynamic/impounds/ - Impound Yards, there are 5+ stored datas in here. They are parsed in at OnGameModeInit.
-----------
It is pretty obvious that my script is loading a lot of files but I am fully confident that YINI can load them all at a fast rate but I might be wrong so that is why am asking yall.
What would be recommended saving system for an RP gamemode. YINI, MySQL, or SQLite, I know this has been asked a lot but I didnt found any thread about YINIs performance on RP scripts with tons of data being loaded.
Again am so sorry if this is a 100th post asking the same stuff all over again. Postdown below if you need more info.
P.S. Sorry about my grammar and my typings (am on mobile)