Hi, I’m trying to work persistable data into my map for the first time and I’m running into an error soon after typing up some code I saw in a tutorial or two. Can anyone point me to a right direction here, or if there’s posts about this already? I tried to search but haven’t found the same issue so far.
Definition (/dogonakeyboard@fortnite.com/iceGrapple/customVerse:)playerDataMap is accessible from subpaths of /dogonakeyboard@fortnite.com/iceGrapple, but depends on (/dogonakeyboard@fortnite.com/iceGrapple/customVerse:)Player_Data_Persistable, which is only accessible from subpaths of /dogonakeyboard@fortnite.com/iceGrapple/customVerse. The definition should be no more accessible than its dependencies.(3593)
My code for this is here so far in a file called Player_Data_Persistable.verse
using { /Verse.org/Simulation }
using { /UnrealEngine.com/Temporary/Diagnostics }
# do not move / rename this file after publishing with it
var playerDataMap <public>: weak_map(player, Player_Data_Persistable) = map{}
Player_Data_Persistable := class<final><persistable>:
# DO NOT RENAME VARIABLES ONCE PUBLISHED
# DO NOT REMOVE VARIABLES ONCE PUBLISHED
# Saved profile data for each player
version : int = 0
currency : int = 0
totalWins : int = 0
totalLosses : int = 0
# Rank : int = 0
MakePlayerData <public><constructor>(Src:Player_Data_Persistable)<transacts> := Player_Data_Persistable:
# fill in player's data when they load in
version := Src.version
currency := Src.currency
totalWins := Src.totalWins
totalLosses := Src.totalLosses

