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
➜ Running the server
➜ Startup error
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Wed 04 Jun 2003 01:13 AM (UTC) |
Message
| Ok, this is odd. I've had my mud running for a while, and then after I code something new in it doesn't work, so I revert it. Then I start it up again and get this error-
[*****] FILE: newdark.are LINE: 8158
[*****] BUG: Fread_number: bad format. (;)
At first I thought it was the area, so I replaced it with a perfect original right from the tar. And yet it gives me the same error. I may have accidently changed something in the code to affect this. Anyone know what? And most areas give that error now. I want to fix it, not remove the area.
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Boborak
USA (228 posts) Bio
|
Date
| Reply #1 on Wed 04 Jun 2003 01:21 AM (UTC) |
Message
| What did you attempt to change? and what is LINE: 8158 of newdark.are? Those would help tremendously in trying to figure out your problem. | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #2 on Wed 04 Jun 2003 06:27 AM (UTC) |
Message
| If the "something new" involves new flags in the area file (eg. adding another number) then it is highly likely it won't read the old files, unless you build in some sort of test for knowing whether you have a new format or old format file.
Various places in SMAUG use the technique of reading in a line and then seeing how many numbers are on it. That method would probably work for you. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #3 on Wed 04 Jun 2003 04:30 PM (UTC) Amended on Wed 04 Jun 2003 04:31 PM (UTC) by Zeno
|
Message
| Well, I removed the last changes that could have caused that right after I added the changes. I have not added any new flags or of the like. I will post what is on that line later today. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #4 on Wed 04 Jun 2003 10:56 PM (UTC) Amended on Wed 04 Jun 2003 10:57 PM (UTC) by Zeno
|
Message
| Here's the line. Its in bold.
#SHOPS
21001 3 4 0 0 0 120 90 0 23 ; the wizard shopkeeper
21003 26 10 0 0 0 115 90 0 23 ; the alchemist
|
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Boborak
USA (228 posts) Bio
|
Date
| Reply #5 on Thu 05 Jun 2003 03:35 AM (UTC) |
Message
| There's nothing wrong with that line. The only likely explanation for your error is you DIDN'T change everything back the way it was before or you didn't 'make clean' once you changed your code back. The only other thing I could reccommend is to replace your db.c with a stock one. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #6 on Thu 05 Jun 2003 04:29 PM (UTC) |
Message
| Yeah, I thought the line was fine. Looks like I may have accidently forgot to remove something when reverting, or removed something that shouldn't have been removed. I'll try replacing db.c with the stock. Thanks. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #7 on Thu 05 Jun 2003 09:14 PM (UTC) |
Message
| Hmm, its not db.c. I replaced it with stock and the same thing. Any ideas of what else it could be? I've already tried replacing the newdark with the stock too. No luck... |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Boborak
USA (228 posts) Bio
|
Date
| Reply #8 on Fri 06 Jun 2003 12:11 AM (UTC) |
Message
| Well assuming you did a 'make clean' after replacing db.c too. Now's the time to explain what you altered before all of this started happening. I know you said you changed it all back, but obviously it had an effect on something. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #9 on Fri 06 Jun 2003 04:33 PM (UTC) |
Message
| What I did last was attempted to put put a snippet, "finger" version 3, from the AFKmud site. After following the instructions, it failed to compile, and I just figured I would do this another time. I had forgot to backup some files, and so I edited them back the way they were. But what I probably did was change something I had not meant too. I'm going to check over everything, and see what I can find. I'll post sometime soon if I have fixed it or not. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Nick Gammon
Australia (23,140 posts) Bio
Forum Administrator |
Date
| Reply #10 on Fri 06 Jun 2003 08:50 PM (UTC) |
Message
| All I can suggest is running "diff" on the known good copies of the files, comparing them to the current ones, and ignoring any changes that you know you did yourself, and that shouldn't affect this problem. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| Boborak
USA (228 posts) Bio
|
Date
| Reply #11 on Fri 06 Jun 2003 09:26 PM (UTC) |
Message
| Ok, here's something to check. In mud.h look for the define of MAX_TRADE. What is it defined as? | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #12 on Fri 06 Jun 2003 09:38 PM (UTC) |
Message
| Haven't changed that.
#define MAX_TRADE 9 |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Boborak
USA (228 posts) Bio
|
Date
| Reply #13 on Sat 07 Jun 2003 12:54 AM (UTC) |
Message
| Ok here's the problem. I don't know what smaug version you downloaded or what may have changed that. But, stock smaug has a MAX_TRADE defined as 5. This is what's happenening:
This is your/stock format for setting up shopkeepers
21001 3 4 0 0 0 120 90 0 23 ; shopkeeper
The first number is the mob vnum.
The next 5 (MAX_TRADE) are the item types the shopkeeper buys. (this is where are problem is)
The next 2 are the selling/buying percentage.
Finally, the last 2 are the opening and closing hours.
With MAX_TRADE 9 you mud is expecting:
21001 3 4 0 0 0 0 0 0 0 120 90 0 23 ; shopkeeper
In other words, it's expecting more numbers on that line then there are. When it trys to read ; as a number it panics and gives you your error.
Check your other area files if they have similar lines like your newdark.are then change MAX_TRADE to 5. if they are setup to have additional numbers, then you'll have to convert newdark.are yourself. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #14 on Sat 07 Jun 2003 01:08 AM (UTC) |
Message
| Well, I never expected that. I would have never found that at all. Thanks. :) |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | 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.
32,381 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top