Re: [Release]PokeAres (Client + Server)
Quote:
Originally Posted by
conejoo
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
Quote:
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
Re: [Release]PokeAres (Client + Server)
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
Quote:
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
Quote:
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
Quote:
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
Re: [Release]PokeAres (Client + 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.
Re: [Release]PokeAres (Client + Server)
Quote:
Originally Posted by
asianking
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 )
Re: [Release]PokeAres (Client + Server)
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!
---------------------------
Quote:
Originally Posted by
warriow
I'm getting the same problem here.
and I need to know how to set starting items.
Re: [Release]PokeAres (Client + Server)
im getting this error Account Server is currently offline.
Re: [Release]PokeAres (Client + Server)
Quote:
Originally Posted by
asianking
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.
Quote:
Originally Posted by
rygaku
im getting this error Account Server is currently offline.
You need to start the server first.
Re: [Release]PokeAres (Client + Server)
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.
Re: [Release]PokeAres (Client + Server)
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?
Re: [Release]PokeAres (Client + Server)
Quote:
Originally Posted by
thelabel
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.
Re: [Release]PokeAres (Client + Server)
Randomly started working after some updates on my computer.
Re: [Release]PokeAres (Client + Server)
I cannot start pokeares.bat why?
i start file-> dis-> pokenetserver.jar... and push starting..-> server is offline why?
Re: [Release]PokeAres (Client + Server)
Quote:
Originally Posted by
KeiranBam09
I cannot start pokeares.bat why?
i start file-> dis-> pokenetserver.jar... and push starting..-> server is offline why?
Make sure to wait for a while.
Re: [Release]PokeAres (Client + Server)
Re: [Release]PokeAres (Client + Server)
Quote:
Originally Posted by
KeiranBam09
You can't use Java 7 for the client. You need Java 5/6