AlliedModders

AlliedModders (https://forums.alliedmods.net/index.php)
-   Unapproved/Old Plugins (https://forums.alliedmods.net/forumdisplay.php?f=27)
-   -   Game Name Changer (Orpheu Style!) (https://forums.alliedmods.net/showthread.php?t=138568)

Drak 09-19-2010 16:22

Game Name Changer (Orpheu Style!)
 
2 Attachment(s)
It's well known that the forward "FM_GetGameDescription" seems to cause problems/crashes. Well, with Orpheu not anymore. A *very* quick and tiny plugin.
Put these two CVars into your amxx.cfg / server.cfg or however you usually do it.

You must have this module installed

Code:

amxx_game_name "" - This is the original name of the game (This auto-detects if it's blank, RECOMMENDED to set anyways.
amxx_game_newname "My Game" - The name that the game should be set too.

NOTE:
You must put in "GameName.ini" into your "configs/orpheu/memory" folder.

Arkshine 09-19-2010 16:36

Re: Game Name Changer (Orpheu Style!)
 
- Don't use extension. You better provide a package with the file into the right directory.
- PLUGIN_HANDLED does nothing. Just use return.
- Since you use orpheu, why not to try to play with GetCurrentSteamAppName() to get the original gamename instead of hardcoding.

But actually, it's a bad method, because if you provide a new game name with a length > to the original, it will crash.
You better hook the function CGameRules::GetGameDescription() which returns the string.

fysiks 09-19-2010 16:40

Re: Game Name Changer (Orpheu Style!)
 
Crashes?

Donche 09-19-2010 17:07

Re: Game Name Changer (Orpheu Style!)
 
Nice Pluginss :)

platzpatrone 09-19-2010 18:58

Re: Game Name Changer (Orpheu Style!)
 
Quote:

Originally Posted by Drak (Post 1303646)
It's well known that the forward "FM_GetGameDescription" seems to cause problems/crashes.

i never got some problems nor some crashes :shock:

but at least its nice to see some guys practice with Orpheu:)

Arkshine 10-30-2010 21:11

Re: Game Name Changer (Orpheu Style!)
 
Redundant, no changes have been made as suggested.

Unapproved.


All times are GMT -4. The time now is 20:44.

Powered by vBulletin®
Copyright ©2000 - 2024, vBulletin Solutions, Inc.