Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
Development
Nov 28, 2018, 10:10 am
By Keirath
First Immortal
Oct 12, 2018, 12:02 pm
By GatewaySysop
Bug in do_climb( )
Jun 5, 2018, 5:31 pm
By joeyfogas
question on overland code
May 31, 2018, 10:03 am
By joeyfogas
KaVir's Protocol Snip
May 15, 2018, 7:57 pm
By joeyfogas
tintin++ ogg sound player script for linux
Author: Robert Smith
Submitted by: Vladaar
6Dragons ogg Soundpack
Author: Vladaar
Submitted by: Vladaar
6Dragons 4.4
Author: Vladaar
Submitted by: Vladaar
LoP 1.46
Author: Remcon
Submitted by: Remcon
LOP 1.45
Author: Remcon
Submitted by: Remcon
Users Online
CommonCrawl, Bing

Members: 0
Guests: 16
Stats
Files
Topics
Posts
Members
Newest Member
481
3,740
19,397
632
ClarenceKe
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » SmaugFUSS » Area files saved backward
Forum Rules | Mark all | Recent Posts

Area files saved backward
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Mar 31, 2013, 10:32 am   Last edited Mar 31, 2013, 12:14 pm by Zeno
Go to the top of the page
Go to the bottom of the page

Zeno
Sorcerer
GroupMembers
Posts723
JoinedMar 5, 2005

Does anyone remember a bugfix where Smaug areas were saved backwards (like progs were looped backwards) which resulted in the file format a bit changed every save? Trying to get my MUD setup with git, but it's seeing a diff every save in area files because of this. Namely it looks like progs are saved differently each foldarea.

[EDIT] Found one, but not areas: http://www.smaugmuds.org/index.php?a=topic&t=4293
       
Post is unread #2 Apr 26, 2013, 12:48 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,874
JoinedJul 26, 2005

well i decided to fix this and you have a few options, one is to use a double linked list like most things to get it to work right (this is the way i did). while i haven't tested it since I did the double linked list way you could try changing these in the loading of programs
         case '#':
            if( !str_cmp( word, "#MUDPROG" ) )
            {
               MPROG_DATA *mprg;
               CREATE( mprg, MPROG_DATA, 1 );
               fread_fuss_mobprog( fp, mprg, pMobIndex );
           if( pMobIndex->mudprogs )
           {
              MPROG_DATA *tmprog;

              for( tmprog = pMobIndex->mudprogs; tmprog->next; tmprog = tmprog->next );

              tmprog->next = mprg;
           }
           else
           {
              pMobIndex->mudprogs = mprg;
           }
           mprg->next = NULL;

//               mprg->next = pMobIndex->mudprogs;
//               pMobIndex->mudprogs = mprg;
               break;
            }

Granted it looks different for each a little if it is mob/object/room its loading, but very similar in all them. Ok I did test this out in smaufuss which is likly going to look different but it did stop it from changing the order around.
       
Pages:<< prev 1 next >>