Nice guide! You could organize it a little bit better.
This is a discussion on [Guide]PokeNet Server Setup within the Tutorials forums, part of the Pokémon category; Alright lets get this going! So you decided to set up a pokemon server? Choosing PokeNet? Good choice. Index: 1. ...
Alright lets get this going! So you decided to set up a pokemon server? Choosing PokeNet? Good choice.
Index:
1. Server Installation
-1.1 Downloading Server Files
-1.2 Installing/Setting up MySQL
-1.3 Installing/Setting up Database
-1.4 Downloading/Installing JRE & JDK
-1.5 Server .bat Explained
2. Running the server
3. Client Setup
-3.1 Installing Client
4. Setting up a Website
-4.1 Downloading/Installing/Starting Xampp
-4.2 Setting a website in Xampp
5. GM, Commands and Extras
-5.1 Commands
-5.2 Extras
6. Problems & Errors
7. Credits
8. Updates
1. Server Installation
1.1 Downloading Server Files
Link: PokeNet Server SVN
1.2 Installing/Setting up MySQL
Now we are going to set up a MySQL Server.
This is for the database of all the accounts/characters that will be created.
Now we are going to download the MySQL Setup.
Link: MySQL 5.1.40 Installer
Save it also somewhere safe. Now start the installer.
Once it's loaded, click th button "Next >".
Now make sure Typical is checked. and click the button "Next >".
And than just click on "Install".
Now it's installing MySQL. (Wait till it's done)
Now there will open a new window.
Click there on "Next >" and again on "Next >"
Than it will close.
Now we go back to the install window.
Make sure "Configure the MySQL Server now" is checked.
and that "Register the MySQL Server now" is unchecked.
Than click on Finish.
Now there will open a new window.
There just click on "Next >".
Now make sure "Detailed Configuration" is checked and click on "Next >". Check "Developer Machine" and click on "Next >".
Here make sure "Multifunctional Database is checked and click on "Next >" and click again on "Next >".
Now make sure "Online Transaction Processing (OLTP)" is checked and click on "Next >".
Here make sure everything is Checked and click on "Next >".
Now we have to check "Standard Character Set" and click on "Next >".
Make sure "Include Bin Directory in Windows PATH"is unchecked and click "Next >"
Now Check "Modify Security Settings" and fill in your passwords(Make sure they aren't easy).
And make sure Create An Anonymous Account is unchecked and than click "Next >" and click "Execute". (wait till it's finished)
And click on "Finish".
Congratulations! You setup your own MySQL Server.
[mysql setup portion thanks to nyaa]
1.3 Installing/Setting up Database
Now we are going to setup your database in MySQL for your PokeNet server.
First we are going to download Navicat(Lite).
Link: Navicat Lite 8.2.17 Installer
Next, locate your pokemon.sql file located in the server files from the SVN
Install it. Now start it.
Click on Connection > MySQL.
Than you have to fill in like this:
And click "Test Connection".Code:Connection Name: localhost Hostname/IP address: localhost Port: 3306 Username: root Password: (here your password you used when you created your MySQL Server)
-If it's Successfull click ok.
-If it's Failure check everything if everything is filled out right and try again.
Now dubble click on "localhost_3306".
You will get 3 new things underneed it.
(Ignore these don't touch these databases.)
Now do a right click on "localhost_3306".
And click "New Database..."
Fill by "Enter database name:" this in: pokenet.
Now you created a new database which your going to use for your PokeNet server.
Now do a dubble click on "pokenet" it will open some new stuff ignore that.
Now do right click on "pokenet" and do "Execut SQL file..."
Go to the SQL file you downloaded. With the opener.
And search for pokenetdb_blank.sql and use that file only.
(should be located in the server files)
and click on "start".
Now it's installing the SQL file to your Database.
Just wait untill it's finished.
When it's Finished click on "Close".
And than quit/close Navicat.
Congratulations! You setup your own PokeNet Server Database.
1.4 Downloading/Installing JRE & JDK
Since this server/client run through java, your going to need up to date JRE and JDK files and runtimes.
Download them here:
JRE 6: Link
JDK 6: Link
Follow any install wizards and your good to go.
1.5 Server .bat Explained
The server uses a .bat file to start the server .jar file. There some parameters you should know about in case you want to edit it. .bat files are edited by notepad or any text editor so configuring this file is extremely easy.
The current command line is:
(the name of the .jar might be different then yours)Code:java -jar PocketMonsutaServer.jar -s high -p 500
-s and -p parameters indicate the quality settings and player amount settings.
The recommended settings for PokeNet are as follows:
Set your .bat (or .sh if on linux) accordingly.Code:-low < 1.86ghz < 256MB Ram < 1mbps Up/Down Connection 75 Players -medium < 2ghz 512MB - 1GB Ram 1mbps Up/Down Connection 200 Players -high > 1.86ghz > 1GB Ram > 1mbps Up/Down Connection > 500 Players
2. Running the server
Running your server is easy.
Open the Server Folder.
If your on windows, run the SERVER_START.bat else if your on linux then use the run_pokenet.sh file.
Once you run one of these files you will get a command prompt popup, then a little java window.
It should look something like this:
The 'blahs' are where your going to put in your configurations for your database, etc.Code:0 players online [No record] Start Server Stop Server Save Settings blah blah blah blah blah Quit
For the first textbox put in the host of the SQL in which case it will be "localhost".
Next is the name of the table that we put pokenet sql into which we called it in this tutorial "pokenet".
The next two textboxes are for the username and password of the SQL, the username unless you changed it, should be "root" and the password was set by you.
And finally the last textbox is the name of your server.
Click save settings and then start the server up.
Congratulations you just started your own pokenet server!
3. Client Setup
3.1 Installing Client
Now we are going to download the Client.
Link: PokeNet Client
If your going to distribute your client, the users only need the .bat, .jar, and lib/res folders.
Once you have installed the client where you want it, make sure you go to the /res folder and edit the servers.txt
It should have a bunch of writing but this is the format:
Example:
As the admin if your playing your server from the machine that is hosting it, then you going to need to connect via 127.0.0.1 or localhost, the first line is the name of the server, this will show up on the client and the second is the ip/hostname.Code:Admin Server 127.0.0.1 Pocket Monsuta [USA] pocket-monsuta.dyndns.org
4. Setting up a Website
4.1 Downloading/Installing/Starting Xampp
Download Xampp lite and install it.
Link: Xampp Lite 1.7.3 Installer
Start up Xampp Control Panel (You can find it in Menu>Progams)
And check Svc that stays before Apache and start Apache and close Xampp Control Panel.
4.2 Setting a Website in Xampp
Coming Soon
5. GM, Commands and Extras
5.1 Commands
5.2 ExtrasCode:/announce [message] - announcement /jumpto [username] - teleport to a user /mute [username] - mute a user /unmute [username] - umute a user /kick [username] - kick a user /ban [username] - ban a user /unban [username] - unban a user /playercount - show the # of players online /changeweather - change the weather of the map - normal - change weather to normal (sunny) - rain - change weather to rainy - snow - change weather to snowy - fog - change weather to foggy - sandstorm - change weather to sandstorm - random - random weather change -Ex: /changeweather rain /stopserver - stops server
[There are extra things here so let me explain and feel free to download if you want them.]
ThinClient - The thin client was made to install the game client from the svn - i guess if you edit the source and put your own svn up, then its useful.
SVNCliient - the svn client actually updates the current client files,but it downloads from an svn.
ChatServer - A separate chat server for staff + users, never got it to work since we didnt have the SQL etc. Might set this up later though.
ChatClient - Same as chat server.
BulbapediaScaper - Basically just takes all the info off of Bubapedia and puts it into a format that the client can read for move lists, evolutions, etc.
Excel Spread Sheet w/ Pokemon Spawns & type chart:
http://pokedev.co.cc/downloads/PokeNet.zip
http://pokedev.co.cc/downloads/PokeDev.xlxs
6. Problems & Errors
Server
Error:Fix: Ensure that when you turn your server on, you have it configured correctly first. The proper configuration will look something like this:Code:The account server is currently offline. Please try again later
ClientCode:database host database name database username database password server name
Unable to run client (.bat opens then closes rly fast)
MEGAUPLOAD - The leading online storage and file delivery service
Put that in your client folder replacing the /lib directory.
Web
N/A
7. Credits
Guide Structure: Nyaa [aka Aukemon0NL]
Emulator: Pokenet Dev Team
Website: NorFuzzor
Errors/Problems:
Hosting Files: Tanomist
Everything Else: -DefaulT
And everybody I forgot.
8. Updates
Pictures coming soon.Code:[7/2/2011]Updated GM Commands, added JRE and JDK information, added section 5.2 SVN Extras, added section 1.5 (.bat file) [7/4/2011]Added error and fix under server.
Last edited by -DefaulT; 30-11-11 at 11:45 PM.
If you like my posts, then push the damn button!
throw new PokemonException(); //Gotta catch 'em all
Nice guide! You could organize it a little bit better.
Fuck Phoenix. Get Blackbird.
Well i am going to later, im in a rush cause i have a meeting, but i will add pics and be more organized later :D
If you like my posts, then push the damn button!
throw new PokemonException(); //Gotta catch 'em all
Server run no error, client run but have error. (in client or server, i dont know)
Error: "Server account offline, please try later".
This error tells that server can't reach the Mysql Database, Check your configuration ( Mysql user : root ) and ( Mysql password : *** )
@-Default, wah good job !
on the SVN ( server folder there is .sql database file )
(also your multiupload link is not working) ^^
Don't forget to add JRE and JDK
Last edited by tanomist; 02-07-11 at 08:39 PM.
Well for one, your trying to login before the server startup was complete.
Make sure you edited your servers.txt in the client /res folder, or in the private servers text box on the server selection screen, you put in the ip 127.0.0.1
The server console window should read something like:
Insure that your settings in the servers java window is correctly configured.Code:C:\Users\user\Desktop\pokemon\2\Server>java -jar PocketMonsutaServer.jar -s high -p 500 INFO: Fishing database reinitialised INFO: Pokemon Databases loaded. INFO: Trade Block List established. INFO: Maps loaded INFO: Npc sleep timer started INFO: Movement Service started INFO: TCP acceptor started. INFO: UDP acceptor started. INFO: Network Service started. INFO: Time Service started INFO: Service Manager startup completed.
Mine reads:
Thats in order, host, table name, sql user, sql password, and server name.Code:localhost pokemon root ****** Pocket Monsuta
Also, i updated the GM commands, to use gm commands set your adminlevel to 3 in the database, table pn_members
Last edited by -DefaulT; 02-07-11 at 08:42 PM.
If you like my posts, then push the damn button!
throw new PokemonException(); //Gotta catch 'em all
@Default
This error is?
@tanomist tnx to help me ... forgot I had changed the password and do not remember that Navicat u.u"C:\Users\Padrao\Downloads\StrickenFromHistory-PocketMonstersOnline-df11f38\Stric
kenFromHistory-PocketMonstersOnline-df11f38\Server>java -jar Pokenet.jar -s high
-p 500
java.io.FileNotFoundException: .svn\entries (O sistema nÒo pode encontrar o cami
nho especificado)
at java.io.FileInputStream.open(Native Method)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileInputStream.<init>(Unknown Source)
at java.io.FileReader.<init>(Unknown Source)
at org.pokenet.server.GameServer.getSVNRev(GameServer.java:103)
at org.pokenet.server.GameServer.<clinit>(GameServer.java:68)
A contribution to the development of client / server.
Ignore some of the mistakes ... that can make you want to improve ... runs on radeon cards ... xD
MEGAUPLOAD - The leading online storage and file delivery service
if that help you use it =)
No more,
Good section! -default
cya"
Last edited by neohazuki; 02-07-11 at 09:09 PM. Reason: adicional information
@neohazuki im pretty sure the fix for ati radeon cards is included in the SVN. But then again thats a question for tanomist not me since he is the one that uploaded it originally.
On another note, updated the thread, check section 8 for the updates and im glad you got it working neohazuki :D
And that error is i think because its attempting to get the svn (which the original one was shut closed. if you want to fix this change the svn location in the java source.
This is whats causing your error
Its harmless, just ignore it.Code:/** * .Gets the SVN revision for the server * * @return the value on the third line of .svn/entries */ private static int getSVNRev() { int rev = 0; boolean foundRevision = false; try { BufferedReader input = new BufferedReader(new FileReader(".svn/entries")); try { String line = null; while (( line = input.readLine()) != null && !foundRevision){ if(line.equals("dir")){ rev = Integer.parseInt(input.readLine()); // this hopefully is the revision number foundRevision = true; } } } finally { input.close(); } } catch (IOException ex){ ex.printStackTrace(); // probably no svn file... oh well. } return rev; }
Last edited by -DefaulT; 02-07-11 at 09:12 PM. Reason: damn forum lag D:<
If you like my posts, then push the damn button!
throw new PokemonException(); //Gotta catch 'em all
@-defaulT using the files from SVN did not get with a few changes I made in the / lib. I posted it up for the look you want and change...
When I use the SVN of this error:
No more,Path: null
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:Initialising sounds..
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:Slick Build #266
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:LWJGL Version: 2.2.1
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:OriginalDisplayMode: 1920 x 1080 x 32 @60Hz
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:TargetDisplayMode: 800 x 600 x 0 @0Hz
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:- Sound works
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:- 64 OpenAL source available
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:- Sounds source generated
Sat Jul 02 17:12:34 GMT-03:00 2011 INFO:Starting display 800x600
cya"
Updated again, added section 1.5
In any case neohazuki at least you fixed it :]
If you like my posts, then push the damn button!
throw new PokemonException(); //Gotta catch 'em all
There is no pokemon.sql file around.Next, locate your pokemon.sql file located in the server files from the SVN
View in my msg, my /lib client is it: MEGAUPLOAD - The leading online storage and file delivery service
I change lwjgl and jimput in /lib.
Have error... but run... look in the attachment!
No more,
cya"
pokenet.sql -> clean
aye default can you make a tutorial on how to properly compile, i fucken suck at it and also get corrupted files XD.
@neohazuki
client is not 100%, that is why you get errors, we all get errors and that's why there is now a development section.
Last edited by Omnija; 03-07-11 at 01:05 AM.
-o)
/\\
_\_V
The Penguin is "ALWAYS WATCHING".. HEHE
Spoiler:
Looks good gonna try it when I get back from vacation :)
Also > LOL at using my guide structure and some instructions xD