Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
parse description bug
Dec 15, 2017, 10:08 pm
By Remcon
Couple bugs
Dec 12, 2017, 5:42 pm
By Remcon
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
LOP 1.45
Author: Remcon
Submitted by: Remcon
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
Users Online
CommonCrawl, DotBot

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
477
3,706
19,240
608
LAntorcha
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SWFOTE FUSS » Converting Current Copyover t...
Forum Rules | Mark all | Recent Posts

Converting Current Copyover to the Newer Hotboot
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Nov 24, 2005, 4:35 pm
Go to the top of the page
Go to the bottom of the page

Krylan
Fledgling
GroupMembers
Posts39
JoinedApr 14, 2005

Was wondering if it would be worth it to upgrade the current FOTE copyover version to the one thats in SWR FUSS for instance. I love the code, especially the one on Greven's site. I was wondering what it would entail to do so as well. Not sure where to even start. I never got good with descriptors etc lol.
       
Post is unread #2 Nov 24, 2005, 9:46 pm
Go to the top of the page
Go to the bottom of the page

Stan
Fledgling
GroupMembers
Posts23
JoinedNov 19, 2005

I have removed copyover and added hotboot before,
Personally, I would grab the latest version of swrfuss and use its hotboot.c and hotboot.h and follow Greven's instructions for adding hotboot.
You will want to remove the copyover and copyover_recover functtions.
I imagine Greven's hotboot snippet has not been modified on his site in months, I am however sure that his modified version is kept up to date in the swrfuss packages.
Also remember to include the Dlcym code in the appropriate places near execl if dynamic command support is installed.
If not using swfotefuss or another code modified by the smaugfuss project you may need too replace accept_neww with the fuss version.
I had problems with crashing immediately after a hotboot on my near stock copy of swrip with most smaugfuss fixes added.
Someone should remove the copyover in fote and add hotboot.
I might just do that if someone could make use of it, its the least I can do.
       
Post is unread #3 Dec 11, 2005, 1:23 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

Copyover has been converted to the hotboot system. If anyone cares to look it over and make sure I haven't left anything out, that would be great. Otherwise it seems to work just fine in limited testing.
       
Post is unread #4 Feb 15, 2006, 1:46 am
Go to the top of the page
Go to the bottom of the page

enderandrew

GroupMembers
Posts8
JoinedFeb 8, 2006

In looking at the hotboot snippet itself, it says to insert copyover in various places. Yet looking at SWFoTEFUSS, you actually used hotboot in those places.

For a small example, snippet says:
Then locate the following further down:

	    word = fread_word( fp );
	    if ( !strcmp( word, "PLAYER" ) )
	    {
		fread_char ( ch, fp, preload );
		if ( preload )
		  break;
	    }

   Change it to read as follows:

	    word = fread_word( fp );
	    if ( !strcmp( word, "PLAYER" ) )
	    {
		fread_char ( ch, fp, preload, copyover );
		if ( preload )
		  break;
	    }


You actually have:
         word = fread_word( fp );
         if( !str_cmp( word, "PLAYER" ) )
         {
            fread_char( ch, fp, preload, hotboot );
            if( preload )
               break;
         }


I'm curious why.
       
Post is unread #5 Feb 15, 2006, 6:23 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,639
JoinedJan 1, 2002

The snippet is older than the code in use right now. It makes no real difference which one you use as long as the variable name usage is consistent.
       
Post is unread #6 Feb 15, 2006, 11:40 pm
Go to the top of the page
Go to the bottom of the page

enderandrew

GroupMembers
Posts8
JoinedFeb 8, 2006

Thanks!
       
Pages:<< prev 1 next >>