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
➜ Hotboot
It is now over 60 days since the last post. This thread is closed.
Refresh page
Pages: 1 2
3
4
Posted by
| Colton
(44 posts) Bio
|
Date
| Wed 13 Jul 2005 12:28 AM (UTC) |
Message
| I am not a coder and i really don't intend on being one, i just want to get the hotboot command to work. It is in commands.dat as
#COMMANDName hotboot~code
Code do_hotboot
Position 100
Level 60
Log 1
End
and cedit hotboot show as
Command: hotboot
Level: 60
Position: 0
Log: 1
Code: (005329A0)
Flags:
Has been used 4 times this boot.
Time (in secs): min 0.000000; avg: 0.000000; max 0.000000
any idea how i can make it work?
| Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #1 on Wed 13 Jul 2005 12:30 AM (UTC) |
Message
| didn't mean to put code after ~ | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #2 on Wed 13 Jul 2005 12:31 AM (UTC) |
Message
| Do you add the correct line to mud.h and the 2 lines to tables.c for do_hotboot? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #3 on Wed 13 Jul 2005 12:45 AM (UTC) |
Message
| This is why i am not a coder.. i'll toy with that a bit i guess, i am clueless | Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #4 on Wed 13 Jul 2005 12:47 AM (UTC) |
Message
| wait.. what line to mud.h and tables.c | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #5 on Wed 13 Jul 2005 01:17 AM (UTC) |
Message
| Look over how other commands are in. Search for like do_look in mud.h and tables.c or search for the forums for how to add the lines. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #6 on Wed 13 Jul 2005 08:14 PM (UTC) |
Message
| I did that but it still says that code doesn't exist when i try to set it. | Top |
|
Posted by
| David Haley
USA (3,881 posts) Bio
|
Date
| Reply #7 on Wed 13 Jul 2005 08:38 PM (UTC) |
Message
| What exactly did you do, then? |
David Haley aka Ksilyan
Head Programmer,
Legends of the Darkstone
http://david.the-haleys.org | Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #8 on Sat 16 Jul 2005 05:47 PM (UTC) |
Message
| Actually i put it in mud.h and tables.c but when i went to
compile it turned out they were already there. I had my friend who was a coder look at it and he didn't know, he said that it could be working and it may not be looking at the if( skill == do_hotboot )
return "do_hotboot";
| Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #9 on Sat 16 Jul 2005 06:01 PM (UTC) |
Message
| Can you show us the lines you put in/already in about hotboot in mud.h and tables.c?
Also did you remember to include hotboot.c in your makefile if you have one? |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #10 on Sat 16 Jul 2005 06:11 PM (UTC) |
Message
| tables.c the only line i added was:
if( skill == do_hotboot )
return "do_hotboot";
there are also some other thing in tables.c that were there that include hotboot.
mud.h has hotboot stuff in it, it didn't have:
DECLARE_DO_FUN( do_hotboot );
but if i try to add that when i compile i get:
$ make
make -s smaug
Compiling o/imc.o....
In file included from imc.c:45:
mud.h:3763: warning: redundant redeclaration of 'do_hotboot'
hotboot.h:40: warning previous declaration of 'do_hotboot' was here
make[1]: *** [o/imc.o] Error1
make: *** [all] Error 2 | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #11 on Sat 16 Jul 2005 06:16 PM (UTC) |
Message
| Make sure there are only 2 lines about hotboot in tables.c, and get rid of the line in mud.h since it's already in hotboot.c, then try it. |
Zeno McDohl,
Owner of Bleached InuYasha Galaxy
http://www.biyg.org | Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #12 on Sat 16 Jul 2005 11:22 PM (UTC) |
Message
| I tried taking this out of tables.c and using the other:
if( skill == do_hotboot )
return "do_hotboot";
then the same with:
if( !str_cmp( name, "do_hotboot" ) )
return do_hotboot;
still didn't work, i took the line out of mud.h before you just wanted the error message, however in mud.h there are other lines that talk about "hotboot" | Top |
|
Posted by
| Colton
(44 posts) Bio
|
Date
| Reply #13 on Sun 17 Jul 2005 11:45 PM (UTC) |
Message
| Every time i change something in the code, make clean, make
and reboot it still doesn't work which is probably one of the problems. I tested this with wizlock by changing the wizlock message and no matter what i do it won't take the new message. | Top |
|
Posted by
| Zeno
USA (2,871 posts) Bio
|
Date
| Reply #14 on Sun 17 Jul 2005 11:54 PM (UTC) |
Message
| Hm, what are you using? Cygwin or a shell? Are you sure you're running the correct exec file? Can you show me the line you changed for wizlock? |
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.
104,652 views.
This is page 1, subject is 4 pages long: 1 2
3
4
It is now over 60 days since the last post. This thread is closed.
Refresh page
top