It contains a map. All the objects and stuff. I can't read another one because then the game runs out of memory, so I have to stop reading the first one.
Okay, so I'm thinking that I might be able to use ScriptCB_DoFile to load it, but I don't think that I'll be able to un-load it.
Of course there's an easier way. I want to load the maps as people complete objectives. However, I need to keep the scores they have achieved from each world.
Hmm. Have you ever heard of/played Jaspo's One-Map Mappack? If the maps are modular (heck, I don't think they'd even have to be modular, seeing as how you could just use different terrain textures in the different "map" areas), you could try implementing similar concepts.
Yeah, I've played that and thought about using a similar method. I'll probably end up doing that. I'm just too lazy to make a map but I guess I'll have to now.
What I'm going for will probably work better with a custom map anyways.
Just to clarify, there is no "stopping" reading a data file. It reads it once and puts it in memory. It doesn't constantly stream it, nor is there a way to remove it from memory once its been loaded (aside from quitting to the menu or loading the next map).
It doesn't quite burst my bubble, but it brings up another question. Is there a way to load a map, have the player do stuff there, and then load another map through the same lua? The reason why I'm saying the same lua is so that if x=1 it will stay 1 in the next map.
What you'll want to do is create a custom Galactic Conquest like Maveritchell's The Dark Times. By its nature it can save data from the LUA you can carry over things from one map to the next.