ID:147658
 
I'm working on a MUD and I just wrote up a working OLC. The only problem is that I know how to save the rooms, but I don't know how to load them.

I figure it's something using a for() loop just like my saving proc, but it probably loops through the savefile. I dunno, really, I'm completely lost. Saving and loading is the only thing I never really learned how to do, especially when you're not just loading a single object or mob. Could any of you coding gurus help me out here?

Thanks!
-Kijokiha
Kijokiha wrote:
I'm working on a MUD and I just wrote up a working OLC. The only problem is that I know how to save the rooms, but I don't know how to load them.

I figure it's something using a for() loop just like my saving proc, but it probably loops through the savefile. I dunno, really, I'm completely lost. Saving and loading is the only thing I never really learned how to do, especially when you're not just loading a single object or mob. Could any of you coding gurus help me out here?

http://www.deadron.com/Games/ByondBasicSavefiles.html
In response to Deadron
That helps me a little bit, but I don't think I explained my message in full detail, which is my fault. =(

I need to write a proc that will save every room on the game when I run it, and a proc that will load every single one of those rooms when I run it.

I know how to save the variables and what not, but I don't know how to get Load() proc to load each one of those variables for each individual room.