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.
Entire forum
➜ SMAUG
➜ SMAUG coding
➜ 2 problems
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| Gorock
(149 posts) Bio
|
Date
| Thu 27 Oct 2005 02:04 AM (UTC) |
Message
| ok the first problem i have is if i get a piece of eq and set it to cast a spell on someone when they wear it when they log off and back on the spell number sets to 0 and then when they wear it a bug says
Log: [*****] BUG: APPLY_WEARSPELL trying to apply bad target spell. SN is 0.
the second problem i have is that when i reboot the mud it says segmentation fault (core dumped) and i dont see anything in the logs or anywhere as to whats causing it
any help thanks in advance | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #1 on Thu 27 Oct 2005 02:22 AM (UTC) |
Message
| What spell are you setting on the item? Is the item installed?
When the core is dumped, use gdb to debug it. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Gorock
(149 posts) Bio
|
Date
| Reply #2 on Thu 27 Oct 2005 02:46 AM (UTC) |
Message
| the spell is indignation sn 102 and the area with the item is installed i have another coder working on the dump bit | Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #3 on Thu 27 Oct 2005 09:44 AM (UTC) Amended on Thu 27 Oct 2005 09:47 AM (UTC) by Robert Powell
|
Message
| There are 2 numbers used with all spells, SN and Slot, objects are written to area files with the slot numbers not skill numbers.
Also you need to make sure that all the spells have unique slot numbers, if 2 have the same then the code will default to the spell first in the skills.dat file.
Oh one last point, SN 0 is reserved.
Sn: 0 Slot: 95 Spell: 'reserved '
Saves: none SaveEffect: none
Type: Spell Target: ignore Minpos: 12 Mana: 0 Beats: 0 Range: 0
Flags: 0 Guild: -1 Value: 0 Info: 0 Code: spell_null
Sectors Allowed: All
Dammsg:
Wearoff: ???
--------------------------[CLASS USE]--------------------------
Cit) lvl: 101 max: 95%
|
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Gorock
(149 posts) Bio
|
Date
| Reply #4 on Thu 27 Oct 2005 07:25 PM (UTC) |
Message
| it seems that some spells save and some dont if i type oset helm affect wearspell benediction then save and quit then log on it is still there but if i type oset helm affect wearpsell indignation then log off and back then its gone is there somewhere that saves the spells and maybe indignation isn't set to save | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #5 on Thu 27 Oct 2005 07:54 PM (UTC) |
Message
| Are you remembering to save the area? And also making sure the item was prototype before adding the wearspell? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Gorock
(149 posts) Bio
|
Date
| Reply #6 on Thu 27 Oct 2005 08:25 PM (UTC) |
Message
| im not trying to do it like that i am just trying to make the one item with that spell as a quest reward some spells stay and some dont i also made a completely new item saved it and the spell still disappeared i folded the area and set it while it was prototype | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #7 on Thu 27 Oct 2005 09:34 PM (UTC) |
Message
| Can you tell me exactly what you are doing? I'll try to reproduce it. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Robert Powell
Australia (367 posts) Bio
|
Date
| Reply #8 on Thu 27 Oct 2005 10:27 PM (UTC) |
Message
| I know what im about to say is going to aimed to the ultra newbie, but my own builders all seem to have problems like this when they work on non proto areas.
aassign <area filename>
oinvoke <ovj vnum>
oset <obj vnum> on
flags prototype
folda <area filename>
slookup <spell name>
affect wearspell <Skill Number>
flags prototype
done
folda <area filename>
Doing it this way i have never had a problem of anything not not being saved.
|
Just a guy having a bit of fun. Nothing more, nothing less, I do not need I WIN to feel validated. | Top |
|
Posted by
| Gorock
(149 posts) Bio
|
Date
| Reply #9 on Fri 28 Oct 2005 07:14 AM (UTC) |
Message
| that is how i am doing it but there are a few spells that dont stick and im not sure why maybe its not saving in the code ill take a look
| 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,415 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top