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


Register forum user name Search FAQ

Gammon Forum

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  Hotboot

Hotboot

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


Pages: 1 2  3  4  

Posted by Colton   (44 posts)  [Biography] 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?


[Go to top] top

Posted by Colton   (44 posts)  [Biography] bio
Date Reply #1 on Wed 13 Jul 2005 12:30 AM (UTC)
Message
didn't mean to put code after ~
[Go to top] top

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

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

Posted by Colton   (44 posts)  [Biography] bio
Date Reply #4 on Wed 13 Jul 2005 12:47 AM (UTC)
Message
wait.. what line to mud.h and tables.c
[Go to top] top

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

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

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

Posted by Colton   (44 posts)  [Biography] 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";

[Go to top] top

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

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

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

Posted by Colton   (44 posts)  [Biography] 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"
[Go to top] top

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

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


86,668 views.

This is page 1, subject is 4 pages long: 1 2  3  4  [Next page]

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]