State of Profit

Page up/Page down :slight_smile:

If you look under “How do I play” there is a list with all the controls there.

Kind regards,
Mike

Added :slight_smile: Default is “Load” in which case it loads for 20 sec and then leaves with whatever the bus has. The other option is “Full load” and then it waits until all 50 passengers are present.

You can change it on the vehicle window (where you also can see how many passengers you’re currently transporting!)

Let’s hope this update went better than the last one I did at 3 am, then the server was down all night until I woke up :stuck_out_tongue:

Mike

Zooming out to map seems to be broken now. The entire screen is white when I zoom completely out.

Humm… I don’t get that. Try reloading? I’ll rework the map soon so it looks a bit better, is a bit more functional and works like it should :slight_smile:

Bus-station UI is flashing madly :emo:

The game starts freezing and stuttering, even the audio begins to stutter, after a couple minutes of play. Seems you might have a memory leak because RAM goes up to 700MB before it freezes my entire computer and I’m forced to kill the java process.

That together with Riven’s post sounds indeed like some kind of loop that kills the JVM, no sleep for me :stuck_out_tongue:

Mike

infinite loop:


java.lang.NumberFormatException: null
	at java.lang.Integer.parseInt(Unknown Source)
	at java.lang.Integer.parseInt(Unknown Source)
	at com.stateofprofit.client.k.f.y(Unknown Source)
	at com.stateofprofit.client.k.f.processMessages(Unknown Source)
	at com.stateofprofit.client.k.b.run(Unknown Source)

Fixed. a semicolon can do a lot :slight_smile:

Oh, and Riven, the 0 comes from the word “null” in the exception (nullpointer exceptions and numberformatexception null comes through as 0). Don’t know if it’s my code that does that somehow (I treat it like a string…) or if it’s the stringwriter.

Yay, I’m starting to get stars for the game, the purpose of the game is fulfilled! :wink: (That being people care enough about it to click appreciate, not that I only created it to get stars :P)

Not a single client stacktrace, server warning/error or weird behaviour for 10 minutes, I dare to go to sleep :stuck_out_tongue:

Mike

Yep I can reconfirm the zooming out to map problem. When it supposedly transitions to the map when zooming out, the entire screen goes white instead. I decided to wait if it was loading something but after 5 minutes, nothing new showed up.

I know why, your gfx card doesn’t support the big texture the new map generates (it’s 4096x4096). I’ll split it up into smaller textures when I fix the open issues around the map.

I’m off to family today though so it won’t be until tonight. Sorry for that :frowning:

Mike

Fixed :slight_smile: I’ve also improved the quality of the map, updated the loading screen so it displays that it’s downloading the map instead of putting it under “Connecting to server”, fixed the graphical artifacts around the map and made it move at the correct speed when dragging it with the mouse.

Left to do with the map:
Scroll towards the mouse
Markers for cities and own stations
Move using keys

Kind regards,
Mike

Several time, I have loose money in making road :

  • A draw a line with the road tool
  • The money is remove
  • The road is created
  • The road disappear with reimboursement !!!
  • The tree near by my road begin to move :o Iiiiiiick

Edit :
How come that sometimes I loose money (10-30$) ?

Ok, when i saw your same, it make me want to try to do some building model :emo:
There was a way to do it that I wanted to try (not too bad results, it can be better). My aim was to do several buidlings, one low poly mesh obj file by buidling, one 512x512 texture by buidling, coords between -50…+50. So a “quick” result :


.

I’m pretty sure that you will do a graphic update at some point (it is far form the first thing to do ;D). But if you want, you can use my models has a starting point.

That’s the server not accepting your input (I check everything on the server to avoid multiple people doing changes to the same place, or people cheating by feeding the server with info that isn’t correct). It shouldn’t happen too often though so if you see it often I’ll have to have a look at it, maybe the server is too sensitive on some point (although, it’s pretty much the same code as on the client).

I noticed that on the server (never when testing it locally) the money for building stations/roads isn’t always removed when building it. As the client synchronizes its money with the server every 30 seconds (an when a vehicle enters a station) you’ll eventually see the money removed. I’ll have a look at it after some other open points (finishing the map and fixing a bug with path finding).

Amazing! :slight_smile: 512x512 per building is a bit too high but I’ll definitely use them as a starting point once I add more buildings and improve the quality of the cities. Did you create them from scratch yourself? If I explain what I want and you make it I’ll reimburse you :wink:

Mike

Sniff loosing 10k$ while trying to build bridge :

  • Building 2, one after another (-5k$)
  • Both disappear
  • Since I’m a morron :wink: rebuilding bridges (-5k$)
  • Both disappear

There I am sure that there was NO reimbourse.

I can’t say it is from scratch since I use photo found on the net :

  1. I google big image of building (for example this one).
  2. I use Gimp to create texture from it (mainly the perspective correction tool).
  3. It is mainly texturing boxes.

Annoying! I’ll have a look at it, there are some annoying bugs at the moment that needs attention.

Ah, I thought you drew them yourself :slight_smile: I’ll make sure they’re not copyrighted :stuck_out_tongue:

hye,t he map doesnt appear for me anymore, u said you fixed that, but now it doesnt work. just a head up :slight_smile:

Fixed it (and fixed the bug that caused it) and restarted the server :slight_smile:

EDIT: Or so I thought… looking into it.

EDIT: Right, it’s quite smart to update the server code when fixing a bug. Restarted the server. (Be aware that every time I restart the server all passengers waiting reset to 0).

EDIT: Sorry for the 20 min downtime. As a token of appreciation I’ll give you a reward soon :wink:

EDIT: Game updated. You can now move the map using the arrow keys (same controls as the rest of the game), the map zooms in relation to where the mouse is and you can see all your stations on the map.

Mike

I found the bug and fixed it locally (will update it to the live system later). They were actually linked :slight_smile: When building a road where there are trees the trees will get removed, but the cost for it is never deducted on the client (therefore you loose small amounts of money sometimes, as the server does remove the money). If you’re low on money and you pull a road through some trees the server will complain that you cannot pull as many roads as the client said, and it’ll correct the client.

Mike