Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ Room and exit loop

Room and exit loop

It is now over 60 days since the last post. This thread is closed.     Refresh page


Posted by Zeno   USA  (2,871 posts)  Bio
Date Tue 10 May 2005 09:52 PM (UTC)
Message
Does anyone know how to do a loop through all rooms and then exits, setting all exit distances and keypads to 0? I need this done because of an error in the code that set these to random numbers, and they need to be reset back to 0.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #1 on Wed 11 May 2005 02:50 AM (UTC)
Message
Seems to me it would be far simpler to intercept them all during load - in db.c somewhere in load_rooms where it's assigning the exdistance value to the exits. Read the number, but ignore it and assign 0. Then when you boot up they'll all be reset. Fold your areas, then get rid of the temporary hack and you should be golden.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #2 on Wed 11 May 2005 02:53 AM (UTC)
Message
Yeah I figured that, but turns out I already had a function that searched for room flags. Modified that (temp) to reset distance and keypad.

Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org
Top

The dates and times for posts above are shown in Universal Co-ordinated Time (UTC).

To show them in your local time you can join the forum, and then set the 'time correction' field in your profile to the number of hours difference between your location and UTC time.


6,816 views.

It is now over 60 days since the last post. This thread is closed.     Refresh page

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.