First off i would like to thank those who have previously responded to posts of mine as they have been very helpful.
On to my problem..
I have successfully added serveral snippets to the smaugfuss source, recompiled and had them work for me.
The problem i am having is with the commands that i add with cedit...
If i add (for example: balance) a command and associate it to its specific code (do_balance) it works...
I then do
cedit save cmdtable
and everything seems to be fine... the command can be executed and works properly...
then i reboot the mud and the command no longer works..
if in invoke that particular command it says
huh!
if i check it with cedit i can find the command but the code has been changed to something weird which looks like this
#COMMAND
Name balance~
Code (0x808ef87)
Position 106
Level 0
Log 0
End
If i re- cedit the command and point it to its code again save cmd table it works fine until reboot.
So i opened up the commands.dat file to look to see if i could find other instances of this weird code and i found 17 other commands with it... when i compare these to the original commands.dat file i see that they have been somehow changed as well ..
I have tried to manually set these commands back to what they should be based on the original file but when i reboot the mud my changes are not reflected in the game....
The following is the list of commands and the odd code that i am getting (sorry for the length)
#COMMAND *Appears this way in orig. source
Name atmob~
Code (0x8128b80) *recurring number throughout
Position 100
Level 52
Log 0
End
#COMMAND *I added
Name balance~
Code (0x808ef87)
Position 106
Level 0
Log 0
End
#COMMAND
Name clear~
Code (0x8128b80)
Position 100
Level 0
Log 0
End
#COMMAND
Name cmenu~
Code (0x8128b80)
Position 100
Level 61
Log 1
End
#COMMAND *I added
Name deposit~
Code (0x808eba1)
Position 106
Level 0
Log 0
End
#COMMAND *I added
Name destroyslay~
Code (0x8138139)
Position 106
Level 55
Log 0
End
#COMMAND
Name mmenu~
Code (0x8128b80)
Position 100
Level 54
Log 0
End
#COMMAND *Appears this way in orig. source
Name moblog~
Code (0x8128b80)
Position 100
Level 58
Log 0
End
#COMMAND *I added
Name makeslay~
Code (0x81379ab)
Position 106
Level 55
Log 0
End
#COMMAND
Name omenu~
Code (0x8128b80)
Position 100
Level 54
Log 0
End
#COMMAND *Appears this way in orig. source
Name opentourney~
Code (0x8128b80)
Position 100
Level 65
Log 1
End
#COMMAND
Name pagelength~
Code (0x8128b80)
Position 100
Level 51
Log 0
End
#COMMAND
Name redraw~
Code (0x8128b80)
Position 100
Level 52
Log 0
End
#COMMAND
Name refresh~
Code (0x8128b80)
Position 100
Level 52
Log 0
End
#COMMAND *I added
Name setslay~
Code (0x8137b15)
Position 106
Level 55
Log 0
End
#COMMAND *I added
Name showslay~
Code (0x8138048)
Position 106
Level 55
Log 0
End
#COMMAND *I added
Name withdraw~
Code (0x808ed94)
Position 106
Level 0
Log 0
End
If i am once again displaying symptoms of mental defects please alert me to this fact
Thanks in advance to whoever helps me on this
S.D.
On to my problem..
I have successfully added serveral snippets to the smaugfuss source, recompiled and had them work for me.
The problem i am having is with the commands that i add with cedit...
If i add (for example: balance) a command and associate it to its specific code (do_balance) it works...
I then do
cedit save cmdtable
and everything seems to be fine... the command can be executed and works properly...
then i reboot the mud and the command no longer works..
if in invoke that particular command it says
huh!
if i check it with cedit i can find the command but the code has been changed to something weird which looks like this
#COMMAND
Name balance~
Code (0x808ef87)
Position 106
Level 0
Log 0
End
If i re- cedit the command and point it to its code again save cmd table it works fine until reboot.
So i opened up the commands.dat file to look to see if i could find other instances of this weird code and i found 17 other commands with it... when i compare these to the original commands.dat file i see that they have been somehow changed as well ..
I have tried to manually set these commands back to what they should be based on the original file but when i reboot the mud my changes are not reflected in the game....
The following is the list of commands and the odd code that i am getting (sorry for the length)
#COMMAND *Appears this way in orig. source
Name atmob~
Code (0x8128b80) *recurring number throughout
Position 100
Level 52
Log 0
End
#COMMAND *I added
Name balance~
Code (0x808ef87)
Position 106
Level 0
Log 0
End
#COMMAND
Name clear~
Code (0x8128b80)
Position 100
Level 0
Log 0
End
#COMMAND
Name cmenu~
Code (0x8128b80)
Position 100
Level 61
Log 1
End
#COMMAND *I added
Name deposit~
Code (0x808eba1)
Position 106
Level 0
Log 0
End
#COMMAND *I added
Name destroyslay~
Code (0x8138139)
Position 106
Level 55
Log 0
End
#COMMAND
Name mmenu~
Code (0x8128b80)
Position 100
Level 54
Log 0
End
#COMMAND *Appears this way in orig. source
Name moblog~
Code (0x8128b80)
Position 100
Level 58
Log 0
End
#COMMAND *I added
Name makeslay~
Code (0x81379ab)
Position 106
Level 55
Log 0
End
#COMMAND
Name omenu~
Code (0x8128b80)
Position 100
Level 54
Log 0
End
#COMMAND *Appears this way in orig. source
Name opentourney~
Code (0x8128b80)
Position 100
Level 65
Log 1
End
#COMMAND
Name pagelength~
Code (0x8128b80)
Position 100
Level 51
Log 0
End
#COMMAND
Name redraw~
Code (0x8128b80)
Position 100
Level 52
Log 0
End
#COMMAND
Name refresh~
Code (0x8128b80)
Position 100
Level 52
Log 0
End
#COMMAND *I added
Name setslay~
Code (0x8137b15)
Position 106
Level 55
Log 0
End
#COMMAND *I added
Name showslay~
Code (0x8138048)
Position 106
Level 55
Log 0
End
#COMMAND *I added
Name withdraw~
Code (0x808ed94)
Position 106
Level 0
Log 0
End
If i am once again displaying symptoms of mental defects please alert me to this fact
Thanks in advance to whoever helps me on this
S.D.