Question about the character saving function (1 Viewer)

OmenNemo

Potential Patron
Joined
Dec 7, 2013
Hello,​

I just discovered SDT (which is awesome by the way), so for the moment, I am not using any mod.
My question is: how does the integrated character saving function work ? From what I saw, it seems like it works by path, and if you change the game's location, the character won't appear anymore.
Anybody can confirm me this please ? The researches I did in the forum weren't very conclusive.

Thanks.​
 

AaRL

Vivacious Visitor
Joined
Feb 17, 2011
Try keeping your SDT files in one folder along with the game. When you save a character, whatever mod is loaded, I think it saves the file path from which it loaded... meaning if you were to move that file or rename its parent folder, SDT wont load it properly.

Basically what Im trying to say is this:

C:\SDT Keep every thing you load in this folder along with the game
C:\SDT\Hair Keep hairs here
C:\SDT\BGs Keep BGs here
C:\SDT\Other Keep what ever other goodies you have here

and so on... Those file paths are just examples. Just make sure you load every thing in your character from ONE folder. (Remember, you cant rename or move this folder once a character is saved) Yes, it creates duplicates of most of your files, but it keeps it nice and organized.
 

OmenNemo

Potential Patron
Joined
Dec 7, 2013
Thanks for the answer. It makes things clearer regarding mods.

But my question was regarding the function in the basic game (without loader or mods). I apparently won't need it when I will use mods, but I would like to understand how the game stores the characters.
 

ModGuy

Content Creator
Joined
Feb 17, 2011
It stores data as serialised objects, not something you should attempt to read outside of Flash. You could probably write a reader for the format.
The object in question stores the character name, code, dialogue and thumbnail.
The code contains paths which refer to external components such as backgrounds or SWF files, as such SDT implements a path resolution system to find them.
It does this by adding folders to the search path and then using them with the path provided in code when loading it.
If the file cannot be found, you end up with an error and cannot save.

Now something you might actually want to know:

Because Flash uses a all encompassing save format called SharedObject, all requests to save/load data normally boil down to this.
SharedObject is very sensitive to changes, renaming the SWF or moving it to another folder will cause it to stop working. (I might actually look in to fixing that.)
 

OmenNemo

Potential Patron
Joined
Dec 7, 2013
Thanks a lot for the answer. It made things clearer.

But then, these serialised objects, are they files stored in a folder of the computer ? If it is the case, in which folder are they stored ?
 

ModGuy

Content Creator
Joined
Feb 17, 2011
http://help.adobe.com/en_US/as3/dev/WS5b3ccc516d4fbf351e63e3d118a9b90204-7d80.html

Windows 95/98/ME/2000/XP* C:/Documents and Settings/username/Application Data/Macromedia/Flash Player/#SharedObjects
Windows Vista/Windows 7*C:/Users/username/AppData/Roaming/Macromedia/Flash Player/#SharedObjects
Macintosh OS X/Users/username/Library/Preferences/Macromedia/Flash Player/#SharedObjects
Linux/Unix/home/username/.macromedia/Flash_Player/#SharedObjects

*Where C: is the system drive.
 

Crusader41821

Potential Patron
Joined
Aug 21, 2013
ah ha! No wonder all my characters went away when i moved the folder. granted it only happened once, and i was only moving it because i was planning a system format.....
 

OmenNemo

Potential Patron
Joined
Dec 7, 2013
Thanks for the link; I found what I was looking for :).

Now, I installed the loader, and I have to change the saving method. So, if I understood correctly, all custom characters are saved within the mods folder. But, after reading the saving guide included with the loader, I didn't understand how to concretely save a custom character. Let's say I made a custom character within the game; how do I save her in the mods folder ?

Thanks for answering my question, which is probably very silly.
 

ModGuy

Content Creator
Joined
Feb 17, 2011
If you're changing settings within the game, you can generate a code from that. Take that code and save it in Code.txt within a character folder.
All other elements like hair, dialogue, mods, etc. have names associated with them in the provided saving guide.
Example characters have been provided to demonstrate numerous elements loading, have a look at them.
 

OmenNemo

Potential Patron
Joined
Dec 7, 2013
Thanks a lot. I think I did find it; in the modding panel, it is the function "Custom save data," right ?
 

Users who are viewing this thread

Top


Are you 18 or older?

This website requires you to be 18 years of age or older. Please verify your age to view the content, or click Exit to leave.