Hotboot

Posted by Colton on Wed 13 Jul 2005 12:28 AM — 51 posts, 147,207 views.

#0
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?


#1
didn't mean to put code after ~
USA #2
Do you add the correct line to mud.h and the 2 lines to tables.c for do_hotboot?
#3
This is why i am not a coder.. i'll toy with that a bit i guess, i am clueless
#4
wait.. what line to mud.h and tables.c
USA #5
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.
#6
I did that but it still says that code doesn't exist when i try to set it.
USA #7
What exactly did you do, then?
#8
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";

USA #9
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?
#10
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
USA #11
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.
#12
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"
#13
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.
USA #14
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?
#15
write_to_buffer( d, "The game is wizlocked. Only immortals can connect now.\n\r", 0 );
write_to_buffer( d, "Please try back later.\n\r", 0 );

to

write_to_buffer( d, "The game is wizlocked. Only immortals can connect now.\n\r", 0 );
write_to_buffer( d, "Please try back later. If you have dire need to connect...\n\r", 0 );
write_to_buffer( d, "or have and questions contact me:\n\r", 0 );
write_to_buffer( d, "AIM: Krelowyn, Thank You.\n\r", 0 );

It was just a simple change i tried to see if this was the problem.. and either i am doing something wrong or it is.
Amended on Mon 18 Jul 2005 12:44 AM by Colton
USA #16
Well what are you using Cygwin or what?

Yes that's fine. Does the mud successfully compile?
#17
Cygwin yes, and compile works out fine, no warnings or errors.
USA #18
And how are you starting the mud? It sounds like you're running an old exec.
#19
the smaug exe that came with it,... how else can i? I'm not to good at this i see
USA #20
I need more than just "the smaug exec". What are you typing to start it, and where is it located?
#21
.. its called smaug, in the ../smaugfuss/ folder and i click it.. :P
USA #22
So it's just in the /smaugfuss/ directory? It should be in the smaugfuss/src directory.
#23
won't start there...
moves so fast through the list of loading stuff that i cant
even see what the last thing is before it shuts the application
USA #24
Well this is the problem, you aren't running the mud correctly. You normally start it like this in the area dir:
../src/smaug &

Or you just run the startup script.
#25
I hate to act more like i don't know what your talking about but... what exactly does that mean?
USA #26
Open Cygwin, navigate to the area directory, and type that command. Cygwin is an emulator of linux, so you may have to look up a basic linux guide.
#27
Starting up through cygwin in that way did work however the changes still don't take affect.
USA #28
When you do a make clean, what exec is deleted?
#29
When i make clean it says rm -f o/*.o smaug *~
USA #30
Yes but watch, which file is removed? Where is it located?
#31
I soupose the only exec i have is in ../smaugfuss/
#32
I'm wrong, when i make an exe pops up in ../smaugfuss/src named smaug but i can't open it.
USA #33
And when running that exec in the src folder the changes still do not show up?
#34
Can't open it, says it wants cygwin1.dll and no matter where i download it from it says something in missing in dll file cygwin1.dll ect.
USA #35
Do a search for cygwin1.dll on here, see what comes up. I've seen some posts about it.
#36
Alright, will do.
#37
Alright it sort of works, but when i click on it it runs through some start up stuff and closed the application, and the changes arn't there when i run it through cygwin.
USA #38
If you're making a change, saving the file, compiling, and running the right exec, then personally I have no idea. Perhaps someone else can offer some insight on this one.
#39
area.lst: No such file or directory, but it is there
USA #40
You need to run it from the area dir.
../src/smaug
#41
Woot worked, but.. it says wrong password for everyong and i check the pfile and it is right
#42
Sock.sinaddr: 127.0.0.1, port 1434
Preloading player data for: Krelowyn (2k)
[*****] FILE: ../player/k/Krelowyn LINE: 29
[*****] BUG: Fread_char: no matche: ICEListen
[*****] FILE: ../player/k/Krelowyn LINE: 29
[*****] BUG: Fread_char: nomatch: 415263~
Updating area entry for Krelowyn
Closing Link to Krelowyn.
Amended on Tue 19 Jul 2005 09:18 PM by Colton
USA #43
Do a search, there have been issues with passwords using Cygwin.
#44
Not sure it has to do with cygwin though because i tested opening it in the area folder and it ran (through the exec not cygwin) and the passwords still wouldn't work:

Sock.sinaddr: 127.0.0.1, port 1197
Preloading player data for: Krelowyn (2k)
[*****] FILE: ../player/k/Krelowyn LINE: 29
[*****] BUG: Fread_char: no matche: ICEListen
[*****] FILE: ../player/k/Krelowyn LINE: 29
[*****] BUG: Fread_char: nomatch: ~
Updating area entry for Krelowyn
Closing Link to Krelowyn.

#45
[*****] BUG: Fread_sysdata: nomatch: IMCMailVnum
[*****] BUG: Fread_sysdata: nomatch: 0
USA #46
Those are fine they shouldn't affect anything.
#47
What about what i said before:

" Not sure it has to do with cygwin though because i tested
opening it in the area folder and it ran (through the
exec not cygwin) and the passwords still wouldn't work:

Sock.sinaddr: 127.0.0.1, port 1197
Preloading player data for: Krelowyn (2k)
[*****] FILE: ../player/k/Krelowyn LINE: 29
[*****] BUG: Fread_char: no matche: ICEListen
[*****] FILE: ../player/k/Krelowyn LINE: 29
[*****] BUG: Fread_char: nomatch: ~
Updating area entry for Krelowyn
Closing Link to Krelowyn. "

Amended on Wed 20 Jul 2005 08:56 PM by Colton
Canada #48
Can you create new players? If you can, try making a new one, and quit, log back in, see if that works. Could be your pfile.
#49
Actually tried that before.. creates fine but password is still messed up.. mortals have a different error.. i think in stead of "29" it would be line "33" and then the rest is basicly the same.
USA #50
Those player errors don't matter, it continues past them. Your issue is using Cygwin has issues with crypt/passwords. As I said, do a search. A topic just came up about this a bit ago.