[Home] [Downloads] [Search] [Help/forum]

Gammon Software Solutions forum

See www.mushclient.com/spam for dealing with forum spam. Please read the MUSHclient FAQ!

[Folder]  Entire forum
-> [Folder]  SMAUG
. -> [Folder]  SMAUG coding
. . -> [Subject]  SmaugFUSS Fight.c help

Home  |  Users  |  Search  |  FAQ
Username:
Register forum user name
Password:
Forgotten password?

SmaugFUSS Fight.c help

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page


Posted by Lt_noodle   (39 posts)  [Biography] bio
Date Thu 09 Jun 2005 01:27 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Lt_noodle   (39 posts)  [Biography] bio
Date Reply #1 on Thu 09 Jun 2005 01:30 AM (UTC)  quote  ]
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;
[Go to top] top

Posted by Gatewaysysop2   USA  (142 posts)  [Biography] bio
Date Reply #2 on Thu 09 Jun 2005 01:21 PM (UTC)  quote  ]
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
[Go to top] top

Posted by Lt_noodle   (39 posts)  [Biography] bio
Date Reply #3 on Thu 09 Jun 2005 05:07 PM (UTC)  quote  ]
Message
i gotta check that out
[Go to top] top

Posted by Dralnu   USA  (277 posts)  [Biography] bio
Date Reply #4 on Thu 09 Jun 2005 05:38 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Lt_noodle   (39 posts)  [Biography] bio
Date Reply #5 on Thu 09 Jun 2005 11:11 PM (UTC)  quote  ]
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.
[Go to top] top

Posted by Gatewaysysop2   USA  (142 posts)  [Biography] bio
Date Reply #6 on Fri 10 Jun 2005 02:30 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Greven   Canada  (835 posts)  [Biography] bio
Date Reply #7 on Fri 10 Jun 2005 04:10 AM (UTC)  quote  ]
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
[Go to top] top

Posted by Samson   USA  (683 posts)  [Biography] bio
Date Reply #8 on Sat 11 Jun 2005 03:45 AM (UTC)  quote  ]
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.

SmaugMuds.org: http://www.smaugmuds.org - The Smaug MUDs Community Center

"The past was erased, the erasure was forgotten, the lie became truth." -- George Orwell, 1984
[Go to top] 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.


2,652 views.

[Reply to this subject]  Reply to this subject   [New subject]  Start a new subject   [Refresh] Refresh page

Go to topic:           Search the forum


[Go to top] top

[Home]

Written by Nick Gammon - 5K

Comments to: Gammon Software support
[RH click to get RSS URL] Forum RSS feed ( http://www.gammon.com.au/rss/forum.xml )

[Best viewed with any browser - 2K]    [Internet Contents Rating Association (ICRA) - 2K]    [Web site powered by FutureQuest.Net]