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 ➜ SmaugFUSS Fight.c help

SmaugFUSS Fight.c help

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


Posted by Lt_noodle   (39 posts)  Bio
Date Thu 09 Jun 2005 01:27 AM (UTC)
Message
I heard that you can change the text outputs like i.e i want to change 'You are too exhausted' to something else when i don't have any more mv. I opened fight.c and scrolled to the end of the file, changed 'You are too exhausted' to 'THIS IS A TEST' . saved it and make clean then make. Ran the mud, ran around room to room for about 2 minutes but after i lost all my mv it still shows You are too exhausted, someone help me please? Thanks
Top

Posted by Lt_noodle   (39 posts)  Bio
Date Reply #1 on Thu 09 Jun 2005 01:30 AM (UTC)
Message
okay to show you guys what i changed here's what i did.

if ( ch->move <= 0 ) {
send_to_char( "You are too exhausted!\n\r", ch );
return;

=============

now what i changed it to

if ( ch->move <= 0 ) {
send_to_char( "THIS IS A TEST!\n\r", ch );
return;
Top

Posted by Gatewaysysop2   USA  (146 posts)  Bio
Date Reply #2 on Thu 09 Jun 2005 01:21 PM (UTC)
Message
Are you sure that once you recompiled you were actually running the new .exe file and not the old one? That's the first thing that comes to mind, but it's early so...

"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
Top

Posted by Lt_noodle   (39 posts)  Bio
Date Reply #3 on Thu 09 Jun 2005 05:07 PM (UTC)
Message
i gotta check that out
Top

Posted by Dralnu   USA  (277 posts)  Bio
Date Reply #4 on Thu 09 Jun 2005 05:38 PM (UTC)
Message
if your on windows, I'd suggest using Cygwin to run the MUD. I had a problem similar to that with wearloc issues, and if you make a copied version of the server, on remake, if you use the copied .exe, the effects won't take.
Top

Posted by Lt_noodle   (39 posts)  Bio
Date Reply #5 on Thu 09 Jun 2005 11:11 PM (UTC)
Message
I do use cygwin. After i changed the .c files i did a make clean then make, ran the game and still the same.
Top

Posted by Gatewaysysop2   USA  (146 posts)  Bio
Date Reply #6 on Fri 10 Jun 2005 02:30 AM (UTC)
Message
Hmm.

Well without knowing the specifics of what you're doing and how, maybe something simpler can serve as verification.

Check the date of the executable you are using. Is it correct for the time you compiled it, or does it clearly predate the last time you supposedly recompiled it? If so, you're obviously not using the new file (for whatever reason).

Might be something worth checking. Again, just an idea off the top of my head.


"The world of men is dreaming, it has gone mad in its sleep, and a snake is strangling it, but it can't wake up." -D.H. Lawrence
Top

Posted by Greven   Canada  (835 posts)  Bio
Date Reply #7 on Fri 10 Jun 2005 04:10 AM (UTC)
Message
Also may want to grep for the string to be sure that where its printing from is not else where in the file, as I've done this many a time.

Nobody ever expects the spanish inquisition!

darkwarriors.net:4848
http://darkwarriors.net
Top

Posted by Samson   USA  (683 posts)  Bio
Date Reply #8 on Sat 11 Jun 2005 03:45 AM (UTC)
Message
The spot you edited is for movement drain during combat - not during normal movement. Your test message will show up if you get into a fight and manage to eat up your movement points. You just need to find the other spot in the code where normal movement is checked against reaching 0 and displays the message to you.
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,435 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.