Author Topic: Making a Game Multi-Player  (Read 4185 times)

0 Members and 1 Guest are viewing this topic.

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Making a Game Multi-Player
« 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.
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: Making a Game Multi-Player
« Reply #1 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)..
;-)
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline TempodiBasic

  • Forum Resident
  • Posts: 1792
    • View Profile
Re: Making a Game Multi-Player
« Reply #2 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
Programming isn't difficult, only it's  consuming time and coffee

Offline xra7en

  • Seasoned Forum Regular
  • Posts: 284
    • View Profile
Re: Making a Game Multi-Player
« Reply #3 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
« Last Edit: December 12, 2018, 09:04:39 am by xra7en »
I just like re-writing old DOS book games into modern QB64 code - weird hobby, I know!

Offline Cobalt

  • QB64 Developer
  • Forum Resident
  • Posts: 878
  • At 60 I become highly radioactive!
    • View Profile
Re: Making a Game Multi-Player
« Reply #4 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.
Granted after becoming radioactive I only have a half-life!

Offline commandvom

  • Newbie
  • Posts: 10
    • View Profile
Re: Making a Game Multi-Player
« Reply #5 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!
« Last Edit: March 15, 2019, 11:05:49 am by commandvom »