EDIT: on a side note: WHY THE HELL ARE YOU SENDING 5GB?!
Edited by CloudWolf, 15 February 2011 - 07:40 PM.
Posted 15 February 2011 - 07:39 PM
Edited by CloudWolf, 15 February 2011 - 07:40 PM.
Posted 15 February 2011 - 07:52 PM
Posted 23 February 2011 - 04:07 AM
Posted 23 February 2011 - 04:08 AM
Posted 23 February 2011 - 06:37 PM
Edited by Primoz128, 01 March 2011 - 09:43 PM.
Posted 23 February 2011 - 08:09 PM
I don't need to port forward with 39dll even thought since i have linksys router all ports are down.
Posted 25 February 2011 - 06:36 PM
Edited by Primoz128, 01 March 2011 - 09:39 PM.
Posted 01 March 2011 - 09:35 PM
Posted 06 March 2011 - 02:26 AM
Posted 08 March 2011 - 07:02 PM
I think I found a bug. netconnected() returns 1 even if the internet is disconnected, if I am sharing Internet connection via ad-hoc networking. I imagine the same bug occurs on routers, but I haven't tried. The IP returned by mplay_ipaddress() and hostip(myhost()) is "192.168.0.1". Seems to me that hostip("google.com") != "" is a more reliable internet connection check, but something tells me that doing an IP lookup really often would be a bad idea. I'm basically trying to check once per second if the internet is connected, in case the connection is lost, but it doesn't work correctly. I would have thought netconnected() would check for actual internet connectivity. No?
Posted 09 March 2011 - 12:12 AM
mplay_ipaddress() != "127.0.0.1"
hostip(myhost()) != "127.0.0.1"
Posted 10 March 2011 - 08:11 AM
Posted 10 March 2011 - 09:20 PM
That depends on setformat, have a look. You can look at the source to see whats happening.hey.
so, ive used standard PHP fuctions like "socket_bind, socket_create" to connect the server on 39dll. and its connected. how can i send some messages to server? in what format?
Posted 16 March 2011 - 11:40 PM
Posted 23 March 2011 - 11:38 PM
Posted 24 March 2011 - 12:22 AM
Three days is hardly a week, so lets stop posting here. Don't respond to this.I posted there and after a week no replies THANK you.
Posted 08 April 2011 - 01:18 PM
Posted 09 April 2011 - 11:15 AM
Posted 13 April 2011 - 07:11 AM
//create event
server=-1;
...
server = tcpconnect(string(global.tip), 50505, 2);if (server < 0) game_end();
clearbuffer();
writeint(-1);
sendmessage(server);
//this code in step event sends a message to the server
...
default:server = tcpconnect(string(global.tip), 50505, 2);clearbuffer();writeint(0);writeint(wcm);sendmessage(server);break;
}
//and this doesnt!
...
default:clearbuffer();writeint(0);writeint(wcm);sendmessage(server);break;
}
The object I'm using for multyplayer is persistent, since I have two rooms which use multyplayer(one for pre-game settings and one for actual game)
//room start event - if a player exits the mp room, he goes directly to the menu
if room==menu
{
if global.role=="host" closesocket(listen);
if global.role=="client" {server=tcpconnect(string(global.tip), 50505, 2);clearbuffer();writeint(1);sendmessage(server);closesocket(server);}
}
This doesnt work - the conection ends only when I end the game. Help please?