Problem with extra set of room flags

Posted by Nick Cash on Wed 04 Feb 2004 12:56 AM — 3 posts, 9,417 views.

USA #0
I added an extra set of room flags and once prototype rooms for new areas are created this keeps happening:

Flags: [ indoors prototype / r01 r03 r04 r05 r06 r09 r11 r12 r13 r14 r16 r17 r18 r25 r30 ]

Now, I recently looked in the code and I now have it to set that every new room starts with a flags2 prototype flag, but that did not fix it. The flags can be turned off and on, but saving after they are turned off doesn't seem to work either.

Any suggestions? Should I install a test area and see what happens?
Canada #1
How are you setting the flag to begin? Cause the easiest way is this:
room->flags2 = ROOM2_PROTOTYPE;
Rather than using SET_BIT. When your having problems that the flags are coming back, you can always set a default, and then read it in afterwards. Still, that shouldn't be happening. You can also check in the area file if its being printed properly. If on a specific variable your the 3 flag(BV02), double check that the flag printed into the file is 4 ( someone correct me, I've had no sleep, but 1 << 2 should be 4, heh). This will allow you a way to narrow down the problem between writing and reading.
USA #2
Got it fixed. Was actually a save/load issue. Was saving alright, then loading the wrong thing. Simply fixed it, removed the flags and set a prototype, savea and boom, its gone. Thanks.