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

Real time synchronization for mapcycle


Post New Thread Reply   
 
Thread Tools Display Modes
Author Message
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-29-2017 , 14:41   Real time synchronization for mapcycle
Reply With Quote #1

As the title says, would it be possible to make the map cycle change according to the time of the day of the area where the server is hosted?
This way I could make the most "popular" maps have different versions, day and night.
For example, until 5 PM, the plugin would incluce de_inferno in the mapcycle, and after that, until the next day, de_inferno_night would be loaded.
__________________
Obyboby is offline
SZOKOZ
Member
Join Date: Jan 2014
Old 12-29-2017 , 17:38   Re: Real time synchronization for mapcycle
Reply With Quote #2

It's possible. Now what do you want to do from here? ( ͡ຈ ͜ʖ ͡ຈ)
__________________
May still be available for SM scripting. Just look at my Steam profile regarding my availability.
My Steam
SZOKOZ is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-29-2017 , 21:51   Re: Real time synchronization for mapcycle
Reply With Quote #3

Quote:
Originally Posted by SZOKOZ View Post
It's possible. Now what do you want to do from here? ( ͡ຈ ͜ʖ ͡ຈ)
If anyone likes the idea, it would be nice to have a plugin written please.
Not sure if it's an easy one.
__________________
Obyboby is offline
asherkin
SourceMod Developer
Join Date: Aug 2009
Location: OnGameFrame()
Old 12-30-2017 , 09:11   Re: Real time synchronization for mapcycle
Reply With Quote #4

There are quite a few “cron” plugins around, just use one to change the mapcyclefile cvar.
__________________
asherkin is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 12-30-2017 , 10:06   Re: Real time synchronization for mapcycle
Reply With Quote #5

Quote:
Originally Posted by asherkin View Post
There are quite a few “cron” plugins around, just use one to change the mapcyclefile cvar.
Something like this could be used?
__________________
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 01-04-2018 , 14:17   Re: Real time synchronization for mapcycle
Reply With Quote #6

That plugin should work but it seems Valve has removed the option to select a specific mapcyclefile since CS:GO. SO...im not even sure I can manage to get that plugin to do the job :C
__________________
Obyboby is offline
vortex.
AlliedModders Donor
Join Date: Jan 2017
Location: OnGameFrame()
Old 01-04-2018 , 14:34   Re: Real time synchronization for mapcycle
Reply With Quote #7

You can make like this;

1- Hook map end event.
2- Check time.
3- Get map for time.
4- Finally, open map.

If the idea is ok for u, I can make this for u
__________________
vortex. is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 01-04-2018 , 14:52   Re: Real time synchronization for mapcycle
Reply With Quote #8

Quote:
Originally Posted by vortex. View Post
You can make like this;

1- Hook map end event.
2- Check time.
3- Get map for time.
4- Finally, open map.

If the idea is ok for u, I can make this for u
We need to consider that the next map is chosen at half time.
So the plugin would have to:

- Check time
- If time of the day has indeed changed, then check map
- If map has a day/night version, set accordingly.

For example:

- It's day time in real life. (at the server time zone)
- Current map dust2.
- Half time, vote starts, de_inferno is chosen.
- Map end, plugin checks time.
- It's now night time (for example, 6 PM)
- Plugin should change from "sm_nextmap de_inferno" to "sm_nextmap de_inferno_night"

.. And so on.

How does that sound? ez or too confused as a logic?

In the future, seasons could be added (spring/summer/fall/winter) allowing for an awesome mapcycle throughout the year for the server :Q______


EDIT: I read your post again and yeah, that seems the right approach to be honest. I just added some ideas in this post
Would your plugin be standalone? I mean do u plan to release a plugin just for this? It would be nice.
__________________

Last edited by Obyboby; 01-04-2018 at 15:08.
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 01-05-2018 , 13:17   Re: Real time synchronization for mapcycle
Reply With Quote #9

Hello.
So I am trying out Ultimate Map Chooser and it seems that a time limit feature is already available there!
I am currently trying to set de_inferno_night to be visible in the vote right now (it's 7 PM here) let's see if I got it right.
This would mean I don't need a new plugin for all this (I guess...)
Let's see.
__________________
Obyboby is offline
Obyboby
Veteran Member
Join Date: Sep 2013
Old 01-06-2018 , 12:46   Re: Real time synchronization for mapcycle
Reply With Quote #10

Sorry for triple post. Just bumping to report back.

Yes, I can confirm that Ultimate Map chooser allows me to achieve what I wanted in this thread.
I've set the night maps to appear in mapvotes after 6 PM until 6 AM.
Now it's time to learn how to make maps, and I will be more than happy to create a dawn/noon/night version of each of the maps we play on my server. It's gonna be cool
Thanks
__________________
Obyboby 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 14:08.


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