Login
User Name:

Password:



Register
Forgot your password?
Vote for Us!
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, Yandex, DotBot

Members: 0
Guests: 6
Stats
Files
Topics
Posts
Members
Newest Member
481
3,734
19,366
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » General » General Discussions » Cycling through the char list...
Forum Rules | Mark all | Recent Posts

Cycling through the char list produces null chars?
< Newer Topic :: Older Topic >

Pages:<< prev 1 next >>
Post is unread #1 Feb 28, 2006, 3:54 pm   Last edited Mar 4, 2006, 10:54 pm by Halcyon
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

I'm playing around with an idea for "jobs" for SWR... Players can pick a profession and take employment. I decided the profession I would work out jobs first would be for bounty hunting: Every 25 minutes, the game cycles through each planet on the game, rolls to see if a new bounty will be added, and then if it rolls that one should be added, it'll go through every character in the game, and if it's a mob and is on the planet in question, along with some other criteria, it'll add add up to 10 mobs with matching criteria to an array. Then, if the game counted at least 1 mob while searching, it'll generate a bounty job by rolling between 0 and x, where x is the number of mobs it found, within 10.

Now... For some odd reason, CHAR_DATA is ending up in the array that can't be accessed, God knows why. Here's the code:

Moot point. :P Problem solved, I'm just a pinhead.


When I run it through GDB to see what's up, I get one of two culprits each time: One at the memory address 0x0, and one at 0x40de3, neither of which actually exist. My question is... Why is this passing the for() loop, and how can I make it NOT pass? For the most part, the code works fine, it's just when it hits one of those two memory addresses that it pukes. Any ideas?

And btw, sorry if this is the wrong board to put this, I wasn't sure if it would be appropriate or not.
       
Post is unread #2 Mar 1, 2006, 6:45 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

Mind pasteing everything gdb shows? As well as to save time go ahead and do a print on anything that looks wierd and post what it shows also. Thanks :)
       
Post is unread #3 Mar 4, 2006, 4:42 pm
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Rofl, sorry it took me so long to reply, been a little busy. Finally got extended affects fully operational, yay! Anyway.

I can reproduce it easily, so if there's anything you need to inspect, let me know, but here's the basic rundown.

(gdb) run
Starting program: /home/rokku/diku+/swrfuss/src/swreality.exe
Sat Mar  4 19:34:57 2006 :: Booting Database
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sat Mar  4 19:34:57 2006 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Sat Mar  4 19:34:57 2006 :: Initializing libdl support...
Sat Mar  4 19:34:57 2006 :: Loading commands...
Sat Mar  4 19:34:57 2006 :: Loading spec_funs...
Sat Mar  4 19:34:57 2006 :: Loading sysdata configuration...
Sat Mar  4 19:34:57 2006 :: Loading socials
Sat Mar  4 19:34:57 2006 :: Loading skill table
Sat Mar  4 19:34:57 2006 :: Sorting skill table...
Sat Mar  4 19:34:57 2006 :: Loading herb table
Sat Mar  4 19:34:57 2006 :: Making wizlist
Sat Mar  4 19:34:57 2006 :: Initializing random number generator
Sat Mar  4 19:34:57 2006 :: Setting time and weather
Sat Mar  4 19:34:57 2006 :: Assigning gsn's
Sat Mar  4 19:34:57 2006 :: Reading in area files...
(help.are)
limbo.are     : Rooms:     1 - 45    Objs:     2 - 99    Mobs:     1 - 99
newacad.are   : Rooms: 10300 - 10430 Objs: 10300 - 10499 Mobs: 10340 - 10499
coruscant_streets: Rooms:   300 - 499   Objs:   300 - 499   Mobs:   300 - 499
space.are     : Rooms: 32000 - 32499 Objs: 32000 - 32499 Mobs: 32000 - 32499
menari_spaceport: Rooms:   199 - 226   Objs:   200 - 225   Mobs:   200 - 225
omni_complex  : Rooms:   100 - 112   Objs:   100 - 103   Mobs:     0 - 0
adari         : Rooms: 29000 - 29057 Objs: 29000 - 29059 Mobs: 29000 - 29059
gamorr        : Rooms: 28000 - 28199 Objs: 28000 - 28199 Mobs: 28000 - 28139
adari01       : Rooms: 29060 - 29158 Objs: 29060 - 29065 Mobs: 29060 - 29158
monument.plaza: Rooms: 26000 - 26099 Objs: 26000 - 26099 Mobs: 26000 - 26099
tatooine      : Rooms: 31500 - 31999 Objs: 31500 - 31524 Mobs: 31500 - 31532
darkhand      : Rooms:   600 - 699   Objs:   600 - 699   Mobs:   600 - 699
honoghr       : Rooms:  1000 - 1047  Objs:  1000 - 1099  Mobs:  1000 - 1099
cloning       : Rooms: 10000 - 10010 Objs: 10000 - 10009 Mobs: 10000 - 10009
senate        : Rooms: 10100 - 10199 Objs: 10100 - 10199 Mobs: 10100 - 10199
kashyyyk      : Rooms: 28600 - 28643 Objs: 28600 - 28605 Mobs: 28600 - 28608
a.byss.city   : Rooms: 28200 - 28399 Objs: 28200 - 28399 Mobs: 28200 - 28218
grand_towers  : Rooms:  5000 - 5099  Objs:  5000 - 5099  Mobs:  5000 - 5099
land.vehicles : Rooms: 30000 - 30999 Objs: 30000 - 30999 Mobs: 30000 - 30999
endor         : Rooms:  3000 - 3099  Objs:  3000 - 3008  Mobs:  3000 - 3005
Sorosuub      : Rooms:  6000 - 6098  Objs:  6000 - 6099  Mobs:     0 - 0
jedi_acad     : Rooms:  6099 - 6199  Objs:  6100 - 6199  Mobs:  6100 - 6199
hunter.ships  : Rooms:  6400 - 6499  Objs:  6400 - 6402  Mobs:  6400 - 6400
corus.pt2     : Rooms: 10200 - 10299 Objs: 10200 - 10299 Mobs: 10200 - 10299
mc90          : Rooms:  6700 - 6799  Objs:  6700 - 6799  Mobs:  6700 - 6799
hunters.guild : Rooms:  6600 - 6633  Objs:  6600 - 6611  Mobs:  6600 - 6604
mall          : Rooms:  7300 - 7399  Objs:  7300 - 7316  Mobs:  7300 - 7316
mon_cal.are   : Rooms: 21000 - 21499 Objs: 21000 - 21435 Mobs: 21000 - 21499
quarren.are   : Rooms:  6800 - 7200  Objs:  6800 - 6899  Mobs:  6800 - 6838
dagobah       : Rooms:  8200 - 8290  Objs:     0 - 0     Mobs:     0 - 0
throne.city   : Rooms:   700 - 799   Objs:   700 - 799   Mobs:   700 - 799
nal.hut       : Rooms: 21500 - 21515 Objs: 21500 - 21799 Mobs: 21500 - 21799
monolith      : Rooms:  8900 - 8999  Objs:  8900 - 8999  Mobs:  8900 - 8999
corus.jail    : Rooms:  9000 - 9049  Objs:  9000 - 9049  Mobs:  9000 - 9049
byss.jail     : Rooms:  9050 - 9099  Objs:  9050 - 9099  Mobs:  9050 - 9099
nar.shadda    : Rooms:   500 - 599   Objs:   500 - 541   Mobs:   500 - 573
Sat Mar  4 19:34:57 2006 :: Fixing exits
Sat Mar  4 19:34:57 2006 :: Initializing economy
Sat Mar  4 19:34:57 2006 :: Loading buildlist
Sat Mar  4 19:34:57 2006 :: ../gods/Halcyon
Sat Mar  4 19:34:57 2006 :: ../gods/Mennis
Sat Mar  4 19:34:57 2006 :: Loading boards
Sat Mar  4 19:34:57 2006 :: ../boards/student.board
Sat Mar  4 19:34:57 2006 :: ../boards/imm_monitor
Sat Mar  4 19:34:57 2006 :: ../boards/quest.board
Sat Mar  4 19:34:57 2006 :: ../boards/galactic_net
Sat Mar  4 19:34:57 2006 :: ../boards/mail_net
Sat Mar  4 19:34:57 2006 :: ../boards/nr.board
Sat Mar  4 19:34:57 2006 :: ../boards/imperial.board
Sat Mar  4 19:34:57 2006 :: ../boards/idea
Sat Mar  4 19:34:57 2006 :: ../boards/bidea.brd
Sat Mar  4 19:34:57 2006 :: ../boards/ackbuild.brd
Sat Mar  4 19:34:57 2006 :: ../boards/blueprint.brd
Sat Mar  4 19:34:57 2006 :: ../boards/jedi.board
Sat Mar  4 19:34:57 2006 :: Loading clans
Sat Mar  4 19:34:57 2006 :: Loading clans...
Sat Mar  4 19:34:57 2006 :: empire.clan
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: republic.clan
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: corperate.clan
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: Zorgos.clan
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: hunters.guild
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: jedi.order
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: blacksun
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: the.emporers.hand
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: Imperial.Navy
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: rogue.squadron
Sat Mar  4 19:34:57 2006 :: Loading clan storage room
Sat Mar  4 19:34:57 2006 :: $
Sat Mar  4 19:34:57 2006 ::  Done clans
Sorting clans....
Sat Mar  4 19:34:57 2006 ::  Done sorting
Sat Mar  4 19:34:57 2006 :: Loading senate
Sat Mar  4 19:34:57 2006 :: Loading bans
Sat Mar  4 19:34:57 2006 :: Loading corpses
Sat Mar  4 19:34:57 2006 :: Loading space
Sat Mar  4 19:34:57 2006 :: Loading space...
Sat Mar  4 19:34:57 2006 ::  Done starsystems
Sat Mar  4 19:34:57 2006 :: Loading ships
Sat Mar  4 19:34:57 2006 :: Loading ships...
Sat Mar  4 19:34:57 2006 ::  Done ships
Sat Mar  4 19:34:57 2006 :: Loading bounties
Sat Mar  4 19:34:57 2006 :: Loading disintigrations...
Sat Mar  4 19:34:57 2006 ::  Done bounties
Sat Mar  4 19:34:57 2006 :: Loading governments
Sat Mar  4 19:34:57 2006 :: Loading planets...
Sat Mar  4 19:34:57 2006 :: coruscant
Sat Mar  4 19:34:57 2006 :: byss
Sat Mar  4 19:34:57 2006 :: honoghr
Sat Mar  4 19:34:57 2006 :: gamorr
Sat Mar  4 19:34:57 2006 :: endor
Sat Mar  4 19:34:57 2006 :: Kashyyyk
Sat Mar  4 19:34:57 2006 :: moncal
Sat Mar  4 19:34:57 2006 :: adari
Sat Mar  4 19:34:57 2006 :: tatooine
Sat Mar  4 19:34:57 2006 :: $
Sat Mar  4 19:34:57 2006 ::  Done planets
Sat Mar  4 19:34:57 2006 :: Resetting areas
Sat Mar  4 19:34:57 2006 :: Initializing socket
Sat Mar  4 19:34:57 2006 :: Star Wars Reality ready on port 4000.
Sat Mar  4 19:35:00 2006 :: IMC: Loading IMC2 command table...
Sat Mar  4 19:35:00 2006 :: IMC: Loading IMC2 network data...
Sat Mar  4 19:35:00 2006 :: IMC: Loading IMC2 help file...
Sat Mar  4 19:35:00 2006 :: IMC: Loading IMC2 color table...
Sat Mar  4 19:35:00 2006 :: IMC: Loading IMC2 who template...
Sat Mar  4 19:35:00 2006 :: IMC: imcfread_word: EOF encountered on read.
Sat Mar  4 19:35:00 2006 :: IMC: IMC2 network data loaded. Autoconnect not set.
IMC2 will need to be connected manually.

Program received signal SIGSEGV, Segmentation fault.
0x00482ffa in make_bounty_jobs () at extra.c:595
595                                     job->reward = ( ( job->bounty->top_level
 / 4 < 1 ?
(gdb) p bounties
$1 = {0x102fa068, 0x102fb670, 0x102fbe68, 0x102fc110, 0x40e34, 0x0, 0x22e978,
  0x610b71f7, 0x948dbe3d, 0x40e34}
(gdb) p bounty
$2 = (CHAR_DATA *) 0x40e34
(gdb) p bounty->name
Cannot access memory at address 0x40ee0
(gdb) p bounties[0]->name
$3 = 0x10126c80 "shop keeper shopkeeper baszturd"
(gdb) p planet->name
$4 = 0x10275570 "Adari"
(gdb)


I can't really figure out why inaccessible char_data is ending up in there. I'm fairly certain it shouldn't be.
       
Post is unread #4 Mar 4, 2006, 4:59 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

ok, can you do this in it
frame 0
print job->reward
print job
print job->bounty
print job->bounty->top_level
after that post it all here please.
       
Post is unread #5 Mar 4, 2006, 8:40 pm
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Here ya go:

(gdb) run
Starting program: /home/rokku/diku+/swrfuss/src/swreality.exe
Sat Mar  4 23:35:14 2006 :: Booting Database
 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Sat Mar  4 23:35:14 2006 :: [*****] BOOT: ---------------------[ Boot Log ]-----
---------------
Sat Mar  4 23:35:14 2006 :: Initializing libdl support...
Sat Mar  4 23:35:14 2006 :: Loading commands...
Sat Mar  4 23:35:14 2006 :: Loading spec_funs...
Sat Mar  4 23:35:14 2006 :: Loading sysdata configuration...
Sat Mar  4 23:35:14 2006 :: Loading socials
Sat Mar  4 23:35:14 2006 :: Loading skill table
Sat Mar  4 23:35:14 2006 :: Sorting skill table...
Sat Mar  4 23:35:14 2006 :: Loading herb table
Sat Mar  4 23:35:14 2006 :: Making wizlist
Sat Mar  4 23:35:14 2006 :: Initializing random number generator
Sat Mar  4 23:35:14 2006 :: Setting time and weather
Sat Mar  4 23:35:14 2006 :: Assigning gsn's
Sat Mar  4 23:35:14 2006 :: Reading in area files...
(help.are)
limbo.are     : Rooms:     1 - 45    Objs:     2 - 99    Mobs:     1 - 99
newacad.are   : Rooms: 10300 - 10430 Objs: 10300 - 10499 Mobs: 10340 - 10499
coruscant_streets: Rooms:   300 - 499   Objs:   300 - 499   Mobs:   300 - 499
space.are     : Rooms: 32000 - 32499 Objs: 32000 - 32499 Mobs: 32000 - 32499
menari_spaceport: Rooms:   199 - 226   Objs:   200 - 225   Mobs:   200 - 225
omni_complex  : Rooms:   100 - 112   Objs:   100 - 103   Mobs:     0 - 0
adari         : Rooms: 29000 - 29057 Objs: 29000 - 29059 Mobs: 29000 - 29059
gamorr        : Rooms: 28000 - 28199 Objs: 28000 - 28199 Mobs: 28000 - 28139
adari01       : Rooms: 29060 - 29158 Objs: 29060 - 29065 Mobs: 29060 - 29158
monument.plaza: Rooms: 26000 - 26099 Objs: 26000 - 26099 Mobs: 26000 - 26099
tatooine      : Rooms: 31500 - 31999 Objs: 31500 - 31524 Mobs: 31500 - 31532
darkhand      : Rooms:   600 - 699   Objs:   600 - 699   Mobs:   600 - 699
honoghr       : Rooms:  1000 - 1047  Objs:  1000 - 1099  Mobs:  1000 - 1099
cloning       : Rooms: 10000 - 10010 Objs: 10000 - 10009 Mobs: 10000 - 10009
senate        : Rooms: 10100 - 10199 Objs: 10100 - 10199 Mobs: 10100 - 10199
kashyyyk      : Rooms: 28600 - 28643 Objs: 28600 - 28605 Mobs: 28600 - 28608
a.byss.city   : Rooms: 28200 - 28399 Objs: 28200 - 28399 Mobs: 28200 - 28218
grand_towers  : Rooms:  5000 - 5099  Objs:  5000 - 5099  Mobs:  5000 - 5099
land.vehicles : Rooms: 30000 - 30999 Objs: 30000 - 30999 Mobs: 30000 - 30999
endor         : Rooms:  3000 - 3099  Objs:  3000 - 3008  Mobs:  3000 - 3005
Sorosuub      : Rooms:  6000 - 6098  Objs:  6000 - 6099  Mobs:     0 - 0
jedi_acad     : Rooms:  6099 - 6199  Objs:  6100 - 6199  Mobs:  6100 - 6199
hunter.ships  : Rooms:  6400 - 6499  Objs:  6400 - 6402  Mobs:  6400 - 6400
corus.pt2     : Rooms: 10200 - 10299 Objs: 10200 - 10299 Mobs: 10200 - 10299
mc90          : Rooms:  6700 - 6799  Objs:  6700 - 6799  Mobs:  6700 - 6799
hunters.guild : Rooms:  6600 - 6633  Objs:  6600 - 6611  Mobs:  6600 - 6604
mall          : Rooms:  7300 - 7399  Objs:  7300 - 7316  Mobs:  7300 - 7316
mon_cal.are   : Rooms: 21000 - 21499 Objs: 21000 - 21435 Mobs: 21000 - 21499
quarren.are   : Rooms:  6800 - 7200  Objs:  6800 - 6899  Mobs:  6800 - 6838
dagobah       : Rooms:  8200 - 8290  Objs:     0 - 0     Mobs:     0 - 0
throne.city   : Rooms:   700 - 799   Objs:   700 - 799   Mobs:   700 - 799
nal.hut       : Rooms: 21500 - 21515 Objs: 21500 - 21799 Mobs: 21500 - 21799
monolith      : Rooms:  8900 - 8999  Objs:  8900 - 8999  Mobs:  8900 - 8999
corus.jail    : Rooms:  9000 - 9049  Objs:  9000 - 9049  Mobs:  9000 - 9049
byss.jail     : Rooms:  9050 - 9099  Objs:  9050 - 9099  Mobs:  9050 - 9099
nar.shadda    : Rooms:   500 - 599   Objs:   500 - 541   Mobs:   500 - 573
Sat Mar  4 23:35:14 2006 :: Fixing exits
Sat Mar  4 23:35:14 2006 :: Initializing economy
Sat Mar  4 23:35:14 2006 :: Loading buildlist
Sat Mar  4 23:35:14 2006 :: ../gods/Halcyon
Sat Mar  4 23:35:14 2006 :: ../gods/Mennis
Sat Mar  4 23:35:14 2006 :: Loading boards
Sat Mar  4 23:35:14 2006 :: ../boards/student.board
Sat Mar  4 23:35:14 2006 :: ../boards/imm_monitor
Sat Mar  4 23:35:14 2006 :: ../boards/quest.board
Sat Mar  4 23:35:14 2006 :: ../boards/galactic_net
Sat Mar  4 23:35:14 2006 :: ../boards/mail_net
Sat Mar  4 23:35:14 2006 :: ../boards/nr.board
Sat Mar  4 23:35:14 2006 :: ../boards/imperial.board
Sat Mar  4 23:35:14 2006 :: ../boards/idea
Sat Mar  4 23:35:14 2006 :: ../boards/bidea.brd
Sat Mar  4 23:35:14 2006 :: ../boards/ackbuild.brd
Sat Mar  4 23:35:14 2006 :: ../boards/blueprint.brd
Sat Mar  4 23:35:14 2006 :: ../boards/jedi.board
Sat Mar  4 23:35:14 2006 :: Loading clans
Sat Mar  4 23:35:14 2006 :: Loading clans...
Sat Mar  4 23:35:14 2006 :: empire.clan
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: republic.clan
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: corperate.clan
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: Zorgos.clan
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: hunters.guild
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: jedi.order
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: blacksun
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: the.emporers.hand
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: Imperial.Navy
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: rogue.squadron
Sat Mar  4 23:35:14 2006 :: Loading clan storage room
Sat Mar  4 23:35:14 2006 :: $
Sat Mar  4 23:35:14 2006 ::  Done clans
Sorting clans....
Sat Mar  4 23:35:14 2006 ::  Done sorting
Sat Mar  4 23:35:14 2006 :: Loading senate
Sat Mar  4 23:35:14 2006 :: Loading bans
Sat Mar  4 23:35:14 2006 :: Loading corpses
Sat Mar  4 23:35:14 2006 :: Loading space
Sat Mar  4 23:35:14 2006 :: Loading space...
Sat Mar  4 23:35:14 2006 ::  Done starsystems
Sat Mar  4 23:35:14 2006 :: Loading ships
Sat Mar  4 23:35:14 2006 :: Loading ships...
Sat Mar  4 23:35:14 2006 ::  Done ships
Sat Mar  4 23:35:14 2006 :: Loading bounties
Sat Mar  4 23:35:14 2006 :: Loading disintigrations...
Sat Mar  4 23:35:14 2006 ::  Done bounties
Sat Mar  4 23:35:14 2006 :: Loading governments
Sat Mar  4 23:35:14 2006 :: Loading planets...
Sat Mar  4 23:35:14 2006 :: coruscant
Sat Mar  4 23:35:14 2006 :: byss
Sat Mar  4 23:35:14 2006 :: honoghr
Sat Mar  4 23:35:14 2006 :: gamorr
Sat Mar  4 23:35:14 2006 :: endor
Sat Mar  4 23:35:14 2006 :: Kashyyyk
Sat Mar  4 23:35:14 2006 :: moncal
Sat Mar  4 23:35:14 2006 :: adari
Sat Mar  4 23:35:14 2006 :: tatooine
Sat Mar  4 23:35:14 2006 :: $
Sat Mar  4 23:35:14 2006 ::  Done planets
Sat Mar  4 23:35:14 2006 :: Resetting areas
Sat Mar  4 23:35:14 2006 :: Initializing socket
Sat Mar  4 23:35:14 2006 :: Star Wars Reality ready on port 4000.
Sat Mar  4 23:35:17 2006 :: IMC: Loading IMC2 command table...
Sat Mar  4 23:35:17 2006 :: IMC: Loading IMC2 network data...
Sat Mar  4 23:35:17 2006 :: IMC: Loading IMC2 help file...
Sat Mar  4 23:35:17 2006 :: IMC: Loading IMC2 color table...
Sat Mar  4 23:35:17 2006 :: IMC: Loading IMC2 who template...
Sat Mar  4 23:35:17 2006 :: IMC: imcfread_word: EOF encountered on read.
Sat Mar  4 23:35:17 2006 :: IMC: IMC2 network data loaded. Autoconnect not set.
IMC2 will need to be connected manually.

Program received signal SIGSEGV, Segmentation fault.
0x00482eba in make_bounty_jobs () at extra.c:595
595                                     job->reward = ( ( job->bounty->top_level
 / 4 < 1 ?
(gdb) frame 0
#0  0x00482eba in make_bounty_jobs () at extra.c:595
595                                     job->reward = ( ( job->bounty->top_level
 / 4 < 1 ?
(gdb) print job->reward
$1 = 0
(gdb) print job
$2 = (JOB_DATA *) 0x1037ace0
(gdb) print job->bounty
$3 = (CHAR_DATA *) 0x40e37
(gdb) print job->bounty->top_level
Cannot access memory at address 0x40efb
(gdb)
       
Post is unread #6 Mar 4, 2006, 9:03 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

thats what i fiqured. Job->bounty->top_level is causing the crash when it goes to use it for setting job->reward, fiqure out what its issue is and make sure its set before that point and give that a try :)
       
Post is unread #7 Mar 4, 2006, 9:20 pm
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

The problem is that the char_data at the address it picks is non-existent. If you try to retrieve any other information from that specific piece of char_data, you fail. I'm just trying to figure out why if it's NULL, it's still in the list?
       
Post is unread #8 Mar 4, 2006, 9:44 pm
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

Try
print job->bounty->name or something like that that should be there. if it gives the same thing then its invalid bounty info.
If thats the case you need to take and fiqure out when its becoming invalid, was it when someone logged off/got killed/whatever, or was it just invalid when assigned.
       
Post is unread #9 Mar 4, 2006, 10:53 pm
Go to the top of the page
Go to the bottom of the page

Halcyon
Magician
GroupMembers
Posts187
JoinedApr 12, 2005

Roflmao.

I figured it out.

I never emptied out the bounties[]. So when it tried to run through them and load them into bounties[] again, well... :P

Okay, so, totally my mistake. The char list does not have leftover NULL chars in it. I'm just a pinhead sometimes.

Thanks anyway, though. :D
       
Post is unread #10 Mar 5, 2006, 5:09 am
Go to the top of the page
Go to the bottom of the page

Remcon
Geomancer
GroupAdministrators
Posts1,873
JoinedJul 26, 2005

Gratz on fiquring it out.
       
Pages:<< prev 1 next >>