Raised This Month: $32 Target: $400
 8% 

Weirg bug with FM_GetGameDescription


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 03-12-2018 , 14:58   Weirg bug with FM_GetGameDescription
Reply With Quote #1

So i noticed something strange with FM_GetGameDescription.

I run a multimods server, and many plugins change the "Gamename", but i noticed that when i change the map the gamename is not getting updated on CS's Server Browser

For example, when i start the server, everything works as expected (First two images. I tried to add them right after the text but didn't work)
Map is hns_ninjatown and the gamename is "Hide N Seek"

But when i change the map, HLDS updates the gamename but CS's Server Browser doesn't update it as you can see in the next two images
Map is deathrace_alley and the gamename SHOULD be "Deathrace" as HLDS shows, but instead it is still showing "Hide N Seek"

The code is as simple as it can be and is included in both plugins, but the "text" changes
Code:
register_forward(FM_GetGameDescription, "fwdGetGameDescription");

public fwdGetGameDescription()
{
	forward_return(FMV_STRING, "Hide N' SeeK");
	
	return FMRES_SUPERCEDE;
}
Even if i delete the server and add again, open CS again, the gamename remains wrong
Just asking because it didn't work this way when i used to run AMX 1.8.1 (long time already)

Currently using latest version of SteamCMD, AMX 1.8.3+dev5151 with Metamod v1.21p37 and all plugins were recompiled (Except the ones that come with AMXX 1.8.3)
Attached Thumbnails
Click image for larger version

Name:	hlds1.PNG
Views:	130
Size:	3.9 KB
ID:	168856   Click image for larger version

Name:	cs1.PNG
Views:	163
Size:	4.2 KB
ID:	168857   Click image for larger version

Name:	hlds2.PNG
Views:	115
Size:	4.0 KB
ID:	168861   Click image for larger version

Name:	cs2.PNG
Views:	116
Size:	4.2 KB
ID:	168862  
marcelowzd is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-12-2018 , 15:48   Re: Weirg bug with FM_GetGameDescription
Reply With Quote #2

I dont think its a scripting problem it might be configuring problem
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !


Last edited by Natsheh; 03-12-2018 at 15:48.
Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 03-12-2018 , 17:53   Re: Weirg bug with FM_GetGameDescription
Reply With Quote #3

Quote:
Originally Posted by Natsheh View Post
I dont think its a scripting problem it might be configuring problem
Yeah, maybe, but the strange part is that each plugin has its own FM_GetGameDescription forward registered, and they all work very well without a single error (I mean the plugin, not the FM_GetGameDescription part)

My current configuration is the following
./configs/maps/plugins-hns.ini and prefix_hns.cfg
./current/maps/plugins-deathrace.ini and prefix_hns.cfg
./All Other mods (the exact same thing happens with any mod)

Last edited by marcelowzd; 03-12-2018 at 17:54.
marcelowzd is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-12-2018 , 17:57   Re: Weirg bug with FM_GetGameDescription
Reply With Quote #4

Which multimod manager are u using?
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 03-13-2018 , 17:40   Re: Weirg bug with FM_GetGameDescription
Reply With Quote #5

Quote:
Originally Posted by Natsheh View Post
Which multimod manager are u using?
None, it is the normal AMXX config where you create the "maps" folder inside configs and add all the plugins-something.ini and prefix_something.cfg
(They load correctly)

Last edited by marcelowzd; 03-13-2018 at 18:00.
marcelowzd is offline
Natsheh
Veteran Member
Join Date: Sep 2012
Old 03-13-2018 , 18:02   Re: Weirg bug with FM_GetGameDescription
Reply With Quote #6

Well its plugins-mapname.ini not map prefix
__________________
@Jailbreak Main Mod v2.7.0 100%
@User Tag Prefix 100% done !
@Mystery Box 100% done !
@VIP System 100% done !

Natsheh is offline
Send a message via MSN to Natsheh Send a message via Skype™ to Natsheh
marcelowzd
Senior Member
Join Date: Feb 2011
Location: São Paulo, Brazil
Old 03-13-2018 , 21:34   Re: Weirg bug with FM_GetGameDescription
Reply With Quote #7

Quote:
Originally Posted by Natsheh View Post
Well its plugins-mapname.ini not map prefix
No, it does work with prefixes
configs/maps/plugins-hns.ini -> All HNS_ maps
configs/maps/plugins-deathrace.ini -> All DEATHRACE_ maps

As said by AMXX Wiki https://wiki.alliedmods.net/Configur...p_Config_Files
That is what i'm using and the plugins load correctly.
The only problem is related to the gamename as said before.

Last edited by marcelowzd; 03-13-2018 at 21:37.
marcelowzd 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 11:21.


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