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
➜ spells on scrolls/wands/staffs error
spells on scrolls/wands/staffs error
|
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Sun 19 Dec 2004 06:59 PM (UTC) |
Message
| It probably is well known, so hopefully the answer aswell (I check the internet, but it seems like most of the answers are done by mail or something O_o).
Anyway, the mud crashes when you try to loadup an area that has a scroll/wand/staff with a spell written on it.
The errors it gives:
FILE: $ LINE: 35
BUG: Load_objects: # not found.
FILE: $ LINE: 35
BUG: bla.are
FILE: $ LINE: 35
BUG: load_area: # not found.
I ran GDB, but it results in kinda nothing, so that's not really an option to solve this.
Line 35 points to the spell it's connected to. I also checked db.c for any possible area_version checks that I missed, and changed those.
Any suggestions on how to solve this?
(It's kinda a vital part of the mud, because we use the study snippet) | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #1 on Sun 19 Dec 2004 07:33 PM (UTC) |
Message
| Can you paste that object from the area file? It looks like it might have the end character for objects written in the wrong place. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Reply #2 on Sun 19 Dec 2004 07:35 PM (UTC) |
Message
| #OBJECTS
#15000
Scroll~
&wA Scroll~
&wA small scroll is lying here.~
~
3 1073741824 16385
0 0 0 -1
1 0 0
'bunshin'
#0
Note that this item uses the name scroll, but actually is a wand (Tried that because scrolls also give the same bug) | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #3 on Sun 19 Dec 2004 07:44 PM (UTC) |
Message
| Well, the #0 seems to me to be a problem, as I beleive that says the next objects vnum is 0 |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Reply #4 on Sun 19 Dec 2004 07:58 PM (UTC) |
Message
| I think that #0 is used to 'close' a part of the area, because Mobiles also has that #0 and so do the room part at the end.
Like:
or
#ROOMS
#15000
-long story thing here till last room-
~
0 -1 15019 0 0
S
#0
But I'll give it a check
-just checked, didnt work | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #5 on Sun 19 Dec 2004 10:14 PM (UTC) |
Message
|
Quote: I ran GDB, but it results in kinda nothing, so that's not really an option to solve this. Perhaps you could explain this a bit? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Reply #6 on Sun 19 Dec 2004 10:18 PM (UTC) |
Message
| I connected GDB to the running smaug process and recreated the crash (loada bla.are). It only shows this:
Program exited with code 01.
I don't think that will be helpfull | Top |
|
Posted by
| Nick Gammon
Australia (23,133 posts) Bio
Forum Administrator |
Date
| Reply #7 on Sun 19 Dec 2004 10:31 PM (UTC) |
Message
| How did you make that scroll? By hand? In the Area Editor? I tried pasting that snippet into one of my areas and got the same message. Sounds like you have left out something or put too much in.
Gdb won't help here, the program hasn't crashed, it has given a designed error message because it doesn't understand your area file. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | Top |
|
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Reply #8 on Sun 19 Dec 2004 10:37 PM (UTC) |
Message
| It was made by hand.
Really basic, I guess.
ocreate 15000 scroll
oset scroll short A Scroll
oset scroll long A small scroll is lying here.
oset scroll type wand
oset scroll spell bunshin
After that it was saved, and we rebooted the mud. Then the crash kept happening. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #9 on Sun 19 Dec 2004 10:39 PM (UTC) |
Message
| Check how the other objects are layed out. If you see no difference, delete the object lines, and try again. Does the area end correctly? You need #$ I believe. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Reply #10 on Sun 19 Dec 2004 10:42 PM (UTC) |
Message
| Yep, everything is correct, and the area ends with the #$.
I think it's the spell that causes the error, because this only happens with scrolls/wands and staffs. | Top |
|
Posted by
| Greven
Canada (835 posts) Bio
|
Date
| Reply #11 on Sun 19 Dec 2004 11:43 PM (UTC) |
Message
| Try making the object without the spell on it, if that works, good, try it with the spell, if that doesn't, then you know where it is and where to look. |
Nobody ever expects the spanish inquisition!
darkwarriors.net:4848
http://darkwarriors.net | Top |
|
Posted by
| Samson
USA (683 posts) Bio
|
Date
| Reply #12 on Mon 20 Dec 2004 03:24 AM (UTC) |
Message
| At the very top of your area file, is there a line that has:
#VERSION 1
on it? If not then for some reason your code is not saving the proper version info on the file and when it gets to the spell name it becomes confused because it was not expecting to see that.
Spell names like you have for your object will only work if the file is version 1 or above. Unmodified 1.4a areas will not have the version header in them. | Top |
|
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Reply #13 on Mon 20 Dec 2004 07:45 AM (UTC) |
Message
| It has a #VERSION 2 above it | Top |
|
Posted by
| DjNiVeK
(48 posts) Bio
|
Date
| Reply #14 on Mon 20 Dec 2004 12:26 PM (UTC) Amended on Mon 20 Dec 2004 12:46 PM (UTC) by DjNiVeK
|
Message
| Seems like I got it to work. It was a small error in one of the area checks, which didn't check the latest area's (so with the highest numbers). I made it so it also checks that, and now it works :)
The only problem now is that on loading the area, the skill written in the scroll/wand/staff switches to a different spell/skill..
-Scratch that problem, I fixed it. :) | 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.
31,352 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top