Jump to content

[Share]Rework Gracia Final FloodProtector to IL + Some Actions


Vkouk

Recommended Posts

So,i was trying to put 's FloodProtector Rework and i had problems,so i decided to rework it by myself.

For any problem,let me know it

 

FloodProtector Rework

http://pastebin.com/6bNw0teS

 

FloodProtector Actions

http://pastebin.com/s16WtRNn

 

FloodProtector Actions 2

http://pastebin.com/rgUy3eAz

 

 

Link to comment
Share on other sites

There's no difference between the old & new floodprotector, so why should someone rework it?

Gracia FloodProtector i guess is more effective

Link to comment
Share on other sites

No it's not, they do exactly the same thing.

 

No they aren't Versus, they are more efficient and easier to use..

There certainly was a reason to change them.

Link to comment
Share on other sites

No they aren't Versus, they are more efficient and easier to use..

There certainly was a reason to change them.

Just tell me how they can be more 'efficient', i won't disagree, they might be easier to be used but in which way exactly they are more efficient?

Link to comment
Share on other sites

Just tell me how they can be more 'efficient', i won't disagree, they might be easier to be used but in which way exactly they are more efficient?

 

Okay, let's make a comparison between the Interlude and the Gracia ones.

Interlude FloodProtection:

[*]Innefficient Performance.

[*]They are accessed in a REALLY BAD way.

[*]Of course the configurations, that are not as good as the gracia ones.

 

Epilogue FloodProtection:

[*]Safer & way easier to be accessed.

[*]It's really efficient.

[*]Very well configured and easy to use, especially for newbies.

[*]Really easy to be extended.

 

Let me explain:

-The configures thingy is obvious, I suppose.

 

-Efficiency: Performance Side (you'll check below).

 

-Access: In the old flood protection system, it has to search for a whole map with player IDs for the player, but in this way there are useless checks made. In the newer one there is just a cast to L2PcInstance, so you just have a simple check for the player's action. Not to mention the use of the array that makes it even slower. And the result of the old floodprotection's use is extra CPU "cycles" on every single received packet, which is obviously protected by a floodprotector.

Link to comment
Share on other sites

Okay, let's make a comparison between the Interlude and the Gracia ones.

Interlude FloodProtection:

[*]Innefficient Performance.

[*]They are accessed in a REALLY BAD way.

[*]Of course the configurations, that are not as good as the gracia ones.

 

Epilogue FloodProtection:

[*]Safer & way easier to be accessed.

[*]It's really efficient.

[*]Very well configured and easy to use, especially for newbies.

[*]Really easy to be extended.

 

Let me explain:

-The configures thingy is obvious, I suppose.

 

-Efficiency: Performance Side (you'll check below).

 

-Access: In the old flood protection system, it has to search for a whole map with player IDs for the player, but in this way there are useless checks made. In the newer one there is just a cast to L2PcInstance, so you just have a simple check for the player's action. Not to mention the use of the array that makes it even slower. And the result of the old floodprotection's use is extra CPU "cycles" on every single received packet, which is obviously protected by a floodprotector.

So you think the new floodprotector can give you permormance boost? Come on.. even if it gives you it's so small that can't be noticed.

 

Safer & way easier to be accessed. - Safer? Sorry, but even if there's a security 'leak' at the floodprotectors, how you are supposed to exploit it? Kick yourself faster?

Link to comment
Share on other sites

So you think the new floodprotector can give you permormance boost? Come on.. even if it gives you it's so small that can't be noticed.

 

Safer & way easier to be accessed. - Safer? Sorry, but even if there's a security 'leak' at the floodprotectors, how you are supposed to exploit it? Kick yourself faster?

 

1) So small? Well, you see L2jServer has been f*cked up @ performance side because of those "small" performance thingies. And that's why NB4L1 has succeeded making L2jFree the best G Final Project. And still, it's pure logic. What it's better: To use something light that will run smoothly, or something old and less efficient?

 

2) The safety thing is the new AtomicInteger. The old floodprotection is using a simple int for that kind of "tick", whereas the newer one is using the atomicinteger, which is a value updated automatically and is of course a faster and safer way, for a counter like that (where you need to count in milis). Compared to a simple integer, it's about 50% faster, so let's take an example:

On the normal Integer the value is 18 mili, whereas on the atomic one, the same value is about 11.

Link to comment
Share on other sites

Two things i noticed with a quick look.

 

- You don't need to write 'player' or 'activeChar' before the sendPacket at clientpackets.

- All the actions (even floodprotector) should follow after the null check.

Link to comment
Share on other sites

  • 5 months later...

So,i was trying to put 's FloodProtector Rework and i had problems,so i decided to rework it by myself.

For any problem,let me know it

 

FloodProtector Rework

http://pastebin.com/6bNw0teS

 

FloodProtector Actions

http://pastebin.com/s16WtRNn

 

FloodProtector Actions 2

http://pastebin.com/rgUy3eAz

 

 

Reworked what?2 lines?

You gotta give credits to l2jserver for this.

 

Okay, let's make a comparison between the Interlude and the Gracia ones.

Interlude FloodProtection:

[*]Innefficient Performance.

[*]They are accessed in a REALLY BAD way.

[*]Of course the configurations, that are not as good as the gracia ones.

 

Epilogue FloodProtection:

[*]Safer & way easier to be accessed.

[*]It's really efficient.

[*]Very well configured and easy to use, especially for newbies.

[*]Really easy to be extended.

 

Let me explain:

-The configures thingy is obvious, I suppose.

 

-Efficiency: Performance Side (you'll check below).

 

-Access: In the old flood protection system, it has to search for a whole map with player IDs for the player, but in this way there are useless checks made. In the newer one there is just a cast to L2PcInstance, so you just have a simple check for the player's action. Not to mention the use of the array that makes it even slower. And the result of the old floodprotection's use is extra CPU "cycles" on every single received packet, which is obviously protected by a floodprotector.

 

plus Gracia FP got the punishment system,phx could flood using floodprotector itself so thats a great solution to this problem.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



  • Posts

    • Hello everyone, as the title says, I want to remove the skill toggle effect when it is active in the skill bar. I did it a few years ago but now I don't remember how, I'm not sure but I think it's in the Skillgrp.dat file but I don't remember what value I should change.     First, thanks to whoever can help me clearly and not pass me by. Greetings and good day
    • L2Focus - Lineage 2 Interlude.   Rates Experience: (EXP) x1000 Skill Points: (SP) x1000 Adena: x1000 VIP: x2 Basic information Armor: TT/DK/DY (Same Stats) Weapon: EPIC/DY/IC (Same Stats) Jewels Boss: ( GM SHOP ) Tattoos: Fight | Mage Acessories: +100 | +300 Server Commands: .menu ( all options included ) Buff Slot: 32 + 4 (Divine Inspiration Free) Npc Buffer: Full + Scheme Buffs Siege: 7 Days Olympiad Hero: 7 Days Nobless: Last Hit in Barakiel Clan / Ally System Clan Info: Max Players: 50 Alliance Info: 1 Clans per ally Royal and Knights: Desactived. AntiZerg Zones: 18 players (2PT's). Enchant Safe Enchant: +5 Max. Enchant: +25 Normal Scroll: 100% chance, Max +5 Blessed Scroll: 80% chance, Max +20 Golden Scroll: +21 45%, +22 35%, +23 25%, +24 15%, +25 5% Golden Fail? - Only Loses scroll Crystal Scroll: 100% chance, Max +25 Augment Skills: Active / Passive 5% chance Augment Stats: STR/ INT / CON 5% chance Events Party Zone: 10:00 | 14:00 | 19:00 | 22:00 | 02:00 (Duration: 60 minutes) Tournament: 11:15 | 16:15 | 20:15 | 23:15 (Duration: 60 minutes) Kill The Boss: 09:00 | 15:00 | 20:00 | 23:00 (Duration: 15 minutes) Pvp Event: 13:10 | 15:10 | 20:10 | 21:10 (Duration: 45 minutes) Team vs Team: Every 1hour 24h/per day Olympiad Olympiad Time: 18:00 ~ 00:00 GMT-3 Min: 9 Matches to be a hero. Olympiad Box: 1 client windows running (PC) Olympiad Items: No Custom Olympiad Enchant: +5 Protection WarGuard: Protect for bots/hwid/phx/cheats Farm: 1 client per (PC). Box Limit: 2 client windows running (PC). Chaotic Zone: 18 players (2PT's). All configurations and features that are not reported here are standard, that is, equal to the official Lineage II or were considered irrelevant.   JOIN NOW www.L2Focus.com
    • that would be much appreciated mate 
    • Hello. 1. Make sure to use in your xml:         <set name="usingServerSideName" val="true"/>         <set name="usingServerSideTitle" val="true"/> 2. And in npcname-e.dat do not use any name (not even a one space) In my case 50011 is Agathion
  • Topics

×
×
  • Create New...