Raised This Month: $51 Target: $400
 12% 

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


Post New Thread Reply   
 
Thread Tools Display Modes
xomp
BANNED
Join Date: Jul 2008
Old 05-23-2012 , 14:11   Re: [TF2] Force Holidays - Updated 2011-12-16/21
Reply With Quote #101

Quote:
Originally Posted by Powerlord View Post
Good question. I haven't tested it recently to see if it does.
Turns out it doesn't :/
xomp is offline
Send a message via Skype™ to xomp
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-27-2012 , 05:24   Re: [TF2] Force Holidays - Updated 2011-12-16/21
Reply With Quote #102

So, it turns out that, if you have tfh_halloween 1 set before you change to koth_viaduct_event, Monoculus will correctly spawn. As will the HHH for cp_manor_event. However, this may only work if the map ends normally (as opposed to rtv). Note: by the time server.cfg, cp_manor_event.cfg, or koth_viaduct_event.cfg are executed, it's too late... the holiday check has already been done.

Having said that, the game crashed as soon as I captured the point on Viaduct; the ghosts that appear when the point is captured weren't being precached. I also added some of the missing sounds to the precache list.
Attached Files
File Type: sp Get Plugin or Get Source (tfforceholidays.sp - 397 views - 7.2 KB)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-27-2012 at 05:31.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-27-2012 , 17:51   Re: [TF2] Force Holidays - Updated 2012-06-27
Reply With Quote #103

Wow, 1.4.1 was yesterday and today I'm bringing out 1.5.0.

New in this version:
  • Updater support (untested, since this is the first version with it)
  • Now loads addons/sourcemod/configs/halloween_maps.txt on startup. Any maps listed in this file will always have Halloween mode enabled.
    • This is to fix issues with the HHH and Monoculus not loading on Mann Manor and Eyeaduct when tfh_halloween 1 is set in their map configs. I have tested this, and it does work.
    • Currently, only cp_manor_event and koth_viaduct_event are listed in this file; koth_harvest_event was intentionally left off, as it loads properly with tfh_halloween 1.
Attached Files
File Type: txt halloween_maps.txt (36 Bytes, 167 views)
File Type: smx tfforceholidays.smx (5.2 KB, 153 views)
File Type: sp Get Plugin or Get Source (tfforceholidays.sp - 144 views - 9.0 KB)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-27-2012 at 17:53.
Powerlord is offline
SlimeCounty
SourceMod Donor
Join Date: Jun 2011
Old 06-28-2012 , 17:14   Re: [TF2] Force Holidays - 1.5.0, Updated 2012-06-28
Reply With Quote #104

Having an issue with tfh_halloween 2 here.

tfh_birthday 1
tfh_halloween 2
tfh_winter 1

We can use the winter and birthday noisemakers,
the birthday health packs and ammo show up just fine,
but the halloween specific costumes aren't showing up.

This started after last nights update, I realized that you updated to 1.5 so I just updated to 1.5 and restarted the server, still the same problem. Everything else is working smoothly, but the halloween specific items just aren't there.

Please let me know if you're experiencing a similar issue, and let me know if there's any other info I can give to help address this issue.
__________________
SlimeCounty is offline
dave_with_beer_bottle
Senior Member
Join Date: Jul 2009
Old 06-28-2012 , 17:44   Re: [TF2] Force Holidays - 1.5.0, Updated 2012-06-28
Reply With Quote #105

yup same here, it works with birthday haven't tried winter but for the hween - costumes don't work
dave_with_beer_bottle is offline
Helvetica
Senior Member
Join Date: Nov 2011
Location: U.S.
Old 06-28-2012 , 18:53   Re: [TF2] Force Holidays - 1.5.0, Updated 2012-06-28
Reply With Quote #106

Quote:
Originally Posted by SlimeCounty View Post
Having an issue with tfh_halloween 2 here.

tfh_birthday 1
tfh_halloween 2
tfh_winter 1

We can use the winter and birthday noisemakers,
the birthday health packs and ammo show up just fine,
but the halloween specific costumes aren't showing up.

This started after last nights update, I realized that you updated to 1.5 so I just updated to 1.5 and restarted the server, still the same problem. Everything else is working smoothly, but the halloween specific items just aren't there.

Please let me know if you're experiencing a similar issue, and let me know if there's any other info I can give to help address this issue.
Also confirming this, everything works except Halloween costumes.
Helvetica is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-28-2012 , 19:58   Re: [TF2] Force Holidays - 1.5.0, Updated 2012-06-28
Reply With Quote #107

Chances are Valve broke it with the latest update. I noticed they added a new Holiday-related event, so they likely changed the signatures SourceMod uses for holiday-related functions.
__________________
Not currently working on SourceMod plugin development.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-28-2012 , 20:49   Re: [TF2] Force Holidays - 1.5.0, Updated 2012-06-28
Reply With Quote #108

It appears that holidays are now calculated once and cached... and I only saw (on server start) checks for Halloween and Birthday go by.... Christmas and Full Moon did not.

Filed Bug 5364 on the SourceMod bug tracker.

Side note: firing the recalculate_holidays event didn't do anything.
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-28-2012 at 20:50.
Powerlord is offline
Powerlord
AlliedModders Donor
Join Date: Jun 2008
Location: Seduce Me!
Old 06-29-2012 , 15:55   Re: [TF2] Force Holidays - 1.5.0, Updated 2012-06-28
Reply With Quote #109

There's a new Holiday named MeetThePyro holiday in Valve's code:

Code:
.data.rel.ro:01005890 _ZL15s_HolidayChecks dd offset _ZL19g_Holiday_NoHoliday, offset _ZL21g_Holiday_TF2Birthday
.data.rel.ro:01005890                 dd offset _ZL19g_Holiday_Halloween, offset _ZL19g_Holiday_Christmas
.data.rel.ro:01005890                 dd offset _ZL21g_Holiday_MeetThePyro, offset _ZL18g_Holiday_FullMoon
.data.rel.ro:01005890                 dd offset _ZL29g_Holiday_HalloweenOrFullMoon
I've edited my local addons/sourcemod/scripting/include/tf2.inc to modify the TFHoliday enum to be like this:
PHP Code:
enum TFHoliday
{
    
TFHoliday_Birthday 1,
    
TFHoliday_Halloween,
    
TFHoliday_Christmas,
    
TFHoliday_MeetThePyro,
    
TFHoliday_FullMoon,
    
TFHoliday_HalloweenOrFullMoon,
}; 
As you can see, this bumps FullMoon and HalloweenOrFullMoon both down by 1, which may have caused the issue you guys are seeing with costumes not working.

Try this version and see if it works... it's just 1.5.0 recompiled with my new tf2.inc.

Edit: If you're using updater, it probably auto-updated you to the new version, because I accidentally left the old version named 1.5 beta1 and I just put the new version on the updater site.
Attached Files
File Type: smx tfforceholidays.smx (5.2 KB, 164 views)
File Type: sp Get Plugin or Get Source (tfforceholidays.sp - 155 views - 9.0 KB)
__________________
Not currently working on SourceMod plugin development.

Last edited by Powerlord; 06-29-2012 at 16:13.
Powerlord is offline
Horsedick
AlliedModders Donor
Join Date: Sep 2011
Old 06-29-2012 , 16:29   Re: [TF2] Force Holidays - 1.5.0, Updated 2012-06-28
Reply With Quote #110

Quote:
Originally Posted by Powerlord View Post
Try this version and see if it works... it's just 1.5.0 recompiled with my new tf2.inc.

Edit: If you're using updater, it probably auto-updated you to the new version, because I accidentally left the old version named 1.5 beta1 and I just put the new version on the updater site.
is the new tf2.inc updated in latest snapshot?
Horsedick 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 16:12.


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