Java-Gaming.org Hi !
Featured games (91)
games approved by the League of Dukes
Games in Showcase (808)
Games in Android Showcase (239)
games submitted by our members
Games in WIP (872)
games currently in development
News: Read the Java Gaming Resources, or peek at the official Java tutorials
 
    Home     Help   Search   Login   Register   
Pages: [1]
  ignore  |  Print  
  Multiplayer Planet Trading Game [Kroynet] - Update 4: 02/01/15  (Read 84685 times)
0 Members and 1 Guest are viewing this topic.
Offline Emmsii
« Posted 2014-12-08 17:27:38 »

I've recently been messing around with the Kryonet library and decided to make a multiplayer, planet trading game. Inspired by Eve Online and Tribal Wars. This started out as a server/client test; but turned into a slightly functional, pretty ugly looking game.

I've been making this up as I go along, but here's what I'm planning. Some of these points have been already implemented.

  • The server generates a galaxy which contains regions.
  • Regions contain sectors and sectors contain star systems. Star systems can spawn with 0-5 planets.
  • Planets have types (Gas, lava, ocean, terran, etc), different types spawn different resources.
  • When a player logs in for the first time, they are assigned a random starting planet.
  • They have to build factories to harvest the resources and turn them into goods.
  • Goods are used to build factories and can be traded.
  • Players can trade goods and planets.
  • The server dynamically loads in items, resources and buildings from text files. Allowing the server to be highly customisable.
  • Generates in a vaguely-galaxy-like-shape.
  • Local system map which displays planets in star system.
  • And thats all I have so far...

A small galaxy (0.2mb) with the 487 planets in 164 star systems takes 2.95 seconds to generate. A larger galaxy (6.4mb) with 15,203 planets in 6133 systems took 76 seconds to generate.

EDIT:
Instead of attaching big ass pictures to this post, I'll give you the link to an imgur album: http://imgur.com/a/KHQFX. I will be updating this with the latest images. I'll attach any small images that will fit on this post.

I'm not to sure what kind of resources,goods or factories I could have.

What I'd like to add
  • Proper GUI, currently I'm using Java Graphics to render everything.
  • Random events, natural disasters?
  • Guilds/corporations/groups. Players join together to pool their resources.
  • Maps. Render the local map to find nearby planets and players.
  • Ships/transport ships. Transport goods between planets? Attack player owned planets? Scout out other planets for resources?
  • Highscores. List of all players and their total worth? Player profiles?

I may be biting off more than I can chew here, but its a fun project. I'd love to hear your suggestions/comments/criticism. I'll release the source code when I am less ashamed of it, its very messy and I just want to get the functionally working.

Thanks!


Update 1: 10/12/14
  • Game now loads in resources from text files, populates planets with them.
  • Game also loads factory types, can now build factories on planets.
  • Tested connecting to a remote computer (gave friend a client), not local host. Successfully connected to my server!
  • More to come soon.

Update 2: 17/12/14
<a href="http://www.youtube.com/v/b9uepfHfPvk?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/b9uepfHfPvk?version=3&amp;hl=en_US&amp;start=</a>

Update 3: 30/12/14
<a href="http://www.youtube.com/v/7io4SPgXDrw?version=3&amp;hl=en_US&amp;start=" target="_blank">http://www.youtube.com/v/7io4SPgXDrw?version=3&amp;hl=en_US&amp;start=</a>

This is how the server generates the galaxy:

Bonus gif
Click to Play


Update 4: 02/01/15
STAR SYSTEM MAPS! You can now view the planets in your star system. More info in the imgur album above &^^.
Bonus gif
Click to Play
Offline MrPizzaCake

Senior Devvie


Medals: 8
Exp: 3 years


Hello, another wonderful human being :)


« Reply #1 - Posted 2014-12-08 20:24:22 »

We can't really give proper feedback without ability to try the game, but it looks pretty good, from what I see here!

How am I? Tough question, since emotions are confusing as heck Tongue
Offline TritonDreyja
« Reply #2 - Posted 2014-12-08 23:45:37 »

I'd love to get my hands on this one! keep updating, and hopefully get a download up (:
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Emmsii
« Reply #3 - Posted 2014-12-09 10:17:50 »

I'll get a download up soon hopefully, though I'm pretty busy at work over Christmas. I'm glad you guys like it so far!
Offline Emmsii
« Reply #4 - Posted 2014-12-17 13:24:00 »

Just posted an update video above (May still be processing).
Offline TritonDreyja
« Reply #5 - Posted 2014-12-17 16:00:17 »

Sweet. may i ask what your plans are in terms of visuals. this is a cool concept on its own, and many visual applications could work with it.
Offline Emmsii
« Reply #6 - Posted 2014-12-17 16:12:26 »

At the moment I'm going to stick with using Java 2D graphics, but I'd like to switch to something like LWJGL for the UI.
Offline Ed_RockStarGuy
« Reply #7 - Posted 2014-12-17 19:07:04 »

Seems like a really cool idea! you should also make it so the factory's cost to run to add more dificulty
Offline Emmsii
« Reply #8 - Posted 2014-12-17 20:59:15 »

Thanks! I'm glad you like it, I am thinking of doing something like that. Probably need energy to run (not credits if that what you meant), like solar power maybe.
Offline Emmsii
« Reply #9 - Posted 2014-12-30 18:11:39 »

New update video in the first post, progress made with the marketplace.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline Ed_RockStarGuy
« Reply #10 - Posted 2014-12-31 13:50:05 »

What network lib are you using, i have been hunting around for a good one. I gave up on kyronet because it was laggy and am currently using jexxus but it is only a basic framework with hardly any flexibility 
Offline Elsealabs
« Reply #11 - Posted 2014-12-31 14:09:15 »

What network lib are you using, i have been hunting around for a good one. I gave up on kyronet because it was laggy and am currently using jexxus but it is only a basic framework with hardly any flexibility 

Kryonet? Laggy? Weird! I've used it before and it worked perfectly.

Offline Ed_RockStarGuy
« Reply #12 - Posted 2014-12-31 14:19:59 »

It only sent a a packet to see if the server was alive and the lag on the server end was crazy
Offline Emmsii
« Reply #13 - Posted 2014-12-31 14:23:00 »

What network lib are you using

I'm using Kryonet. How was it lagging like crazy?
Offline Ed_RockStarGuy
« Reply #14 - Posted 2014-12-31 14:23:20 »

I was useing a slightly old build and i found a while loop in a while loop in the lib and it was causing hell on my server, i fixed it now Smiley
Offline Ed_RockStarGuy
« Reply #15 - Posted 2014-12-31 14:26:07 »

I seen, i feel like a mong after posting it xD, if posible could i see one of your send/request classes so i can see how more complex ones are structured?
Offline Emmsii
« Reply #16 - Posted 2014-12-31 14:35:03 »

In my Server/Client listeners received(Connection c, Object o) methods I have lists of:

1  
2  
3  
4  
if(o instanceof PacketType){
    //Something
    return;
}


Not sure of any other way I could do it.
Offline Ed_RockStarGuy
« Reply #17 - Posted 2014-12-31 14:41:05 »

Thanks man! now i cant seem to get a connection to last fml :L
00:00  INFO: [kryonet] Connecting: localhost/127.0.0.1:54555/54777
00:00  INFO: [kryonet] Connection 1 connected: localhost/127.0.0.1
00:00  INFO: [kryonet] Connection 1 disconnected.
Offline Emmsii
« Reply #18 - Posted 2014-12-31 14:43:50 »

Lets have a look at your code?
Offline Ed_RockStarGuy
« Reply #19 - Posted 2014-12-31 18:25:57 »

I fixed ot, after a lot of trials and tribulations i realised my timeout was wayyyy to low and now i am pinging a keep alive packet to keep them both connected
Offline Emmsii
« Reply #20 - Posted 2015-01-01 11:31:51 »

Happy new year JGO! Just posted a gif of galaxy generation in the first post.
Offline Emmsii
« Reply #21 - Posted 2015-01-02 10:06:08 »

Latest update! Star system maps! You can now watch the planets orbit you star. From this screen you can hopefully scan unknown planets and select planets you own.
Offline NouryHD
« Reply #22 - Posted 2015-02-28 16:05:01 »

i would love to play this game when do you have a download up ??  Cheesy
Offline TritonDreyja
« Reply #23 - Posted 2015-03-15 01:57:45 »

Dying for something to play around with, this looks really frickin interesting
Offline MrPork
« Reply #24 - Posted 2015-03-30 20:02:50 »

How did you generate the planets in a circular fashion? Could you perhaps link me to the kind of generation you used?  Huh

"f**k it, maybe it'll work." -Me
Pages: [1]
  ignore  |  Print  
 
 

 
mercenarius (13 views)
2020-06-04 19:26:01

mercenarius (21 views)
2020-06-04 19:13:43

Riven (865 views)
2019-09-04 15:33:17

hadezbladez (5847 views)
2018-11-16 13:46:03

hadezbladez (2656 views)
2018-11-16 13:41:33

hadezbladez (6272 views)
2018-11-16 13:35:35

hadezbladez (1517 views)
2018-11-16 13:32:03

EgonOlsen (4748 views)
2018-06-10 19:43:48

EgonOlsen (5803 views)
2018-06-10 19:43:44

EgonOlsen (3297 views)
2018-06-10 19:43:20
A NON-ideal modular configuration for Eclipse with JavaFX
by philfrei
2019-12-19 19:35:12

Java Gaming Resources
by philfrei
2019-05-14 16:15:13

Deployment and Packaging
by philfrei
2019-05-08 15:15:36

Deployment and Packaging
by philfrei
2019-05-08 15:13:34

Deployment and Packaging
by philfrei
2019-02-17 20:25:53

Deployment and Packaging
by mudlee
2018-08-22 18:09:50

Java Gaming Resources
by gouessej
2018-08-22 08:19:41

Deployment and Packaging
by gouessej
2018-08-22 08:04: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!