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.
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?
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.
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…
Oh, and build stations in cities
I’m planning to only show the competitors station labels when zoomed in a lot, that will help with that.
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.
Sometimes it takes 10ms and sometimes 80, 50 seemed like a good number
The routes aren’t cached for the reason that then I’d have to check all the cached routes every time a road is built (eventually, when there are roads everywhere).
The path finding system already handles intersections and stations as nodes (instead of every single road piece). That was a pain to set up but it seems to work
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
Wow you’re getting me very excited! I finally succeeded in making successful stations and I’m making a lot of money. This is quite a fun game! Great job and keep up the good work!!