Jump to content

[Guide]Coding in sense, when do i optimize ?


Recommended Posts

Since TDU2 servers are down for updates and i cant play the game that i paid 50 euros to just play online, ill try to make time fly by posting a guide regarding how and what to code when having a goal to open a server.

 

Defining the problems:

 

There are countless of problems when you are opening a server regarding the code you use. The lack of security, optimization, base retail gameplay, custom features are some of them. A pack usually, has one or many of the previous aspects missing or incomplete. Your work as a server owner/developer is to start tackling those issues by spending your manpower equally or not in some or all of those features. The thing that most users ( even advanced ones ) in this forum are doing, is tackling the wrong problem.

 

Defining your goal:

 

When you open a server, you always have a specific setup in your mind. Will it be a retail lowrate, or a custom highrate ? Will i aim for 400 people or for 2000 ? How long do i plan to keep the server ? How fast do i want to get rewards ? What type of players do i attract and where do i advertise ? What chronicle am i going to use ? All those questions and others too, will help you define your goal. What exactly you wanna do. The goal of your server, is the one that will define what problems you will need to tackle.

 

Combining them together:

 

There is no ultime guideline on how to spend your coding time based on your goal. The main idea, is that you code , for what will bring you the greatest reward. For instance, lets say you can spend 40 hours coding, and it can either be server optimization or implementation of new features. If you code for optimization, then you may be able to get the same performance with a cheaper machine, saving some money from the server rent. But if you spend those hours coding for new features, you may attract new players to the server and have higher donations. The profit you will get by higher donations may be much bigger than the money you will cut down from server budget buy having code that can run in a cheaper machine. I hope you get the idea ;)

 

Here are some bad examples:

 

1) I see high class server owners in this forum, that are posting optimization guides for mysql when their servers have about 30 people online. When you get such a low population count, you do not care about optimization. What you should focus, is making your server interesting.

 

2) An optimized pack isnt always the best pack. Default optimization can give you up to 1000 players in a 120 euro/month machine given that you spend some time coding something that attracts the players. On the other hand, fully optimized server, without any interesting in it, will get you zero players, but just the bragging rights to call your pack more stable in a forum fight.

 

 

Personal opinion:

 

Optimize, only when its needed. The year is 2011, an i7 and a couple of GB's of ram is something very common. You will be astonished to imagine how fast an i7 is. So before you go optimize , always think if its needed. Cause you may end up wasting your time in something that wont attract players, wont save you a penny, players wont even understand its impact in a 100 players server.

 

Players judge features by their existence. But they only judge optimization, by its effects. They will complain about missing features, but they wont complain about missing optimization, if its consequences are not visible ( lag ).

 

Have a nice day :)

Link to comment
Share on other sites

I agree in some parts... but is only discus and not an guide for me, no one have the time to spend at last 20 sec to read your or mine bla bla guide... they want facts.

 

 

Link to comment
Share on other sites

2) An optimized pack isnt always the best pack. Default optimization can give you up to 1000 players in a 120 euro/month machine given that you spend some time coding something that attracts the players. On the other hand, fully optimized server, without any interesting in it, will get you zero players, but just the bragging rights to call your pack more stable in a forum fight.

 

Thats actually true BUT optimization is always different and always for the better its not only to get more players but its for stability too.

 

For example take memory...usually ppl have a pc with 8gigs which is more than enough for quit some time BUT the memory leaks and stuff still make the pack unstable he just dont notice it until a certain amount of player when hes at a point where he cant allow such freezes or shutdowns to happen.

 

Or lets take a cpu optimalization doesnt matter how strong cpu you have it still matters so it always necessary.

 

In my opinion optimalisations are must do things as far as any pack goes if you want to know why look into the "proud to be shit" aionemu and than look into l2j and than l2emu :)

 

PS.: There can be really big differences beetwen packs if you watch only l2j you cant see it but even aion which was like 1gb at boot for memory footprint can be so fats with proper reworks to use under 300mb(the private pack of mrpoke currently use under 200mb) :)

 

Link to comment
Share on other sites

When your server starts lagging due to tenured generation getting full in one day, then that would be an indication that your server succeeded and its time to optimize ;) But if you never reach the point of lagging in a good machine, you should know that your population count is bellow the excepted one.

Link to comment
Share on other sites

There is all time one thing to optimize (code speaking), and code optimized = more players with same machine, or better use of hardware ressources. Stability is essential aswell, who cares your server can go 2 weeks if it crashes alone/voluntarly by evil ppl.

 

So improving code, whatever level it is, can :

- help to have more players using same computer specs.

- give a better/smoother quality of play if you had already a good computer (and avoid, for exemple, to reboot every day but every week).

 

Personally, I think you have to code anytime you can in order to optimize. One little + one little + one little... 2mo + 3mo + 1mo ram saved... As Intrepid said, there can have huge differences between packs. I won't begin on IL differences, but just know there is a difference of 200 mo between the heaviest and the lightest (which is the lightest :D It's easy, else I won't talk about :)).

 

It's the same for any chronicle, ad basically, 200mo saved it's a lot of new players, or ram used for internal program.

 

Ofc at one moment, you optimized all.... This is only during this time you can take a break IMO.

 

----

 

Another part of optimize is about configs themselves, and about hardware/softwares. I'm not in fond of this part, so I will just let my turn. I just point the fact even the code is essential, it doesn't do all. Take a shitty hardware, and you got same result than using a crappy pack (and even worse).

 

Well, thread is about coding so :).

Link to comment
Share on other sites

great reflection, I managed after little more or less 80 hours to make use of ottimizzazzione high rate pvp server to my 600 megs of ram and only 2 virtual cores, holds 50 people comfortably without any lag. so I wonder why people who have super server with 2 i7 and 8gigs of ram is not concerned about optimizing your emulator to make additions without being useless? sorry for the bad English I'm using google translator

Link to comment
Share on other sites

so I wonder why people who have super server with 2 i7 and 8gigs of ram is not concerned about optimizing your emulator

Simple.

 

The time it takes to optimize your server to save 40 euro/month rent by buying a cheaper machine, during that time, you can code custom things that will attract more people and bring more donations.

 

Its all about the money at the end. Code what brings you more money :)

Link to comment
Share on other sites

repeat im using very bad server , vps with 600mb ram and 2 virtual cpu optimized at max no unecessary script etcetc and server max player withiut lag is 50-55 can make pvp

 

with doble of ram can reach 100 char simply? (ps pay 10€ for this hardware and i can delete donation)

Link to comment
Share on other sites

hardware i know but is connection speed the problem italy was into 200° into nation adsl speed (need d a lot a € for 10/1 down up )  and for student is  big problem pay hosting society

 

Well network is a problem indeed but you can get a really cheap VPS easily so...

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

    • hahaha you are big mate !!! 😄 i really appriciate 
    • Dear Dexter's! of Lineage2dex.com Congratulations to all with successful start!  🎉  The opening went smoothly, without lags or disconnects.  As usual, our Autumn-Winter season started with a huge online! All starting locations are filled with players! Thank you Dexters for your support and choice of our project! You are amazing! 🤗  ✅ Tomorrow (September 30) ➡️ Open registration on Seven Signs. (18:00) ➡️ First Epic Boss: Queen Ant (check ALT+B in game, to see respawn time for all epics) ➡️ Start TvT Event  (with season rating). ➡️ Combat Manager(TvT reward master) sell basic goods (no epic jewelry) ➡️ Nobless available for ToDs. You can purchase it from Astarte Full RoadMap for Autumn Season (2024): https://forum.lineage2dex.com/threads/16677/ Wiki on site for new players: https://lineage2dex.com/en/wiki#aboutx25 You also can check Roadmap in game, press ALT+B and go on Episodes tab. Right there in the game data base you can find all the server features.  We wish everyone a pleasant and fair game. We are sure you will enjoy and get a lot of fun playing on Dex 🚀   ——-       Hello Dexter's! 3rd day of server life, all stable and smooth! Players exping, farming and make first PvPs 😉 We are seeing amazing activity for new players! Welcome! Invite your friends and don't forget to use referral program: https://forum.lineage2dex.com/threads/16680/   Today will be the first Epic Boss - Ant Queen. Exactly time of re-spawn you can check in game ALT+B - raid tab. Good luck to everyone and fair play! Also we want to remind, after AQ die in 5 hour re-spawn Alternative version of AQ. Hope our friends from America time zone get some fun too 😉   We see you reports about elite mobs, and we plan to make some changes soon, some nerfs for blue version.   Thx for you feedbacks and support Lineage2dex!
    • Dark Dragon *NEW ERA*   Grand Opening at 12.10.2024 at 7.30 AM central Europe time   A new era begins… The concept is based as a long-running non P2W, emulating the official server in the High Five era. We offer players a very high quality PvP engine, a great concentration on supporting characters, clan activities, blacksmithing and last but not least our own very high quality events.   What have we prepared? Now in a litte more detail: - XP/SP 2x, adapted for long-term concept - drop 2x amount and chance basic - DCoins are part of the drop from monsters - Adena drop amount +50% to base - Spoil 4x - Raid drop amount 2x - Raid drop chance 1x - Party xp/sp bonus +40% - Manor drop 4x - Quest drop 3x - Quest reward xp/sp 3x - Quest reward Adena 3x   - Vitality – drop/gain specially modified for High Five and Dark Dragon concept, lvl 4 = 300% - the total maximum bonus of XP/SP is 700% - Nevit blessing system 100% work - The number of simultaneously connected characters from 1 computer is limited to 10 - Enchant chance ~ 65-68% / safe value +4, max value +16 - Mana regeneration +50% - weight limit +100% - Subclass without quest - 3 subclasses (level 40 – 80) - penalty grade – NO - augment from D grade weapons, jewels - Sell/Buy augmented weapons, jewels, RB jewels - all High Five Raid Boss Weapons - Spirit Ore, Soul Ore weight 0 - Shots weight 0 - buffs duration – 120 min - buffs amount – 26 - dance / song duration 120 min - dance / song amount – 16 - Masterwork retail, of course Interlude weapons also - Teleport (Gatekeepers) – free of charge   our Discord server --> https://discord.gg/qhakzBcgkj   website --> Dark Dragon New Era - Free private game server for all Lineage 2 fans                
    • L2 AARON - Advertising Banner L2 Aaron - Website L2 Aaron - Discord
  • Topics

×
×
  • Create New...