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 ➜ Compiling the server ➜ bamfin\bamfout

bamfin\bamfout

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


Posted by Kris   USA  (198 posts)  Bio
Date Tue 20 Mar 2001 07:37 PM (UTC)
Message
Unlike ROM, SMAUG has this annoying little thing in it that automatically puts your name in front of your bamfin and bamfout messages. Even if I edit the player file directly, it still does this, without editing the player file itself tho. So, I end up with something like "Kris You blink, and suddenly the Almighty God Kris appears before you!....."
I tried editing the source code, but I ended up messing things up and had to replace them with the backup copies (I keep backups because I -know- I'm bound to damage something beyond repair amidst my tinkering).
Just to simplify things for me (and so I can get rid of that annoying little quirk), could someone tell me what I need to edit and how? It shows up that way when I type 'score' and when I actually use the goto command. Thanks :)
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #1 on Wed 21 Mar 2001 11:21 AM (UTC)
Message
In build.c, around line 950, I see this code:



    char_to_room( ch, location );

    if ( !xIS_SET(ch->act, PLR_WIZINVIS) )
	act( AT_IMMORT, "$n $T", ch, NULL,
	    (ch->pcdata && ch->pcdata->bamfin[0] != '\0')
	    ? ch->pcdata->bamfin : "appears in a swirling mist.", TO_ROOM );



The file doc\act.txt describes the meaning of the various codes, like $n, like this:


$T Result is the 'arg2' argument interpreted as a string.

$n Result is the name of 'ch'. If 'ch' is not visible to the target character, result is the string 'someone'.


It seems to me the simply way of achieving what you want is just to drop the $n, ie.



    char_to_room( ch, location );

    if ( !xIS_SET(ch->act, PLR_WIZINVIS) )
	act( AT_IMMORT, "$T", ch, NULL,
	    (ch->pcdata && ch->pcdata->bamfin[0] != '\0')
	    ? ch->pcdata->bamfin : "appears in a swirling mist.", TO_ROOM );



I haven't tried it, so let me know how you go. :)

- Nick Gammon

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

Posted by Kris   USA  (198 posts)  Bio
Date Reply #2 on Wed 21 Mar 2001 01:16 PM (UTC)
Message
It didn't work. Said something about some variable in RENAME not declared. I would've copied it exactly, but I was too preoccupied with restoring the corrupted source code. For some reason I had to re-download the modified src from my website, delete the contents of src, and re-install the src to get rid of that error. SMAUG.EXE wouldn't compile when I attempted to remove $n from the portion of build.c you specified. I'm assuming it's cross-referenced somewhere, but I have no idea where to look. Could you take a look at this please? Tnx :)
Top

Posted by Nick Gammon   Australia  (23,173 posts)  Bio   Forum Administrator
Date Reply #3 on Wed 21 Mar 2001 01:28 PM (UTC)
Message
I don't understand that.

I can't see how removing part of a literal string would cause a compile error.

Can you quote the exact error message you got, and tell me when? (eg. during compile, shown to that player, on the server log).

When you say "it wouldn't compile when you removed $n" can you please send me the error message.

Saying things like "it wouldn't compile" or it said "something" isn't helpful when it comes to resolving the errors.

- Nick Gammon

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

Posted by Kris   USA  (198 posts)  Bio
Date Reply #4 on Wed 21 Mar 2001 02:39 PM (UTC)
Message
I did absolutely nothing different this time, but it worked. Maybe something to do with a sharing violation I dunno. Or maybe one of the other files was somehow corrupted, and the problem was fixed when I retored the backup.... Other people mess around on this computer terminal when I'm not around, including my other admins. Someone probably started tinkering around with the files and their backups..... Thanks fer the help :)
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.


18,474 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.