Java-Gaming.org
Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
Featured games (78)
games approved by the League of Dukes
Games in Showcase (416)
games submitted by our members
Games in WIP (307)
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  
  New to MMO games need info  (Read 2499 times)
0 Members and 1 Guest are viewing this topic.
Offline doravan

Junior Newbie





« Posted 2011-02-17 04:12:06 »

Ppl I'm new to networking.
I'm trying to write emus for some games to start to think of my own.

I choosen Java for it's performance and code improvements.

I want to know some things:

Some MMO games have a downloadable client that has it's own physics for the players, and the original server have server side features like physics and geometry calcs for npcs.

I want to know is, what kind of framework I must use in order to build server side physics and landmaps.
In other words, I want to process npc movement serverside, and this must respect a land scape (map) that is read on the server, but I don't need to compile it's structure, I just need the server to print the Pont3f to the player.

Is there a way to do that? If yes? What tool do you recommend for such server side behavior?
Offline gouessej

JGO Ninja


Medals: 35
Projects: 1


TUER


« Reply #1 - Posted 2011-02-17 11:47:52 »

Maybe look at JGN, Apache Mina, SpiderMonkey...

Offline doravan

Junior Newbie





« Reply #2 - Posted 2011-02-17 15:50:36 »

You didn't understand my question.

I already have the network layer. The players can connect and play, but the server hasn't physics and dynamics for NPC's, so players just see the monsters going thru walls, flying when they had to be on ground...
Stuff like that.
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online lhkbob

JGO Knight


Medals: 32



« Reply #3 - Posted 2011-02-17 17:33:51 »

Physics is physics, just use an existing java physics engine (Jbullet at this point) and run it on the server. Then since you already have the network layer, just make sure that you send the players the updated NPC positions.

Of course, I'm totally ignoring the effects of lag and ping here, because it really is a complicated mess and to do it right, you'll need to compute the physics on the client too.  That way the client can predict where the server will have everything move, and then it will lerp its predicted positions to the server positions as needed.  Then the server also has to validate anything the player says to make sure the player is following the physics rules.

So it will be very, very simple

Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #4 - Posted 2011-02-17 22:16:09 »

So it will be very, very simple
Lawl.

See my work:
OTC Software
Offline Mickelukas

JGO Ninja


Medals: 41
Projects: 2


Java guru wanabee


« Reply #5 - Posted 2011-02-17 23:14:50 »

Lawl.

Humm... Laying Awake Watching Leno? Tongue

Offline Eli Delventhal
« League of Dukes »

JGO Kernel


Medals: 39
Projects: 12


Game Engineer


« Reply #6 - Posted 2011-02-18 21:24:03 »

Laying Awake Wagging to Leno.

See my work:
OTC Software
Offline Captain Awesome

Junior Member


Medals: 2


Hi


« Reply #7 - Posted 2011-02-18 21:47:07 »


Losing All Wars against Leno
Offline teletubo
« League of Dukes »

JGO Ninja


Medals: 42
Projects: 6



« Reply #8 - Posted 2011-02-19 00:35:28 »


Lame Acronym Worded by Losers .

Offline Captain Awesome

Junior Member


Medals: 2


Hi


« Reply #9 - Posted 2011-02-19 08:03:43 »


Last Arnold Worked for Leno
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Online lhkbob

JGO Knight


Medals: 32



« Reply #10 - Posted 2011-02-19 08:07:39 »


Lying Awake Wondering Lately

Offline doravan

Junior Newbie





« Reply #11 - Posted 2011-02-19 14:37:06 »

Physics is physics, just use an existing java physics engine (Jbullet at this point) and run it on the server. Then since you already have the network layer, just make sure that you send the players the updated NPC positions.

Of course, I'm totally ignoring the effects of lag and ping here, because it really is a complicated mess and to do it right, you'll need to compute the physics on the client too.  That way the client can predict where the server will have everything move, and then it will lerp its predicted positions to the server positions as needed.  Then the server also has to validate anything the player says to make sure the player is following the physics rules.

So it will be very, very simple
It's all about an emu, we got a client and are making a gameserver. We are already on finishing steps, just missing geodata for the server.
Offline Nate

JGO Wizard


Medals: 88
Projects: 3


Esoteric Software


« Reply #12 - Posted 2011-02-20 23:09:42 »

It's all about an emu


Online lhkbob

JGO Knight


Medals: 32



« Reply #13 - Posted 2011-02-20 23:17:49 »

What have we done to this poor thread?

Offline ra4king

JGO Kernel


Medals: 292
Projects: 2


I'm the King!


« Reply #14 - Posted 2011-02-21 03:09:18 »

You sir have made my night Tongue

What have we done to this poor thread?
I believe that we have derailed it completely off its tracks, with all these Leno-obsessed LAWLs and Emus running about wildly.

Online lhkbob

JGO Knight


Medals: 32



« Reply #15 - Posted 2011-02-21 03:23:55 »


We need a train conductor with a background in zoology to fix it then

Offline ra4king

JGO Kernel


Medals: 292
Projects: 2


I'm the King!


« Reply #16 - Posted 2011-02-21 03:41:41 »

And an expert knowledge of the Leno show Cheesy

Offline Captain Awesome

Junior Member


Medals: 2


Hi


« Reply #17 - Posted 2011-02-21 14:25:51 »

And an expert knowledge of the Leno show Cheesy

Like A Wise Leno  Cheesy
Pages: [1]
  ignore  |  Print  
 
 
You cannot reply to this message, because it is very, very old.

Play Revenge of the Titans! The situation is critical. We need fancy commanders to defend Earth, the moon, Mars!
 
Get high quality music tracks for your game!

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

The first screenshot will be displayed as a thumbnail.

The invasion has landed! On Mars! And you're there to beat 'em!
mrbenebob (16 views)
2013-06-19 14:55:23

BrassApparatus (25 views)
2013-06-19 08:52:37

NegativeZero (28 views)
2013-06-19 03:31:52

NegativeZero (30 views)
2013-06-19 03:24:09

Jesse_Attard (34 views)
2013-06-18 22:03:02

HeroesGraveDev (71 views)
2013-06-15 23:35:23

Vermeer (70 views)
2013-06-14 20:08:06

davedes (72 views)
2013-06-14 16:03:55

alaslipknot (64 views)
2013-06-13 07:56:31

Roquen (88 views)
2013-06-12 04:12:32
Smoothing Algorithm Question
by UprightPath
2013-05-28 02:58:26

Smoothing Algorithm Question
by UprightPath
2013-05-28 02:57:33

Complex number cookbook
by Roquen
2013-04-24 12:47:31

2D Dynamic Lighting
by Oskuro
2013-04-17 16:46:12

2D Dynamic Lighting
by Oskuro
2013-04-17 16:45:57

2D Dynamic Lighting
by Oskuro
2013-04-17 16:23:20

Noise (bandpassed white)
by Roquen
2013-04-05 17:36:01

Noise (bandpassed white)
by Roquen
2013-04-03 16:17:38
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!