Gammon Forum
Entire forum
SMAUG
SMAUG coding
KaVir protocol snippet
It is now over 60 days since the last post. This thread is closed.
  Refresh page
Pages: 1 2
3
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Tue 08 May 2018 12:45 AM (UTC) |
Message
| Installing the snippet on FUSS 1.9 and am getting these errors...
Compiling ../o/protocol.o....
protocol.c: In function ‘protocol_t* ProtocolCreate()’:
protocol.c:294: error: invalid conversion from ‘void*’ to ‘protocol_t*’
protocol.c:318: error: invalid conversion from ‘void*’ to ‘MSDP_t**’
protocol.c:322: error: invalid conversion from ‘void*’ to ‘MSDP_t*’
protocol.c: In function ‘void ProtocolDestroy(protocol_t*)’:
protocol.c:353: error: cannot convert ‘MSDP_t*’ to ‘const char*’ for argument ‘1’ to ‘bool in_hash_table(const char*)’
protocol.c:353: error: cannot convert ‘MSDP_t*’ to ‘const char*’ for argument ‘1’ to ‘int str_free(const char*)’
protocol.c:356: error: cannot convert ‘MSDP_t**’ to ‘const char*’ for argument ‘1’ to ‘bool in_hash_table(const char*)’
protocol.c:356: error: cannot convert ‘MSDP_t**’ to ‘const char*’ for argument ‘1’ to ‘int str_free(const char*)’
protocol.c:359: error: cannot convert ‘protocol_t*’ to ‘const char*’ for argument ‘1’ to ‘bool in_hash_table(const char*)’
protocol.c:359: error: cannot convert ‘protocol_t*’ to ‘const char*’ for argument ‘1’ to ‘int str_free(const char*)’
protocol.c: In function ‘void MSDPSetTable(descriptor_t*, variable_t, const char*)’:
protocol.c:1418: error: invalid conversion from ‘void*’ to ‘char*’
protocol.c: In function ‘void MSDPSetArray(descriptor_t*, variable_t, const char*)’:
protocol.c:1454: error: invalid conversion from ‘void*’ to ‘char*’
protocol.c: In function ‘void SoundSend(descriptor_t*, const char*)’:
protocol.c:1559: warning: comparison between signed and unsigned integer expressions
protocol.c:1562: error: invalid conversion from ‘void*’ to ‘char*’
protocol.c: In function ‘void PerformSubnegotiation(descriptor_t*, char, char*, int)’:
protocol.c:1989: error: invalid conversion from ‘void*’ to ‘char*’
protocol.c: In function ‘void ExecuteMSDPPair(descriptor_t*, const char*, const char*)’:
protocol.c:2455: error: invalid conversion from ‘void*’ to ‘char*’
protocol.c: In function ‘char* AllocString(const char*)’:
protocol.c:2882: error: invalid conversion from ‘void*’ to ‘char*’
make[1]: *** [../o/protocol.o] Error 1
I have followed instructions inside the snippet for smaug, as well as the instructions here: https://www.gammon.com.au/forum/?id=12367 (which did solve the protocol.h issue)
any ideas? or is there an updated version for FUSS? | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #1 on Tue 08 May 2018 08:12 PM (UTC) |
Message
| ok got it down to linking issues now
../o/act_comm.o: In function `send_rip_screen(char_data*)':
/home/carinus/MASTER/carinus/src/act_comm.c:2478: undefined reference to `write_to_buffer(descriptor_data*, char const*, unsigned int)'
../o/act_comm.o: In function `send_rip_title(char_data*)':
/home/carinus/MASTER/carinus/src/act_comm.c:2494: undefined reference to `write_to_buffer(descriptor_data*, char const*, unsigned int)'
../o/act_comm.o: In function `send_ansi_title(char_data*)':
/home/carinus/MASTER/carinus/src/act_comm.c:2510: undefined reference to `write_to_buffer(descriptor_data*, char const*, unsigned int)'
../o/act_comm.o: In function `send_ascii_title(char_data*)':
/home/carinus/MASTER/carinus/src/act_comm.c:2526: undefined reference to `write_to_buffer(descriptor_data*, char const*, unsigned int)'
../o/color.o: In function `do_color':
/home/carinus/MASTER/carinus/src/color.c:405: undefined reference to `write_to_buffer(descriptor_data*, char const*, unsigned int)'
../o/color.o:/home/carinus/MASTER/carinus/src/color.c:407: more undefined references to `write_to_buffer(descriptor_data*, char const*, unsigned int)' follow
collect2: ld returned 1 exit status
| top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #2 on Wed 09 May 2018 12:09 AM (UTC) |
Message
| link? |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #3 on Wed 09 May 2018 01:14 AM (UTC) Amended on Wed 09 May 2018 01:20 AM (UTC) by Joeyfogas
|
Message
| https://github.com/Xavious/MSDP_Protocol_Handler
ok here's the update.. i finally got it to compile... everything looking good.. .no warnings...
I boot up the mud... I get the greeting and a new line that says "MXP Enabled"
but..... I can't send any commands... my name, password... nothing lol
edit: I have re-traced all the steps and I did not miss anything that it asked me for. Anyone ever run into this? | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #4 on Wed 09 May 2018 02:49 AM (UTC) |
Message
| Ok, but can you provide a link to the complete thing that you're having trouble with? Help me help you. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Nick Gammon
Australia (22,987 posts) bio
Forum Administrator |
Date
| Reply #5 on Wed 09 May 2018 04:49 AM (UTC) |
Message
| Can't send commands ... that sounds familiar.
|
Please help us by advising the version of MUSHclient you are using. Use the Help menu -> About MUSHclient.
|
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #6 on Wed 09 May 2018 05:14 AM (UTC) |
Message
| fiendish I am not sure what you are asking for? I provided the link above to the protocol snippet... it was after that Install that I could no longer send commands.
I mean, I could provide a link to my code if that is what you are asking. | top |
|
Posted by
| Nick Gammon
Australia (22,987 posts) bio
Forum Administrator |
Date
| Reply #7 on Wed 09 May 2018 07:00 AM (UTC) |
Message
| To reproduce an error such as the one you are having we need to know the exact code you are compiling, not just the snippet you are adding in. |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #8 on Wed 09 May 2018 02:24 PM (UTC) Amended on Wed 09 May 2018 04:48 PM (UTC) by Joeyfogas
|
Message
| there are 2 files, protocol.c and protocol.h Using the "install smaug" readme in the link above, using FUSS 1.9. Protocol.h and protocol.c have been edited to the following....
Protocol.h
https://pastebin.com/fWHNEzeD
Protocol.c
https://pastebin.com/ihG119UH | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #9 on Thu 10 May 2018 01:36 AM (UTC) Amended on Thu 10 May 2018 01:50 AM (UTC) by Fiendish
|
Message
| I'm helpful, but I'm also lazy and cranky.
I'm not going to go get smaug for myself. I'm not going to decide which one is the right one. I'm not going to apply diffs or patches or other edits. And I'm definitely not going to read any readmes about how to do any of the preceding. One assumes that you've already done those things so that we don't have to. So help me help you by not making me play fetch and save me the unnecessary steps of having to work to get to where you are now.
Please provide a nice single self-contained download that is an exact and complete copy of the entire thing, any adjacent thing, and any even remotely related thing that you are currently trying to run so that helping you is as painless for me as possible. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #10 on Thu 10 May 2018 02:21 AM (UTC) |
Message
| my apologies, I thought you were asking for the specific code I was using, not then entire sha-bang.
But fair enough, sorry for the misunderstanding.
http://s000.tinyupload.com/?file_id=04448760901596383933
there is the complete code in one rar file.
other notes:
I am compiling on gcc (GCC) 4.4.7 and on (Red Hat 4.4.7-18)
On my end, there are no warnings or errors. | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #11 on Fri 11 May 2018 12:02 AM (UTC) Amended on Fri 11 May 2018 12:09 AM (UTC) by Fiendish
|
Message
| Ok. I've downloaded it. Then what?
No, I'll save you a step. I set the wayback machine to 1998 and ran make inside src with -std=c++98, because it doesn't compile by modern C++ standards. And then I typed
and it said
$ ./smaug
Thu May 10 21:01:19 2018 :: Booting Database
0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0
Thu May 10 21:01:19 2018 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------
Thu May 10 21:01:19 2018 :: Initializing libdl support...
Thu May 10 21:01:19 2018 :: Loading commands...
Thu May 10 21:01:19 2018 :: Loading spec_funs...
Thu May 10 21:01:19 2018 :: Loading sysdata configuration...
Thu May 10 21:01:19 2018 :: [*****] BUG: fread_sysdata: no match: Counter
Thu May 10 21:01:19 2018 :: [*****] BUG: fread_sysdata: no match: 2
Thu May 10 21:01:19 2018 :: Loading overland maps....
Thu May 10 21:01:19 2018 :: Initializing map grid array....
Thu May 10 21:01:19 2018 :: Loading continent of Carinus.....
Thu May 10 21:01:19 2018 :: Loading continent of Map 2.....
Thu May 10 21:01:19 2018 :: Loading continent of Map 3.....
Thu May 10 21:01:19 2018 :: Loading overland map exits....
Thu May 10 21:01:19 2018 :: Loading overland landmarks....
Thu May 10 21:01:19 2018 :: Loading socials
Thu May 10 21:01:19 2018 :: Loading skill table
Thu May 10 21:01:19 2018 :: Sorting skill table...
Thu May 10 21:01:19 2018 :: Creating skill table sorted by type...
Thu May 10 21:01:19 2018 :: Remapping slots to sns
Thu May 10 21:01:19 2018 :: Loading classes
Thu May 10 21:01:19 2018 :: Loading races
Thu May 10 21:01:19 2018 :: Loading news data
Thu May 10 21:01:19 2018 :: Loading liquids
Thu May 10 21:01:19 2018 :: Loading mixtures
Thu May 10 21:01:19 2018 :: Loading herb table
Thu May 10 21:01:19 2018 :: Loading tongues
Thu May 10 21:01:19 2018 :: Loading quest bit tables
Thu May 10 21:01:19 2018 :: Loading MSSP Data...
Thu May 10 21:01:19 2018 :: Initializing random number generator
Thu May 10 21:01:19 2018 :: Setting time and weather.
Thu May 10 21:01:19 2018 :: Loading holiday chart...
Thu May 10 21:01:19 2018 :: Loading DNS cache...
Thu May 10 21:01:19 2018 :: Assigning gsn's
Thu May 10 21:01:19 2018 :: Reading in area files...
area.lst: No such file or directory
$
Ok. Then what? |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #12 on Fri 11 May 2018 01:12 AM (UTC) Amended on Fri 11 May 2018 01:35 AM (UTC) by Joeyfogas
|
Message
| I downloaded the compressed file to see if I forgot to add area.lst, however it is in there. you should have everything you need in that download.
try recopying the area folder. I always use the command "./startup (yourportnumber) &" | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #13 on Fri 11 May 2018 01:22 AM (UTC) |
Message
| startup is not flagged executable in this download you gave me. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #14 on Fri 11 May 2018 01:24 AM (UTC) Amended on Fri 11 May 2018 01:25 AM (UTC) by Fiendish
|
Message
|
$ chmod +x startup
$ ./startup
: Command not found.
: Command not found.
: No such file or directory.
$
Ok, now what? |
https://github.com/fiendish/aardwolfclientpackage | 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.
65,744 views.
This is page 1, subject is 3 pages long: 1 2
3
It is now over 60 days since the last post. This thread is closed.
  Refresh page
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.