Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Disabling lang strings, specifically the "Player xxxx has joined from [0.0.0.0]" #10

Open
GoogleCodeExporter opened this issue Apr 20, 2015 · 3 comments

Comments

@GoogleCodeExporter
Copy link

I want to disable the "Player xxxx has joined from [0.0.0.0]" message, but I 
can't seem to find a  way to do it. I've tryed to set the lang string to empty 
spaces, but then the bot thinks that the lang str is missing and outputs an 
error.

There should be a way to disable specific lang strings in case I want the bot 
to be as silent as possible.

Original issue reported on code.google.com by [email protected] on 27 Oct 2011 at 3:58

@GoogleCodeExporter
Copy link
Author

Open game_base.cpp, search for the following:

// join message from diff realms

and comment the following (place 2 slashes in front -> // )
SendAllChat( tr("lang_1504", "$NAME$", joinPlayer->GetName( ), "$FROM$", 
JoinedRealm == string( ) ? "garena\\lan" : JoinedRealm ));

this line might look different in older revisions. then recompile the bot and 
make your own ghost++ binary or ghost.exe

Original comment by [email protected] on 28 Oct 2011 at 9:40

@GoogleCodeExporter
Copy link
Author

It's good idea.

We must only add in both of CLanguage::GetLang functions a check of the lang 
string on the specified string (like "ignore" for exemle), and return null or 
specified string. Then we must change all SendChat functions in a game_base.cpp 
to check an incoming string and just do nothing if there null or specified 
string.

So now you can force  bot  to ignore and dont show any message you want, just 
by typing "ignore" in a lang string.

Original comment by [email protected] on 10 Nov 2011 at 8:36

  • Changed state: Started
  • Added labels: Priority-Low, Type-Task
  • Removed labels: Priority-Medium, Type-Defect

@GoogleCodeExporter
Copy link
Author

I made a config variable, bot_announceplayerjoin, which lets you turn this 
on/off.

Original comment by [email protected] on 22 Nov 2011 at 2:23

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

1 participant