Jump to content

Recommended Posts

Posted

Here is a system tweak and some java tweaks so as your players are gonna have less lag (but watch out, not less lag caused by the server's connection, but less caused by the server's PC.

 

The first tweak is simple, and has really nice affects on your server when you have lots of people logged in. Let's say that you have about 4GB of physical memory (it is really good for a server PC) but you have lag... lot's of lag! Why don't you try to set off your page file system? If you use less than the 4GB of the physical ram, you have a good connection and too much lag, turn off the page file system of your OS (that's why i suggest linux for your server, it has a clever ram management system, not like w$). More about this on microsoft's site. (It is on the advanced tab of your PC properties, on performance setttings). Don't forget that, if you go up to 4GB your PC will lack of RAM and pouf, server is down ;D Suggested only if the rest of the ram is free. Do not forget to set the restart time of the server on less than 6 hours, as after that time your RAM usage is getting bigger and bigger.

 

Another tweak is a java tweak on the startgameserver.bat. Totally three. Take a look, and pay attention.

 

The first tweak is the RAM usage. Let's say that you have 2GB physical RAM (as i do). Look inside the .bat file, there is a row which is starting with...

 

java -Xmx512m -cp

 

This tells java not to go over that value, but use it as it wishes. You can change it in steps of 256mb. REMEMBER NOT TO EXCEED THE 60% OF YOUR PHYSICAL RAM.

 

You can also put in front of this value this command -Xms512m and it tells java that IT WILL USE always 512mb. It almost elimates your memory (always that memory usage is a high amount) but it helps a lot. It should look like this:

 

java -Xms512m -Xmx512m -cp

 

The last code is about the memory that java uses for getting rid of the bad code... what do i mean...? Every program running for some time, makes tons of garbage, which it doesn't need, and java makes a f*cking great amount of useless code. We can add this command: -Xmn128m in our code, so it will kick the bad code every some minutes, and will use 128mb for this job. Try it:

 

java -Xmn128m -Xms512m -Xmx512m -cp

 

Remember not to exceed the 25% of the next value (in this case the 512, so 25% of 512 is 128).

 

Another tweak (that is know) is to set java priority to high, or real time (only if it is a dedicated server PC) which greatly increases your server's performance, but needs to be automated to restart every 6 hours (because CPU usage after 6 hours of realtime or high priority gets over 95%, sometimes even 100%). To set it to real time or high priority, use the task manager, go to threads manager and find the java thread, right click, priority settings. If you want it to be setted auto by the machine priority to realtime, open your startgameserver.bat file and add before java: start/realtime/wait

So, it seems like this now:

@echo off

:start

echo Starting L2J Game Server.

echo.

start/realtime/wait java -Xmx512m -cp ./config/;commons..................................................

 

The last tweak, is a dirty trick, huhuhu. If you want to make your players to think that server is running on a powerful machine without any bit of lag, or whatever, give 20% more running speed to all chars from your db (yes, set it as the default, so any new char gets instead of the official speed +20% more). Now they think they fly, but in the reality it is just a trick. Nobody will note it.

 

Have fun ;) Tested on my hlapex server (if you played there huh ;D).

 

*Collected from some old .txt files of my c3-c4 packs collection. The guide is mine ;) But i got the basic idea from there :P

Guest Thanos47
Posted

i think for the last guides he need +1,2 karma ;)

  • 3 weeks later...
Posted

To the templates, let's say a class has 110 speed... change it to 130 for example... Do the same for all the classes. I had a SQL command for this, but i'm not to my PC.

Posted

killer_007 i bored all your shares ... all of those shares are copy paste bliah and u dont give any credits omg and then you call me spammer or sthin like that ...

 

but  i  cant say u found a good site to copy paste :D

Posted

Yeah? Do you have evidence? At least, i respect the people who write some things, because i do write guides and shares, and i always give proper credits where needed, so if you don't have proof, if you don't like me, if you don't know what i do share, if you can't explain how i know some things that you do not know (because you are egoist, or because of immaturity) IN YOUR LIFE YOU CAN NEVER - EVER accuse somebody if you don't have EVIDENCE. Is that clear? Instead of being so useless, try helping some people and not just go around and say <<omfg noob, come on i can do it, you thief!>>. I learned these things from somewhere, and that doesn't mean i don't respect the people who were teaching for my 3 years of knowledge in l2j, i learned all these things i share with you from those people, i respect their work and their face, but as i respect them i want some people to respect me for my work.

Posted

killer_007 i bored all your shares ... all of those shares are copy paste bliah and u dont give any credits omg and then you call me spammer or sthin like that ...

 

but  i  cant say u found a good site to copy paste :D

and if they are copy paste? He IS MAGAS and not bored to do the copy paste (in case that is copy paste) And he knows the answer in problems that happen in these "copy paste" as you say so??? Even If they are copy paste he knows what the copy paste he done is For And he's not a Noob that only copy  pastes!!! Anyway Killer You Rock for me and i dont care iF they are a Copy  paste something i dont believe I care only for the topic maker's Name And name is Killer_007!!!! nice m8 ;)

Posted

killer_007 i bored all your shares ... all of those shares are copy paste bliah and u dont give any credits omg and then you call me spammer or sthin like that ...

 

but  i  cant say u found a good site to copy paste :D

and if they are copy paste? He IS MAGAS and not bored to do the copy paste (in case that is copy paste) And he knows the answer in problems that happen in these "copy paste" as you say so??? Even If they are copy paste he knows what the copy paste he done is For And he's not a Noob that only copy  pastes!!! Anyway Killer You Rock for me and i dont care iF they are a Copy  paste something i dont believe I care only for the topic maker's Name And name is Killer_007!!!! nice m8 ;)

killer_007 i bored all your shares ... all of those shares are copy paste bliah and u dont give any credits omg and then you call me spammer or sthin like that ...

 

but  i  cant say u found a good site to copy paste :D

and if they are copy paste? He IS MAGAS and not bored to do the copy paste (in case that is copy paste) And he knows the answer in problems that happen in these "copy paste" as you say so??? Even If they are copy paste he knows what the copy paste he done is For And he's not a Noob that only copy  pastes!!! Anyway Killer You Rock for me and i dont care iF they are a Copy  paste something i dont believe I care only for the topic maker's Name And name is Killer_007!!!! nice m8 ;)

 

+6456465423168453185

i agree completely!!!

with their logic from the first time sth is said anywhere it can never be repeated there or at any other place.....

read the gpl ppl.....

 

PS: tnxvm killer_007

Posted

copy paste but if i copy paste he shares in onother site he goona eat me so ...

 

killer_007 i found a cool site to share your shares

 

die in a car of fire

  • 5 years later...
Guest
This topic is now closed to further replies.


  • Posts

    • L2jBayev Chronicle 3: Rise of Darkness – AiEngine Edition In short: this is a C3 build with a full-fledged AI engine, live mercenaries, a built-in quiz, a “personal account” in the Community Board, and server logic neatly distributed across thread pools. The project is about a living world without lags : bots farm, communicate, gather parties, teleport along routes, and the server remains cold and stable.   What's inside (the most delicious) 1) Full-fledged AI engine for characters Behavior types: farming ( FarmAI ), combat ( CombatAI ), party logic ( PartyAI ), trading/walking ( TraderAI / WalkerAI ), support roles (healer, etc.). Class profiles: for mages/archers/daggers, etc., “smart” skill rotations, distance control, sleep/save skills, healing, loot pickup, etc. are implemented (see examples of classes like SpellSingerAI , NecromancerAI , etc.). Self-healing and teleports: when dying, the bot goes through a sequence of steps without sleep()- via AITaskSequence + AITeleportToLocTask , searches for the nearest gatekeeper and teleports via TeleportationManager with routes depending on the level. Auto-support: auto-nipples, arrows/bones, smart auto-proceduring of buffs and auto-banks CP/HP/MP with thresholds - all sewn into the auxiliary EtcPlayersAi . Chat context: ChatManagerAi processes mentions, makes responses with delays (anti-flood), supports party chat and “human” reaction. Understanding: ChatManagerAi system  processes the dialogue, bots remember your aggression and insults, they start to respond less often to modern users, stop accepting or inviting to a group (party) and when it goes beyond the peak they will simply merge you, and every time they see you on the PC, there is an opportunity to measure more often, communicate respectfully and beautifully, in general, a “human” reaction. Why a player/admin needs this: bots actually “live”, farm and interact, and don’t just stand on macros. This is a great background for online and PvE action.   2) Mercenaries (Mercenary system) Full-fledged companion character : L2MercenaryInstance with its own MercenaryAI (movement, attack, support, consumables, shots). Behavior modes: DEFENDER / SUPPORT / PASSIVE - switchable to suit your playing style. Progress and trust: the mercenary's trust/exp/level grows , skills are learned according to the MercenarySkillTree (conditions are based on the trust or level of the owner). Templates and equipment: via MercenaryTemplateTable and spawner - model/weapon/type are selected. Social: MercenarySpeechManager - a set of speeches; the mercenary "comes to life" in the chat. Premium Link: Premium account owners give the mercenary additional trust (faster progress). Why: This is not a dummy pet, but a playful companion with modes, training and “character”.   3) Quiz (event viktorina ) Rounds according to schedule: pre-launch with announcements (minutes/seconds before start), registration .reg, auto-opening of the window. Multiple choice questions: question + set of answer buttons; fair processing, timings, question change. Tops and history: results table, statistics, neat UI via HTML assembly. Flexible control: you can start immediately or set a delayed start (notification package 5/2/1 min, etc.). Why: regular activity for players, “social entertainment” module right in the build.   4) Personal account in Community Board KB managers: buff cabinet, teleports, clans/forums/mail/friends, tops (PK/PvP/wealth/players), character repair, viewing skill trees , etc. Premium logic: some services/mail are limited by premium; premium also affects the visual (nickname color) and bonuses (see effect on mercenary). Single sign-on: all in one place, no team chaos. Why: conveniently manage your character and services without going into the console or installing third-party mods.   Why is the system technically valuable? Minimum load and stability Separated thread pools: AI logic, hunting, teleports, chat - on separate onesScheduledExecutorService ( AI_THREAD_POOL , MONSTER_HUNT_POOL , TELEPORT_POOL , CHAT_POOL ). No "freezing": task sequencers (teleport/recovery) work through the scheduler, not Thread.sleep(). Bot limitation: protection against overload via thresholds/counters - “extra” bots do not start. One bot - one sequence: AITaskManager ensures that the character does not have parallel conflicting tasks. Smoothing out peaks: starting tasks with offsets so that there are no simultaneous “ticks” of hundreds of bots. Monitoring/logs: own loggers (separate files for info/errors/processes/chats), CPU load monitoring. Bottom line: the build is designed for “thick online” and mass activities without TPS failures .   Additional Features Auto-alliances for farming: party logic invites suitable players (checking level/equipment/clan flags), there are “human” responses to requests. Sub/class management: out of the box helpers for changing class/subclass, auto-learning of necessary skills and selection of equipment by level. Security/protection: secondary PIN/picture password support (used in KB/voiced commands; optional). Premium accounts: privileges in KB/mail/visual and synergy with mercenary progress. Ready-made services: tops, auctions/mail, teleports from KB, buff rooms, repairs, viewing skill trees, etc.   Who is this build for? Freeshare/project admins who want a living world “from the pack”: bots and mercenaries provide a constant background of activity. Players who value convenience: personal account, premium services, events and a mercenary companion. Developers who want a clean, predictable backend with thread pools and a neat task model without “magic”.   How it differs from standard assemblies Not macros - AI profiles with “brains”: rotations, positioning, healing, decision making. Not a decoration pet - a mercenary with his own modes, progress, skill tree and lines. Not a faceless gamemod - an event quiz with UI, schedule, tops. No chaos in flows - strict pools, planning and task managers designed for online and growth. No separate scripts - a single personal account in KB for most activities.   TL;DR (one paragraph for the project card) AiEngine C3 is a build with live AI, smart bots, mercenaries (modes/progress/skills), built-in quiz, premium logic and a convenient personal account in KB. Under the hood are distributed thread pools and task managers without sleep(), so even with a dense online the server remains stable and responsive.   Additionally add - there is still a lot of interesting things command .assassin or shift+target (order murder), shift+target for admins on AI characters for control, admin panel is completely rewritten, many additional functions, mercenaries change their appearance depending on trust, deepseek and chatGPT system is connected for communication of characters like real players, GPT - for newer java, there is still a very large list of fixes after the last versions, a lot has been fixed, including height coordinates (Z) geo-Squares, pathfinding, visibility through obstacles, fix pet summons, trade packages, shop packages, many effects, quests (including the original ones like nipples, etc.), Ai behavior of NPC and RB monsters, absolutely all epics have been transferred to AiLoader no longer in python scripts. Attention! The server is suitable for both classic mode and PvP format, as well as with various mods. Absolutely everything is configured in the configurations to suit your taste and purposes of use. It is recommended to launch the server through L2ServerControl (simplifies management and control of processes). Download Servers: Chronicle 3 Server Chronicle 4 Test Upgraded Server Full Desc & screens: Post & Screens c3 Post & Desc c4    
    • 🎃 HALLOWEEN EVENT 🎃   ‼️ Information and details: https://forum.l2harbor.com/threads/halloween-event-fall-harvest-30-10-07-11.8265/post-168620
  • Topics

×
×
  • Create New...

AdBlock Extension Detected!

Our website is made possible by displaying online advertisements to our members.

Please disable AdBlock browser extension first, to be able to use our community.

I've Disabled AdBlock