State of Profit

You could do a floodfill much faster :slight_smile:

It works :slight_smile: a path of 5000 nodes takes like 10ms now. Still not great but a lot better than 300s (30.000 quicker is not too bad) :wink:

The only thing I changed was to make the closedList into a HashMap<CalculatingNode, CalculatingNode>, seeing as the closed list doesn’t have to be put in the comparable order and that one is the one growing a lot. Thanks for the push in the right direction Riven!

I’m sure I could improve it a lot more with your other suggestions, but that’ll have to wait until I’m not on a slow hotel connection.

Server is up and running.

Mike

The farm update will be a money sinker (and maker), the missis is working on all the details to make it fun (she’s a casual player who loves farm games). It should add another dimension to the game, something like a game within the game but still connected to the main game…

For the ones who make lots of money they will be able to increase the % of the income that goes to research (to improve the profit even more :)), or build airports (1.000.000+ per airport!).

Mike

sounds good, can’t wait. :smiley:

17 000 000 to spend… ;D

I’m a bit frustrated with the bus strategy : Load and full load is not enough. I would like more flexibility.

It should be possible to :

  • Define “quick load” or “load”
  • Define a Min load : 0, 5, 10, 25, 50 (for example)
  • buses should load at least the min load what ever append
  • If a bus is “quick load” and it has a min load 0, it leaves immediatly (what ever is its place in the line)
  • If a bus is “quick load” and it has loaded the min load, it leaves immediatly
  • If a bus is “load” and it has loaded at least the min load and there is not another bus in the line, it continues to load
  • If a bus is “load” and it has loaded at least the min load and there is another bus in the line, it leaves

So the actuel full load is a min load of 50.

ps : I’m near by to have done the outskirts of the map :smiley:

That sounds a bit complicated :stuck_out_tongue:

The reason why buses are so examined at the moment is due to nothing else being available yet. When there are more things to do I’m hoping that a bus strategy for every single bus won’t be necessary. I’ll try to keep the game at a higher level than needing to optimize each bus. If, once more content is added, the need still exists I’d be happy to add something similar to what you posted.

Thanks for coming up with an expansion to the load system. I’m hoping it won’t be necessary to implement but I’ll keep it in the back of my head :slight_smile:

Mike

EDIT: Fixed a bug related to passengers waiting on the stations (only gui wise, the server was always correct). Restarted the server.

I think there’s a deadlock in your code. When buying buses quickly, sometimes the whole game just hangs (does not stop responding, just freezes) and I have to close java from task manager.

It happen 1 time on 3 for me… it is almost unplayable.

Humm… I bought 150 buses at some different stations by clicking as quick as I could and didn’t notice anything at all. Is it still happening since my change yesterday that fixed some bugs around stations and vehicles?

Off to Legoland! Wuhuuu!

Mike

try 300 buses, :stuck_out_tongue:

EDIT: bought like 100 buses, nothing happened

maybe it is fixed, maybe the deadlock is triggered somewhere else? Idk, time will tell

the menu does flash alot when buying many buses

EDIT2: i don’t know if you can see it but if you look at bottom right corner of map there’s a nifty little bug

Right! We’ve got ourselves some envious bastard on the server :slight_smile:

The terrain around my huge cities is altered by somebody in such a way that the city can’t grow. :slight_smile:

Let’s hope it’s fixed. Well, I doubt people are supposed to buy 100 buses quickly after each other later so I won’t prioritize the flickering (the window redraws itself when you buy a bus).

I’ll look into it later, just came back from Legoland :slight_smile:

Envious bastard? That’s the missis you’re talking about! >:(

She just wanted to check your reaction :wink:

;D

Anyway, please keep in mind that it is a very effective way to destroy somebody elses city growth: laying roads everywhere!

hahah, 7 hours ago I was at legoland :stuck_out_tongue:

also, is there a reason the server is down?

I thought about the laying roads everywhere but I think something like that will lead to admin involvement :stuck_out_tongue:

I fixed a bug and restarted the server, sorry 'bout that :slight_smile:

Is it or a bug, or is it intentional that you don’t see the buses of other players anymore?

I restarted the server so it’ll take a little time before the cars start driving :slight_smile:

At least I hope that’s the reason, I’ll check into it later tonight :slight_smile:

EDIT: Humm… I don’t have any buses at all… off to the pool and then look at it later :slight_smile:

Mike

wow, I was gone for a week and I have 10 million to spend now… this will take some time :stuck_out_tongue:

I haven’t seen any white buses in ‘my’ towns, or any buses at all in towns of others, for like a full week :slight_smile:

hey, could you make an option in the station list so that it lists based on waiting passengers, cause it is a hassle looking through them all.