How to configure Olympiad?

Support for the latest build of L2J Server, get help here with installations, upgrades, problems.
Do not post bugs reports here, use viewforum.php?f=77 instead.
There is no support for other server builds than the official provided by l2jserver.com
Forum rules
READ NOW: L2j Forums Rules of Conduct
detunius
Posts: 32
Joined: Thu Dec 04, 2008 7:34 pm

How to configure Olympiad?

Post by detunius »

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
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: How to configure Olympiad?

Post by janiii »

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);
DO NOT EVEN TRY TO MESS WITH ME!
forum flOOder dancing dEVILoper
I don't give private support - PM will be ignored!
detunius
Posts: 32
Joined: Thu Dec 04, 2008 7:34 pm

Re: How to configure Olympiad?

Post by detunius »

i don't understand java decoding.
weststylaz
Posts: 13
Joined: Fri Mar 06, 2009 11:40 pm

Re: How to configure Olympiad?

Post by weststylaz »

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?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: How to configure Olympiad?

Post by janiii »

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!
_DS_
L2j Veteran
L2j Veteran
Posts: 3437
Joined: Wed Apr 30, 2008 8:53 am
Location: Russia

Re: How to configure Olympiad?

Post by _DS_ »

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)
Commiter of the shit
public static final int PI = 3.1415926535897932384626433832795;
User avatar
Sirpaypi
Posts: 108
Joined: Mon May 18, 2009 11:51 pm
Location: Moяocco.

Re: How to configure Olympiad?

Post by Sirpaypi »

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 :roll:
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.
weststylaz
Posts: 13
Joined: Fri Mar 06, 2009 11:40 pm

Re: How to configure Olympiad?

Post by weststylaz »

_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 :D
BlinK_
Posts: 33
Joined: Sat Sep 26, 2009 10:37 am

Re: How to configure Olympiad?

Post by BlinK_ »

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 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.

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..? (:
Image
BlinK_
Posts: 33
Joined: Sat Sep 26, 2009 10:37 am

Re: How to configure Olympiad?

Post by BlinK_ »

_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)
do you think you could commit these features now?
Image
NoX
Posts: 189
Joined: Mon Oct 05, 2009 4:31 am

Re: How to configure Olympiad?

Post by NoX »

_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 :D
lj2Black Hands : have something en mente + look around + copy +paste + try to improve it :S without knowlege -.-

Image
gio
Posts: 186
Joined: Fri Apr 13, 2007 1:40 am
Contact:

Re: How to configure Olympiad?

Post by gio »

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);
Does this work to make oly all 2 weeks? Or is there any other way.. using configs maybe?
---
L2J = Convert.ToL2J(L2off);
---
ramms
Posts: 20
Joined: Wed Jan 27, 2010 12:20 am

Re: How to configure Olympiad?

Post by ramms »

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 ?
User avatar
janiii
L2j Veteran
L2j Veteran
Posts: 4269
Joined: Wed May 28, 2008 3:15 pm
Location: Slovakia

Re: How to configure Olympiad?

Post by janiii »

no need to post in different topics.

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!
ramms
Posts: 20
Joined: Wed Jan 27, 2010 12:20 am

Re: How to configure Olympiad?

Post by ramms »

janiii wrote:no need to post in different topics.

what is your config AltOlyShowMonthlyWinners ?
soz for double post

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.
Post Reply