QB64.org Forum

Active Forums => QB64 Discussion => Topic started by: xra7en on December 12, 2018, 05:33:23 am

Title: Making a Game Multi-Player
Post by: xra7en on December 12, 2018, 05:33:23 am
How would I turn my game into multi-player
I can host (I have my own server(s)
Is there a page or pretty decent tutorial?
My game is pretty much done, but now want to make it multi-player
Can qb64 do something like this?



ps
I have lost of experience with game servers, ran WoW, Aion, RuneScape, RoseOnline just to name a few, but always work with others source code. I have a game done, and want to try my hand at it.
Title: Re: Making a Game Multi-Player
Post by: xra7en on December 12, 2018, 07:18:37 am
one note I forgot, the game is text based, so should be fairly simple to do (I would think)..
;-)
Title: Re: Making a Game Multi-Player
Post by: TempodiBasic on December 12, 2018, 08:45:34 am
Hi
xra7en

about multiplayer games
I remember that there was an RPG made in QB/QB64  with structure server-client, it has been posted on the other forum www.[abandoned, outdated and now likely malicious qb64 dot net website - don’t go there] but for now that forum is unaccessible....

It may be that the author has joined to this forum but sorry for my bad memory.... I don't remember the nickname of that coder.
And the game has in its title name the word Aetricia...


I hope this gives you a chance

Good Luck
Title: Re: Making a Game Multi-Player
Post by: xra7en on December 12, 2018, 09:00:55 am
ah
good to work with, fist have to find a cached page somewhere

http://www.[abandoned, outdated and now likely malicious qb64 dot net website - don’t go there]/forum/index.php?topic=14439.msg124877#msg124877
that seems to be the original...

hosted game here (I think)
http://aetricia.ddns.net/

https://www.indiedb.com/games/guerreros-qb

here? maybe  - dont think there is any source though

if I find it i'll post the source here, unless [abandoned, outdated and now likely malicious qb64 dot net website - don’t go there] comes back up
Title: Re: Making a Game Multi-Player
Post by: Cobalt on December 12, 2018, 10:44:42 am
While not super readable, my BattleShip 64 game has networking capabilities. Its just based for LAN play but the priciple is exactly the same for internet play I believe. Now Battleship is a 2 player so if you want more players you will have to modify the networking to handle more players. I will try to help as much as I can but this was my first successful attempt at Network play on a game so I probably wont have all the answers you may need.
Title: Re: Making a Game Multi-Player
Post by: commandvom on March 15, 2019, 10:59:11 am
Hi!

here the link with the source code
its a old version
Soon I will upload a new version

https://www.qb64.org/forum/index.php?topic=241.msg1268#msg1268

must be compiled in  QB64 SDL version!

That version runs as a singleplayer, but with a couple of configuration in the file 'config.ini' you can install a server on the internet or on a lan. The client code and the server are in the same .BAS file, to reuse functions, etc.

Any questions I will answer with pleasure!