Interlude buff duration in the core

Find the proper support area, Saga-Version.
Forum rules
READ NOW: L2j Forums Rules of Conduct
Post Reply
Naminator_X_
Posts: 39
Joined: Thu Jun 10, 2010 9:06 am

Interlude buff duration in the core

Post by Naminator_X_ »

Hello there.
I was planning to start a new interlude server based on the sources in L2J/branches/L2_GameServer_IT
I modded most of my stuff chances mechanics etc but now there comes a time to adjust the buff durations.

I know i can do it from the datapack BUT imho this is "too complex". What do i mean with this is that i have to first find the id then locate the appropriate file and do whatever i have to do.

Anyway i started up. Create a buff config file which includes list of IDs and the required duration of the buff
It is included. The hashmap is full with key/val pairs of skillId/duration

So the question is ... where in the code the server adjusts the duration ? Which file i have to edit ?
What i want to do is to check whether the buff i'm receiving is in the modified hashtable. If it is to use the modified buff duration if not to use the specified buff duraion in the xml file.

Thanks for any help
User avatar
Tryskell
Posts: 256
Joined: Wed Nov 25, 2009 5:57 pm
Location: France :)

Re: Interlude buff duration in the core

Post by Tryskell »

There are 3rd party softwares which does that work, you know.

I won't tell any name, but search on gaming community forums.
Naminator_X_
Posts: 39
Joined: Thu Jun 10, 2010 9:06 am

Re: Interlude buff duration in the core

Post by Naminator_X_ »

I do not want any 3rd parties. I want to do it in the core so i can easily customize it later even remotely.
szmjaso
Posts: 16
Joined: Mon Nov 24, 2008 11:52 am

Re: Interlude buff duration in the core

Post by szmjaso »

You want one config for all buff times?
horato
Posts: 90
Joined: Sun Aug 31, 2008 1:45 am

Re: Interlude buff duration in the core

Post by horato »

There is no config for this, you have to do it manually
szmjaso
Posts: 16
Joined: Mon Nov 24, 2008 11:52 am

Re: Interlude buff duration in the core

Post by szmjaso »

There is no problem to add config for this. It can be used during skills load procedure.
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Interlude buff duration in the core

Post by jurchiks »

But it would be unreasonable to set one duration for all buffs; there is a reason for some buff durations to be lower than other.
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
Naminator_X_
Posts: 39
Joined: Thu Jun 10, 2010 9:06 am

Re: Interlude buff duration in the core

Post by Naminator_X_ »

Yes @jurchiks.
I'll explain. I created a new config file named buffs.propeties. In this file i have string in this form
SomeVariable=skillID,duration;skillId,duration

I parse this file and create a HashMap<skillID, duration> for later use. There is also an option if should i use the alternative buff times.

I think i found which file to edit but to be honest i don't have time look into it. Too much stuff going on at work but that's crap which i shouldn't bother you with.

One oher thing concerns me. Security !
How good is the legacy L2J Interlude branch ? Cuz i've seen some IL forks but i don't trust them as much as i trust L2J. What is your suggestion on making a legacy server ? Should i use some IL fork pack or stick with L2J ? As it apears ... having fork L2J Interlude has the same support as a L2J legacy :D mostly because there is only 1-2 devs who doesn't give a shit about some things
User avatar
jurchiks
Posts: 6769
Joined: Sat Sep 19, 2009 4:16 pm
Location: Eastern Europe

Re: Interlude buff duration in the core

Post by jurchiks »

all of those l2j interlude forks are based on L2J (well, 99% of them, there are a few very rare gems that were forked at C4 or earlier and developed as stand-alone up to IL).
If you have problems, FIRST TRY SOLVING THEM YOURSELF, and if you get errors, TRY TO ANALYZE THEM, and ONLY if you can't help it, THEN ask here.
Otherwise you will never learn anything if all you do is copy-paste!
Discussion breeds innovation.
User avatar
Tryskell
Posts: 256
Joined: Wed Nov 25, 2009 5:57 pm
Location: France :)

Re: Interlude buff duration in the core

Post by Tryskell »

Naminator_X_ wrote:Yes @jurchiks.
I'll explain. I created a new config file named buffs.propeties. In this file i have string in this form
SomeVariable=skillID,duration;skillId,duration

I parse this file and create a HashMap<skillID, duration> for later use. There is also an option if should i use the alternative buff times.

I think i found which file to edit but to be honest i don't have time look into it. Too much stuff going on at work but that's crap which i shouldn't bother you with.

One oher thing concerns me. Security !
How good is the legacy L2J Interlude branch ? Cuz i've seen some IL forks but i don't trust them as much as i trust L2J. What is your suggestion on making a legacy server ? Should i use some IL fork pack or stick with L2J ? As it apears ... having fork L2J Interlude has the same support as a L2J legacy :D mostly because there is only 1-2 devs who doesn't give a shit about some things
L2J IL is plain broken, that does 6 months I work on my pack using freya to refactor it, and there is like 70% of work to do.

All forks miss many things, basically near all AIs aren't retail for one penny, whatever you search you won't find any retail thing (even on current L2J). Some C1 features are missing (the fact skills aggro mobs has never been implemented, siegable CH are on "beta test" since 6 months but none dare to give a shit too, etc). I don't even talk of mobs stats, droplists and so on.

If your way is to make a server, you don't have to make configs at all. Changing directly on XML is by far the easiest solution (and the less bigger in term of consumption too).

You can just add a float multiplier config if you want to change all behaviors in a unique way (x1.5, x2, and so on). You put it at 1.0 and tadam don't even need a on/off switch.
Naminator_X_
Posts: 39
Joined: Thu Jun 10, 2010 9:06 am

Re: Interlude buff duration in the core

Post by Naminator_X_ »

Nah. Already edited it in the core and it seems to work so far. I was planning to use your pack although i've done plenty of custom work on my server files and its just that. You refactored huge part of the code and my changes are not compatible and due to my limited free time to work on it ... it's a deal breaker. Also I've seen some negative comments about your pack being the platform for high rate server. But we'll see. There is no deadline for my server to open so i am free as to open it next year at the same time. I might give it a chance
User avatar
Tryskell
Posts: 256
Joined: Wed Nov 25, 2009 5:57 pm
Location: France :)

Re: Interlude buff duration in the core

Post by Tryskell »

Sorry for the offtopic, no pack names are given, so no publicity :P. People who know a little about actual IL free forks will know, others... Just don't read :D.

My pack is under heavy developement, so about ppl saying it's not fine for high rates, they're just wrong. They should say my pack is not ready for any live server :lol: .

When you build an house, you have the choice to destroy the old house, or to build a second roof on existing house. I decided to break many walls and make my own rooms on it, rather than simply build a roof on unstable fundations. The good new is that work is currently near ended and will pay in future (far lesser ugly bugs).

Conclusion of that awesome metaphore is the pack is on heavy developement, and will stay for a long time if I continue to be alone developing (as I got ambition to get all quests ported to java, 81 made so far, corrected using L2off htms and verified about anti-exploits).

The fact they (the few "haters") say it's not "high rates friendly" is simply because high rates are in 95% of times launched by brainless people who don't know a shit about L2J, and I hunt that sort of behaviors myself on my own forum. Pack is of course intented for any rates and any servers behaviors (I plan to open a faction server myself with my own pack once developement will be "ended"). You're free to add any custom you want without interferences of any others crappy customs. The fact is, it's not a noobie-friendly pack, but a newbie- friendly pack (aka people who dares to spend time to do their own changes and do their own ORIGINAL server are welcomed on my forum, others can die in fire :D).

I got a different PoV of others IL packs owners. The fact is we discussed about it with Shyla (you must know that popular pack too if you follow free ILs packs :p), and couldn't manage to find a way to fusion both projects. When his own goal is (and has always been) to simply fix issues, I decided to clean many sections of code to refresh it using freya/hi5 codes.

GS is currently using less than 200mo (193mo atm) once launched, compared to others projects' GS which are around 320mo (worst I saw was 340mo).

I don't think you saw many IL packs with working PartyMatching, Command Channel, and so on. I use newest chronicles to fix older stuff, and that works so far :).

That doesn't mean my pack is free of bugs, and doesn't miss many things. Far to be so simple, lol. Things come when they come, and when you're alone, well, it moves slower.
Naminator_X_
Posts: 39
Joined: Thu Jun 10, 2010 9:06 am

Re: Interlude buff duration in the core

Post by Naminator_X_ »

Please, for the sake of humanity, do not start faction server. Instead do an easy low-farm high rate pvp server *with only 1 augment** :D

**** What do i mean with only 1 aug:
When you have active shield for example - when you disarm your weapon you lose the buff. I have yet to see such interlude server. This thing is corrected in chronicles after interlude but this *feature* exists even in my *pack*. I believe i've fixed it.

You're right i haven't seen many IL packs but i've read many comments. I saw your pack and i have it compiled somewhere on the disk. Did some modifications ... it appears to be nice =) Can't still comment on anything else because i run it once a week/2-weeks for 10-15 minutes to pinpoint things i want corrected (like no exp loss ever, no buff loss no matter if having nbls or not and etc) and i do most of those in the next 20-30 minutes and go to play some game and relax myself =)

Offtopic: Currently playing Deus Ex: Human Revolution :DD
Post Reply