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
| Reply #15 on Fri 11 May 2018 01:41 AM (UTC) |
Message
| I honestly do not know what to tell you..
I downloaded the same file I linked you to... I typed make in the src directory,
[carinus@condor src]$ make
make -s smaug
Compiling ../o/agemobcomm.o....
Compiling ../o/agecommand.o....
Compiling ../o/act_comm.o....
Compiling ../o/act_info.o....
Compiling ../o/act_move.o....
Compiling ../o/act_obj.o....
Compiling ../o/act_wiz.o....
Compiling ../o/ban.o....
Compiling ../o/boards.o....
Compiling ../o/bank.o....
Compiling ../o/bits.o....
Compiling ../o/build.o....
Compiling ../o/calendar.o....
Compiling ../o/clans.o....
Compiling ../o/color.o....
Compiling ../o/comm.o....
Compiling ../o/comments.o....
Compiling ../o/const.o....
Compiling ../o/db.o....
Compiling ../o/deity.o....
Compiling ../o/dns.o....
Compiling ../o/fight.o....
Compiling ../o/greyowl_smaugFUSS.o....
Compiling ../o/greyowl_overland.o....
Compiling ../o/handler.o....
Compiling ../o/hashstr.o....
Compiling ../o/hint.o....
Compiling ../o/hotboot.o....
Compiling ../o/house.o....
Compiling ../o/imm_host.o....
Compiling ../o/interp.o....
Compiling ../o/liquids.o....
Compiling ../o/magic.o....
Compiling ../o/makeobjs.o....
Compiling ../o/mapout.o....
Compiling ../o/mapper.o....
Compiling ../o/mccp.o....
Compiling ../o/misc.o....
Compiling ../o/mpxset.o....
Compiling ../o/mssp.o....
Compiling ../o/mud_comm.o....
Compiling ../o/mud_prog.o....
Compiling ../o/news.o....
Compiling ../o/overland.o....
Compiling ../o/planes.o....
Compiling ../o/player.o....
Compiling ../o/polymorph.o....
Compiling ../o/protocol.o....
Compiling ../o/renumber.o....
Compiling ../o/reset.o....
Compiling ../o/save.o....
Compiling ../o/services.o....
Compiling ../o/sha256.o....
Compiling ../o/shops.o....
Compiling ../o/skills.o....
Compiling ../o/special.o....
Compiling ../o/tables.o....
Compiling ../o/track.o....
Compiling ../o/update.o....
Compiling ../o/variables.o....
Compiling ../o/weather.o....
Compiling ../o/webwho.o....
Generating dependency file ...
Done compiling mud.
make -s dns
Done compiling DNS resolver.
[carinus@condor src]$
Then I ran startup
[carinus@condor src]$ ./startup 6002 &
[1] 12275
[carinus@condor src]$
I cannot recreate what is happening on your end... so I am at a loss on what to tell you. I literally just did this with the same files... | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #16 on Fri 11 May 2018 01:44 AM (UTC) Amended on Fri 11 May 2018 01:45 AM (UTC) by Fiendish
|
Message
| No, I'll save you a step.
I cd ../area and then ../src/smaug while thinking to myself, "wtf, this is a really bad way to invoke a program."
And then it starts up, with
Thu May 10 22:32:02 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 22:32:02 2018 :: [*****] BOOT: ---------------------[ Boot Log ]--------------------
Thu May 10 22:32:02 2018 :: Initializing libdl support...
Thu May 10 22:32:02 2018 :: Loading commands...
Thu May 10 22:32:02 2018 :: Loading spec_funs...
Thu May 10 22:32:02 2018 :: Loading sysdata configuration...
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_sysdata: no match: Counter
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_sysdata: no match: 2
Thu May 10 22:32:02 2018 :: Loading overland maps....
Thu May 10 22:32:02 2018 :: Initializing map grid array....
Thu May 10 22:32:02 2018 :: Loading continent of Carinus.....
Thu May 10 22:32:02 2018 :: Loading continent of Map 2.....
Thu May 10 22:32:02 2018 :: Loading continent of Map 3.....
Thu May 10 22:32:02 2018 :: Loading overland map exits....
Thu May 10 22:32:02 2018 :: Loading overland landmarks....
Thu May 10 22:32:02 2018 :: Loading socials
Thu May 10 22:32:02 2018 :: Loading skill table
Thu May 10 22:32:02 2018 :: Sorting skill table...
Thu May 10 22:32:02 2018 :: Creating skill table sorted by type...
Thu May 10 22:32:02 2018 :: Remapping slots to sns
Thu May 10 22:32:02 2018 :: Loading classes
Thu May 10 22:32:02 2018 :: Loading races
Thu May 10 22:32:02 2018 :: Loading news data
Thu May 10 22:32:02 2018 :: Loading liquids
Thu May 10 22:32:02 2018 :: Loading mixtures
Thu May 10 22:32:02 2018 :: Loading herb table
Thu May 10 22:32:02 2018 :: Loading tongues
Thu May 10 22:32:02 2018 :: Loading quest bit tables
Thu May 10 22:32:02 2018 :: Loading MSSP Data...
Thu May 10 22:32:02 2018 :: Initializing random number generator
Thu May 10 22:32:02 2018 :: Setting time and weather.
Thu May 10 22:32:02 2018 :: Loading holiday chart...
Thu May 10 22:32:02 2018 :: Loading DNS cache...
Thu May 10 22:32:02 2018 :: Assigning gsn's
Thu May 10 22:32:02 2018 :: Reading in area files...
Thu May 10 22:32:02 2018 :: [*****] BUG: add_help: duplicate: GOTO. Deleting.
Thu May 10 22:32:02 2018 :: [*****] FILE: help.are LINE: 5206
Thu May 10 22:32:02 2018 :: [*****] BUG: add_help: duplicate: REDIT. Deleting.
Thu May 10 22:32:02 2018 :: [*****] FILE: help.are LINE: 13037
(help.are)
limbo.are : Rooms: 2 - 99 Objs: 2 - 99 Mobs: 1 - 99
newacad.are : Rooms: 10300 - 10499 Objs: 10300 - 10499 Mobs: 10300 - 10499
newgate.are : Rooms: 100 - 199 Objs: 100 - 199 Mobs: 100 - 199
newdark.are : Rooms: 21000 - 21499 Objs: 21000 - 21435 Mobs: 21000 - 21499
gods.are : Rooms: 1200 - 1202 Objs: 1200 - 1200 Mobs: 1200 - 1200
plains.are : Rooms: 300 - 345 Objs: 300 - 313 Mobs: 300 - 350
haon.are : Rooms: 6000 - 6156 Objs: 6000 - 6155 Mobs: 6000 - 6117
midennir.are : Rooms: 3500 - 3590 Objs: 3500 - 3550 Mobs: 3500 - 3550
sewer.are : Rooms: 7001 - 7445 Objs: 7190 - 7310 Mobs: 7000 - 7206
redferne.are : Rooms: 7900 - 7918 Objs: 7909 - 7911 Mobs: 7900 - 7900
grove.are : Rooms: 8901 - 8999 Objs: 8900 - 8919 Mobs: 8900 - 8911
dwarven.are : Rooms: 6500 - 6554 Objs: 6502 - 6519 Mobs: 6500 - 6517
daycare.are : Rooms: 6601 - 6651 Objs: 6600 - 6647 Mobs: 6600 - 6610
grave.are : Rooms: 3600 - 3651 Objs: 3600 - 3613 Mobs: 3600 - 3605
chapel.are : Rooms: 3405 - 3475 Objs: 3400 - 3430 Mobs: 3400 - 3416
astral.are : Rooms: 800 - 899 Objs: 800 - 899 Mobs: 800 - 899
Build.are : Rooms: 9500 - 9589 Objs: 0 - 0 Mobs: 0 - 0
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_fuss_object: no match: d
Thu May 10 22:32:02 2018 :: [*****] FILE: pixie.are LINE: 209
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_fuss_object: no match: d
Thu May 10 22:32:02 2018 :: [*****] FILE: pixie.are LINE: 210
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_fuss_object: no match: d
Thu May 10 22:32:02 2018 :: [*****] FILE: pixie.are LINE: 211
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_fuss_object: no match: d
Thu May 10 22:32:02 2018 :: [*****] FILE: pixie.are LINE: 232
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_fuss_object: no match: d
Thu May 10 22:32:02 2018 :: [*****] FILE: pixie.are LINE: 233
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_fuss_object: no match: d
Thu May 10 22:32:02 2018 :: [*****] FILE: pixie.are LINE: 246
Thu May 10 22:32:02 2018 :: [*****] BUG: fread_fuss_object: no match: d
Thu May 10 22:32:02 2018 :: [*****] FILE: pixie.are LINE: 267
pixie.are : Rooms: 2070 - 2099 Objs: 2070 - 2077 Mobs: 2070 - 2073
export.are : Rooms: 9810 - 9899 Objs: 9810 - 9899 Mobs: 9800 - 9899
srefuge.are : Rooms: 1500 - 1599 Objs: 1500 - 1599 Mobs: 1500 - 1599
manor.are : Rooms: 2400 - 2499 Objs: 2400 - 2499 Mobs: 2405 - 2484
unholy.are : Rooms: 2101 - 2172 Objs: 2101 - 2150 Mobs: 2101 - 2120
gallery.are : Rooms: 24800 - 24899 Objs: 24800 - 24899 Mobs: 24800 - 24899
housing.are : Rooms: 50000 - 54999 Objs: 50000 - 54999 Mobs: 50000 - 54999
Thu May 10 22:32:02 2018 :: [*****] BUG: load_continent: Invalid area continent, set to 'alsherok' by default.
Thu May 10 22:32:02 2018 :: [*****] FILE: carinus.are LINE: 17
carinus.are : Rooms: 30000 - 30099 Objs: 0 - 0 Mobs: 30000 - 30099
map2.are : Rooms: 30100 - 30199 Objs: 0 - 0 Mobs: 30100 - 30199
map3.are : Rooms: 30200 - 30299 Objs: 0 - 0 Mobs: 30200 - 30299
Thu May 10 22:32:02 2018 :: Fixing exits
Thu May 10 22:32:02 2018 :: Initializing economy
Thu May 10 22:32:02 2018 :: Resetting areas
Thu May 10 22:32:02 2018 :: Loading overland resets...
Thu May 10 22:32:02 2018 :: Loading buildlist
Thu May 10 22:32:02 2018 :: ../gods/Bob
Thu May 10 22:32:02 2018 :: ../gods/Mitchell
Thu May 10 22:32:02 2018 :: ../gods/Ubraxis
Thu May 10 22:32:02 2018 :: ../gods/Morain
Thu May 10 22:32:02 2018 :: ../gods/Ilnwnll
Thu May 10 22:32:02 2018 :: ../gods/Xander
Thu May 10 22:32:02 2018 :: ../gods/Lfour
Thu May 10 22:32:02 2018 :: ../gods/Darren
Thu May 10 22:32:02 2018 :: ../gods/Bennet
Thu May 10 22:32:02 2018 :: Loading boards
Thu May 10 22:32:02 2018 :: ../boards/immortal.brd
Thu May 10 22:32:02 2018 :: ../boards/highgod.brd
Thu May 10 22:32:02 2018 :: Loading vault list
Thu May 10 22:32:02 2018 :: $
Thu May 10 22:32:02 2018 :: Done vaults
Thu May 10 22:32:02 2018 :: Loading clans
Thu May 10 22:32:02 2018 :: Loading clans...
Thu May 10 22:32:02 2018 :: vampire.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/vampire.gui.vault
Thu May 10 22:32:02 2018 :: druid.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/druid.gui.vault
Thu May 10 22:32:02 2018 :: warrior.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/warrior.gui.vault
Thu May 10 22:32:02 2018 :: augurer.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/augurer.gui.vault
Thu May 10 22:32:02 2018 :: thief.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/thief.gui.vault
Thu May 10 22:32:02 2018 :: cleric.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/cleric.gui.vault
Thu May 10 22:32:02 2018 :: mage.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/mage.gui.vault
Thu May 10 22:32:02 2018 :: ranger.gui
Thu May 10 22:32:02 2018 :: Cannot open vault - ../clans/ranger.gui.vault
Thu May 10 22:32:02 2018 :: $
Thu May 10 22:32:02 2018 :: Done clans
Thu May 10 22:32:02 2018 :: Loading councils
Thu May 10 22:32:02 2018 :: Loading councils...
Thu May 10 22:32:02 2018 :: $
Thu May 10 22:32:02 2018 :: Done councils
Thu May 10 22:32:02 2018 :: Loading deities
Thu May 10 22:32:02 2018 :: Loading deities...
Thu May 10 22:32:02 2018 :: $
Thu May 10 22:32:02 2018 :: Done deities
Thu May 10 22:32:02 2018 :: Loading watches
Thu May 10 22:32:02 2018 :: Loading bans
Thu May 10 22:32:02 2018 :: Done.
Thu May 10 22:32:02 2018 :: Loading reserved names
Thu May 10 22:32:02 2018 :: Loading corpses
Thu May 10 22:32:02 2018 :: Loading Immortal Hosts
Thu May 10 22:32:02 2018 :: Done.
Thu May 10 22:32:02 2018 :: Loading Projects
Thu May 10 22:32:02 2018 :: Loading Morphs
Thu May 10 22:32:02 2018 :: Done.
Thu May 10 22:32:02 2018 :: Loading Housing System, Home Accessories Data, and Home Auctioning System
Thu May 10 22:32:02 2018 :: Loading login messages
Thu May 10 22:32:02 2018 :: Initializing socket
Thu May 10 22:32:02 2018 :: (Name Not Set) ready on port 4000.
Thu May 10 22:32:02 2018 :: [*****] BUG: online.html: fopen
online.html: No such file or directory
Thu May 10 22:33:17 2018 :: [*****] BUG: online.html: fopen
online.html: No such file or directory
Now my first question is: How do you feel about all those "[*****] BUG" messages? |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #17 on Fri 11 May 2018 01:47 AM (UTC) |
Message
| not very strong. each of them are easily resolvable and do not prevent the game from functioning. They aren't the problem | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #18 on Fri 11 May 2018 01:48 AM (UTC) Amended on Fri 11 May 2018 01:49 AM (UTC) by Fiendish
|
Message
|
Quote: I cannot recreate what is happening on your end.
I believe it, because your version of GCC is about 70 years old. 4.4.0? I have 7.3.1. Anyway, I have it running.
Have you compiled it with debug flags enabled and attached a debugger to it? |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #19 on Fri 11 May 2018 01:49 AM (UTC) |
Message
| lol.. it's a free server, so I can't complain about free | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #20 on Fri 11 May 2018 01:51 AM (UTC) Amended on Fri 11 May 2018 01:53 AM (UTC) by Joeyfogas
|
Message
| no, honestly I have googled, read here about gdb debugging, I have exhausted the internet ... and for WHATEVER reason, I NEVER get the output the tutorials claim I should get. So gdb has been lost to me and I am stuck trying to rely on reasonable guesses and trial and error.
edit: I am starting to think that Smaug is haunted. | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #21 on Fri 11 May 2018 01:53 AM (UTC) |
Message
|
Quote: I NEVER get the output the tutorials claim I should get.
Probably because your version of gdb is 70 years old. |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #23 on Fri 11 May 2018 01:56 AM (UTC) |
Message
| and again, thanks for helping with this. I saw on the MUD discord channel people talking about this snippet today, so others may run into this issue soon. If a solution is found it could save a lot of future headaches. | top |
|
Posted by
| Nick Gammon
Australia (22,987 posts) bio
Forum Administrator |
Date
| Reply #24 on Fri 11 May 2018 02:49 AM (UTC) |
Message
| There was a bug in MUSHclient a while back where, under some circumstances, no data would be sent to the server. If you advise which version of MUSHclient you are using that would help.
Also, does my gdb tutorial not work? In what way? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Fiendish
USA (2,514 posts) bio
Global Moderator |
Date
| Reply #25 on Fri 11 May 2018 03:22 AM (UTC) Amended on Fri 11 May 2018 03:37 AM (UTC) by Fiendish
|
Message
| So I run gdb ../src/smaug
then I tell it to run. then it runs.
then I hit ctrl-c and type bt and it shows me
#0 0x00007ffff6e0aad7 in select () from /lib64/libc.so.6
#1 0x00000000004d89b9 in game_loop () at comm.c:970
#2 0x00000000004d7851 in main (argc=1, argv=0x7fffffffdf88) at comm.c:551
Oh look. game_loop in comm.c.
So I open comm.c.
blah blah. game_loop. blah blah.
calls accept_new. what does that do?
blah blah.
calls new_descriptor. what does that do?
blah blah blah. lol bans. blah blah.
oh look, here it sends the greeting.
blah blah...and nothing else...
go back to game_loop ...
not idling out
...
not getting disconnected
...
not dns
...blah blah...
calls read_from_buffer. What does that do?
Gosh. The first thing it does is set read_buf[0] = '\0';
What an odd thing to do. I wonder what the effect of that is?
oh look. for i = 0 blah blah if( read_buf[i] == '\0') return;
So read_from_buffer does absolutely nothing. okaaayy.
blah blah...hm.. end of that loop.
update_handler?
blah blah blah nope.
Output sounds reasonable.
blah blah blah
ugh
blah blah
write_to_descriptor. finally. What does it do?
not much...
ugh. this is dumb. where does the password get set?
search for "password"
Oh look. nanny. Deal with sockets that haven't logged in yet.
So I need to make it to nanny. It's just after read_from_buffer.
Except the code will never get to nanny, because read_from_buffer does nothing.
This is just a wild guess, but did you edit this code, specifically read_from_buffer in comm.c, to make it do less than it used to? |
https://github.com/fiendish/aardwolfclientpackage | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #26 on Fri 11 May 2018 05:08 AM (UTC) |
Message
| the only thing I did to that was per instruction. 2 lines were added
In game_loop():
read_from_buffer( d );
if ( d->incomm[0] != '\0' )
{
d->fcommand = TRUE;
if ( d->pProtocol != NULL ) /* <--- Add this line */
d->pProtocol->WriteOOB = 0; /* <--- Add this line */
If d->fcommand is set to TRUE anywhere else, do the same there.
| top |
|
Posted by
| Nick Gammon
Australia (22,987 posts) bio
Forum Administrator |
Date
| Reply #27 on Fri 11 May 2018 05:14 AM (UTC) |
Message
| OK, this is my third attempt to get from you what version of MUSHclient you are using (if you are using it at all)? |
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Nick Gammon
Australia (22,987 posts) bio
Forum Administrator |
Date
| Reply #28 on Fri 11 May 2018 05:19 AM (UTC) |
Message
|
but….. I can’t send any commands… my name, password… nothing lol
gdb is useful in two main situations:
In the first case, typing “bt” (backtrace) basically tells you where the code was when it crashed.
In the second case it is more useful to put a breakpoint in a function where you are expecting to be (eventually) and then see why branch X is taken when you expected branch Y.
So when you say you can’t send any commands, perhaps put a breakpoint in “nanny” and see if, when you send your name, nanny is even called.
You could also turn on packet debugging in MUSHclient - perhaps what is happening is that data is arriving, but being discarded for some reason.
|
- Nick Gammon
www.gammon.com.au, www.mushclient.com | top |
|
Posted by
| Joeyfogas
(41 posts) bio
|
Date
| Reply #29 on Fri 11 May 2018 05:23 AM (UTC) Amended on Fri 11 May 2018 05:26 AM (UTC) by Joeyfogas
|
Message
| sorry nick, i didn't see that message. I am trying this on Zmud (newest version trial), Gmud, Mudlet 3.9, and beipMU 3.0
all yielding no results.
edit: and fiendish, I checked my read_from_buffer function against stock, and nothing inside the function itself was changed. | 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,747 views.
This is page 2, 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.