[Home] [Downloads] [Search] [Help/forum]


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  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] Refresh page


Posted by DjNiVeK   (48 posts)  [Biography] 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)
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by DjNiVeK   (48 posts)  [Biography] 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)
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by DjNiVeK   (48 posts)  [Biography] 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:
#MOBILES
#0

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
[Go to top] top

Posted by David Haley   USA  (3,881 posts)  [Biography] 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
[Go to top] top

Posted by DjNiVeK   (48 posts)  [Biography] 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
[Go to top] top

Posted by Nick Gammon   Australia  (22,988 posts)  [Biography] 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
[Go to top] top

Posted by DjNiVeK   (48 posts)  [Biography] 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.
[Go to top] top

Posted by Zeno   USA  (2,871 posts)  [Biography] 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
[Go to top] top

Posted by DjNiVeK   (48 posts)  [Biography] 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.
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] 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
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] 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.
[Go to top] top

Posted by DjNiVeK   (48 posts)  [Biography] bio
Date Reply #13 on Mon 20 Dec 2004 07:45 AM (UTC)
Message
It has a #VERSION 2 above it
[Go to top] top

Posted by DjNiVeK   (48 posts)  [Biography] 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. :)
[Go to top] 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.


26,910 views.

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

Go to topic:           Search the forum


[Go to top] top

Quick links: MUSHclient. MUSHclient help. Forum shortcuts. Posting templates. Lua modules. Lua documentation.

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.

[Home]


Written by Nick Gammon - 5K   profile for Nick Gammon on Stack Exchange, a network of free, community-driven Q&A sites   Marriage equality

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( https://gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Hosted at HostDash]