Moving object from one player to the other?

How do I move an object from one player to the other? For example in runescape you can trade with other players or place your stuff in the bank, how do I program that in java or can you point me in the right direction on what funtion I need to learn?

Thank you.

I already answered you the first time when you posted in GamePlay./Design.

PLEASE do not spam the boards.

In addition , this really isnt the appropriate place either. Given the nature of your question as I understand it, the proper palce is really “Newless Clubies.”

Thanks, thats why I reposted it.

But THIS isnt Newleess Clubies either!

See that line at the top? The one that says

Java Games Forums - A Java.Net Community | Game Development Topics | OnLine Game Development

If you were in the right place it would read

Java Games Forums - A Java.Net Community | Game Development Topics | Newless Clubies

Strange. Moving objects from players to players I would consider an online gaming problem. And prop
not something that’s so easy that only clueless newbies are dumb enough to not know about it,
But that’s prop just me…

And to answer your question. THeres tons of way to do it. You would prop have a server maintaining a common gamestate.
Every client would then communicate with the server. The objects would not go from client to client but from client to server and then client again.
The way to communicate could be for example webservices. Or try https://jsdt.dev.java.net/

I’m with Newbton here, Jeff. Answer like that one is little too rough and discouraging for begginer who just want to know something…

He asked it twice. I alreayd answered it once. AND told himk the right palce was Newless clubies.

And I’m sorry but ity IS a Newless Clubie question.

Its not an Online question because it has nothing to do with communication. Unless he himself communciates incredibly badly what he is asking is a totally ignorant “so how do these games work???” The answer woudl not chnage if it were online or offline.

And the real, honest, in your face answer would be “go get ANY book on programming and start reading then come back and ask when you know enough to at least know what you are asking.”

Its like he walked into a garage and said “so, how do you make a car move?”

I do not think it is unreasonable to ask the totally clueless to at least know they are clueless and go to the place for clueless help. Particualrly when they have already been directed there.

Here’s a hint. If you can’t write a program that prints “Hello World” in at least one programming langauge, you belong in Newless Clubies.

TBH, it’s not necessarily a java newless clubie question, and may instead be an MMOG newbie question (which we dont have a forum for).

ironbeatle: if you are asking because you don’t know how to write a game with a data model where data is stored on a back-end, and is rendered on a front-end by clients on player’s PC’s, where the data actually lives on a server … then you really need to go and read up on how multiplayer gaming and networking in general works. The stuff you read is the same irrespective of language (networking is one of the great-levellers for programming-languages -it really doesn’t matter what the heck language you’re writing different bits in).

Go to gamedev.net and read their (many) networked-game articles.

If you’re asking because you DO know all that, but want to know what’s special about runescape etc, the simple answer is “multiple processors” - this may be in separate physical machines (multiple servers) or in one machine (multiple threads).

Unless your server runs ONE thread only, that does EVEYRTHING (i.e. the opposite of thread-per-player), you should start learning transactions, ACID rules, etc, and how to do transactional operations on databases. Google time.

The problem here is that if that is the case then he’s such a newbie that he doesnt’ even know where to go looking to find out about cars. And we can at least point him at specific resources, and see if he comes back in 3 months time with better understanding + quetions.

Sometimes you post more than one place, because your not sure where to post. And maybe because there wasnt a big response the first place or you didnt get your question answered satisfactorially. I dont consider it spamming especially when it can be debated that his question is most likely in the right forum now…
And sure he could buy a book or ten about it , but one of the reasons we have forums is to avoid buying books (which are often waste of money). And if we all knew everything we would never ask here and if we did have a question (and we knew everything) nobody could answer ! lol !

Its just annoying. Really.

Show unread posts since last visit.

Never seen that link?

Your missign the entire poinmt.

He reposted in the WRONG PLACE after beign given explicit instructions as to where the right one was.

A secondary offense is that he reposted the exact same thing. If he was going to repost because he didnt get the answer he was looking for, then a small modicum of intelligence migth have suiggested that he should rephrase the question so he might GET the answer he was looking for.

sigh

I think we’ve exhausted this topic. I certainly have.

OK guys this subject can be closed. It grows bigger that it should be. Everyone of us have his own opinion taht is obviously not going to change, so discussion is becoming non - constructive one. Over and out.

If your exausted dont post and well you mean YOUR oppinion of where the right place is and bla bla bla. Ok not going to post here anymore…Sorry I responded and offended the great Jeff, Javagaming board Ninja…