PDA

View Full Version : Some eA(sql/txt) common errors FAQ


Digital
03.10.2005, 01:41
===============================================
A couple of pointers when posting in the forums:
===============================================
-Try to be as forward with your question as possible, include the best description of your problem in the Subject line of the post! If u can't fit it all in the subject line, add another bit of comment in the description line.
+Posts like "OMGWTFBBQ Char server crashing!!1!!!1" are not acceptable.

-In the body of your post, please clearly explain what your problem is in proper English as best you can (foreigners exempt from spelling/grammar mistakes).

-If you can, please include outputs, happenings, pictures, or any other useful data pertaining to your situation so we can further investigate and help solve your problem!

-Please fully post your problem as best you can at first, DO NOT post half of something or some odd sentence to hold your spot for you while you go to school/dance/sleep. This is annoying and just clutters the forum with more posting of helpful people trying to ask what in the world you are talking about! Clearly write out your situation and then post it. (I have seen all these examples in posts)

-Make sure you are posting the correct content in the appropriate forums. ie. "-I made a new wedding sprite!" does not belong in support.

-A very important thing to know: HOW YOUR COMPUTER AND OPERATING SYSTEM WORK! The support forums are not PC Tech 101 classes, please use www.google.com or another search engine to locate your problem as seeing the internet contains knowledge on everything imaginable! If you are using the Windows OS, which most do, please learn how the DOS commands work, they are very important to debug your servers if they aren't starting, it's not even that hard to learn! Here's a good site for PC help: http://www.computerhope.com/ and for DOS help: http://www.computerhope.com/msdos.htm


===============================================
Generic eAthena FAQs:
===============================================
Q: What kind of computer setup/internet connection should I have to run my own server?
A: Depending on how many people you want to host this can vary. Obviously the lower the system, the less you will get out of it. Here is a kind of "guide" for you to judge a system by:
-Bare minimum: 500Mhz, 256MB PC-100
-Recommended: 800MHz+,512MB PC-133
-Performance: 1GHz+,512MB+ PC-133/ddr-2100+
+All systems need to be running an NT version of Windows (NT/2K/XP/2003) (XP Home doesn't work well at all with SQL)
+You should have a dedicated line such as Cable/DSL/T1/T3/OC-# with at least 128KBPS upload, that should give you support of maybe 20-50 users depending on how much you actually get of the 128KBPS.

Q: I don't have Windows (NT/2K/XP/2003/.NET) what do I do?
A: Go pirate it or buy it!

Q: How can I find my IP address info?
A: For your LAN IP, Go to Start > Run > type in 'cmd' > hit enter > type in 'ipconfig' > hit enter. That is your IP address, and subnet mask. To find your WAN IP if you're behind a router, just visit a site like http://ipchicken.com =)!

Q: How can I edit NPCs?
A: There are MANY threads on this in this forum, just search.

Q: Is there a program to run the server for me?
A: If you want to run your server with the included easm2 (eAthena Server Manager) program, just go to your athenasql folder, and unrar the easm2.rar file, just launch the program and edit the IPs accordingly under each tab, the ports should be default if you didn't reconfigure them otherwise. EASM2 allows automatic reboots when crashed.

Q: How can I edit my server settings like experience rates and pet info?
A: Look in your C:\athenasql\conf\battle_athena.conf file and configure your server accordingly. There are some threads on the forums about editing this, just search.

Q: How can I setup my router for people to access my server from outside my router/LAN?
A: http://eathena.deltaanime.net/forum/viewtopic.php?t=10

Q: How can I set which at (@) commands GMs/Players can use?
A: Go to your conf/ folder in your athena folder. Open atcommand_athena.conf in notepad. Change number next to the command to 0 to allow players to use that command, or 1 for GMs only.

Q: Where can I change what maps and NPCs load?
A: Just look under your conf folder in map_athena.conf. A page or so after the initial config stuff, look at the NPC: and MAP: commands. MAP: is what map will be loaded and NPC: is what NPC to load. If there is a double forward-slash (//) in front of something, that means it's commented out and won't be used.

Q: What is recompiling the server do and why do I need it?
A: Recompiling the server means to take the source code provided with the eAthena distributions, and "repack" it into an executable (windows systems). This can slightly improve performance as it slightly tailors the new compilation to your exact computer a bit more. If you're a C/C++ programmer, you can write new functions, effects, commands, and other stuff for eAthena, recompile it, and use it on your own server!

Q: Where can I learn C++ from?
A: A good online place to get a good grasp would be http://cplusplus.com in my opinion. Just go under the documentation section and visit C++ documentation.

Q: No one can see the player names of anyone on the server.
A: Check to make sure under your accounts.txt or login table that the ID number for your players is 1000001 or greater! The GM ID numbers should be lower then this and should be written in the gm_accounts.txt.

===============================================
eAthena TXT FAQs:
===============================================
Q: Where can I find a good noob guide for the eAthena TXT version?
A: Here's the official one by DarkChild: http://eathena.deltaanime.net/forum/viewtopic.php?t=7

Q: What are these files in the save folder?
A: Those are the files that save all the data of your users on your Ragnarok server:
-The accounts.txt stores the login account data.
-The athena.txt stores all the user's characters and inventory.
-The card_db.txt stores all the names of the cards for the server to use.
-The castle.txt stores data about which guilds own what castles and what settings they applied on the castles.
-The g_storage.txt is the guild storage info.
-The guild.txt stores guild information.
-The party.txt stores part data.
-The pet.txt stores the pet data for character's pets.
-The storage.txt stores data for character's item storage data.

Q: Why are there so many .tmp files in my save folder, and what do they do?
A: These files are spit-outs of data from each .txt file after the server has crashed. The server saves every certain time period (default: 60 sec), if it crashes before that time, it will dump the contents of memory into those. Open them in notepad or equivalent to read and append missing data into the real .txt files. Rumors say they decrease system performance, they do not, they merely just make more junk on the server's HD.

Q: Why doesn't my map server start up?
A: Multiple things to check:
1. Are your configs setup properly? The default conf files properly configured to your server's IP and such should run fine. Go back to check and see what you put in and possibly change it back to the default.
2. Are your GRFs configured properly? In your conf folder, open GRF-files.txt and make sure the paths are going to the GRFs you have from your Ragnarok client.
3. Are the IP settings correct in your LAN_support.conf file? Check to see if you have the proper subnet/subnet mask/IP address of both servers.
4. Check your NPC scripting if you did custom NPCs!
5. Did you recompile a new version? Check your programming, no one's perfect !

===============================================
eAthena SQL FAQs:
===============================================
Q: Where can I find a good noob guide for setting up the MySQL and eAthena SQL servers?
A: My own guide here at: http://eathena.deltaanime.net/forum/viewtopic.php?t=2483 ^^

Q: How do I transfer my data over from the TXT eA to the new SQL eA?
A: If you want to upgrade from your existing eAthena txt version, just run the converter programs: char-converter.exe and item_db-converter.exe (Run these inside your old eA TXT's folder).

Q: How come my character server won't connect to my login server? (Or why don't my login/char servers work?)
A: There are multiple answers to this to check:
1. Check to see if the user s1, password p1, ID 0, sex S exist in your login table under your Ragnarok database. Use the MySQL Control Center to access it.
2. Check your cofig files in your conf folder, all the configs should be set to 127.0.0.1 and leave the port numbers alone! Except in the LAN_support.conf, you must put in the proper LAN IP for the servers, and then properly configure the subnet and subnet masks accordingly. Please look on www.google.com on how to subnet a network.
3. You don't have the ragnarok@localhost account created on your MySQL server, go to the MySQL Control Panel, then right click on user administration, create a new user, host: localhost, username: ragnarok, password: ragnarok, then check the box next to the ragnarok database, then select the ragnarok database and on the left side click the all privileges box. Hit apply then close.
4. A good way to debug the servers would be using DOS, just go to start > run > type cmd > hit enter > switch to your eAthena folder > execute each server this way. This way you can view the file outputs of the servers to see what they're saying, and use that debug output in your forum post for help! =)

Q: Why doesn't my map server start up?
A: Multiple things to check:
1. Are your configs setup properly? The default conf files properly configured to your server's IP and such should run fine. Go back to check and see what you put in and possibly change it back to the default.
2. Are your GRFs configured properly? In your conf folder, open GRF-files.txt and make sure the paths are going to the GRFs you have from your Ragnarok client.
3. Are the IP settings correct in your LAN_support.conf file? Check to see if you have the proper subnet/subnet mask/IP address of both servers.
4. Check your NPC scripting if you did custom NPCs!
5. Did you recompile a new version? Check your programming, no one's perfect !


===============================================
Final Words:
===============================================
-This guide is no where near complete, obviously gathering all the FAQs at once is near impossible, this list will grow significantly as time goes on. As for my "pointers for posting in these forums," they are not official, just my suggestions, feel free to comment/add upon them and anything else in this FAQ. Maybe this can help stop, or at least slow down the degradation of the Support forum until the admins deal with it.


===============================================
Credits:
===============================================
-Thanks to the wonderful staff and community of the eAthena forums for providing feedback to the dev team to make a better game for us all!
-Thank you eAthena dev team for your hard work and dedication in created such a great set of programs to help us enjoy the game of Rangarok even more! Keep up the good work!

FAQ Guide written by: Conrad