Search found 111 matches
- Thu Sep 14, 2017 11:03 pm
- Forum: Newbie questions
- Topic: sanding a table with SendData()
- Replies: 6
- Views: 8360
Re: sanding a table with SendData()
Thanks, that worked - but I used real file instead of virtual one (just couldn't figure out how to write a table into virtual file).
- Thu Sep 14, 2017 9:29 am
- Forum: Newbie questions
- Topic: sanding a table with SendData()
- Replies: 6
- Views: 8360
sanding a table with SendData()
Hello, I've been trying to send a table (about 300 items inside containing sub-tables, numbers and strings - that is dungeon map generated on server computer) to the client computer: SendData(clientID,ArrayToStr(maze)) On the client computer I have: maze=ReceiveData(connectionID,#RECEIVEALL) maze=St...
- Wed Sep 13, 2017 7:14 pm
- Forum: Newbie questions
- Topic: multiplayer over the network
- Replies: 10
- Views: 13234
Re: multiplayer over the network
Well, looks like UDP is a waaaay faster - at least for me it works very well - pressing arrow on one computer moves the sprite on the other one on the fly. Thanks But anyway, have another question (because I'm not sure if I understood correctly the documentation): to use UDP do I have to create UDP ...
- Wed Sep 13, 2017 6:11 pm
- Forum: Newbie questions
- Topic: multiplayer over the network
- Replies: 10
- Views: 13234
Re: multiplayer over the network
How could I miss it :o Thanks !!! I know I said "last question" but... :D as you can see on the picture I have my project running on two computers https://preview.ibb.co/jbJKjF/game.jpg The problem I'm facing now is .. the speed Whenever I use arrows to move my hero on the left laptop then...
- Wed Sep 13, 2017 4:41 pm
- Forum: Newbie questions
- Topic: multiplayer over the network
- Replies: 10
- Views: 13234
Re: multiplayer over the network
Thanks for that answer - that helped me a lot !! - I've connected 2 computers. Just last one question: follwing command serverId=CreateServer(Nil) generates a port number - how do I know (being on the client computer) what port that is? Up to now i used (on the server side): DebugPrint(GetLocalPort(...
- Mon Sep 11, 2017 4:43 pm
- Forum: Newbie questions
- Topic: multiplayer over the network
- Replies: 10
- Views: 13234
Re: multiplayer over the network
I do need some help here - just to establish the connection. I have no idea how network works :D all these servers, ip's and other stuff is just a black magic to me - but I know that once I make the "connection between two hollywood programs I will manege the rest ;) I run this command on one c...
- Sat Sep 02, 2017 6:16 pm
- Forum: General programming
- Topic: several commands in a line
- Replies: 2
- Views: 3801
Re: several commands in a line
Code: Select all
a=1 Print(a) WaitKeyDown("any")
- Sat Sep 02, 2017 12:48 pm
- Forum: General programming
- Topic: for to avoid executing when listitems = 0?
- Replies: 2
- Views: 3875
Re: for to avoid executing when listitems = 0?
if you have something like this:
and listitems(table)=0 then this FOR/NEXT loop will never be executed since listitems(table)-1=-1 (it would be executed if you specified STEP -1)
So you don't need any extra code .
Code: Select all
for n = 0 to listitems(table)-1
So you don't need any extra code .
- Thu Aug 31, 2017 12:03 am
- Forum: Newbie questions
- Topic: multiplayer over the network
- Replies: 10
- Views: 13234
Re: multiplayer over the network
Over the Internet would be nice but if that's more problematic than I'll try over the LAN first.
So i means I have to use CreateServer() command on one computer and then OpenConnection() on the other one?
So i means I have to use CreateServer() command on one computer and then OpenConnection() on the other one?
- Wed Aug 30, 2017 4:27 pm
- Forum: Newbie questions
- Topic: multiplayer over the network
- Replies: 10
- Views: 13234
multiplayer over the network
Hello, I wanted to add another player to my little game but it would be nice to have it over the network - so my question is how to start. In short: 1. two people start the game on two computers 2. one computer finds the other one so the programs can communicate with each other (by communicate I mea...