OK, we're using an SWR and we have around 36 room flags and I wanted to make it easier on the builders to add them in, not having use flags2 or whatever. So I went and put in extended bitvectors for the room flags following the guide here: http://www.auricmud.com/snippets/roomflags.html
I got everything changed as described, but there's a problem (naturally).
When loading the mud it gets to the point of loading in areas then crashes. I assume this is because the old style room flag saving system is incompatible with the extended bitvectors and it just won't work until the areas have been changed to the new system.
It appears to load up help.are without problems but then it crashes right after displaying that area file name like so:
I believe this means that help.are was loaded in just fine and it crashes when trying to read in limbo.are, which is the second area in the area list.
The guide I followed mentioned something about an area file version number and adding a check, in the load_room function, to ensure that if it's an old area the file gets loaded the old way.
So, my question is, if that is indeed the issue, how do I add that check in? I'm not too good at file i/o yet so...
Thanks.
I got everything changed as described, but there's a problem (naturally).
When loading the mud it gets to the point of loading in areas then crashes. I assume this is because the old style room flag saving system is incompatible with the extended bitvectors and it just won't work until the areas have been changed to the new system.
It appears to load up help.are without problems but then it crashes right after displaying that area file name like so:
Reading in area files...
(help.are)
Program exited with code 01.
I believe this means that help.are was loaded in just fine and it crashes when trying to read in limbo.are, which is the second area in the area list.
The guide I followed mentioned something about an area file version number and adding a check, in the load_room function, to ensure that if it's an old area the file gets loaded the old way.
So, my question is, if that is indeed the issue, how do I add that check in? I'm not too good at file i/o yet so...
Thanks.