How do I create a limited multi-player game?
Ok lets say you have your game with OINC but it's a 4 player game, so only 2, 3 or 4 people can play at a time.
I'd Imagine you should do it like this- Lets say you start in a general chat room with a "host game" button & a list of games to join, at any time you can create or join a game which sends you to a channel but only if there are less than 4 people in that channel & that game hasn't started yet and the host can press start so they can blow each other up. (Or In other words, like battle.net).
So...
1) How do I create a list of availible Games?
2) How can a player create a Channel?
3) How do I limit the number of players in a specific Channel? (not all, I dont want a limit on the entry chat room).
4) How do I check to see if a game hasn't begun yet and people are still joining?
Re: How do I create a limited multi-player game?
1) Wait for the next alpha which has channel listing capabilities
2) Join a channel which doesn't exist and it will be created automatically
3) You would have to modify the server to have that functionality. I think Mathias was making an automatic server code generator for things like this if you don't want to learn Python or C++ (it's not finished yet, though)
Alternatively, you could limit it client side, although this is pretty easy to hack.
4) This is specific to how you code your game - unless you have something special server side, you could check the number of players in the channel.
Get in touch with Nick, he made a functional game like you are describing in OINC.
Re: How do I create a limited multi-player game?
3) You'd just have to an expression like this 'GetChannelPeers("OINC Client", Channel Name)' to retrieve the amount of peers in a specific Channel and I can check while still in entry chat room to see if you can join it.
5) How do I create Channels that won't appear on the Games Listing, like the entry chat room or private games?
Re: How do I create a limited multi-player game?
3) As I said, you could do it client side.
5) It's all part of the next build.
Re: How do I create a limited multi-player game?
When the next Build comes out or later afterwards, i'll test all of this with a simple 4 player game, maybe a tank game with a grid.
Re: How do I create a limited multi-player game?
This is exactly what I'm working on right now...!
It ain't easy!
Re: How do I create a limited multi-player game?
Not easy for you but Iv'e planned it out carefully and decided to do a 'everything done on host's computer' approach that way it should be easy to counterstrike most OINC related problems.
For Example: Player 2 presses Up, Player2 asks Player 1 to see if one up from Player 2 is obstacle if not, move Player 2 Up from Player 1's Computer then tell all the other computer's Player 2 has moved Up.
Re: How do I create a limited multi-player game?
Well, if you're concerned about security, here's a few tips:
The client shouldn't have to ask Player 1 if it can move up or not. Player 2 could do something like: tell Player 1 it wants to move up, then Player 1 sends a 'Player 2 is moving up' message to all the clients, and when Player 2 collides or stops, a 'Player 2 is now stopped' message is sent.
That's how I would've done it, atleast.
Re: How do I create a limited multi-player game?
Quote:
Originally Posted by dragonguy
Not easy for you but Iv'e planned it out carefully and decided to do a 'everything done on host's computer' approach that way it should be easy to counterstrike most OINC related problems.
For Example: Player 2 presses Up, Player2 asks Player 1 to see if one up from Player 2 is obstacle if not, move Player 2 Up from Player 1's Computer then tell all the other computer's Player 2 has moved Up.
Well it's clearly not easy for you either, or you wouldn't be posting questions for each stage of it??
Sounds like a great lag-free system though...
Re: How do I create a limited multi-player game?
Well you see it will be grid-based, that is what enables me to do it in such a way, if it didn't have a grid and you can move and point anywhere then a security system would be very laggy unless you do it Darkkillers way.
Re: How do I create a limited multi-player game?
And what if Player 1 cheats and tells Player 2 it can't move?
Re: How do I create a limited multi-player game?
Hosts are less likely to cheat than Standard Players just like Mods are less likely to abuse the forums than Regular Users.
Re: How do I create a limited multi-player game?
That depends, are you letting users host their own servers?
Some people host hacked servers that allow them to be cruel to unsuspecting players for fun you know.
Re: How do I create a limited multi-player game?
You can't compare a game to these forums. Moderators work for the benefit of the clickteam community. Players (including the host) work against other users to win something.
Re: How do I create a limited multi-player game?
Quote:
Originally Posted by pinacoladaxb
You can't compare a game to these forums. Moderators work for the benefit of the clickteam community. Players (including the host) work against other users to win something.
...what?
Where was a comparison made between the forums and a multiplayer game?
Re: How do I create a limited multi-player game?
Quote:
Originally Posted by DragonMC
...what?
Where was a comparison made between the forums and a multiplayer game?
Quote:
Originally Posted by dragonguy
Hosts are less likely to cheat than Standard Players just like Mods are less likely to abuse the forums than Regular Users.
Dragonguy made a comparison my friend... ;)