Jump to content


Photo

39dll V2.5


  • Please log in to reply
2510 replies to this topic

#2421 CloudWolf

CloudWolf

    GMC Member

  • New Member
  • 228 posts

Posted 15 February 2011 - 07:39 PM

Might be a RAM issue. Check you have enough.

EDIT: on a side note: WHY THE HELL ARE YOU SENDING 5GB?!

Edited by CloudWolf, 15 February 2011 - 07:40 PM.

  • 0

#2422 Shocker51374

Shocker51374

    GMC Member

  • New Member
  • 27 posts

Posted 15 February 2011 - 07:52 PM

RAM issue? Lol.
I'm trying to OPEN file using fileopen(). And I'm NOT SENDING IT. I'm often using 39dll just as a DLL for files. It's really good for that.

fileopen() should just make the file readable by app, not load whole file into the memory. For that purpose there is fileread, which I'm using right after it, in parts, 4 MB per buffer.
  • 0

#2423 barry200

barry200

    GMC Member

  • New Member
  • 11 posts

Posted 23 February 2011 - 04:07 AM

how do you do automatic port forwarding instead of the user having to manually to their port forwarding? is there any way for this?
i know of some games like adrenaline that does this.

thanks.
  • 0

#2424 barry200

barry200

    GMC Member

  • New Member
  • 11 posts

Posted 23 February 2011 - 04:08 AM

how do you do automatic port forwarding instead of the user having to manually to their port forwarding? is there any way for this?
i know of some games like adrenaline that does this.

thanks.
  • 0

#2425 Primoz128

Primoz128

    GMC Member

  • GMC Member
  • 277 posts
  • Version:GM8.1

Posted 23 February 2011 - 06:37 PM

I don't need to port forward with 39dll even thought since i have linksys router all ports are down.

EDIT: I was wrong you need to portforward... well get a router that doesn't shut ports or get a professional help like i am going to get i hope so i can host and test with more players.

Edited by Primoz128, 01 March 2011 - 09:43 PM.

  • 0

#2426 barry200

barry200

    GMC Member

  • New Member
  • 11 posts

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.


really? you don't ? i always thought you needed to...
  • 0

#2427 Primoz128

Primoz128

    GMC Member

  • GMC Member
  • 277 posts
  • Version:GM8.1

Posted 25 February 2011 - 06:36 PM

No really... btw is anyone good with 39dll and could teach me a bit or atleast explain some bugs that i get when experimenting with examples of 39dll FOR EXAMPLE: making first bat move left, right works other bat sees that but if i add that to other bat too it makes some teleportation and other weird bugs...

All bugs fixed :D.

Edited by Primoz128, 01 March 2011 - 09:39 PM.

  • 0

#2428 Primoz128

Primoz128

    GMC Member

  • GMC Member
  • 277 posts
  • Version:GM8.1

Posted 01 March 2011 - 09:35 PM

I am learning 39dll so fast it's very simple now just research examples and expand them :D. Now i have super easly seperated the server/client example into an server gmk and client gmk and it works... I hope seeing improvments on this dll too, and i don't really understand why is other guy making net39 dll even thought this dll is fairly easy and does not require rework...
  • 0

#2429 Big J

Big J

    GMC Member

  • GMC Member
  • 2818 posts
  • Version:GM8.1

Posted 06 March 2011 - 02:26 AM

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? :)
  • 0

#2430 Primoz128

Primoz128

    GMC Member

  • GMC Member
  • 277 posts
  • Version:GM8.1

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? :)


I dunno about that, but i do get the unable to resolve host name all the time...
  • 0

#2431 Big J

Big J

    GMC Member

  • GMC Member
  • 2818 posts
  • Version:GM8.1

Posted 09 March 2011 - 12:12 AM

Seems to me that netconnected() isn't any better than the following:
mplay_ipaddress() != "127.0.0.1"
hostip(myhost()) != "127.0.0.1"

  • 0

#2432 segg3r

segg3r

    GMC Member

  • New Member
  • 1 posts

Posted 10 March 2011 - 08:11 AM

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?
  • 0

#2433 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 10 March 2011 - 09:20 PM

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?

That depends on setformat, have a look. You can look at the source to see whats happening.
  • 0

#2434 Primoz128

Primoz128

    GMC Member

  • GMC Member
  • 277 posts
  • Version:GM8.1

Posted 16 March 2011 - 11:40 PM

Im having a problem creating bullets and they sending their coordinates to the other player(client for example) anyone can help me please ? I really need this fast...
  • 0

#2435 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 17 March 2011 - 05:46 AM

Im having a problem creating bullets and they sending their coordinates to the other player(client for example) anyone can help me please ? I really need this fast...

This isn't the place, go post here.
  • 0

#2436 Primoz128

Primoz128

    GMC Member

  • GMC Member
  • 277 posts
  • Version:GM8.1

Posted 23 March 2011 - 11:38 PM

I posted there and after a week no replies THANK you.
  • 0

#2437 TheMagicNumber

TheMagicNumber

    GMC Member

  • GMC Member
  • 5247 posts
  • Version:Unknown

Posted 24 March 2011 - 12:22 AM

I posted there and after a week no replies THANK you.

Three days is hardly a week, so lets stop posting here. Don't respond to this.
  • 0

#2438 Meyamo

Meyamo

    GMC Member

  • New Member
  • 1 posts

Posted 08 April 2011 - 01:18 PM

Tienes razón.
Fallo mio al escribir. Es doble ==

Cita:
... de todas formas como llamo a una función de una DLL si no está llamada aún... ?GetNumDependenciesYAHXZ Question
  • 0

#2439 Big J

Big J

    GMC Member

  • GMC Member
  • 2818 posts
  • Version:GM8.1

Posted 09 April 2011 - 11:15 AM

The GMC is an English speaking forum.

El GMC es un foro de habla Inglés.
  • 0

#2440 regular

regular

    GMC Member

  • New Member
  • 399 posts

Posted 13 April 2011 - 07:11 AM

I have two questions:
why cant I send a message to the server without using server = tcpconnect(string(global.tip), 50505, 2); first?
//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)
However when I exit to the menu the conection doesnt stop.
//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?
  • 0




1 user(s) are reading this topic

0 members, 1 guests, 0 anonymous users