How to configure Olympiad?
Forum rules
READ NOW: L2j Forums Rules of Conduct
READ NOW: L2j Forums Rules of Conduct
-
- Posts: 32
- Joined: Thu Dec 04, 2008 7:34 pm
How to configure Olympiad?
One week past but nothing, no hero and etc. can anybode explain that is wrong and how should i edit dor one or 2 weeks?
#Olympiad Properties
#Mon May 25 23:14:20 EEST 2009
CurrentCycle=11
NextWeeklyChange=1243674003117
OlympiadEnd=1243846800863
Period=0
ValdationEnd=0
# Olympiad Weekly Period, Default 1 week
# Default: 604800000
AltOlyWPeriod = 604800000
# Olympiad Validation Period, Default 24 Hours.
# Default: 86400000
AltOlyVPeriod = 86400000
#Olympiad Properties
#Mon May 25 23:14:20 EEST 2009
CurrentCycle=11
NextWeeklyChange=1243674003117
OlympiadEnd=1243846800863
Period=0
ValdationEnd=0
# Olympiad Weekly Period, Default 1 week
# Default: 604800000
AltOlyWPeriod = 604800000
# Olympiad Validation Period, Default 24 Hours.
# Default: 86400000
AltOlyVPeriod = 86400000
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: How to configure Olympiad?
you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 32
- Joined: Thu Dec 04, 2008 7:34 pm
Re: How to configure Olympiad?
i don't understand java decoding.
-
- Posts: 13
- Joined: Fri Mar 06, 2009 11:40 pm
Re: How to configure Olympiad?
janiii wrote:you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
is this setting for making oly for 2 weeks? instead of 1month?
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: How to configure Olympiad?
try and you will see. i did not test the code. is only a hint where the monthly period is set, and where you can change it to 2week period. if it works, you have to test for yourself.
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- L2j Veteran
- Posts: 3437
- Joined: Wed Apr 30, 2008 8:53 am
- Location: Russia
Re: How to configure Olympiad?
After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
public static final int PI = 3.1415926535897932384626433832795;
- Sirpaypi
- Posts: 108
- Joined: Mon May 18, 2009 11:51 pm
- Location: Moяocco.
Re: How to configure Olympiad?
I think the normal time is enough good...
But how we can do it with out editing java files ?
And on epilogue for the committed files it will be like the old one or we have to change them by hands
But how we can do it with out editing java files ?
And on epilogue for the committed files it will be like the old one or we have to change them by hands

Saying that Java is nice because it works on all OSes is like saying that anal sex is nice because it works on all genders.
-
- Posts: 13
- Joined: Fri Mar 06, 2009 11:40 pm
Re: How to configure Olympiad?
_DS_ wrote:After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
this will be really really helpful thnx for even saying this... can't wait to see it posted

-
- Posts: 33
- Joined: Sat Sep 26, 2009 10:37 am
Re: How to configure Olympiad?
I would like to set oly to occur every week. So I guess only one number should be changed in your post. Should I also update some values in config, like weekly change period? Because if I change oly period to one week, then maybe the weekly change will collide with it.janiii wrote:you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
I am still not sure how exactly it works. It is only oly without grand oly? I mean participants fight with each other and at the end of oly period all of the best from every class gets hero status? Am I right here..? (:
-
- Posts: 33
- Joined: Sat Sep 26, 2009 10:37 am
Re: How to configure Olympiad?
do you think you could commit these features now?_DS_ wrote:After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
-
- Posts: 189
- Joined: Mon Oct 05, 2009 4:31 am
Re: How to configure Olympiad?
_DS_ wrote:After epilogue commit i will try to post my old work for olympiad periods, with predefined length:
Month (default), validation one day, 1
2 weeks
1 week (validation on sunday)
3 days (validation 6 hours)
1 day (validation 6 hours, each day)
I am waiting for it

lj2Black Hands : have something en mente + look around + copy +paste + try to improve it :S without knowlege -.-


-
- Posts: 186
- Joined: Fri Apr 13, 2007 1:40 am
- Contact:
Re: How to configure Olympiad?
Does this work to make oly all 2 weeks? Or is there any other way.. using configs maybe?janiii wrote:you can try something like this (add 2 weeks to the current time and set the oly end to a sunday 12am):
//not tested.. be sure your other oly settings are right to this change..
Code: Select all
Index: java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java===================================================================--- java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (revision 3058)+++ java/net/sf/l2j/gameserver/model/olympiad/Olympiad.java (working copy)@@ -822,8 +822,8 @@ Announcements.getInstance().announceToAll(sm); Calendar currentTime = Calendar.getInstance();- currentTime.add(Calendar.MONTH, 1);- currentTime.set(Calendar.DAY_OF_MONTH, 1);+ currentTime.add(Calendar.WEEK_OF_MONTH, 2);+ currentTime.set(Calendar.DAY_OF_WEEK, Calendar.SUNDAY); currentTime.set(Calendar.AM_PM, Calendar.AM); currentTime.set(Calendar.HOUR, 12); currentTime.set(Calendar.MINUTE, 0);
---
L2J = Convert.ToL2J(L2off);
---
L2J = Convert.ToL2J(L2off);
---
-
- Posts: 20
- Joined: Wed Jan 27, 2010 12:20 am
Re: How to configure Olympiad?
hello
i have an olympiad problem.
players can t see the olympiad rank at oly manager.
cause the olympiad_nobles points are not automaticly imported at olympiad_nobles_aom in databse.
is this a kind of bug.?
now i import them manualy by copy/paste.
is any way to make them automatic ?
i have an olympiad problem.
players can t see the olympiad rank at oly manager.
cause the olympiad_nobles points are not automaticly imported at olympiad_nobles_aom in databse.
is this a kind of bug.?
now i import them manualy by copy/paste.
is any way to make them automatic ?
- janiii
- L2j Veteran
- Posts: 4269
- Joined: Wed May 28, 2008 3:15 pm
- Location: Slovakia
Re: How to configure Olympiad?
no need to post in different topics.
what is your config AltOlyShowMonthlyWinners ?
what is your config AltOlyShowMonthlyWinners ?
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
forum flOOder dancing dEVILoper ♀
I don't give private support - PM will be ignored!
-
- Posts: 20
- Joined: Wed Jan 27, 2010 12:20 am
Re: How to configure Olympiad?
soz for double postjaniii wrote:no need to post in different topics.
what is your config AltOlyShowMonthlyWinners ?
i am talking about the rank that must be refreshed every day , so players can check their rank.
AltOlyShowMonthlyWinners = True
i have seted this true.