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

Members: 0
Guests: 10
Stats
Files
Topics
Posts
Members
Newest Member
481
3,735
19,368
618
Micheal64X
Today's Birthdays
There are no member birthdays today.
Related Links
» SmaugMuds.org » Codebases » AFKMud Support & Development » namegen blows up the mud
Forum Rules | Mark all | Recent Posts

namegen blows up the mud
< Newer Topic :: Older Topic > Or, I broke it again!

Pages:<< prev 1 next >>
Post is unread #1 Nov 19, 2003, 1:26 pm
Go to the top of the page
Go to the bottom of the page

Moonwolf

GroupMembers
Posts43
JoinedAug 25, 2005

Well, as some probably fully expected, I managed to totally blow things up here again, and I have no idea how

Using the automatic name generator. I create a crit, change its name to namegen, and put namegen in the short and long descriptions.

reload the area, mud goes down. Console shows it seg faulted and core dumps.

The last entry in the log file is:


Wed Nov 19, 2003 9:15:39 PM GMT :: Checking corpses....
Wed Nov 19, 2003 9:15:39 PM GMT :: Loading corpses...
Wed Nov 19, 2003 9:15:39 PM GMT :: Initializing area reset events...


And a core file appears in my /area directory. Changing the name, short, and long of the crit in the .are file brings the area back into some state where it can be loaded.

I tried creating a copy of every .txt file mentioned in the namegen section of reset.c, based on the namegen.txt file included with the codebase, but that doesn't work.

Anyone have any ideas? I promise, I didn't break it on purpose!

Kathi
       
Post is unread #2 Nov 19, 2003, 2:06 pm
Go to the top of the page
Go to the bottom of the page

Moonwolf

GroupMembers
Posts43
JoinedAug 25, 2005

OK, here's exactly what I did.

Created a crit, which has gold, thac0, and xp set to be automatically decided.

The crit is also a shopkeeper.

Created a set of text files, copies of the namegen.txt file that comes with the dist, which gives me:


moonwolf% ls system/name*
system/namegen.txt system/namegen_gr_other.txt system/namegen_other.txt
system/namegen_female.txt system/namegen_orc.txt system/namegen_ven.txt
system/namegen_gr.txt system/namegen_orc_female.txt system/namegen_ven_female.txt
system/namegen_gr_female.txt system/namegen_orc_other.txt system/namegen_ven_other.txt
moonwolf%


mset the crit name to namegen
mset the crit short to namegen
mset the crit long to namegen
used instaroom to set the resets
saved the area
purged the room
reset area
boom, down with a core dump from a seg fault.

Kathi
       
Post is unread #3 Nov 19, 2003, 4:27 pm
Go to the top of the page
Go to the bottom of the page

Tarl

GroupAFKMud Team
Posts26
JoinedJan 1, 2002

Heya,

To try to track down the source of your problems, I've got a quick test I'd like to ask you to perform

If you only mset the mobiles name to namegen, and don't mset either the short, or the long descs, does it still core ?

Also, are you familiar with GDB (or some suitable debugger for your environment) ?

And just to double check, you are using namegen as opposed to namegen_something ?

If you are just using namegen, try repeating the test above using namegen_gr

       
Post is unread #4 Nov 19, 2003, 4:46 pm
Go to the top of the page
Go to the bottom of the page

Moonwolf

GroupMembers
Posts43
JoinedAug 25, 2005

Hi Tarl,

While I was talking about this with Samson in I3, I was thinking about the settings, because of something he said.

When I was getting the cores, name, short, and long we all set to namegen, but desc wasn't. I went and added namegen as the desc, and lo and behold, it works!

Having said that, if I try to use "namegen" as a string within other words in the short, long, or desc, it doesn't get parsed; Only if it's the sole word in any of those fields. It's hard to test it properly right now because of the proto bug.

Which I'd like to proudly mention I found and I absolutely didn't break it this time!!!

Once I get that bug patched, I'll try different combinations.

As far as debugging is concerned, what I know about compilers and c and the like is nil But if there's easy ways to grab the info you're looking for, just send me an idiot's guide, and I can send you back a paste of the results.

And yes, the problem with namegen did occur with namegen_gr instead of namegen. Damn, but I like that themed random names idea!

Kathi
       
Pages:<< prev 1 next >>