Riven - Thanks for telling me, I wasn't aware of it (was at dinner). Fixed it (an infinte loop, added a way for it to get out of it). I gave you a star for it (I'll not give it to everyone posting as I don't want people to post for that reason ).

Kappa - Crashing at that point can also mean that the server isn't accepting the login as the connection with the server is put up before my own loading screen appears. On the other hand, clearing the cache shouldn't make the server start accepting it...

Let's say there are >1000 passengers waiting at a station, and there are >10 buses in that station, it seems like the 'currently loading' buses aren't handled 'concurrently', as in, it will fill the first bus, wait a minute, fill the second bus, wait a minute, etc. Maybe my observations are wrong, but at the moment it seems busy stations are clogging up. (Hence I'm building lots of stations in each city)

Hi, appreciate more people! Σ ♥ = ¾Learn how to award medals... and work your way up the social rankings!

They're loading at the same time (minimum loading time is 20 seconds) but only one bus per 3 seconds can leave a station (the vehicles are updated once every 3 seconds on the server and the one who came first leaves first). If you have a ton of vehicles then it'll indeed clog up, any ideas around it?I could lower the 3 seconds but as the server is a single core and it takes about 50ms right now to update the 1000 or so vehicles I don't want to make it much more frequent or the server won't be doing anything but moving vehicles.

Another way is to allow several busses to leave each 3 second tick, but if bus 1 comes first, then bus 2 and then bus 3, while the server first handles bus 2 (not first in line), then bus 1 (first in line, can leave) and then bus 3 (not first in line now as bus 2 is) it'll not be predictable how the vehicles are going to be loaded and leaving.

They're loading at the same time (minimum loading time is 20 seconds) but only one bus per 3 seconds can leave a station (the vehicles are updated once every 3 seconds on the server and the one who came first leaves first). If you have a ton of vehicles then it'll indeed clog up, any ideas around it?

I think the problem lies somewhere else.

At the moment, in 'Sawyerville Central Bus Station' there are 800 passengers and 10 buses.

It's been like that for about 5 minutes...

Hi, appreciate more people! Σ ♥ = ¾Learn how to award medals... and work your way up the social rankings!

Riven: That sounds weird, It must be something else as well indeed. I'll have a look at the busstation (game might be acting weird if I pause some threads Humm... did you change the end station on some vehicle? I noticed some bugs around that before and it might be one here as well.

Apo: I'm getting tired of that bug, I'll look into it as the first thing after I'm done with the map.

Alright I'm ra4king1 this time, I have read the directions and I'm on my way to beat Riven and Apo

EDIT: Oh my god this world is huge! Do you load world data by chunks from your server? When I would scroll around it would lag and freeze for a second.

I indeed load data by chunks from the server. I'll do some double buffering later so it doesn't lag/freeze.

EDIT: You can now log in using ra4king and the password from you latest account. It'll take a server app restart before other people see your buildings as ra4king but the ranking will be correct right away.

Riven: Did you change the end station on some vehicle? I noticed some bugs around that before and it might be one here as well.

Alright I'm ra4king1 this time, I have read the directions and I'm on my way to beat Riven and Apo

EDIT: Oh my god this world is huge! Do you load world data by chunks from your server? When I would scroll around it would lag and freeze for a second.

I indeed load data by chunks from the server. I'll do some double buffering later so it doesn't lag/freeze.

EDIT: You can now log in using ra4king and the password from you latest account. It'll take a server app restart before other people see your buildings as ra4king but the ranking will be correct right away.

Hmm I built a bus station, and clicked on "Buy Bus". Then my entire browser locked up, and soon after my entire computer. Somehow I was able to open the task manager. I noticed 2 instances of Java running. I killed both and everything returned to normal. Refreshing the page, it froze again but this time, I couldn't click on anything for over 5 minutes. After ages, the task manager opened again and the only instance of Java running was using 1GB of RAM on my 2GB system!! What a trip for just trying to buy a bus. Are Riven and Apo trying to discourage competition?

So is all you do: create station, buy buses, assign them random station, repeat?

EDIT: Crap I'm not good at this. I built 2 stations and have bought a handful of buses. However, all of them are now at 1 station and that station isn't getting any passengers. So I'm stuck at $0 until any passenger comes T__________________T

So is all you do: create station, buy buses, assign them random station, repeat?

EDIT: Crap I'm not good at this. I built 2 stations and have bought a handful of buses. However, all of them are now at 1 station and that station isn't getting any passengers. So I'm stuck at $0 until any passenger comes T__________________T

Yup, it's called Alpha 1.0 for a reason I've got big plans but it's going to take me some time to get it all in seeing as I've still got a full time job (and family!). The only reason I can get lots done now is thanks to being on vacation. Soon the missus will start complaining that vacation is vacation and not game programming time...

a way bigger world, with towns not more or less randomly placed like on the current map, but a couple of 'hotspots' that will be the main regions to compete for.

The cities can grow 20 squares in each direction and the closest city is now 41 squares apart, dunno if I should make so cities can grow together or make the max size smaller, I'll have to do one of them to create hotspots.

Regarding bigger maps. Currently the server takes about 500mb memory and the machine has like 2gb ram, I could double the size but that's about it (java has a max size of 1.2gb at the moment to leave some for mysql, apache and windows.

Regarding bigger maps. Currently the server takes about 500mb memory and the machine has like 2gb ram, I could double the size but that's about it (java has a max size of 1.2gb at the moment to leave some for mysql, apache and windows.

For the heightmap (if that's the RAM eater) you can use mapped files. The OS will swap data out for you automatically.

Hi, appreciate more people! Σ ♥ = ¾Learn how to award medals... and work your way up the social rankings!

Regarding bigger maps. Currently the server takes about 500mb memory and the machine has like 2gb ram, I could double the size but that's about it (java has a max size of 1.2gb at the moment to leave some for mysql, apache and windows.

For the heightmap (if that's the RAM eater) you can use mapped files. The OS will swap data out for you automatically.

It's indeed the heightmap (with two or so things on, content and owner). Mapped files? sounds interesting, I'll look at it

How did you break it? Built a station in the middle of nowhere and ran out of money?

Riven: You're my hero, when you started talking about memory I profiled the server with a ton of land in it, and noticed that it's not my land tiles that take up the memory, but the mysql jdbc connection not streaming the data and instead storing it all in memory. I changed it to streaming and made the land 4 times as big as the live server (10 million squares). The memory footprint is now 500mb instead of 600mb like it was with a quarter the size To increase it more I need to move over to the files (sounds really neat), but I'm thinking this will be enough for now

java-gaming.org is not responsible for the content posted by its members, including references to external websites,
and other references that may or may not have a relation with our primarily
gaming and game production oriented community.
inquiries and complaints can be sent via email to the info‑account of the
company managing the website of java‑gaming.org