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

SM Nextmap Info - Countdown and MapEnd - GunGame Support


Post New Thread Reply   
 
Thread Tools Display Modes
nbtc971
Senior Member
Join Date: Sep 2008
Old 04-11-2009 , 13:03   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #21

This doesn't work with HL2:CTF
nbtc971 is offline
nbtc971
Senior Member
Join Date: Sep 2008
Old 04-11-2009 , 20:30   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #22

Can someone make this work in the HL2CTF mod? Here is the error I'm getting...

Code:
L 04/11/2009 - 13:02:39: [SM] Native "HookConVarChange" reported: Invalid convar handle 0 (error 4)
L 04/11/2009 - 13:02:39: [SM] Displaying call stack trace for plugin "sm_nextmapinfo.smx":
L 04/11/2009 - 13:02:39: [SM]   [0]  Line 110, C:\Programme\Steam\steamapps\swat_88\source dedicated server\cstrike\addons\sourcemod\scripting\sm_nextmapinfo.sp::OnPluginStart()
There is no really nextmap feature for CTF because the sourcemod basic nextmap plugin causes CTF to not be able to rotate maps properly which meant I had to put it in the disabled directory, so this plugin would be a big help. Thanks.
nbtc971 is offline
nbtc971
Senior Member
Join Date: Sep 2008
Old 04-12-2009 , 22:46   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #23

Ok.. can someone just tell me how to do it so I can fix it?
nbtc971 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-15-2009 , 15:42   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #24

Quote:
Originally Posted by nbtc971 View Post
Ok.. can someone just tell me how to do it so I can fix it?
Sorry, I have reinstalled my operating system, therefore I was offline.

Just delete these lines:
Code:
    HookConVarChange(g_restartgame, CvarChange_RestartGame);
    HookConVarChange(g_timelimit,CvarChange_Timelimit);
Line number: 110 and 111.

Afterwards recompile it.
The plugin works with this, just without CvarChange Handling.
Just reload plugin after changing a convar.

Have Fun.
__________________
SWAT_88 is offline
nbtc971
Senior Member
Join Date: Sep 2008
Old 04-24-2009 , 17:01   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #25

Sorry this is the first time i've checked this in a couple of weeks. Thanks for the reply. I will give it a shot this weekend and report back here.
nbtc971 is offline
nbtc971
Senior Member
Join Date: Sep 2008
Old 04-29-2009 , 00:57   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #26

Ok it does the countdown until map change, but it's not ever printing out the next map to be played.

Quote:
sm_nextmapinfo_enabled "1" //- 0: disables the plugin - 1: enables the plugin
sm_nextmapinfo_loop "1" //- x: How often the message should be repeated. SideNote: Only available if msgtype = chat.
sm_nextmapinfo_roundend "0" //- 1: Displays the message after the last round OR after GunGame Ends - 0: Displays the message after the time expires.
sm_nextmapinfo_msgtype "1" //- MsgType for Nextmap Msg - 0: disable - 1: Chat - 2: Panel - 3: BottomCenter - 4: left upper corner
sm_nextmapinfo_ctype "3" //- MsgType for Countdown - 0: disable - 1: Chat - 2: Panel - 3: BottomCenter
sm_nextmapinfo_countdown "1" //- 0: disables the countdown - 1: enables it. SideNote: Use exec 1 or teame06's EnforceTheTimeLimit, otherwise this option makes no sense ...
sm_nextmapinfo_exec "1" //- 0: don't execute MapEnd after time expired - 1: execute MapEnd after time expired. - Use roundend 1, otherwise you get no msg.
sm_timeleft_interval "60.0" //Display timeleft every x seconds.
I tried many settings and the message for next map never appears.

Last edited by nbtc971; 04-29-2009 at 01:28. Reason: update
nbtc971 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 04-30-2009 , 16:55   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #27

Quote:
Originally Posted by nbtc971 View Post
Ok it does the countdown until map change, but it's not ever printing out the next map to be played.

I tried many settings and the message for next map never appears.
If this is your current config, you made a mistake:
Quote:
sm_nextmapinfo_enabled "1" //- 0: disables the plugin - 1: enables the plugin
sm_nextmapinfo_loop "1" //- x: How often the message should be repeated. SideNote: Only available if msgtype = chat.
sm_nextmapinfo_roundend "0" //- 1: Displays the message after the last round OR after GunGame Ends - 0: Displays the message after the time expires.
sm_nextmapinfo_msgtype "1" //- MsgType for Nextmap Msg - 0: disable - 1: Chat - 2: Panel - 3: BottomCenter - 4: left upper corner
sm_nextmapinfo_ctype "3" //- MsgType for Countdown - 0: disable - 1: Chat - 2: Panel - 3: BottomCenter
sm_nextmapinfo_countdown "1" //- 0: disables the countdown - 1: enables it. SideNote: Use exec 1 or teame06's EnforceTheTimeLimit, otherwise this option makes no sense ...
sm_nextmapinfo_exec "1" //- 0: don't execute MapEnd after time expired - 1: execute MapEnd after time expired. - Use roundend 1, otherwise you get no msg.
sm_timeleft_interval "60.0" //Display timeleft every x seconds.
Good luck!
__________________
SWAT_88 is offline
nbtc971
Senior Member
Join Date: Sep 2008
Old 05-01-2009 , 12:09   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #28

No.. I tried it with that setting. I tried it with many, many settings. The msg doesn't run. Sorry, I should of pasted the config with sm_nextmapinfo_roundend set to 1. I promise I tried it.

Last edited by nbtc971; 05-01-2009 at 12:12.
nbtc971 is offline
SWAT_88
SourceMod Donor
Join Date: Jan 2008
Location: Austria
Old 05-02-2009 , 08:18   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #29

Quote:
Originally Posted by nbtc971 View Post
Can someone make this work in the HL2CTF mod? Here is the error I'm getting...

Code:
L 04/11/2009 - 13:02:39: [SM] Native "HookConVarChange" reported: Invalid convar handle 0 (error 4)
L 04/11/2009 - 13:02:39: [SM] Displaying call stack trace for plugin "sm_nextmapinfo.smx":
L 04/11/2009 - 13:02:39: [SM]   [0]  Line 110, C:\Programme\Steam\steamapps\swat_88\source dedicated server\cstrike\addons\sourcemod\scripting\sm_nextmapinfo.sp::OnPluginStart()
There is no really nextmap feature for CTF because the sourcemod basic nextmap plugin causes CTF to not be able to rotate maps properly which meant I had to put it in the disabled directory, so this plugin would be a big help. Thanks.
I looked at the message again, it means that HL2CTF does not have the mp_restartgame convar.

I also noticed that:
Code:
    HookConVarChange(g_restartgame, CvarChange_RestartGame);
    HookConVarChange(g_timelimit,CvarChange_Timelimit);
are important.

Your error occur on line 110. Try only delete line 110.

Good Luck.
__________________
SWAT_88 is offline
nbtc971
Senior Member
Join Date: Sep 2008
Old 05-04-2009 , 10:18   Re: SM Nextmap Info - Countdown and MapEnd - GunGame Support
Reply With Quote #30

I will try this tonight.. thanks.
nbtc971 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:48.


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