Raised This Month: $ Target: $400
 0% 

FM_GetGameDescription broken?


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 03-14-2013 , 16:21   FM_GetGameDescription broken?
Reply With Quote #1

I'm changing the name of the game according the mod which is running.

Examples:
Paintball Mod is running -> Counter-Strike: Paintball
CaptureTheFlag runs -> Counter-Strike: Capture The Flag

It worked for a long time now and I didn't changed my code. Do I loose my mind or is FM_GetGameDescription broken since the recent updates of the engine?

Any help is appreciated, regards.
Leon
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 03-14-2013 at 16:22.
Leon M. is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-14-2013 , 16:47   Re: FM_GetGameDescription broken?
Reply With Quote #2

Try to hook it post so you can get the string return value and try to print it or to write it in a file to see 1. if function is called, 2. if something is still returned.
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Arkshine
AMX Mod X Plugin Approver
Join Date: Oct 2005
Old 03-14-2013 , 16:54   Re: FM_GetGameDescription broken?
Reply With Quote #3

Code is unchanged, but it's possible not called anymore or somehow locked on steam, not checked.
__________________

Last edited by Arkshine; 03-14-2013 at 16:59.
Arkshine is offline
Bos93
Veteran Member
Join Date: Jul 2010
Old 03-14-2013 , 17:16   Re: FM_GetGameDescription broken?
Reply With Quote #4

Works:

PHP Code:
#include < amxmodx >
#include < fakemeta >


public plugin_init()
{
    
register_forwardFM_GetGameDescription"FM_Hook__GetGameDescription" );
}

public 
FM_Hook__GetGameDescription( )
{
    
forward_returnFMV_STRING"Test" )

    return 
FMRES_SUPERCEDE;

__________________
Bos93 is offline
Send a message via ICQ to Bos93 Send a message via Skype™ to Bos93
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 03-14-2013 , 17:17   Re: FM_GetGameDescription broken?
Reply With Quote #5

Good points Connor, will test it and reply asap. Time to sleep now :/


BTW: Here the small code ^^
PHP Code:
#include <fakemeta>

public plugin_init(){
    
// ...
    
register_forward(FM_GetGameDescription"fwd_gamedesc")
    
// ...
}

public 
fwd_gamedesc(){
    
forward_return(FMV_STRING"Counter-Strike: Paintball")
    return 
FMRES_SUPERCEDE

EDIT: @bos
Well, probably the ':' cause the trouble. Although it worked before. Also, are you running in beta?

EDIT2: @Connor, @Arkshine
It seems that it gets not called anymore. Added a chat and console message to the hook. No prints

Quote:
] version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 14:59:14 Feb 13 2013 (5956)

] meta version
Metamod v1.20 2013-02-16 (5:13)
by Will Day <[email protected]>
http://www.metamod.org/
compiled: Feb 16 2013, 17:115 +0100 (optimized)
ifvers: 5:13

] amxx version
AMX Mod X 1.8.2
Authors:
David "BAILOPAN" Anderson, Pavol "PM OnoTo" Marko, Felix "SniperBeamer" Geyer
Jonny "Got His Gun" Bergstrom, Lukasz "SidLuke" Wlasinski
Christian "Basic-Master" Hammacher, Borja "faluco" Ferrer
Scott "Damaged Soul" Ehlert
Compiled: Feb 14 2013, 00:55:00
URL:http://www.amxmodx.org/
Core mode: JIT
EDIT3: @all
Tested on an outdated server and indeed it works just fine. Any chance for a workaround?

Quote:
] version
Protocol version 48
Exe version 1.1.2.7/Stdio (cstrike)
Exe build: 110:01 Aug 28 2012 (5787)
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 03-14-2013 at 18:51.
Leon M. is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 03-24-2013 , 13:30   Re: FM_GetGameDescription broken?
Reply With Quote #6

Anyone already tested ServerName Msg? Gonna try it soon if I'm back at home
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015

Last edited by Leon M.; 03-24-2013 at 13:30.
Leon M. is offline
ConnorMcLeod
Veteran Member
Join Date: Jul 2006
Location: France (95)
Old 03-24-2013 , 14:26   Re: FM_GetGameDescription broken?
Reply With Quote #7

It's just name appearing above scoreboard
__________________
- tired and retired -

- my plugins -
ConnorMcLeod is offline
Leon M.
Senior Member
Join Date: Apr 2009
Location: Germany
Old 03-24-2013 , 14:53   Re: FM_GetGameDescription broken?
Reply With Quote #8

damn
__________________
  • ZapTic - Paintball (Version 7.1.3 b1303)
  • Your #1 CS Paintball Server since 2008
  • 85.131.163.101:27015
Leon M. is offline
^SmileY
Veteran Member
Join Date: Jan 2010
Location: Brazil [<o>]
Old 05-30-2013 , 20:05   Re: FM_GetGameDescription broken?
Reply With Quote #9

Hey, the Game description is working, but it only in server start.
If you change a cvar, the game description not update it.
__________________
Projects:

- See my Git Hub: https://github.com/SmileYzn
PHP Code:
set_pcvar_num(pCvar, !get_pcvar_num(pCvar)); 
^SmileY is offline
Send a message via MSN to ^SmileY Send a message via Skype™ to ^SmileY
simanovich
AlliedModders Donor
Join Date: Jun 2012
Location: Israel
Old 05-31-2013 , 08:49   Re: FM_GetGameDescription broken?
Reply With Quote #10

Quote:
Originally Posted by ^SmileY View Post
Hey, the Game description is working, but it only in server start.
If you change a cvar, the game description not update it.
Nice bump

P.S: FM_GetGameDescription is called when client gets server info (try to print a message - it will be printed every time the client gets server info).
__________________
simanovich is offline
Reply



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:43.


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