ermm so i was at school and me and my friends decided to make a batch text based adventure infact it was so much fun that we wanted to make it multiplayer
(on multiple computers ) anyone know how?
please help and ty for any responses
(the game has dungeons, and dragons, we called it potatoes and pies!)
( T_T) < ?!
Domo!
Lol! well, that’s kind of like asking “any idea how to build a space-shuttle from scratch? OH, I do have a tire, and some zip-ties and duck tape…
(just kidding, but…) You’ll need a “server” to run the game, of course, and a tcp link (basic network connection, at least for lan purposes), from all the clients to the server. Each player needs to run a “client” program which will query for, then copy or otherwise transmit the data over the net to the server. The client pgm would would prepend an IP to the file content (as line one) or preferably as the filename, The server would constantly sort and process the incoming files based on timestamp and broadcast to all clients what has just transpired (“morgan laFey has just killed a Troll in Sewer-drain caverns”) (again, via file-copy with IP-address or “name” of the server in the filename). Client-progs might also need to look for “private messages” from other players (again, always sorted by timestamp) f/e: “trade 40 candles for an axe?” You get the idea… not real complicated, but needs a lot of detail-work. client-side example:
set my-ip=192-168-0-88
set server=192.168.0.2
…set /p x=what to do? & >>resp echo %x%
… maybe do some testing / validation etc. here…
… everything is cool, so:
move /y resp \\%server%\c\game\%my-ip%