Jump to content

Recommended Posts

Posted
18 minutes ago, An4rchy said:

Idk where you read this, we're not in 2006 btw.

Well is not the fastest language in the world. Except some spots like object creation which is faster than C++ in other stuff it slow and has big memory consume. 

I know since '2006' java made a huge process but still its not like it can be super super fast.

Posted
17 minutes ago, tazerman2 said:

1.4 mass heal if healer is 2 bad code.. i know heal give 2.1k heal if pt have 3 healers? give 800 hp ?

all party match is die. and dont forget l2 no have only heal's you can fix debuff. stun, silence, fear

all this.

 

Generally the code he "shared".. god call it code anyway.. it's really bad in term's of gameplay. Why would you split the heal in half 

nobody would add 2 or more bishops. Simply cause its a waste (if heal is splitted / size) and because bishops are easy target to die from daggers e.t.c 

Posted
3 minutes ago, Evie Frye said:

Well is not the fastest language in the world. Except some spots like object creation which is faster than C++ in other stuff it slow and has big memory consume. 

I know since '2006' java made a huge process but still its not like it can be super super fast.

 

Performance wise C++ and Java are currently very close. The reason you see C++ being used more by big companies is because their engines/software is written in C++ since years (maybe even before Java was being used) and the most important is that you have the ability to manage your memory in C++. On top of that, C++ is more flexible and you can do many things that you can't in Java. On the other hand C++ is more complicated and will not allow users (like the topic's author) that have no knowledge of how things work to write code like the above.

 

Nowadays the difference in performance of the 2 languages is minimal and barely noticable, if you ask me.

Posted
1 minute ago, An4rchy said:

 

Performance wise C++ and Java are currently very close. The reason you see C++ being used more by big companies is because their engines/software is written in C++ since years (maybe even before Java was being used) and the most important is that you have the ability to manage your memory in C++. On top of that, C++ is more flexible and you can do many things that you can't in Java. On the other hand C++ is more complicated and will not allow users (like the topic's author) that have no knowledge of how things work to write code like the above.

 

Nowadays the difference in performance of the 2 languages is minimal and barely noticable, if you ask me.

 

Yeap obviously since hardware is upgraded. Back in 2001 with single core and 512 RAM it was noticable in seconds (not even ms).

And i agree with you difference between C++ and J is small both obj oriented and syntax simillary too (even tho it was an example) still java is heavier (in term of memory). Although i love java as many for the garbage collector, the fact that it does not have memory leaks. In my opinion is the fastest language in creating objects. you can run a loop creating 100.000 objects and it will take average 0.1 second. 

Posted
52 minutes ago, tazerman2 said:

1.4 mass heal if healer is 2 bad code.. i know heal give 2.1k heal if pt have 3 healers? give 800 hp ?

all party match is die. and dont forget l2 no have only heal's you can fix debuff. stun, silence, fear

all this.

 

34 minutes ago, Evie Frye said:

Why would you split the heal in half 

nobody would add 2 or more bishops. Simply cause its a waste (if heal is splitted / size) and because bishops are easy target to die from daggers e.t.c 

 

probably try to make parties being equal in terms of healing, or prevent a player to carry 3-4 bps bots for autoheals on an area for pvp ,but still this way makes it worse than better at all,and like tazer said it's more than healing,and by this logic, tanks should also decrease their def if there are 2 or mroe in the pt, wich makes non sense at all. For example having 2 tanks alrdy in pt you miss the dmg so it's pretty much the same,no need for such change.

Posted
11 hours ago, Evie Frye said:

 

Yeap obviously since hardware is upgraded. Back in 2001 with single core and 512 RAM it was noticable in seconds (not even ms).

And i agree with you difference between C++ and J is small both obj oriented and syntax simillary too (even tho it was an example) still java is heavier (in term of memory). Although i love java as many for the garbage collector, the fact that it does not have memory leaks. In my opinion is the fastest language in creating objects. you can run a loop creating 100.000 objects and it will take average 0.1 second. 

 

Your knowledge is minimal, so you better keep your opinion for your self because you talk about things you don't understand 

Posted
11 hours ago, An4rchy said:

 

Performance wise C++ and Java are currently very close. The reason you see C++ being used more by big companies is because their engines/software is written in C++ since years (maybe even before Java was being used) and the most important is that you have the ability to manage your memory in C++. On top of that, C++ is more flexible and you can do many things that you can't in Java. On the other hand C++ is more complicated and will not allow users (like the topic's author) that have no knowledge of how things work to write code like the above.

 

Nowadays the difference in performance of the 2 languages is minimal and barely noticable, if you ask me.

 

Not true, if you want to be fast with c++ you can use C libraries and do stuff with the highest efficiency and speed possible in cost of developing time, this alone sets Java miles behind c++ in terms of speed. 

 

Never forget that Java has overhead that can never be avoided, like exception handling, fake generics, virtual machine and generally lots of layers of code for it's semantics, security and memory management under the hood. Of course everything of the above vmcan be avoided in c++

Posted
3 hours ago, xxdem said:

 

Your knowledge is minimal, so you better keep your opinion for your self because you talk about things you don't understand 

 

Which one is invalid from the stuff i've said? The fact that VM uses more memory? Its not true that it uses minimum 8 byte per ob ?

Posted

C++ doesn't have memory leaks if you know what you are doing, Java pre-allocates memory during VM initialization so thats why the "C++ vs Java" benchmarks you saw say that object initialization is much faster in java (The memory allocation happened beforehand and it just stays there even if you don't use it). C++ objects are raw memory blocks that are given by the OS on the run and that costs (nothing can be faster than that) whereas Java objects are not since there are lots of layers bellow them that simply call the preallocated memory block.

 

Anyway Im not going to discuss more about it, lots of what you said is untrue and amateurish

Posted
1 hour ago, xxdem said:

C++ doesn't have memory leaks if you know what you are doing, Java pre-allocates memory during VM initialization so thats why the "C++ vs Java" benchmarks you saw say that object initialization is much faster in java (The memory allocation happened beforehand and it just stays there even if you don't use it). C++ objects are raw memory blocks that are given by the OS on the run and that costs (nothing can be faster than that) whereas Java objects are not since there are lots of layers bellow them that simply call the preallocated memory block.

 

Anyway Im not going to discuss more about it, lots of what you said is untrue and amateurish

 

I didn't say the opposite of what you said. I said Java uses more allocated memory and is faster in object creating and u say the same with the difference that you describe the procedure (of allocation). Also u don't need to see berchmarks. Just a simple loop and print is enough to see the respond in nanoseconds. But whatever don't discuss. If disqussion for you mean 1 side conversation then write down stuff and read them all your self. You act as if i disagree or anything.

Posted (edited)
7 hours ago, xxdem said:

The memory allocation happened beforehand and it just stays there even if you don't use it

 

Large engines written on C++ (talking about game engines mainly because that's what I'm studying) actually have memory management systems which do that exact thing. One of my coursework specifications is to actually make a memory management system for a game engine we are writing that allocates memory when the engine starts and allocates more (if needed) while the engine is running.

 

To be honest, I've only just started working with C++ (first and second year at uni we used Java) so I wouldn't be the one to compare it with Java performance wise. However the statement I made is based on things I've read. Most comparison articles clearly say that you can't directly compare the languages since their performance differs based on what part of the language you're talking about.

Edited by An4rchy
  • 2 years later...
Posted

can anyone help me how to make maximum 2 healers/titan in party ?? 

 

 

i added this to requestjoinparty

 

            if (target.getClassId().getId() == 113 ) 
                {
                    requestor.sendMessage("Maximum 2 titans are allowed in party !");
                    return;
                }
but when i have party with 2 duelist for example and i try to invite 1 titan i can't ..

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now


  • Posts

    • Update: Advanced Rate Limiting Rate limiting is now applied to: Login attempts Account registration Password recovery Email confirmation resends WhatsApp verification Checkout access The system maintains independent counters by IP address and user identity, helping prevent traditional brute-force attacks as well as distributed credential-stuffing attempts using multiple proxies. Brute-Force and Credential-Stuffing Protection Protection is not limited to the visitor's IP address. The system also tracks attempts associated with the account, username, or email address, reducing the effectiveness of attacks performed through rotating IP addresses, proxies, or VPN services. Global HTTP Security Headers Security headers are applied across the entire website: X-Frame-Options X-Content-Type-Options Referrer-Policy HTTP Strict Transport Security These headers help protect the website against clickjacking, MIME-type confusion, insecure referrer exposure, and HTTP downgrade attempts. Secure Error Handling Internal exceptions are recorded in protected security logs while visitors receive sanitized error messages. This prevents the accidental exposure of: Internal file paths Database information SQL errors Server configuration Application stack traces Private Storage Exposure Monitoring The system automatically checks whether the private storage directory is publicly accessible in production. If exposure is detected, a security warning is recorded for the administrator without interrupting the website. This directory may contain licensing information, rate-limit records, and security logs and must never be publicly accessible. OAuth Request Protection Google and Facebook authentication flows use cryptographically random state values stored in the user's session. Returned state values are validated using constant-time comparison, helping prevent OAuth request forgery and unauthorized account-linking attacks. Telegram Authentication Validation Telegram login information is protected through: HMAC signature validation Constant-time hash comparison Authentication timestamp verification Expired-login rejection Secure Verification Tokens Email, password recovery, and WhatsApp verification systems include: Cryptographically secure random tokens Hashed WhatsApp verification codes Automatic expiration Limited verification attempts Resend cooldowns One-time token invalidation Account Activation Protection When email or WhatsApp verification is required, the game account remains restricted until all required verification steps are completed. Unverified users cannot bypass the confirmation process through standard or social login. Secure Upload Processing Administrative image uploads include: Real MIME-type inspection Image-content validation File-size limits Extension allowlists Server-generated random filenames Rejection of invalid or disguised files Original user-provided filenames are never used as the final stored filename. Path Traversal Protection Theme and template identifiers are restricted to validated slugs and must exist in the internal list of allowed themes. This prevents directory traversal and unauthorized local-file access through manipulated template names. Atomic Ticket Transfer Protection Ticket transfers use transactional and durable delivery processing. The balance is conditionally debited, the delivery is recorded before communication with the game database, and failed deliveries remain pending for safe reprocessing. This helps prevent: Free-item delivery Inconsistent balances Duplicate delivery Partial transaction failures Lost transfer records Concurrent Balance Protection Administrative balance adjustments use database transactions and row-level locking. This prevents simultaneous balance operations from overwriting each other or creating inconsistent account balances. Secure Redirect Handling Redirect values are sanitized against header injection, and external redirects are restricted to HTTPS destinations. Password Security Improvements The website uses modern password hashing for player-panel accounts and bcrypt with a configurable cost for supported game-server account systems. Compatibility is included for game-server implementations requiring the $2a$ bcrypt prefix. Duplicate Payment Prevention Built-in protections include: Idempotency control Transaction reference validation Payment status verification Unique external payment references Database transactions and rollback Durable payment history Completed-order verification These protections prevent: Double credits Repeated processing Duplicate payment callbacks Incomplete financial operations Signed Payment Callback Protection Payment callbacks are protected through: HMAC-SHA256 authentication Constant-time signature comparison Signed callback timestamps Callback freshness validation Shared callback secrets This helps prevent forged payment notifications, callback manipulation, and replay attacks. SQL Injection Protection The database layer uses: PDO Prepared statements Parameter binding Controlled internal allowlists for dynamic identifiers User-controlled values are not directly concatenated into SQL queries. XSS Protection Output and form data are protected through: HTML escaping Attribute escaping Input filtering HttpOnly session cookies MIME-sniffing protection Frame embedding restrictions These measures reduce the risk of Cross-Site Scripting, malicious HTML injection, session theft, and clickjacking. CSRF Protection Sensitive forms and administrative operations use session-based CSRF tokens. Requests without a valid token are rejected, helping prevent unauthorized actions performed through malicious external websites. Secure Session Protection The session system includes: HttpOnly cookies Secure cookie support SameSite restrictions Session ID regeneration Authentication state validation Session timeout controls These protections reduce the risks of session fixation, session theft, and unauthorized account reuse. reCAPTCHA Protection Google reCAPTCHA may be enabled on sensitive public forms to reduce: Automated account registrations Spam submissions Bot login attempts Automated password recovery abuse Confirmation Resend Limits Email and WhatsApp confirmation resends are protected through: Cooldown periods Rate limiting Expiring verification codes Attempt counters This prevents verification-message flooding and excessive external API usage. Licensing and Anti-Cloning Protection The website includes centralized licensing controls with: License-key validation Domain binding Signed license responses Cached license validation Temporary offline grace period Circuit-breaker protection Unauthorized-domain rejection These measures help prevent unauthorized installation, cloning, and redistribution of the system.
    • Tool that allows you to download the Lineage 2 game client directly from the official publisher CDNs. It fetches the CDN's file list and downloads every patch file, decompresses it (LZMA / Zip) and writes the finished client to disk — and can resume or repair an existing installation instead of starting over. It runs several client downloads at once through a batch queue, so you can prepare multiple regions or versions in a single session.   Supported: NCSoft CDNs (TW / KR / JP / NA) and  4game CDNs(RU / EU)   Download: https://drive.google.com/file/d/11SDcNASqO2GKOBT79LFu7mqvSRSJZvBS
    • https://l2avokado.com/ Hello everyone,   After some time of development, we've decided to open L2Avokado to the public in its current development stage. We're looking for players who enjoy Interlude and would like to help shape the project before its official release.   This isn't a "launch" announcement. Instead, we're inviting the community to log in, explore the server, test the systems we've built, and provide honest feedback. Whether it's bug reports, balance suggestions, progression ideas, or quality-of-life improvements, we'd love to hear them.   Our goal has always been to create an Interlude server that feels familiar while offering a fresh progression experience. We've intentionally avoided custom weapons, armor, and client modifications. Instead, we've focused on redesigning progression through reworked hunting grounds, quests, crafting, and gameplay systems while remaining compatible with a clean Interlude client.   At this stage, the core progression path has been implemented, including the main hunting grounds, quests, custom systems, and events. However, as the project is still under active development, there will inevitably be bugs, balance issues, and areas that require further polishing.   This is exactly why we'd like your help.   We're looking for players who are willing to: Test gameplay and progression. Report bugs and exploits. Suggest balance improvements. Share ideas for new features or quality-of-life changes. Help us build a server that the community genuinely enjoys playing.   The Client and System downloads are already available on our website, so you can jump straight into the game. We're also working on a dedicated launcher that will simplify installation and future updates.   If you're interested in helping develop a unique Interlude project and want your feedback to genuinely influence the direction of the server, we'd love to have you with us.   We look forward to seeing you in-game and hearing your thoughts on Discord. https://l2avokado.com/
  • Topics

×
×
  • Create New...

Important Information

This community uses essential cookies to function properly. Non-essential cookies and third-party services are used only with your consent. Read our Privacy Policy and We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue..