State of Profit

java.awt.image.RasterFormatException: (y + height) is outside of Raster
	at sun.awt.image.ByteInterleavedRaster.createWritableChild(Unknown Source)
	at java.awt.image.BufferedImage.getSubimage(Unknown Source)
	at com.stateofprofit.client.s.b.cx(Unknown Source)
	at com.stateofprofit.client.j.f.loop(Unknown Source)
	at com.stateofprofit.client.j.f.execute(Unknown Source)
	at com.stateofprofit.client.a.run(Unknown Source)

people tell my that they’re jealous of my invisible station

and after restarting, it’s back :stuck_out_tongue:

That’s weird seeing as I create a picture with a specific size… well, I put in a Math.min to make sure I don’t go outside of the size.

It’s not the first of these kind of bugs (things that work for everyone else) that you get, what kind of system are you using?

That’s a nice bug! The station labels aren’t connected to the content of each tile (I have a special Station list with all stations) so it is possible from a program point of view. No idea why it would happen though… I guess I’ll have to have a look at it :wink:

But first I really need to fix the pathfinding.

Mike

You really must not search in that direction.

I probably get most exceptions because I do odd things ingame to try to test edge-cases.

I must not? :slight_smile: I was mostly curious as the code for that was pretty straight forward (create a picture of a specific size, read in the picture assuming it’s that size :wink:

Mike

If you think “64 bit Vista Home Premium”, “Intel Q6000 2.4GHz” and “JRE 6u26” will narrow it down, here you go! :wink:

Can we yell loudly, while flapping our arms over our heads at you for using Vista? :point:

Yes.

Wait, no. I’m going to assume you only use it to test these things with :persecutioncomplex:.

Nope, but maybe you’d have answered Solaris or something and it might have :wink:

Flaps with arms

Mike

Very nice game, although not much happens. Some of the graphics looks good like trees, terrain and water. The buses and houses could need some improvement. Graphics for intersections would be nice too. Can’t wait for the trains to get implemented.
Found a little bug, when I’m pressing shift and the arrow keys to scroll faster it only works UP, UP+LEFT, LEFT, DOWN, DOWN+RIGHT and RIGHT not DOWN+LEFT or UP+RIGHT. If shift (or any other key) is pressed before DOWN+LEFT or UP+RIGHT is pressed the game will not scroll at all, and if shift is pressed after DOWN+LEFT or UP+RIGHT no speed increase on the scroll occurs. But it works fine with the WASD keys.

Hi Kamerat and welcome to the JGO forum! You picked a great thread for your first post :wink:

I agree that the game still is limited, I believe in release early, release often as it helps a lot when it comes to bug fixing and getting feedback that actually can be implemented into the game. What did you mean about graphics for intersections? They are there as far as I can see but maybe we mean different things.

I’m no graphics artist so I didn’t spend too much time on it (frankly, it wouldn’t matter even if I did :P), buses will probably stay like they are for now as the next graphics part I’ll fix is the buildings (adding different kind of buildings, with bigger buildings closer to the center).

Thanks for the bug, I’ll look into it, doesn’t sound very hard to fix :slight_smile: EDIT: I tested it on my computer and they all work fine. If anyone else can confirm the bug I’ll have another look at it, but as it seems now it’s a limit of your keyboard and not of the game, the code is exactly the same for wasd and the arrows (not all keyboards like 3 buttons pressed at the same time :))

Trains will eventually come but I think the first thing to add, content wise, will be farms and then either industries or airplanes.

Kind regards,
Mike

Thanks for welcoming me. I liked this game so much so i registered to report the bug.
The intersection graphics is a minor thing. Its just the T intersections that needs improvement i thought the X intersection did too but that was because i looked at bonbonchan’s 3D model image. The X intersections looks good as it is now but the T just looks like the road coming from the side is just next to the road that goes straight ahead and that it is something that separates them. Very very minor.

On another point, I keep loosing connection to the server. I got a bad mobile Internet connection, though other sites seems to load fine.

I feel very honored that you registered on the forum just to report it. Once I am further down the line it seems like I need my own forum for the game as it’s quite active (on the other hand, my vacation is soon over and then it’ll slow down some on my part).

I thought the intersections were totally missing but this makes more sense :slight_smile: I’ll put the T intersection on the list (and have a look at how T intersections look like in real life :))

The connection with the server is lost if the server didn’t reply on a ping kind of message for 30 seconds. If it’s better now than it was 6-7 hours ago then it went down like a jojo because I was restarting the server a lot trying to fix a bug :slight_smile: If you keep getting it I could increase it to a minute, but then you will loose what you did during the last minute if the connection with the server goes down.

Kind regards,
Mike

6-7 hours ago it was down constantly. But i have lost connection 2-3 times after that too.

I will make a way so I can communicate with all connected players (broadcasting a message that the server is being restarted for example), it might be that you’ve been unlucky enough that you were online just when I restarted it.

Mike

Really nice game I love it. Can’t wait to see the rest of the gameplay. :slight_smile:

You said it took you 4 years. How much would it take you now to reach the same point?

Thanks for the kind words, it’s people like you that make me stay up until 3 am programming :slight_smile:

I think I spent something like 1500 hours during the last 4 years (about an hour per day on average). If I were to do it again I’d probably reach a better result (better data model and easier to expand, some of the early code looks horrible…) in at least a third of the time.

EDIT:
Fixed all known path finding problems. If you ever get “cannot find a path…” when there really is a path (and the vehicle never starts driving), let me know the name of the vehicle and your company name and I’ll fix it.

Also fixed an issue where you couldn’t click enter to log into the game (might need a refresh of the browser) and removing trees on the client when building roads now deducts money correctly

Open bugs, if you know anything else please let me know as I’d like to have it (close to) bug free before going on with content.
Station building not being shown although the text is (not reproduced)
Vehicles quickly go to “No path found…” before they start driving (reproduced)
The current passengers number on the vehicle screen isn’t reset to 0 when entering the station (reproduced)

Restarting the server.

Mike

A very low priority bug :

  • when buying something, time to time, the money is not display properly (something like the old and new money shown at the same time “$1024$”). It is rectified quickly when money is refreshed.

Sounds like a synch issue, I’ll have a look at it as well.

Also, fixed a bug where the map would not be displayed properly anymore when logged in for more than 20 minutes. It was linked to the raster error Riven got so I cannot blame Vista :wink:

Mike