[Release]PokeAres (Client + Server)

Status
Not open for further replies.
I fixed that, delete the 2 first lines.

ctually the correct sql syntax is without the quotes ;)
so just replace the first 2 lines with
CREATE DATABASE IF NOT EXISTS PokeAres;
USE PokeAres;

i think there's a bug when a pokemon is trying to learn a new move. at lvl 7 bulbasaur learns vine whip, but even though it says bulbasaur is trying to learn vine whip, no screen appears to select where it should learn the move
 
ok here are some "tweaks"

if you have the visual bag where the move learning does not work then go to MoveLearning.java ( located at the ui package) and replace the functions MoveLearnCanvas() with this
public MoveLearnCanvas() {
bg = new Label();
poke = new Label();
setSize(257F, 144F);
setVisible(true);
bg.setBackground(Color.black);
bg.setOpaque(true);
bg.setBounds(0.0F, 0.0F, 256F, 144F);
add(bg);
setY(1.0F);


}
and draw with
public void draw(int pokeIndex) {
poke = new Label(GameClient.getInstance().getOurPlayer().getPokemon()[pokeIndex].getFirstFrontSprite());
poke.setSize(80F, 80F);
poke.setLocation(getWidth() / 2.0F - 40F, getHeight() / 2.0F - 40F);
add(poke);

}

To increase the pokemon exp rate go to package org.pokenet.server.battle.mechanics and inside BattleMechanics.java find function
public double calculateExpGain(Pokemon a, int u){
double result = (((((a.getLevel() * a.getBaseExp())/7))/u));
return result / 2;
}
To increase the exp gained just modify the return value. example if you add return (result / 2)*6; then the emount of exp will be 6 times more
 
can someone come-up with query to add the tables cause the given query to add the table does not work on mssql. I'm not going to attempting installing other sql database which can conflict my other mmropg server.
 
can someone come-up with query to add the tables cause the given query to add the table does not work on mssql. I'm not going to attempting installing other sql database which can conflict my other mmropg server.

the server was never ment to be used with MSSQL (microsoft Sql Server). It is only used with MySql ;) In order to use with mssql i guess you'll have to rewrite the server to use mssql java library instead of "mysql-connector-java-5.1.8-bin" . Actually having both Mssql and Mysql server's running on the same machine should not be a problem ( if you are already running a WAMPP/XAMPP or LAMP application you already have mysql installed )
 
Last edited:
Edit: Got it working... Thanks andsnake

I know everybody got there up and running. But I just thought I post it here incase new user needed.

Code:
To install the Server:

1. Install mysql as typical. Later, setup as Detail instead of Standard. Set pw and leave everything else default. 
If you get stuck at service start error 0; exit setup and run cmd as admin. Type "sc delete MySQL". Should successfully
removed MySQL. Close cmd and then try the setup again. 
If 3306 is in-use, use 3307 and up.

2. Make sure apache is installed. Configure apache appropriately. Will not walk you through this; you can find tutorial out there.
I would really recommend getting Zend instead of configuring apache alone. Once install Zend, make sure to turn off error handling
for later web template issues.

3. Extract phpMyAdmin to the apache web root. Rename its folder to phpMyAdmin instead of the long name with it version and languages. Open
phpmyadmin folder and open config.simple.inc.php and config the bowfish secret. Save as config.inc.php on desktop. Close document and drag
the file you save to the phpmyadmin folder where you put it in apache web root.

4. Get on the web and go to localhost/phpmyadmin/index.php. Once login; logon as root and the password you setup for mysql. 
Import the sql included in poke server folder. Execute it. If you get error, go to it's original ragezone site and grab the right code.
You may setup a user for yourself on poke database for later login. 

5. Install Java. Once installed, Create Environment Variables as follow:
Win 32:
-=System Variables=-
Variable Name: %JAVA_HOME%
Variable Value: C:\Program Files\Java\jre7\bin

Win 64:
-=System Variables=-
Variable Name: %JAVA_HOME%
Variable Value: C:\Program Files (x86)\Java\jre7\bin

restart your computer

6. Once boot up, config server ip and sql logins info. Including client side too. GoodLuck!










---------------------------



Anyone know what happened for the picture below?
Xerixe - [Release]PokeAres (Client + Server) - RaGEZONE Forums


I'm getting the same problem here.

and I need to know how to set starting items.
 
Last edited:
Edit: Got it working... Thanks andsnake

I know everybody got there up and running. But I just thought I post it here incase new user needed.

Code:
To install the Server:

1. Install mysql as typical. Later, setup as Detail instead of Standard. Set pw and leave everything else default. 
If you get stuck at service start error 0; exit setup and run cmd as admin. Type "sc delete MySQL". Should successfully
removed MySQL. Close cmd and then try the setup again. 
If 3306 is in-use, use 3307 and up.

2. Make sure apache is installed. Configure apache appropriately. Will not walk you through this; you can find tutorial out there.
I would really recommend getting Zend instead of configuring apache alone. Once install Zend, make sure to turn off error handling
for later web template issues.

3. Extract phpMyAdmin to the apache web root. Rename its folder to phpMyAdmin instead of the long name with it version and languages. Open
phpmyadmin folder and open config.simple.inc.php and config the bowfish secret. Save as config.inc.php on desktop. Close document and drag
the file you save to the phpmyadmin folder where you put it in apache web root.

4. Get on the web and go to localhost/phpmyadmin/index.php. Once login; logon as root and the password you setup for mysql. 
Import the sql included in poke server folder. Execute it. If you get error, go to it's original ragezone site and grab the right code.
You may setup a user for yourself on poke database for later login. 

5. Install Java. Once installed, Create Environment Variables as follow:
Win 32:
-=System Variables=-
Variable Name: %JAVA_HOME%
Variable Value: C:\Program Files\Java\jre7\bin

Win 64:
-=System Variables=-
Variable Name: %JAVA_HOME%
Variable Value: C:\Program Files (x86)\Java\jre7\bin

restart your computer

6. Once boot up, config server ip and sql logins info. Including client side too. GoodLuck!










---------------------------






I'm getting the same problem here.

and I need to know how to set starting items.

Anyone getting this error, like whereby you can't see pokemons in battles and etc.
Do NOT use the latest java version. Java 6.

im getting this error Account Server is currently offline.

You need to start the server first.
 
thanks i fixed it now the next issue is that healing potions dont work for some odd reason i healed a pokemon in battle and it well the game kinda frozed but the music still played.
 
Well, seems everything is set up server side, however the client won't launch. I run the .bat file and cmd opens up and the game looks like it wants to open, but when the game windows starts to open, it closes. Any ideas? Looks like others have had this issue resolved with a different lib folder, so I've got no clue?
 
Well, seems everything is set up server side, however the client won't launch. I run the .bat file and cmd opens up and the game looks like it wants to open, but when the game windows starts to open, it closes. Any ideas? Looks like others have had this issue resolved with a different lib folder, so I've got no clue?

Open up your start.bat and add "pause" at the end of everything.

So it should look like this:

Code:
set CLASSPATH=.;lib\*;dist\PokeClient.jar
"C:\Program Files\Java\jre6\bin\javaw.exe" -Djava.library.path=lib\native org.pokenet.client.GameClient > pokenet.log
pause

Then copy and paste what the error is and post it here.
 
should really considering in coding it for newer java so we don't always have to look for older version. Just a suggestion.
 
The new battle window is great but is there a way to make it so that the "space" button progresses and selects as well? I've been playing with it but my changes tend to bug it out and does weird things like opening bag or auto-selecting run, etc. I can't seem to figure out the proper logic to make it so the client ignores all keypresses during the text (when the text is being written) other than "space", and only registering the other keypresses when the text is done loading.
 
Status
Not open for further replies.
Back