#Will this prevent dataloss

1 messages · Page 1 of 1 (latest)

patent seal
#

My game drops tmrw and I need some tips quick. Should I use a badge to detect if the player has data. Pretend the player joins and it doesnt work and their data is 0. Then the player will lose it with my auto save every 2 mins. Should I kick the player if they have the welcome badge but data is nil because I set data to 0 for players with nil wins.

pale oar
#

just use a welcome badge

patent seal
pale oar
#

wdym "down"

#

@patent seal

patent seal
#

if roblox is down sometimes datastores or badgeservice may be down

#

and if its down calls will fail

#

causing dataloss with my auto update system

pale oar
#

just kick the player

#

badgeservice is almost never down when people can join

patent seal
#

apparently some big games use profile store and its easier to prevent data loss so ill do that for future projects

untold dock
#

default datastore sucks, especially for big games

patent seal
#

would that be faster then making a good datastore system?

#

learning smth entirely new?

untold dock
#

i even get datalost while testing in studio

patent seal
untold dock
#

not that hard to setup

patent seal
untold dock
#

put that in server script then in server storage u gotta have the profilestore module somewhere with the Template as the starting data of new player, example

make another module for this name it Template or somethin

return {
    Cash = 7500,
    Rebirth = 0,
    Steals = 0,
    LastOnline = 0,
    ClaimCash = {},
    Units = {},
    Index = {},
    Returning = false,
}

-- also make another one named Data_Manager, if u wanna access player data without going to in game values

local DataManager = {}

DataManager.Profiles = {}

return DataManager```
patent seal
#

@untold dock maybe I should drop the game with normal datastores then switch to profileService next update3