Register forum user name Search FAQ

Gammon Forum

Notice: Any messages purporting to come from this site telling you that your password has expired, or that you need to verify your details, confirm your email, resolve issues, making threats, or asking for money, are spam. We do not email users with any such messages. If you have lost your password you can obtain a new one by using the password reset link.

Due to spam on this forum, all posts now need moderator approval.

 Entire forum ➜ SMAUG ➜ SMAUG coding ➜ player file error

player file error

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


Posted by Joeyfogas   (41 posts)  Bio
Date Mon 12 Mar 2018 06:53 PM (UTC)
Message
I am getting the errors

Comm: Preloading player data for: Tester (1K)
Bug: [*****] BUG: fread_char: no match: d
Bug: [*****] FILE: ../player/t/Tester LINE: 17
Bug: [*****] BUG: fread_char: no match: d
Bug: [*****] FILE: ../player/t/Tester LINE: 18


and the player file is showing this on those lines

Act 570426952d
AffectedBy 16d



I have tried to find out exactly what is putting the "d" in the files but can't figure it out


I am using SMAUGFUSS 1.9b and haven't modified it much at all.. .I have been getting this since the beginning... anyone else know what is up?
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #1 on Mon 12 Mar 2018 08:40 PM (UTC)
Message
Can you give a link to the exact download you are using? And does this issue occur if you use the totally unmodified source?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Kursh   (10 posts)  Bio
Date Reply #2 on Mon 12 Mar 2018 08:49 PM (UTC)
Message
I think he is using SmaugFuss.

I tested a lot of codebase before starting my project and I have a DB of corrections I found here and there (or I wrote myself).

This should fix your problem (Smaugmuds.org):

Open up misc.c and find print_bitvector().

Change this:
snprintf( p, ( XBI * 12 ) - ( p - buf ), "%ud", bits->bits[x] );

To This:
snprintf( p, ( XBI * 12 ) - ( p - buf ), "%d", bits->bits[x] );
Top

Posted by Joeyfogas   (41 posts)  Bio
Date Reply #3 on Mon 12 Mar 2018 10:12 PM (UTC)
Message
That was exactly the problem!!

Yes it was on unmodified... Also on the unmodified, there seems to be an error when connecting to link dead characters

I was getting errors about bool always being false in comm.c and changed check_reconnect to int instead of bool, which got rid of error....

but would segfault when connecting to link dead.. I changed it back to bool and removed -Werror from makefile so it would compile, and even then.. still segfaults on connecting to link-dead.

Unmodified smaugfuss 1.9b from smaugmuds.org

compiling using Cygwin...


happen to have something in your database for that?
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #4 on Tue 13 Mar 2018 12:38 AM (UTC)

Amended on Tue 13 Mar 2018 12:40 AM (UTC) by Nick Gammon

Message
Are you using exactly the code from GitHub?

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Joeyfogas   (41 posts)  Bio
Date Reply #5 on Tue 13 Mar 2018 12:48 AM (UTC)
Message
https://www.smaugmuds.org/files/SmaugFUSS-192-472/

this one
Top

Posted by Joeyfogas   (41 posts)  Bio
Date Reply #6 on Tue 13 Mar 2018 07:24 AM (UTC)
Message

if( check_reconnect( d, argument, FALSE ) == BERR )
      return;



if( check_reconnect( d, argument, FALSE ) )
   {
      fOld = TRUE;
   }
   else
   {
      if( sysdata.wizlock && !IS_IMMORTAL( ch ) )
      {
         write_to_buffer( d, "The game is wizlocked. Only immortals can connect now.\r\n", 0 );
         write_to_buffer( d, "Please try back later.\r\n", 0 );
         close_socket( d, FALSE );
         return;
      }





think i have zeroed in on the issue... check_reconect is called twice in a row
Top

Posted by Nick Gammon   Australia  (23,162 posts)  Bio   Forum Administrator
Date Reply #7 on Tue 13 Mar 2018 08:52 AM (UTC)
Message
I hope you read this really recent thread on the same subject:

http://www.gammon.com.au/forum/?id=14197

- Nick Gammon

www.gammon.com.au, www.mushclient.com
Top

Posted by Joeyfogas   (41 posts)  Bio
Date Reply #8 on Tue 13 Mar 2018 09:08 AM (UTC)

Amended on Tue 13 Mar 2018 09:20 AM (UTC) by Joeyfogas

Message
I did, yes.. but did not work for me...upon making those changes I was still getting segfault on trying to connect while link-dead

I found another issue that was causing it for me in the con_get_password section..

there is a similar code there as well... I am working with someone on the smaugmuds forum to help resolve it...

I got it to connect now without crashing, however I am seeing my link-dead self. lol


apparently (according to them) someone changed something on the github without testing it out...


ok I got it...



For anyone using 1.9.2, use the comm.c file from 1.9.1


my problem was in the void nanny_get_old_password section.



thanks everyone!
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.


25,780 views.

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

Go to topic:           Search the forum


[Go to top] top

Information and images on this site are licensed under the Creative Commons Attribution 3.0 Australia License unless stated otherwise.