Reply to thread

ModDataLoader isn't a single mod, it's a system designed to load arbitrary binary files in to the game at runtime, hence you may load images, codes, SWFs, whatever.

Done as a PoC, I threw together an example that used SWFs only. By modifying the algorithm you could have it test for SWF, Images etc by reading the header bytes.

As for text, you could just parse out the filename and check if it ended with ".txt", well you could do that with all of them.




"registerFunctionPersist" forces the mod code to stay active until you quit, change that to "registerFunction". Expect that code to be removed whenever you reset the character.


Given that this was just an example, I don't want to make any improvements on it, especially since it's not some integral part of the loader.

The source is available in the same folder as "Mod.as", you can change that as you like and compile it (Compiler_alt should work) or ask a modder for help.


http://sdtmods.com/index.php?topic=2238.0


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.