Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Bug in disarm( )
Nov 12, 2017, 6:54 pm
By GatewaySysop
Bug in will_fall( )
Oct 23, 2017, 1:35 am
By GatewaySysop
Bug in do_zap( ), do_brandish( )
Oct 18, 2017, 1:52 pm
By GatewaySysop
Bug in get_exp_worth( )
Oct 10, 2017, 1:26 am
By GatewaySysop
Bug in do_drag( )
Oct 8, 2017, 12:40 am
By GatewaySysop
LOP Heroes Edition
Author: Vladaar
Submitted by: Vladaar
Heroes sound extras
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.3
Author: Vladaar
Submitted by: Vladaar
Memwatch
Author: Johan Lindh
Submitted by: Vladaar
Beastmaster 6D sound files
Author: Vladaar
Submitted by: Vladaar
Users Online
CommonCrawl, Bing, Yahoo!, DotBot, Yandex, Sogou

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
476
3,704
19,231
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWR FUSS » Remcon's Idle Fix for Hotboot...
Forum Rules | Mark all | Recent Posts

Remcon's Idle Fix for Hotboot for SWR
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Aug 22, 2005, 8:31 pm   Last edited Aug 22, 2005, 10:33 pm by Gatz
Go to the top of the page
Go to the bottom of the page

Gatz
Apprentice
GroupMembers
Posts60
JoinedJul 25, 2005

Okay, Remcon was a darling and made that wonderful idle bug fix (Posted in SMAUG FUSS section) and here is what you do if you want it to work for your SWR Hotboot, this may also be considered a bug fix for was_in_room for SWR aswell. The main problem is was_in_room isn't being setup correctly so when you hotboot you get a cute little crash when it tries to look at was_in_room. So, lets fix that.

In handler.c you'll need to add a few lines.

In char_to_room, right before the return; statement at the very end add:

    if( !ch->was_in_room)
        ch->was_in_room = ch->in_room;


In char_from_room look for:
    ch->in_room      = NULL;
    ch->next_in_room = NULL;
    ch->prev_in_room = NULL;


Above that block add:
ch->was_in_room = ch->in_room;


When was working on it, I didn't add in the line or edit this line (It isn't found in SWR 1.1 FUSS's hotboot):
fprintf( fp, "0 0 0 0 0 %d maxp maxp\n", sysdata.maxplayers );

And it worked fine for me. Anyways, my hotboot.c is pretty much stock in all it's key places. Hopefully this works for you. Once again, thanks Remcon!
       
Post is unread #2 Aug 22, 2005, 9:36 pm   Last edited Aug 22, 2005, 9:36 pm by Remcon
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,857
JoinedJul 26, 2005

Your welcome btw did you mean to have this in the post?

When was working on it, I didn't add in the line:
fprintf( fp, "0 0 0 0 0 %d maxp maxp\n", sysdata.maxplayers );


And nice bug find :)
       
Post is unread #3 Aug 22, 2005, 10:30 pm   Last edited Aug 22, 2005, 10:41 pm by Gatz
Go to the top of the page
Go to the bottom of the page

Gatz
Apprentice
GroupMembers
Posts60
JoinedJul 25, 2005

Well, originally you had people add "0" to it for SMAUG FUSS's hotboot...but SWR 1.1 FUSS's hotboot doesn't have it. I know I was a goof ball and searched around for "0 0" in vain then I noticed SWR 1.1 FUSS's didn't have it there. I figured I'd make mention that it didn't have that line so people didn't need to alter it but it is a bit mis-leading the way I wrote it.
       
Post is unread #4 Aug 23, 2005, 8:09 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,857
JoinedJul 26, 2005

ah ok i get you know :) dont add that line ok :)
       
Pages:<< prev 1 next >>