Java-Gaming.org    
Featured games (81)
games approved by the League of Dukes
Games in Showcase (487)
Games in Android Showcase (110)
games submitted by our members
Games in WIP (552)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: 1 ... 7 8 [9] 10 11 ... 14
  ignore  |  Print  
  State of Profit  (Read 46872 times)
0 Members and 1 Guest are viewing this topic.
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #240 - Posted 2011-08-11 19:55:23 »

You could do a floodfill much faster Smiley

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

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #241 - Posted 2011-08-11 20:36:43 »

It works Smiley 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

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« 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 Smiley), or build airports (1.000.000+ per airport!).

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline counterp

Senior Member


Medals: 11



« Reply #243 - Posted 2011-08-11 21:29:34 »

sounds good, can't wait. Cheesy
Offline Bonbon-Chan

JGO Coder


Medals: 12



« Reply #244 - Posted 2011-08-12 06:55:52 »

17 000 000 to spend...  Grin

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  Cheesy
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #245 - Posted 2011-08-12 09:12:57 »

That sounds a bit complicated 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 Smiley

Mike

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

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline counterp

Senior Member


Medals: 11



« 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.
Offline Bonbon-Chan

JGO Coder


Medals: 12



« 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.
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« 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

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline counterp

Senior Member


Medals: 11



« Reply #249 - Posted 2011-08-13 08:11:43 »

try 300 buses, 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
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #250 - Posted 2011-08-13 11:33:15 »

Right! We've got ourselves some envious bastard on the server Smiley

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

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

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« 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 Smiley

Right! We've got ourselves some envious bastard on the server Smiley

Envious bastard? That's the missis you're talking about!  Angry

She just wanted to check your reaction Wink

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« Reply #252 - Posted 2011-08-13 18:27:36 »

 Grin

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
Offline h3ckboy

JGO Coder


Medals: 5



« Reply #253 - Posted 2011-08-13 18:31:17 »

hahah, 7 hours ago I was at legoland Tongue

also, is there a reason the server is down?
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« 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 Tongue

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

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« 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
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« 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 Smiley

At least I hope that's the reason, I'll check into it later tonight Smiley

EDIT: Humm... I don't have any buses at all... off to the pool and then look at it later Smiley

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline h3ckboy

JGO Coder


Medals: 5



« 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 Tongue
Offline Riven
« League of Dukes »

JGO Overlord


Medals: 781
Projects: 4
Exp: 16 years


Hand over your head.


« 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 Smiley

At least I hope that's the reason, I'll check into it later tonight Smiley
I haven't seen any white buses in 'my' towns, or any buses at all in towns of others, for like a full week Smiley

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

JGO Coder


Medals: 5



« 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.
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« 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 Smiley

Fixed the missing buses belonging to you and restarted the server Smiley Looking into the buses of others.

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline counterp

Senior Member


Medals: 11



« 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
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #262 - Posted 2011-08-13 20:07:42 »

I'll look into it now Smiley

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 Smiley

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

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline counterp

Senior Member


Medals: 11



« 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! Cheesy
Offline orange451

JGO Coder


Medals: 8
Projects: 1
Exp: 4 years


Your face. Your ass. What's the difference?


« Reply #264 - Posted 2011-08-13 21:45:01 »

This is a pretty awesome game Smiley
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

Working on a nice FPS in lwjgl Smiley http://i.imgur.com/q4uFqBS.png
Feel free to message me if you're interested!
Offline ra4king

JGO Kernel


Medals: 345
Projects: 2
Exp: 5 years


I'm the King!


« Reply #265 - Posted 2011-08-13 21:52:30 »

Oops, did I do that *insert steve urkel picture*
WIN!!!

Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« 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! Cheesy
That helps alot! Smiley 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 Smiley
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 Smiley

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... Smiley

Kind regards,
Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Offline counterp

Senior Member


Medals: 11



« Reply #267 - Posted 2011-08-13 22:24:13 »

That helps alot! Smiley 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
Offline counterp

Senior Member


Medals: 11



« 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)
Offline Mike

JGO Wizard


Medals: 73
Projects: 1
Exp: 6 years


Java guru wanabee


« Reply #269 - Posted 2011-08-15 06:46:37 »

Thanks, I'll take a look.

Mike

My current game, Minecraft meets Farmville and goes online Smiley
State of Fortune | Discussion thread @ JGO
Pages: 1 ... 7 8 [9] 10 11 ... 14
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

 

Add your game by posting it in the WIP section,
or publish it in Showcase.

The first screenshot will be displayed as a thumbnail.

CopyableCougar4 (23 views)
2014-08-22 19:31:30

atombrot (34 views)
2014-08-19 09:29:53

Tekkerue (30 views)
2014-08-16 06:45:27

Tekkerue (28 views)
2014-08-16 06:22:17

Tekkerue (18 views)
2014-08-16 06:20:21

Tekkerue (27 views)
2014-08-16 06:12:11

Rayexar (65 views)
2014-08-11 02:49:23

BurntPizza (41 views)
2014-08-09 21:09:32

BurntPizza (31 views)
2014-08-08 02:01:56

Norakomi (41 views)
2014-08-06 19:49:38
List of Learning Resources
by Longor1996
2014-08-16 10:40:00

List of Learning Resources
by SilverTiger
2014-08-05 19:33:27

Resources for WIP games
by CogWheelz
2014-08-01 16:20:17

Resources for WIP games
by CogWheelz
2014-08-01 16:19:50

List of Learning Resources
by SilverTiger
2014-07-31 16:29:50

List of Learning Resources
by SilverTiger
2014-07-31 16:26:06

List of Learning Resources
by SilverTiger
2014-07-31 11:54:12

HotSpot Options
by dleskov
2014-07-08 01:59:08
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
Powered by MySQL Powered by PHP Powered by SMF 1.1.18 | SMF © 2013, Simple Machines | Managed by Enhanced Four Valid XHTML 1.0! Valid CSS!