I created a simple game in java.
Could someone please link me to a tutorial or give me a basic run through on how to let other users connect and how to save their experience, etc...
Peace and love,
oldezwe
I created a simple game in java.
Could someone please link me to a tutorial or give me a basic run through on how to let other users connect and how to save their experience, etc...
Peace and love,
oldezwe
Turning a single‑player Java game into an MMO is mostly an architecture and operations problem, not just a networking one. is correct that MMOs are easiest when planned up front, but an incremental path can work: separate concerns, make the server authoritative, and add persistence and scaling in steps.
Practical migration checklist:
Minimal server loop (conceptual)
class GameServer {
void tick() {
readInputs(); // collect networked player inputs
updateWorld(); // authoritative simulation
computeDeltas(); // minimal state to send
sendToClients(); // push per-client updates
persistIfNeeded(); // save profiles/checkpoints
}
} Security, quality and troubleshooting notes: store credentials hashed with a modern algorithm, use TLS for authentication, and keep server-side validation to prevent cheating. If clients rubber-band, implement timestamped state, interpolation and client-side prediction. Profile for GC pauses, thread contention and slow DB queries; instrument early. Begin with a small, authoritative prototype, verify correctness under simulated load, and iterate toward partitioning and operational tooling.
Jump to Post— Serapth 0An MMO is written from the ground up to be an MMO. It is probably the single most fundamental design element of the game! You would probably be better served starting from scratch than porting your game.
As to how to make an MMO, that is generally a …
An MMO is written from the ground up to be an MMO. It is probably the single most fundamental design element of the game! You would probably be better served starting from scratch than porting your game.
As to how to make an MMO, that is generally a task well outside the scope of a tutorial. You may be able to find full books on the subject, or possibly tutorials about using an existing MMO engine ( of which there are few for Java ), but a do x then y style tutorial just isn't going to exist.
You should probably start by looking into the various Java.net type libraries on how to handle networking; the underlying logic of an MMO isn't that different from traditional real time client/server architectures, of which there is a wealth of information available.
I think that you need to use a database to store info about players.
if you want a game where players can interact with each other then this may help you : http://www.gotoandplay.it/_articles/2007/07/building_mmo.php
Or :
http://books.google.com.lb/books?id=JOlZEWJmQdgC&pg=PA13&lpg=PA13&dq=MMO+with+java&source=bl&ots=wfceIm44vr&sig=WmwoTWg1n8qOSKhbm6JJOz9Ny_4&hl=en&sa=X&ei=qR7_TtDWDtD88QOMrPHDAQ&redir_esc=y#v=onepage&q=MMO%20with%20java&f=false
I hope this helped you
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.