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, Sogou

Members: 0
Guests: 11
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 » AFKMud Support & Development » Flee XP loss, areaconvert and...
Forum Rules | Mark all | Recent Posts

Flee XP loss, areaconvert and OLC
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Oct 6, 2009, 1:08 pm
Go to the top of the page
Go to the bottom of the page

Namreg
Fledgling
GroupMembers
Posts7
JoinedOct 2, 2009

Here I am again! AFK is now running perfectly on my OSX, and I do have some doubts if anyone could answer.

First, are characters really supposed to lose 1886799128 exp when they flee, regardless of level? And second, has anyone had success using areaconvert? I have tried numerous area files, including around 10 that are available on the file section here, and most of them turn out to be blank, even if they successfully convert. The one single area that I have managed to use is Anthill, available here on the site. The rest turns out like this:


#AFKAREA
#AREADATA
Version 1
Name Mega-City One ~
Author Glop~
Vnums 0 0
Continent one~
Coordinates 0 0
Dates 1254772735 1254772735
Ranges 5 35 0 65
Climate 0 0 0
Treasure 20 74 85 93 20 50 60 75
#ENDAREADATA

#ENDAREA


Also, is there a way to create rooms using OLC? I'm sorry if this is documented somewhere, I have searched all over for it and all I can do is edit them =(

Thanks!
       
Post is unread #2 Oct 6, 2009, 3:14 pm
Go to the top of the page
Go to the bottom of the page

Samson
Black Hand
GroupAdministrators
Posts3,644
JoinedJan 1, 2002

Bug 1: No, people should not be losing a fixed amount of XP. They should be losing an amount proportional to their level and how much XP they have at the time.

Bug 2 (maybe?): If you're getting files with data in them, the process is clearly not failing, but there's obviously something wrong if you didn't get a complete conversion. Did the logs say anything at all?

Creating rooms - yes. Just as with Smaug, you need to use the goto command with one of your assigned vnums and it will create a new room there if one does not already exist. Then just edit as usual.
       
Post is unread #3 Oct 7, 2009, 5:55 am
Go to the top of the page
Go to the bottom of the page

thindil
Fledgling
GroupMembers
Posts1
JoinedAug 29, 2009

Hello everyone ;)

About Bug #2: Yes, areaconvert is broken - here is my small patch (standard .patch file) for fix it:
--- areaconvert.cpp	2008-10-17 02:30:12.000000000 +0200
+++ areaconvert2.cpp	2009-10-05 10:05:35.000000000 +0200
@@ -1670,7 +1670,7 @@
    {
       exit_data *pexit;
       char letter;
-      int extra, arg1, arg2, arg3;
+      int extra, arg1, arg2, arg3 = 100;
       short arg4, arg5, arg6, arg7;
 
       if( ( letter = fread_letter( fp ) ) == 'S' )
@@ -1687,7 +1687,10 @@
          extra = 0;
       arg1 = fread_number( fp );
       arg2 = fread_number( fp );
-      arg3 = fread_number( fp );
+      if (letter != 'G' && letter != 'R')
+	{
+	  arg3 = fread_number( fp );
+	}
       arg4 = arg5 = arg6 = arg7 = -1;  // Converted resets have no overland coordinates
       fread_to_eol( fp );
       ++count;
@@ -2017,7 +2020,7 @@
       word = fread_word( fpArea );
 
       if( word[0] == '$' )
-         break;
+         continue;
       // Skip the helps as we no longer support them imbedded in area files
       else if( !str_cmp( word, "HELPS" ) )
@@ -2027,7 +2030,7 @@
          fread_number( fpArea );
          key = fread_flagstring( fpArea );
          if( key[0] == '$' )
-            break;
+            continue;
          text = fread_flagstring( fpArea );
          if( text[0] == '\0' )
             continue;

First two changes fix resets conversion, next two fix this problem which report Namreg. I was play a little with areaconverter and after this patch it should convert (almost without problems ;) ) Smaug areas ver 1.4a and 1.2.
       
Pages:<< prev 1 next >>