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
➜ morphing
It is now over 60 days since the last post. This thread is closed.
Refresh page
Posted by
| GenmaC
(22 posts) Bio
|
Date
| Sun 10 Feb 2002 11:15 PM (UTC) |
Message
| morphcreate doesn't seem to work - what's with that? (using smaug 1.4a win32 compile, no mods) | Top |
|
Posted by
| GenmaC
(22 posts) Bio
|
Date
| Reply #1 on Mon 11 Feb 2002 01:34 AM (UTC) |
Message
| Ok, I figured that part out - it just wasn't linked from commands.dat. However, any more info on morphs would be very helpful, since the docs aren't very specific. | Top |
|
Posted by
| GenmaC
(22 posts) Bio
|
Date
| Reply #2 on Mon 11 Feb 2002 05:36 AM (UTC) |
Message
| Ok, figured it all out - morphs are cool...just in case any else ever has this problem, here's what you do to get morphs working in 1.4a Win compile.
1) link the do_morphset, do_morphstat, etc. functions to commands in commands.dat
2) edit polymorph.c, and near line 1895, comment out the entire part where it tests for misread. For some reason, it always returns a fail when reading your morph - very annoying.
3) recompile
4) enter your morph with morphset, etc. - boy, it'd be cool if AreaEditor could do morphs, but whatever.
5) You are done! If this helps anyone, even one person, reduce time wasted on this problem, I will die happy.
I tested the above solution, it crashed a few times when I had some misentered stuff for morphself, but seems stable if everything is correct. (tried 5 or 6 reboots, and multiple morphs, unmorphs, all mixed together)
| Top |
|
Posted by
| GenmaC
(22 posts) Bio
|
Date
| Reply #3 on Tue 12 Feb 2002 08:10 AM (UTC) |
Message
| There's also a few more lines to change in polymorph.c if you want the morph->timer to work correctly (aka have them change back after a period of time). I'll post them on the web tomorrow and leave a link here then.
Also, in skills.dat, if you want the polymorph skill to work, you need to change the Code entry for it from spell_null to spell_polymorph.
One more thing: revert doesn't work at all. Dunno why...I'm going to try implementing it as a spell and see what happens. | Top |
|
Posted by
| GenmaC
(22 posts) Bio
|
Date
| Reply #4 on Tue 12 Feb 2002 05:12 PM (UTC) |
Message
| http://dualtranslations.org/smaug/polymorph_fix.html
On the page, it says I can't figure out revert, but that's not true now - you have to write revert from scratch, but I don't want it on my MUD anyway, so I haven't done that. Just do whatever you do when adding a new command. | Top |
|
Posted by
| Zelse_007
(9 posts) Bio
|
Date
| Reply #5 on Sat 16 Feb 2002 08:13 AM (UTC) |
Message
| Well, revert is to turn back, correct?
Morph essentually moves your body to the "storage" room and replaces you with a mobile, therefore if one looked at the code for revert it seems to me that by simply reversing the proccess you could revert.
Also, I beleive that revert isnt used and a timer is, thats what I've been told anyway. | Top |
|
Posted by
| GenmaC
(22 posts) Bio
|
Date
| Reply #6 on Sat 16 Feb 2002 05:04 PM (UTC) |
Message
| Yeah, you just create a wrapper function called do_revert and have it point to do_unmorph or the like.
The timer doesn't work unless you implement the changes on my page, btw. | Top |
|
Posted by
| Zelse_007
(9 posts) Bio
|
Date
| Reply #7 on Sat 23 Feb 2002 04:32 AM (UTC) |
Message
| Also you can download SADIQS version of Circlemud
which has the 68 major known bugfixes applied...
Including polymorph.
(If you want the link, post and ask) | 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.
21,347 views.
It is now over 60 days since the last post. This thread is closed.
Refresh page
top