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 ➜ Pretitle snippet

Pretitle snippet

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


Pages: 1  2 3  

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #15 on Tue 15 Jun 2004 11:58 PM (UTC)
Message
Did you compile *everything*? ie. do rm *.o, then compile?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by USER007   (124 posts)  Bio
Date Reply #16 on Wed 16 Jun 2004 02:18 AM (UTC)
Message
...OMG! It works now, from now on I'll do that. Thanks :)
Top

Posted by David Haley   USA  (3,881 posts)  Bio
Date Reply #17 on Wed 16 Jun 2004 02:21 AM (UTC)
Message
More importantly, do you understand why that is something you need to do?

David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone

http://david.the-haleys.org
Top

Posted by USER007   (124 posts)  Bio
Date Reply #18 on Wed 16 Jun 2004 03:17 AM (UTC)
Message
It helps the files link up better, instead of just the ones that you edited... something around there.
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #19 on Wed 16 Jun 2004 04:15 AM (UTC)
Message
That, plus any changes in static variables or changes to a .h file need to be changed in all files that reference them. If you change a variable from char to int, for example, in the object structure, and only compile one .c file, all the others will still think its a char.

Most makefiles have a "make clean" option to help out

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #20 on Sat 12 Feb 2005 02:01 PM (UTC)
Message
Hello ... i installed the same snippet on smaug1.4a FUSS
and got some errors...after fixing a few of them listed here, I did a make clean and then a make smaug.....here is what i got

Bill@DDKXK661 ~/smaug/src
$ make clean
rm -f o/*.o smaug.exe *~

Bill@DDKXK661 ~/smaug/src
$ make
make -s smaug
Compiling o/imc.o....
Compiling o/i3.o....
Compiling o/act_comm.o....
Compiling o/act_info.o....
Compiling o/act_move.o....
Compiling o/act_obj.o....
Compiling o/act_wiz.o....
Compiling o/ban.o....
Compiling o/boards.o....
Compiling o/build.o....
Compiling o/clans.o....
Compiling o/color.o....
Compiling o/comm.o....
Compiling o/comments.o....
Compiling o/const.o....
Compiling o/db.o....
Compiling o/deity.o....
Compiling o/fight.o....
Compiling o/handler.o....
Compiling o/hashstr.o....
Compiling o/hotboot.o....
Compiling o/imm_host.o....
Compiling o/interp.o....
Compiling o/magic.o....
Compiling o/makeobjs.o....
Compiling o/mapout.o....
Compiling o/md5.o....
Compiling o/misc.o....
Compiling o/mpxset.o....
make[1]: *** No rule to make target `o/mud_comm.o', needed by `smaug'. Stop.
make: *** [all] Error 2

Bill@DDKXK661 ~/smaug/src
$ make
make -s smaug
make[1]: *** No rule to make target `o/mud_comm.o', needed by `smaug'. Stop.
make: *** [all] Error 2

Any ideas?? Thanks



Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #21 on Sat 12 Feb 2005 04:17 PM (UTC)
Message
Well it looks like you changed your Makefile for some reason. Make sure mud_comm.o and mud_comm.c are in the Makefile.

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #22 on Sun 13 Feb 2005 05:49 AM (UTC)
Message
Hello agian... yeah..I found the error..mud_comm.c was really named mud_comm.c.o Fixed it, and it compiled. However, now after I login..(it actually takes in the password).. I belive the pfile is corrupt..Any ideas on just what is happening??


From gdb


Bill@DDKXK661 ~
$ cd smaug/area

Bill@DDKXK661 ~/smaug/area
$ gdb ../src/smaug.exe
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB.  Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run
Sun Feb 13 01:38:03 2005 :: IMC: IMC2Sun Feb 13 01:38:00 2005 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Sun Feb 13 01:38:00 2005 :: Loading commands
Sun Feb 13 01:38:00 2005 :: Loading sysdata configuration...
Sun Feb 13 01:38:00 2005 :: Loading socials
Sun Feb 13 01:38:00 2005 :: Loading skill table
Sun Feb 13 01:38:00 2005 :: Sorting skill table...
Sun Feb 13 01:38:00 2005 :: Remapping slots to sns
Sun Feb 13 01:38:00 2005 :: Loading classes
Sun Feb 13 01:38:00 2005 :: Loading races
Sun Feb 13 01:38:00 2005 :: Loading herb table
Sun Feb 13 01:38:00 2005 :: Loading tongues
Sun Feb 13 01:38:00 2005 :: Making wizlist
Sun Feb 13 01:38:00 2005 :: Initializing random number generator
Sun Feb 13 01:38:00 2005 :: Setting time and weather
Sun Feb 13 01:38:00 2005 :: Assigning gsn's
Sun Feb 13 01:38:00 2005 :: Reading in area files...
(help.are)
gods.are      : Rooms:  1200 - 1203  Objs:  1200 - 1203  Mobs:  1200 - 1200
limbo.are     : Rooms:     2 - 99    Objs:     2 - 99    Mobs:     1 - 99
newacad.are   : Rooms: 10300 - 10499 Objs: 10300 - 10499 Mobs: 10300 - 10499
newgate.are   : Rooms:   100 - 199   Objs:   100 - 199   Mobs:   100 - 199
newdark.are   : Rooms: 21000 - 21499 Objs: 21000 - 21435 Mobs: 21000 - 21499
Sun Feb 13 01:38:00 2005 :: Fixing exits
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 9850.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21019, exit north lead
s to bad vnum (9850)
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Deleting north exit in room 21019
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 24800.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21021, exit north lead
s to bad vnum (24800)
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Deleting north exit in room 21021
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 3504.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21075, exit south lead
s to bad vnum (3504)
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Deleting south exit in room 21075
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 7030.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21075, exit down leads
 to bad vnum (7030)
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Deleting down exit in room 21075
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 6000.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21087, exit west leads
 to bad vnum (6000)
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Deleting west exit in room 21087
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 3503.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21112, exit east leads
 to bad vnum (3503)
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Deleting east exit in room 21112
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 7914.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21291, exit up leads t
o bad vnum (7914)
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Deleting up exit in room 21291
Sun Feb 13 01:38:00 2005 :: [*****] BUG: Get_room_index: bad vnum 3600.
Sun Feb 13 01:38:00 2005 :: [*****] BOOT: Fix_exits: room 21293, exit south lead
s to bad vnum (3600 network data loaded. Autoconnect not set.
IMC2 will need to be connected manually.
Sun Feb 13 01:38:00 2005 :: Keldar ready at address DDKXK661 on port 4000.
Sun Feb 13 01:38:08 2005 :: Sock.sinaddr:  127.0.0.1, port 1200.
Sun Feb 13 01:38:11 2005 :: EOF encountered on read.
Sun Feb 13 01:38:19 2005 :: Sock.sinaddr:  127.0.0.1, port 1203.
Sun Feb 13 01:38:21 2005 :: Preloading player data for: Rakon (9K)
Sun Feb 13 01:38:23 2005 :: Loading player data for: Rakon (9K)
Sun Feb 13 01:38:23 2005 :: Rakon (127.0.0.1) has connected.
Sun Feb 13 01:39:30 2005 :: Rakon has quit (Room 1201).

Program received signal SIGSEGV, Segmentation fault.
0x610b4704 in random () from /usr/bin/cygwin1.dll
(gdb)




Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #23 on Sun 13 Feb 2005 05:52 AM (UTC)
Message
sorry... more info coming :D

This is what happens when I log into my nud

Type [MORE] or [C] to continue. <-------Pager thing going of the hizzy

Press [ENTER]


Welcome to Keldar...
Before a gigantic wooden door
A huge oak door serves as the entrance to the most magnificent palace you've
ever seen. A blue orb hovers near the door.
You see exits leading: none.
(Hidden) (Buried) A key of diamond glistens.


<Type HELP START><------- Immortal prompt shouldn't be this


<Type HELP START>
help start
Help level: 1
If you are new to the Realms, here are a few help files that will help you
get acquainted with our world. Please remember that during peak times
we host upwards of 300 players online, so we have tried to make the help
Type [MORE] or [C] to continue.

system as detailed as possible for everyone's benefit:

GUIDE - Will help you learn to use your Adventurers Guide Book.
RULES - Will lead you through the laws of the land.
Type [MORE] or [C] to continue.

SPAM - Will explain what spam is, and why you should not do it.
CONFIG - Will teach you about our configuration menu.
SCORE - Will tell you about your character's personal score sheet.
MOVEMENT - Will teach you various commands for moving about the Realms.
Type [MORE] or [C] to continue.

OBJECTS - Will teach you various commands to use your equipment.
CONTAINER - Will teach you about using containers to hold belongings.
CHANNELS - Will teach you about communication with other players.
GROUP - Will help you with grouping with other adventurers.
Type [MORE] or [C] to continue.

COMBAT - Will teach you how to choose, start and stop a fight.
DEATH - Will tell you about the death experience in the Realms.
PRACTICE - Will teach you about training spells, skills, and weapons.
INFORMATION - Will cover ways to find certain types of information.
Type [MORE] or [C] to continue.

To use these files, type HELP <topic>. Type 'help' for general commands.

<Type HELP START>


<Type HELP START>
score

Score for Rakon,Immortal of Justice.
You are trusted at level 51.<---------- Eh...why?? Rakon's level 65..why how did trust get to 51?
----------------------------------------------------------------------------
Type [MORE] or [C] to continue.

LEVEL: 65 Race : Dwarf Played: 2784 hours
YEARS: 1409 Class: Warrior Log In: Sun Feb 13 01:38:23 2005
STR : 17(17) HitRoll: 3 Saved: no save this session
INT : 13(13) DamRoll: 3 Time: Sun Feb 13 01:38:39 2005
Type [MORE] or [C] to continue.

WIS : 15(15) Armor: 0100, improper for adventure
DEX : 13(13) Align: +0000, neutral Items: 00002 (max 10200)
CON : 12(12) Pos'n: standing Weight: 00003 (max 1000000)
CHA : 12(12) Wimpy: 0 Style: standard
Type [MORE] or [C] to continue.

LCK : 13(13)
Glory: 0000(0000)
PRACT: 100 Hitpoints: 4000 of 4000 Pager: (X) 0 AutoExit(X)
XP : 2000 MKills: 00000 AutoLoot( )
Type [MORE] or [C] to continue.

GOLD : 500,047 Move: 4000 of 4000 Mdeaths: 00000 AutoSac ( )

You are drunk.<---------- --------------See below **
You are in danger of dehydrating.<--- How did these semptons get here? was fine before**
You feel fine.<-----------------See above **
Type [MORE] or [C] to continue.

Languages: common elvish dwarven pixie ogre orcish trollese rodent insectoid mammal reptile dragon spiritual magical goblin gods ancient halfling clan gith gnome


You are bestowed with the command(s): (null).<--------- Never bestowed a thing an PC **
----------------------------------------------------------------------------
IMMORTAL DATA: Wizinvis [ ] Wizlevel (0)
Type [MORE] or [C] to continue.

Bamfin:
Bamfout:


<Type HELP START>


<Type HELP START>
You drool on yourself.
--------------------------------------

Any advice on why this is happening? or what might remedy it? I've tried adding an ifcheck to see if pretit was null but that wouldnt let me log in that way..... Also added the ch->pcdata->pretit in the save.c function however I think its messing up. Thanks in advance

If you have any more questions about any information I' ve failed to give you..please gmail me <penquincoder at gmail dot com> or reply here..Thanks!

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #24 on Sun 13 Feb 2005 05:52 AM (UTC)
Message
Have you tried to debug the core? What does the backtrace say?

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #25 on Sun 13 Feb 2005 06:02 AM (UTC)
Message
All that is in the area dir s a smaug.exe.stackdump and I dont know how to read that. as for debuggin the core, how would I go about doing that?

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #26 on Sun 13 Feb 2005 06:04 AM (UTC)
Message
The link on how to debug is at the top of the page under coding.

http://www.gammon.com.au/forum/bbshowpost.php?bbsubject_id=3653

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #27 on Sun 13 Feb 2005 06:09 AM (UTC)
Message
more Gdb stuff.. I've no clue what to make of it

Sun Feb 13 01:38:11 2005 :: EOF encountered on read.
Sun Feb 13 01:38:19 2005 :: Sock.sinaddr: 127.0.0.1, port 1203.
Sun Feb 13 01:38:21 2005 :: Preloading player data for: Rakon (9K)
Sun Feb 13 01:38:23 2005 :: Loading player data for: Rakon (9K)
Sun Feb 13 01:38:23 2005 :: Rakon (127.0.0.1) has connected.
Sun Feb 13 01:39:30 2005 :: Rakon has quit (Room 1201).

Program received signal SIGSEGV, Segmentation fault.
0x610b4704 in random () from /usr/bin/cygwin1.dll
(gdb) q
The program is running. Exit anyway? (y or n) y

Bill@DDKXK661 ~/smaug/area
$ gdb ../src/smaug.exe
GNU gdb 6.3.50_2004-12-28-cvs (cygwin-special)
Copyright 2004 Free Software Foundation, Inc.
GDB is free software, covered by the GNU General Public License, and you are
welcome to change it and/or distribute copies of it under certain conditions.
Type "show copying" to see the conditions.
There is absolutely no warranty for GDB. Type "show warranty" for details.
This GDB was configured as "i686-pc-cygwin"...
(gdb) run
Starting program: /home/Bill/smaug/src/smaug.exe
...
Blah
...
Sun Feb 13 02:03:37 2005 :: Sock.sinaddr: 127.0.0.1, port 1278.
Sun Feb 13 02:03:39 2005 :: Preloading player data for: Rakon (9K)
Sun Feb 13 02:03:40 2005 :: Loading player data for: Rakon (9K)
Sun Feb 13 02:03:40 2005 :: Creating area entry for Rakon<---- Need to know why here..no vnums assigned.
Sun Feb 13 02:03:40 2005 :: Rakon (127.0.0.1) has connected.

<connected and played here Did only what was in log, Below>

Sun Feb 13 02:03:58 2005 :: Log Rakon: mset self drunk 0
Sun Feb 13 02:04:06 2005 :: Log Rakon: mset self full 100
Sun Feb 13 02:04:20 2005 :: Rakon has quit (Room 1201).

<tried to reconnect>

Program received signal SIGSEGV, Segmentation fault.
0x610b4704 in random () from /usr/bin/cygwin1.dll

(gdb) bt
#0 0x610b4704 in random () from /usr/bin/cygwin1.dll
#1 0x610b51d5 in random () from /usr/bin/cygwin1.dll
#2 0x6105bc88 in dll_entry@12 () from /usr/bin/cygwin1.dll
#3 0x61001e89 in getprogname () from /usr/bin/cygwin1.dll
#4 0x6108a90c in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#5 0x61087436 in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#6 0x61086dbb in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#7 0x61062cf8 in inet_makeaddr () from /usr/bin/cygwin1.dll
#8 0x6108e1ef in cygwin1!aclcheck () from /usr/bin/cygwin1.dll
#9 0x004a9c05 in accept_new (ctrl=5) at comm.c:541
#10 0x004a9c6e in game_loop () at comm.c:564
#11 0x004a9542 in main (argc=1, argv=0xa0519c8) at comm.c:309
(gdb)

[/code]
Thanks

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
Top

Posted by Zeno   USA  (2,871 posts)  Bio
Date Reply #28 on Sun 13 Feb 2005 06:12 AM (UTC)
Message
Make sure you have debugging enabled.

Add -G3 on the compile line in the Makefile.

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

Posted by Rakon   USA  (123 posts)  Bio
Date Reply #29 on Sun 13 Feb 2005 06:19 AM (UTC)
Message
I went to the post you listed, but when I do a make clean, then make... I get the following

Bill@DDKXK661 ~/smaug/area
$ cd ../src

Bill@DDKXK661 ~/smaug/src
$ make clean
rm -f o/*.o smaug.exe *~

Bill@DDKXK661 ~/smaug/src
$ make
make -s smaug
  Compiling o/imc.o....
cc1: warning: -Wuninitialized is not supported without -O
...
<Goes through compling with the same message for each file>

Done compiling mud.

Bill@DDKXK661 ~/smaug/src
$

I will getthe core file readout in the next post

Yes, I am a criminal.
My crime is that of curiosity.
My crime is that of judging people by what they say and think, not what they look like.
My crime is that of outsmarting you, something that you will never forgive me for.
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.


131,334 views.

This is page 2, subject is 3 pages long:  [Previous page]  1  2 3  [Next page]

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.