Java-Gaming.org    
Featured games (91)
games approved by the League of Dukes
Games in Showcase (577)
games submitted by our members
Games in WIP (498)
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  
  How does EQ and the like do it..  (Read 1331 times)
0 Members and 1 Guest are viewing this topic.
Offline MickeyB

Senior Member




my game will work, my game will work!


« Posted 2003-12-10 23:02:26 »

when a new character/player enters a zone, what method does the server take to send all the players info?  Does it send just whats needed for graphics: locational data, image etc...or does it also send hit points, weapons items/objects, monies..etc...

I am trying to decide whether to put some vars in for shields, hullpoints, weapons power and damage or acutally have a weapons object, shield object, cargo object that extend a base ship component.  Do I send the data to build them when player enters sector or send objects of them, etc...

M

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #1 - Posted 2003-12-11 05:46:50 »

Hi
 For my own game I'm sending just very basic info like the object id, the type of object and it's location, this is enough for my client to display it (I might need to add a to that list, but having created a GameObjectSnapshot as the object and messages send across the wire, it's easy to do). If the client then needs more info, i.e. they target the object, then more information can be got at from the object ID, getting this information might be done in the background as an object enters targetting range so there is no delay when it's targetted, but the principle is the same, only give them what they need, reduces bandwidth Smiley

HTH

Endolf

Offline Jeff

JGO Coder




Got any cats?


« Reply #2 - Posted 2003-12-11 06:23:40 »

All comemrical games ar purposefully mum abotu their communciation protocols to try to make hacking mreo difficult.

How I would do it breaks down like this:

(1) Combat occurs on the server.  Otherwise its very prone to hacking
(2) Level data is in the CD Installs, patches and updates.
Thats static data and huge and it woudl be foolish to send it every time.

So all that is sent on entering a region is the info on where you are and the info on what other players/monsters are doing thats visible.

As you are affected by other things, you get packets that update your local display of HP, etc.  

Think about it, if you lag out, combat continues.  That makes it almost certain that combat is happening on the server and all you have is a "view" onto that data.

Got a question about Java and game programming?  Just new to the Java Game Development Community?  Try my FAQ.  Its likely you'll learn something!

http://wiki.java.net/bin/view/Games/JeffFAQ
Games published by our own members! Check 'em out!
Legends of Yore - The Casual Retro Roguelike
Offline endolf

JGO Knight


Medals: 7
Projects: 1


Current project release date: sometime in 3003


« Reply #3 - Posted 2003-12-11 07:01:55 »

Hi
 Yup, thats the plan Smiley. One of the other reasons for the combat happening on the server, is that if you are loosing you can't just disconnect and pretend it never happened. When it's on the server, you have to fight to the end, what ever the outcome Smiley

Endolf

Offline MickeyB

Senior Member




my game will work, my game will work!


« Reply #4 - Posted 2003-12-11 13:01:46 »

sounds good.  Looks like I can give my StarShips 2 create methods.  One for local player so your personal data can create objects for each ship component so you can have greater control over Ship functions, and a second for all non-local player starships...hold basic data like position, type, playername, etc...to be sent when player is within visible screen space(or just before).

MickeyB

Current Project: http://www22.brinkster.com/mbowles/
Pages: [1]
  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.

xsi3rr4x (23 views)
2014-04-15 18:08:23

BurntPizza (18 views)
2014-04-15 03:46:01

UprightPath (32 views)
2014-04-14 17:39:50

UprightPath (16 views)
2014-04-14 17:35:47

Porlus (32 views)
2014-04-14 15:48:38

tom_mai78101 (58 views)
2014-04-10 04:04:31

BurntPizza (116 views)
2014-04-08 23:06:04

tom_mai78101 (216 views)
2014-04-05 13:34:39

trollwarrior1 (183 views)
2014-04-04 12:06:45

CJLetsGame (190 views)
2014-04-01 02:16:10
List of Learning Resources
by Longarmx
2014-04-08 03:14:44

Good Examples
by matheus23
2014-04-05 13:51:37

Good Examples
by Grunnt
2014-04-03 15:48:46

Good Examples
by Grunnt
2014-04-03 15:48:37

Good Examples
by matheus23
2014-04-01 18:40:51

Good Examples
by matheus23
2014-04-01 18:40:34

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:22:30

Anonymous/Local/Inner class gotchas
by Roquen
2014-03-11 15:05:20
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!