Main Contents
November 26, 2008
This script is not mine. I stole it somewhere from l2j forums.
You create a file and copy-paste the following text in it:
#!/bin/bash
pid=`ps -C GameServer_loop.sh -o pid=`
pid2=`ps -C java -o pid=`
if [ ! $pid ] ;
then
if [ $pid2 ] ;
then
kill $pid2
fi
echo “Gameserver was restarted “`date` >> /path/to/gameserver/log/restarter.log
cd /path/to/gameserver #PATH TO YOUR SERVER
./startGameServer.sh &
fi
Then by crontab we will execute it every minute:
crontab -e
*/1 * * * * /path/to/cron_rr
The cript will check if gameserver is running and if not will start it.
Filed under: Linux |
Comments (0)
November 24, 2008
This is for Linux and only Linux and will work on more distros (I use Debian Stable).
- First you enable telnet on gameserver. Set password, post etc.
- You create a file with any name, lets say here: rr_telnet.sh
- Write in this file (or copy-paste):
(echo “password”; sleep 3; echo “shutdown 600″; sleep 3; echo “exit”) | telnet 127.0.0.1 12345
- Save the file.
- Type: crontab -e
- In our example, I restart server every certain days. So I set the script to be executed every day at 23:50
50 23 * * * /path/to/rr_telnet.sh
- Now, every day at 23:50, this script will be executed and shutdown will start with 10 minutes countdown.
Filed under: Linux |
Comments (1)
November 22, 2008
If you make a server just to be rich, that’s good. I know server owners that make over 4000 euro /month. But as every investment, needs to invest money. Nothing appears from nowhere.
What you will need:
- 1-3 months to figure out what you want and what players want and finalize the form of the server. Leave nothing for after server opening.
- About 50-100 euro/ month to rent a dedicated server. I won’t talk about ADSL. We talk about business not fun.
- Advertisements: Banners on Top Lists etc. About 40 euro/ month.
So you need to spend some money to get some back. Also note that server won’t get donations from the first month. So you have to be sure that all these costs, can be covered for about 3 months and more. Most server don’t get many players before the 6th month. Its a long-term investment!
Note that:
- Servers that got 1000 players since month 1, lost them the same fast after a while.
- Anything that comes fast, leaves fast!
- Don’t try to bring players by giving them items and enchants! You will make them bored and those will be the first ones that will leave your server, taking more players with them!
- Do not make changes! Every change you do will make 1/10 of your players leave. 10 changes, all players!
You will need excellent knowledge of the game. I suggest you those 1-3 months you are going to think of what you do, go play on retail a bit. Retail account costs around 13 euro/ month and really worth to help you learn more things.
If you make a server without having any money and you expect to cover the costs by donations, I bet that you will close on the 3rd month, best case.
Filed under: Guides |
Comments (0)
November 20, 2008
This method is not that hard but requires -some- knowledge.
What you will need:
Internet, a Linux with installed VGA drivers, a private server with gameguard check disabled (like RaidFight), Patience.
- Install Lineage 2 Gracia: Part 2, update client.
- Get patched system: http://www.raidfight.com/files/linux/Linux_Gracia_Part_2.tar.gz
- Remove/backup old system and use the one provided above.
- Get Tahoma font, and place it inside ~/.wine/drive_c/windows/fonts - without it you will see no text in game: http://www.raidfight.com/files/linux/tahoma.ttf.tar.gz
- Install Wine. I used wine from Ubuntu repositories working perfect. Try the one from Ubuntu repositories and if doesn’t work use the one from Official Wine Website: http://www.winehq.org/site/download
- Setup Wine, run winecfg and set compatibility mode to Windows XP (not always necessary).
- Open /etc/hosts as root. Enter this: 89.149.255.12 L2authd.lineage2.com
- Run Game
More info here: http://raidfight.com/forum/viewforum.php?id=30
Filed under: Linux |
Comments (0)
November 18, 2008
Some high rate server may have issues with common items since the latest l2j updates. Common items are added to droplist causing a lot of items being droped on high rate servers. How to fix this?
I found a simple SQL query that modifies the drop chance. The usage is simple:
Lets take that server drop rate is x40 and we want common items to drop with x10 rate. Run this SQL query. This query will divide the chances by 10 so x40 would be x4.
Update droplist set chance = chance/10 where (itemId >= 12006 and itemId <= 12361) or (itemId >= 11605 and itemId <= 12308);
Have fun!
Filed under: General |
Comments (0)
November 16, 2008
Has been a long time since I last did a post. I was a lot busy and bored to mess with my blog. I descided to make clean a issue most l2j admins ignore: Networking.
Data number one:
iface Rx Tx Total
eth0: 33.17 KB/s 329.82 KB/s 362.99 KB/s
Data number two:
Server Status:
—> Player Count: 141/200
+–> Object Count: 63820
+–> AI Count: 42967
+…. L2Item(Void): 124
+………. L2Item: 19073
+……. L2Monster: 40103
+……… Minions: 3597
+.. Minions Groups: 2404
+……….. L2Npc: 3340
+………… L2Pc: 139
+…….. L2Summon: 10
+………. L2Door: 1001
+………. L2Char: 0
—> Ingame Time: 8:22
—> Server Uptime: 16hrs 23mins 3secs
—> GM Count: 3
—> Threads: 62
RAM Used: 1374
What this means?
Send: 329 KByte/ Second
Receive: 33 KByte/ Second
Players Online: 141
329 KB / 141 = 2.3KByte/ Second
33 KB / 141 = 0.23KByte/ Second
This is the connection that players “suck” from the server. These numbers are peak numbers.
Lets translate it to KBit / Second, just multiply it with 8.
Send: 18Kbit
Receive: 1.8Kbit
So, whats the failure behind the ADSL connections most servers use?
First lets make clear that we talk about the majority of the ADSL-based servers. There are ADSL-based servers with 300+ players online. We will speak about those that can’t hold more than 50.
Why ADSL connections are slower?
ADSL connection from server to client does this path:
Server ->
Router ->
Area ISP Connection ->
Town ISP Connection ->
ISP Interconnection ->
National ISP Connection ->
International Connection 1 ->
International Connection 2 ->
International Connection 3 ->
National ISP Connection ->
ISP Interconnection ->
Town ISP Connection ->
Area ISP Connection ->
Router ->
Player
Dedicated server to client do this path:
Server ->
Datacenter Router ->
Datacenter Backbone Connection ->
Backbone ->
International Connection 1 ->
International Connection 2 ->
National ISP Connection ->
ISP Interconnection ->
Town ISP Connection ->
Area ISP Connection ->
Router ->
Player
Of cource, dedicated servers have faster connection to the international backbones, more direct because they are supposed to work this way. ADSL connections are not connecting directly because they are cheaper and they are targeted to browsing/downloading usage. There is no reason for a ADSL to connect directly to international backbones. This means that even if the route till the packets reach international, in case of the ADSL, will have about 100ms of latency carrying on it, where dedicated server would have 10-20ms. This also happen because a ADSL ISP, has a 8Gbit connection that is shared to 3 million ADSL customers or even more. A dedicated server most likely to have a 100Mbit pipe to 10 servers (thats how most good dedicated server companies work). So in fact a ADSL connection is much more oversold than a dedicated server connection, causing the connection to have a lot of traffic and this results to high latency. Maybe the latency is not really visible in most cases, 20ms doesn’t mean good latency in a LAN network but means good on a ADSL line. So don’t get tricked.
I spoke about International connections. I won’t speak about National connections. I know very good that most Greek ISPs (this also apply to other countries sometimes), have bad inter-connection between them. What this means? They do take great care on high quality connections to the out world, but don’t care enough care of the connections between them. So if your server is in the same ISP as your player’s then things are fine. You can hold about 100 players with a greek ADSL. But if your server is on different ISP than your player’s things become nausty and you might not hold more than 30.
This is not happening to discurage future admins from hosting their servers on a ADSL connection. This article is written tou courage you to move to a dedicated server as soon as possible, than keep being on a ADSL. Dedicated servers can be cheap and with high quality, so cheap that a ADSL is not worth. For example a small dedicated that can hold 500 players could cost arround 50 euro / month when a Greek ADSL 10/1Mbit costs arround 20 euro / month. The cost is so low that you don’t even need donations.
Filed under: Guides |
Comments (1)
August 15, 2008
This method is not that hard but requires -some- knowledge.
What you will need: Internet, A Linux install with VGA drivers, a private server with gameguard check disabled (like RaidFight), Patience.
1- Install Lineage 2 Gracia: Part 1.
2- Get patched system: Here
3- Delete old system and use the one provided above.
4- Get Tahoma font, and place it inside ~/.wine/drive_c/windows/fonts - Without it you will see no text inside client: Tar.Gz or Zip
5- Install Wine: Get Wine Now
6- Setup Wine, run winecfg and set compability mode to Windows XP.
7- Open /etc/hosts as root. Enter this: 89.149.255.12 L2authd.lineage2.com
8- Run Game.

Filed under: Linux |
Comments (0)
July 31, 2008
Mammin NPC’s (Blacksmith and Merchant) are accessible only on a certain period and only by the winning Seal. This can be easily changed, and make those NPC always accessible. Usefull for PvP servers that want to keep the Seven Signs but want them simpler. To apply this patch, needs core modification on l2j sources for which you need Eclipse (usually). It is really simple. It just remove the restrictions.
Patch here
Filed under: L2J Core Patch |
Comments (0)
June 11, 2008
Its a fact that Greece has most private server related to its population. Thats evil. I mean, what is that illness that Greek people have that makes the 99% of the private server players into “wannabe-gm”. The worst part is that Greek servers are mostly highly populated. I am Greek and I own 2 private servers and I am admin into another 2. But I don’t understand some things like…
A successfull Greek private server should:
Be on a ADSL home line with dynamic IP, upload below 1024Kbit and latency over 300ms.
Be on a Home PC with Windows XP and a thousand shit running in the background. Also server admin should play from the same PC so he makes sure he is always online and when players shout “LAAAAG” he awnsers that they are noobs and he (the Admin) doesn’t lag.
Admin should have great knowledge on how the TH and Necro is played. Should also never had any Quest. Having Quests is another illness that never comes over you until you die (in real life).
Server’s skills should work 200% and usually are coming from various websites where someone that has slighly more knowledge than our server Admin (knowledge to open notepad) has edited all the PASSIVE and NOT_DONE skills and added whatever stats he wanted. Thats good. Noone of his players will ever find the difference, because never saw any skill working as Retail.
Server should be based on some serverpack which is 4-5 month (at least) old and its author claim its 100% working all of the skills, quests etc. It doesn’t matter that a Kamael character has only 10 active skills full classed up to 85 level, but the active skills that was not made, are removed from passive (as deactivated). That also has made the world famous roumor that Kamael race sucks.
Also max players on server should be not more than 30 (with lags) or 3000 with huges lags. In the second case the problem comes from the fact that server admins have put 3000 bots on their own server, so you my fellow player, believe that really has 3000 players.
DDoS every 30 minutes. Yes successfull servers are DDoSed every 30 minutes from other evil server owners that are jealous from the server’s success (the 3000 bots and 2 players). Yes there are people like these. Always believe your Admin when says that others cause the problems. He knows everything.
Bugged quests and mobs are placed by the server’s admins. They do this so they can… I don’t know, but its widely known that server admins place the bugs in purpose. Their server has no bugs at all and if some bug appears is placed by a Admin on purpose. Ask them why, I never understood.
Curse Death Link skill causes 3k damage with full HP.
Mages have disabled the Fear/ Cancel and related debuff skills because they are evil skills and ruin the game. It doesn’t matter that a Mage is 1 hit from a dwarf in such servers. Mage have to be balanced!
If server Admin doesn’t know how to disable these skills there is rule for not using these demonic skills. You will get banned account, but don’t worry, if you offer the Admin 20$ you will have your account back, but don’t bother. If you start from the begining you will have your uber-char again back in 10 minutes.
Wipe or rollback is made every week for 1 or 2 days
Restart takes 20-300 minutes.
Update takes 1-2 days downtime.
Closes after 1 month.
Players should never use pet invetories or pets because they are “bugged”.
Players should wait about 2-3 month for the server to update to latest L2J revision. On new chronicles/ throne updates, that time can be made 4-5 months. Usuall excuse? New revision has many “bugs” (when you hear “bug”, always remember that bug means a feature that doesn’t work at all meaning its not added. It doesn’t matter that in later revisions about 10 exploits are fixed, but that some item has not be added yet (of is available in gm panel with not right stats).
Players are following some guide to do a quest (that illness remember above?) and the guide on the website they follow, its outdated. In final these players leave because that Quest it bugged because its not working as the guide says.
Well there are more things that I can’t recall now. There rules apply to any (wannabe) successfull private server of any nationality. I just refered to Greek private server because thats the area I care about. Some of you will recongise your private server or the private server that you play on. I am not a saint and I make mistakes, but I write this down so I can remember what to do next time I will open a server. Remeber, always know less. its for your own good. Curiosity killed the cat, etc…
EDIT no1: Also has about 3000 votes and 15 maximum players online.
Filed under: General |
Comments (3)
June 6, 2008
This droplist is for PvP server that don’t want the materials.
It includes adena, seal stones, Life Stones, Clan Skills Item Drops and Raid Jewels. All drops rates are the original and not modified.
Adena Droplist [changed to have insert only. not create table]
Seal Stone Droplist
Life Stones 1
Life Stones 2
Raid Jewels [updated to include drop for Frintezza's Necklace]
All Blessed/Enchant Scrolls [some small fixes in the SQL syntax]
Clan Skills Items Raid Drops [with comments per item]
[ updated August 10, 2008 ]
Filed under: SQL |
Comments (0)