Java Pokemon Server Dev Project [ That was closed by Nintendo ]

I trying to edit battle window . I edited size Battle window in battlewindow.class . But battle window is between of game. I think i have a problem with command setCenter();. My software cant edit command setCenter();
Who have software edit class file and can edit setCenter(); ?
there all missed up, actually there is "BattleCanvas" and "BattleWindow" that having 2 bind windows ( coded like sh1t ( the setCenter(); is a - left top corner "CENTER" lol ) if you know basics of (x, y) you will figure out how to edit the interface ..
 
Uhm, create a new clean client from a 2D Game maker like Eclipse?
That's only my suggestion, the decision not mine..
But we can try create one it right?
So that we can compare the new client and pokenet and see what client is much better to use..
Java = hard coded, so many command lines(i guess)
Eclipse = easy to code and easy to use and like VB style?
I don't really know if im right or wrong w/ my comparison about this two but who knows, maybe Eclipse will do fit on the server.. :D:

~Lecks

The game is written in Java. Eclipse Origins and the previous versions are written in VB6. I don't think that would work.
 
Exactly. The client works and it's stable. No need to make a new one.
But then, even though its stable and working, we, the developers of the server is limited on their workspace like coding scripts, etc.
Its just my suggestion, dont take it seriously, i just think that if we do the server on an eclipse engine or other 2d game maker, then scripting and editing will be much easier than Java.. :D:

~Lecks
 
But then, even though its stable and working, we, the developers of the server is limited on their workspace like coding scripts, etc.
Its just my suggestion, dont take it seriously, i just think that if we do the server on an eclipse engine or other 2d game maker, then scripting and editing will be much easier than Java.. :D:

~Lecks

Right, but that would require a whole re-code.

Pokemon Cyrus (PCO) is written in VB6. I've seen the source. It's awful. It's so much more glitchy than Pokenet.
 
If your willing to learn how to script for eclipse etc. then you should be willing to lean java. Quit being lazy.

Edit-
Just found this out, and makes a lot of sense, the error where people cant launch the game is due to some library files being out of date, which makes sense, i tried having users update this before, but i totally spaced out that maybe i should update the library files on the server too.

so here are the libraries and just update yours in your server and client folder



You may also need to update lzma, slick and jinput, so google those.
 
Last edited:
So .. any new experience .. that some one can inform us with something ? :D
ex. .. how to fix server/client time zone ..
Or how about the software that can edit font of the client ... there is .png images ...
 
@tanomist Im going to have a look at the server/client for font and time zone see if i can come up with something, the font is defiantly changeable, i believe its all through image though.

@omnija i too would like to work with somebody on a server, i would host my own however i just own a laptop and running a server on it would just be retarded, if i had a dedi of some sort i would def. host a developmental server for a dedicated team.


Host information:
Code:
 * Represents a game server.
 * 
 * Starting a server requires a parameter to be passed in, i.e. java GameServer -s low -p 500
 * Here are the different settings:
 * -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



Edit -

Tanomist, i found where the time is going wrong, in org.pokenet.server.feature > Time Service.java

Code:
/**
	 * Called by m_thread.start()
	 */
	public void run() {
		try {
			/*
			 * Parses time from a common server.
			 * The webpage should just have text (no html tags) in the form:
			 * DAY HOUR MINUTES
			 * where day is a number from 0 - 6
			 */
			URL url = new URL("http://pokedev.org/time.php");
			BufferedReader in = new BufferedReader(new InputStreamReader(url.openStream()));
			StringTokenizer s = new StringTokenizer(in.readLine());
			m_day = Integer.parseInt(s.nextToken());
			m_hour = Integer.parseInt(s.nextToken());
			m_minutes = Integer.parseInt(s.nextToken());
			in.close();
		} catch (Exception e) {
			System.out.println("ERROR: Cannot reach time server, reverting to local time");
			/* Can't reach website, base time on local */
			Calendar cal = Calendar.getInstance();
			m_hour = cal.get(Calendar.HOUR_OF_DAY);
			m_minutes = 0;
			m_day = 0;
		}
		while(m_isRunning) {
			//Update the time. Time moves 4 times faster.
			m_minutes = m_minutes == 59 ? 0 : m_minutes + 1;
			if(m_minutes == 0) {
				if(m_hour == 23) {
					incrementDay();
					m_hour = 0;
				} else {
					m_hour += 1;
				}
			}
				m_hour = m_hour == 23 ? 0 : m_hour + 1;
			//Check if weather should be updated
			if(System.currentTimeMillis() - m_lastWeatherUpdate >= 3600000) {
				generateWeather();
				m_lastWeatherUpdate = System.currentTimeMillis();
			}
			try {
				Thread.sleep(60000);
			} catch (Exception e) {}
		}
		System.out.println("INFO: Time Service stopped");
	}

Looks as though it was getting the time from a php file located at "http://pokedev.org/time.php" which was prob just a simple php to retrieve the hosts time in a specific format, which is detailed as:

Code:
/*
			 * Parses time from a common server.
			 * The webpage should just have text (no html tags) in the form:
			 * DAY HOUR MINUTES
			 * where day is a number from 0 - 6
			 */

And since it can not connect to the website it is just reverting to the local time of the machine that is running the server.


So if you want to "fix" this "error" you have to options,
1. Make a php file and upload it to a webhost, then edit the server to connect to said file.
2. Edit the server to only use local time rather than the php file.



Edit 2 -
Looks like the font is through .png files.

In the game client, org.pokenet.client > GameClient.java
Code:
m_fontLarge = new AngelCodeFont(m_filepath+"res/fonts/dp.fnt",m_filepath+"res/fonts/dp.png");
		m_fontSmall = new AngelCodeFont(m_filepath+"res/fonts/dp-small.fnt", m_filepath+"res/fonts/dp-small.png");

I googled angelcodefont, and found this, try it out.
 
Last edited:
if you have a spare pc or laptop laying around you could always use that to host a server on it. I know what you mean hosting on the same pc you use is retarded.


I dont lol.

So i fixed the time :]

tanomist - Java Pokemon Server Dev Project [ That was closed by Nintendo ] - RaGEZONE Forums


edit the server to your hosted file, and here is the php for the file.

PHP:
<?php
// set the default timezone to use. Available since PHP 5.1
date_default_timezone_set('America/Los_Angeles');

// Format for PokeNet 
// DAY HOUR MINUTES
// where day is a number from 0 - 6

// Prints something like: 2 5 30
echo date('w h i');

// Coded by -DefaulT for PokeNet servers
?>
 
yea just used anglecode .. works perfectly ..

@Default u can host the pokenet on your laptop .. there is no problem with this ... (&VM on it)

anyway ...
we need a team, to help each other, any ideas ?
 
I haven't had the time to make any changes to the game lately.

Just been too busy in real life.. Maybe i'll take a look at it again tonight if I get the chance.
 
I dont lol.

So i fixed the time :]

tanomist - Java Pokemon Server Dev Project [ That was closed by Nintendo ] - RaGEZONE Forums


edit the server to your hosted file, and here is the php for the file.

PHP:
<?php
// set the default timezone to use. Available since PHP 5.1
date_default_timezone_set('America/Los_Angeles');

// Format for PokeNet 
// DAY HOUR MINUTES
// where day is a number from 0 - 6

// Prints something like: 2 5 30
echo date('w h i');

// Coded by -DefaulT for PokeNet servers
?>
Good job, but you also host a web for it .. ?
im setting the time for the local server machine time ..
 
I can host one. Its just annoying, if i had a zombie computer it would be better.

Then lets start one.
First thing i would say is to get a host for a test server, and set up a development forum for the team.

We also need to be able to make decisions as a team for what we think will benefit the server.

---------- Post added at 02:44 PM ---------- Previous post was at 02:42 PM ----------

Good job, but you also host a web for it .. ?
im setting the time for the local server machine time ..

Yeah, check the image, i set the host to 127.0.0.1/time.php, and i put the php file i made into my host.

So it works just fine by reading the php, and if i want to change the time of the server, just edit the php timezone.

---------- Post added at 02:52 PM ---------- Previous post was at 02:50 PM ----------

Get on chat to make things a bit easier for discussing the possibilities since we all have different IM clients.


or


its the same thing
 
Last edited:
Back