Raised This Month: $62 Target: $400
 15% 

Game Name Changer (Orpheu Style!)


Post New Thread Reply   
 
Thread Tools Display Modes
Plugin Info:     Modification:   ALL        Category:   Server Management       
Drak
Veteran Member
Join Date: Jul 2005
Old 09-19-2010 , 16:22   Game Name Changer (Orpheu Style!)
Reply With Quote #1

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.
Attached Files
File Type: sma Get Plugin or Get Source (OrpheuGameName.sma - 820 views - 1.3 KB)
File Type: ini GameName.ini (126 Bytes, 249 views)
__________________
Oh yeah

Last edited by Drak; 09-19-2010 at 16:25.
Drak is offline
Send a message via MSN to Drak
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 09-19-2010 , 16:36   Re: Game Name Changer (Orpheu Style!)
Reply With Quote #2

- 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.
__________________

Last edited by Arkshine; 09-19-2010 at 16:40.
Arkshine is offline
fysiks
Veteran Member
Join Date: Sep 2007
Location: Flatland, USA
Old 09-19-2010 , 16:40   Re: Game Name Changer (Orpheu Style!)
Reply With Quote #3

Crashes?
__________________
fysiks is online now
Donche
BANNED
Join Date: Aug 2010
Old 09-19-2010 , 17:07   Re: Game Name Changer (Orpheu Style!)
Reply With Quote #4

Nice Pluginss
Donche is offline
platzpatrone
Veteran Member
Join Date: Apr 2007
Location: Germany
Old 09-19-2010 , 18:58   Re: Game Name Changer (Orpheu Style!)
Reply With Quote #5

Quote:
Originally Posted by Drak View Post
It's well known that the forward "FM_GetGameDescription" seems to cause problems/crashes.
i never got some problems nor some crashes

but at least its nice to see some guys practice with Orpheu
platzpatrone is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 10-30-2010 , 21:11   Re: Game Name Changer (Orpheu Style!)
Reply With Quote #6

Redundant, no changes have been made as suggested.

Unapproved.
__________________
Arkshine is offline
Reply


Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 21:56.


Powered by vBulletin®
Copyright ©2000 - 2021, vBulletin Solutions, Inc.
Theme made by Freecode