Riven
|
 |
«
Reply #240 - Posted
2011-08-11 19:55:23 » |
|
You could do a floodfill much faster 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
Mike
|
 |
«
Reply #241 - Posted
2011-08-11 20:36:43 » |
|
It works  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)  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
|
|
|
|
Mike
|
 |
«
Reply #242 - Posted
2011-08-11 21:27:28 » |
|
I wish there was an easy way to spend large amounts of money, it becomes hard to get rid of millions :p
Maybe large buildings you can buy for cities that increases the rate of growth slightly?
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
|
|
|
|
Games published by our own members! Check 'em out!
|
|
counterp
|
 |
«
Reply #243 - Posted
2011-08-11 21:29:34 » |
|
sounds good, can't wait. 
|
|
|
|
Bonbon-Chan
|
 |
«
Reply #244 - Posted
2011-08-12 06:55:52 » |
|
17 000 000 to spend...  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 
|
|
|
|
Mike
|
 |
«
Reply #245 - Posted
2011-08-12 09:12:57 » |
|
That sounds a bit complicated  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  Mike EDIT: Fixed a bug related to passengers waiting on the stations (only gui wise, the server was always correct). Restarted the server.
|
|
|
|
counterp
|
 |
«
Reply #246 - Posted
2011-08-13 04:36:16 » |
|
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.
|
|
|
|
Bonbon-Chan
|
 |
«
Reply #247 - Posted
2011-08-13 07:30:38 » |
|
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.
|
|
|
|
Mike
|
 |
«
Reply #248 - Posted
2011-08-13 08:09:36 » |
|
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
|
|
|
|
counterp
|
 |
«
Reply #249 - Posted
2011-08-13 08:11:43 » |
|
try 300 buses,  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
|
|
|
|
Games published by our own members! Check 'em out!
|
|
Riven
|
 |
«
Reply #250 - Posted
2011-08-13 11:33:15 » |
|
Right! We've got ourselves some envious bastard on the server  The terrain around my huge cities is altered by somebody in such a way that the city can't grow. 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
Mike
|
 |
«
Reply #251 - Posted
2011-08-13 18:19:04 » |
|
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
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). 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
I'll look into it later, just came back from Legoland  Right! We've got ourselves some envious bastard on the server  Envious bastard? That's the missis you're talking about!  She just wanted to check your reaction 
|
|
|
|
Riven
|
 |
«
Reply #252 - Posted
2011-08-13 18:27:36 » |
|
 Anyway, please keep in mind that it is a very effective way to destroy somebody elses city growth: laying roads everywhere!
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
h3ckboy
|
 |
«
Reply #253 - Posted
2011-08-13 18:31:17 » |
|
hahah, 7 hours ago I was at legoland  also, is there a reason the server is down?
|
|
|
|
Mike
|
 |
«
Reply #254 - Posted
2011-08-13 18:34:28 » |
|
I thought about the laying roads everywhere but I think something like that will lead to admin involvement  I fixed a bug and restarted the server, sorry 'bout that 
|
|
|
|
Riven
|
 |
«
Reply #255 - Posted
2011-08-13 18:35:15 » |
|
Is it or a bug, or is it intentional that you don't see the buses of other players anymore?
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
Mike
|
 |
«
Reply #256 - Posted
2011-08-13 18:36:33 » |
|
I restarted the server so it'll take a little time before the cars start driving  At least I hope that's the reason, I'll check into it later tonight  EDIT: Humm... I don't have any buses at all... off to the pool and then look at it later  Mike
|
|
|
|
h3ckboy
|
 |
«
Reply #257 - Posted
2011-08-13 18:37:46 » |
|
wow, I was gone for a week and I have 10 million to spend now.... this will take some time 
|
|
|
|
Riven
|
 |
«
Reply #258 - Posted
2011-08-13 18:39:19 » |
|
I restarted the server so it'll take a little time before the cars start driving  At least I hope that's the reason, I'll check into it later tonight  I haven't seen any white buses in 'my' towns, or any buses at all in towns of others, for like a full week 
|
Hi, appreciate more people! Σ ♥ = ¾ Learn how to award medals... and work your way up the social rankings!
|
|
|
h3ckboy
|
 |
«
Reply #259 - Posted
2011-08-13 18:55:37 » |
|
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.
|
|
|
|
Mike
|
 |
«
Reply #260 - Posted
2011-08-13 19:42:56 » |
|
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.
Good idea, sure. Mike EDIT: I haven't seen any white buses in 'my' towns, or any buses at all in towns of others, for like a full week  Fixed the missing buses belonging to you and restarted the server  Looking into the buses of others.
|
|
|
|
counterp
|
 |
«
Reply #261 - Posted
2011-08-13 20:05:16 » |
|
Did anyone find the 'funny' part of the map? and the bug on the bottom right corner of map fixed it self.. it used to be many stations that were stacked now they all take 1 spot
|
|
|
|
Mike
|
 |
«
Reply #262 - Posted
2011-08-13 20:07:42 » |
|
I'll look into it now  Fixed the bug with the lack of buses that are driving around. Restarted the server. There was a bug when you built a station within 5 squares of the corner of the map (that's what caused the server crash). I fixed the bug and that's why they act more normal now  Thanks for finding the bug counterp, it would have been annoying to find it at a later stage! EDIT: Looking at a big city I notice that there are some problems around looking at other player's vehicles. I'll have a look at that later. Mike
|
|
|
|
counterp
|
 |
«
Reply #263 - Posted
2011-08-13 20:22:28 » |
|
Oops, did I do that *insert steve urkel picture* EDIT: ohhhh the deadlock happens not when purchasing buses quickly but when purchasing them and setting their destinations quickly! 
|
|
|
|
orange451
|
 |
«
Reply #264 - Posted
2011-08-13 21:45:01 » |
|
This is a pretty awesome game  It reminded me of simcity a lot. The worldmap feature was really nice, where when you zoomed out it drew a 2d topdown version of the map
|
|
|
|
ra4king
|
 |
«
Reply #265 - Posted
2011-08-13 21:52:30 » |
|
Oops, did I do that *insert steve urkel picture*
WIN!!!
|
|
|
|
Mike
|
 |
«
Reply #266 - Posted
2011-08-13 22:21:50 » |
|
EDIT: ohhhh the deadlock happens not when purchasing buses quickly but when purchasing them and setting their destinations quickly!  That helps alot!  Is it: 1. Buy several buses 2. When the first one is awaiting destination, quickly set it to go somewhere This is a pretty awesome game  It reminded me of simcity a lot. The worldmap feature was really nice, where when you zoomed out it drew a 2d topdown version of the map Thanks a lot! I doubt that there is a simcity kind of game that is made into an mmo so hopefully I'll get some obscure part of the market  The worldmap is indeed quite neat, the only problem is the time it takes to download it (it's like 1mb big, twice the size of the game). I've considered splitting it up into smaller pictures and load them on demand, but I love the feeling of zooming all the way out and then all the way in...  Kind regards, Mike
|
|
|
|
counterp
|
 |
«
Reply #267 - Posted
2011-08-13 22:24:13 » |
|
That helps alot!  Is it: 1. Buy several buses 2. When the first one is awaiting destination, quickly set it to go somewhere yes, but you have to keep trying at it. it only happens once every couple of minutes when I buy A LOT of buses to use for new cities I've connected
|
|
|
|
counterp
|
 |
«
Reply #268 - Posted
2011-08-14 21:47:43 » |
|
when buying a lot of buses game crashes, loses connection to server prints this out a lot before the page reloads: 1 2 3 4 5 6 7
| java.lang.NullPointerException at com.stateofprofit.client.o.a.<init>(Unknown Source) at com.stateofprofit.client.a.a.a(Unknown Source) at com.stateofprofit.client.a.b.m(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) |
|
|
|
|
Mike
|
 |
«
Reply #269 - Posted
2011-08-15 06:46:37 » |
|
Thanks, I'll take a look.
Mike
|
|
|
|
|