Bully-Board
Bully Modding Section => Modding Questions/Help => Topic started by: RBS ID on February 01, 2022, 05:00:32 AM
-
How to load a file that has some user's configuration of the mod, and then use the data(variables, tables) in the mod's script. Anyone know?
And 1 again, is it possible to load a user's configuration setting file that isn't a compiled file, like .txt, or .ini?
Sorry for bad English.
-
You can't load data from .txt nor .ini...
You can, however, create an other .lua with that data and compile. Then use the ImportScript function to import as a library.
Exemple if your library file is libra.lur, put this on your main script:
ImportScript(libra.lua)
(scripts in bully are always ended in .lua)