Raised This Month: $ Target: $400
 0% 

[TF2] Force Holidays - 1.10.2, Updated 2015-10-07


Post New Thread Reply   
 
Thread Tools Display Modes
Professor Chaos
Junior Member
Join Date: Nov 2011
Location: The People's Republic of
Old 11-10-2011 , 18:41   Re: [TF2] Force Holidays
Reply With Quote #31

I have installed your plugin, and It doesn't seem to do anything.

I am using sourcemod 1.4.1-hg3438.

There aren't any errors, but no changes to the holidays.

I added the convars tfh_enabled 1; tfh_birthday 1 and tfh_halloween -1 to my server config.

Any idea as to why or what I may be doing wrong?
__________________
Professor Chaos is offline
FlaminSarge
Veteran Member
Join Date: Jul 2010
Old 11-14-2011 , 08:38   Re: [TF2] Force Holidays
Reply With Quote #32

Powerlord, just to let you know, this should work on any version of sourcemod at or above 1.4 release. The bug was that the doc for the holiday forward said that any value above Plugin_Continue would result in the value being changed, whereas 1.4 release would only change the value if Plugin_Changed was returned. Since this uses Plugin_Changed anyways, it'll work on 1.4 release perfectly.
__________________
Bread EOTL GunMettle Invasion Jungle Inferno 64-bit will break everything. Don't even ask.

All plugins: Randomizer/GiveWeapon, ModelManager, etc.
Post in plugin threads with questions.
Steam is for playing games.
You will be fed to javalia otherwise.
Psyduck likes replays.
FlaminSarge is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-14-2011 , 09:56   Re: [TF2] Force Holidays
Reply With Quote #33

Quote:
Originally Posted by FlaminSarge View Post
Powerlord, just to let you know, this should work on any version of sourcemod at or above 1.4 release. The bug was that the doc for the holiday forward said that any value above Plugin_Continue would result in the value being changed, whereas 1.4 release would only change the value if Plugin_Changed was returned. Since this uses Plugin_Changed anyways, it'll work on 1.4 release perfectly.
No it won't, because the values for TFHoliday were all off by one in the 1.4.0 release. This is mentioned near the bottom of bug 5155, or in the eeeenum diff attached to said bug.

More specifically, in 1.4.0 the holidays have the following values:
Code:
TFHoliday_None = 1
TFHoliday_Birthday = 2
TFHoliday_Halloween = 3
TFHoliday_FullMoon = 4
TFHoliday_HalloweenOrFullMoon = 5
In 1.4.1 build 3432 and newer, they have the following values:
Code:
TFHoliday_Birthday = 1
TFHoliday_Halloween = 2
TFHoliday_FullMoon = 3
TFHoliday_HalloweenOrFullMoon = 4
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-14-2011 at 16:26. Reason: Was looking up the build number when the forums and Bugzilla went down earlier
Powerlord is offline
Xtreme2damax
Junior Member
Join Date: Nov 2011
Old 11-16-2011 , 12:32   Re: [TF2] Force Holidays
Reply With Quote #34

Is there anything we need to type into the console to make this work. It keeps saying tfh_halloween 1 is not a valid command when I type it into the console. I am new to running a server and just installed the latest dev build of sourcemod 1.4.1, sdkhooks 2.1, latest TF2 items and this plugin. I verified that sourcemod is indeed working, however I can not figure out what to do with this plugin.
Xtreme2damax is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-16-2011 , 12:53   Re: [TF2] Force Holidays
Reply With Quote #35

Quote:
Originally Posted by Xtreme2damax View Post
Is there anything we need to type into the console to make this work. It keeps saying tfh_halloween 1 is not a valid command when I type it into the console. I am new to running a server and just installed the latest dev build of sourcemod 1.4.1, sdkhooks 2.1, latest TF2 items and this plugin. I verified that sourcemod is indeed working, however I can not figure out what to do with this plugin.
Can you do an sm plugins list?
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Xtreme2damax
Junior Member
Join Date: Nov 2011
Old 11-16-2011 , 16:12   Re: [TF2] Force Holidays
Reply With Quote #36

Quote:
Originally Posted by Powerlord View Post
Can you do an sm plugins list?
Here's the list:

] sm plugins list
"Admin File Reader" (1.4.1-dev) by AlliedModders LLC
"Admin Help" (1.4.1-dev) by AlliedModders LLC
"Admin Menu" (1.4.1-dev) by AlliedModders LLC
"Anti-Flood" (1.4.1-dev) by AlliedModders LLC
"Basic Ban Commands" (1.4.1-dev) by AlliedModders LLC
"Basic Chat" (1.4.1-dev) by AlliedModders LLC
"Basic Comm Control" (1.4.1-dev) by AlliedModders LLC
"Basic Commands" (1.4.1-dev) by AlliedModders LLC
"Basic Info Triggers" (1.4.1-dev) by AlliedModders LLC
"Basic Votes" (1.4.1-dev) by AlliedModders LLC
To see more, type "sm plugins 11"
Current map is koth_viaduct_event
Current map is koth_viaduct_event
] sm plugins 11
"[TF2] Be the Horsemann" (1.1) by FlaminSarge
"Client Preferences" (1.4.1-dev) by AlliedModders LLC
"Fun Commands" (1.4.1-dev) by AlliedModders LLC
"Fun Votes" (1.4.1-dev) by AlliedModders LLC
"[TF2] Monoculus Spawner" (1.1.1) by DarthNinja
"[TF2] gScramble Team Manager" (3.0.11) by Goerge
"Nextmap" (1.4.1-dev) by AlliedModders LLC
"Player Commands" (1.4.1-dev) by AlliedModders LLC
"Reserved Slots" (1.4.1-dev) by AlliedModders LLC
"Sound Commands" (1.4.1-dev) by AlliedModders LLC
"Spray Tracer" (5.8a) by Nican132, CptMoore, Lebson506th
To see more, type "sm plugins 22"
] sm plugins 22
"Spy Talk" (1.0.2) by Xsinthis`
"TF2B In-game Backpack Viewer" (1.0) by n00berific
"[TF2Items] Manager" (1.4.1) by Damizean & Asherkin
"TF Force Holidays" (1.3) by Powerlord

Is there any way to tell if the plugin is working, am I supposed to type any commands into the console?

Also here the sourcemod/metamod versions and other info by typing in the meta list command:

meta list
[01] Mani Admin Plugin (1.2.22.8 SMM) by Mani
[02] SourceMod (1.4.1-dev) by AlliedModders LLC
[03] TF2Items (1.5.2) by Asherkin & AzuiSleet & Damizean
[04] TF2 Tools (1.4.1-dev) by AlliedModders LLC
[05] SDK Tools (1.4.1-dev) by AlliedModders LLC
Xtreme2damax is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-16-2011 , 16:21   Re: [TF2] Force Holidays
Reply With Quote #37

Quote:
Originally Posted by Xtreme2damax View Post
Here's the list:

] sm plugins list
[snip]
"TF Force Holidays" (1.3) by Powerlord

Is there any way to tell if the plugin is working, am I supposed to type any commands into the console?
Well, the plugin appears to be loaded, that's a start.

When you said you're typing it into the console, were you referring to the server console, client console, or the client chat area?

The server console is usually a text window running on the server machine. You can also run commands on it using the rcon command (you have to set rcon_password in your client console first).

For instance:
Code:
rcon_password "password"
rcon tfh_halloween 1
would turn on Halloween mode if your server used "password" as its rcon password.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-16-2011 at 16:22.
Powerlord is offline
Xtreme2damax
Junior Member
Join Date: Nov 2011
Old 11-16-2011 , 16:38   Re: [TF2] Force Holidays
Reply With Quote #38

This is running locally on my machine so it would be the ingame console on the server that displays by pressing the tilde (~) key.

I've only tried joining the server, no one else has joined it yet. I have to type "rcon" before entering the command? That may be why, I report back if that's why the command wasn't working.

:Edit: By typing rcon tfh_halloween 1 I get the following message:

L 11/16/2011 - 16:417: server_cvar: "tfh_halloween" "1"
ConVarRef tfh_halloween doesn't point to an existing ConVar.
SetConVar: No such cvar ( tfh_halloween set to 1), skipping

Last edited by Xtreme2damax; 11-16-2011 at 16:46.
Xtreme2damax is offline
psychonic

BAFFLED
Join Date: May 2008
Old 11-16-2011 , 23:02   Re: [TF2] Force Holidays
Reply With Quote #39

Quote:
Originally Posted by Xtreme2damax View Post
ConVarRef tfh_halloween doesn't point to an existing ConVar.
SetConVar: No such cvar ( tfh_halloween set to 1), skipping
That's do to FCVAR_REPLICATED being on the cvars. (it doesn't need to be there). The server is trying to replicate the value to the client, which then errors because the cvar doesn't exist on the client.
psychonic is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 11-16-2011 , 23:33   Re: [TF2] Force Holidays
Reply With Quote #40

Quote:
Originally Posted by psychonic View Post
That's do to FCVAR_REPLICATED being on the cvars. (it doesn't need to be there). The server is trying to replicate the value to the client, which then errors because the cvar doesn't exist on the client.
I always get FCVAR_NOTIFY and FCVAR_REPLICATED mixed up. I suppose I should remove replicated.

Anyway:
Released 1.3.1 to fix the extraneous FCVAR_REPLICATED flag, which was causing warnings like "ConVarRef tfh_halloween doesn't point to an existing ConVar.
SetConVar: No such cvar ( tfh_halloween set to 1), skipping" to appear.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 11-16-2011 at 23:39.
Powerlord 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 10:40.


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