Jump to content


ellisvlad

Member Since 13 Apr 2009
Offline Last Active Yesterday, 12:32 PM

Posts I've Made

In Topic: Server/Client TCP packages not transferring

03 May 2015 - 03:21 PM

Hi, the code it doing what it should.

 

Basically, what's happening, is you are sending 3 ints, with the values 64, 88 and 90. An int has a size of 4 bytes. So you are actually sending 3*4 bytes.

 

On the receiving end you read 4 bytes for the first int coming in, the 64. And are printing the first two bytes of that int. Internally, the int will be four bytes of 64, 0, 0, 0. So when you print the first two bytes, you get 64 and then zero.

 

The second line, you receive two values at once (8 bytes), which is normal, as the network will buffer input for you. You again read the first and second byte of the first int.

 

So the data you send is:

64 00 00 00 88 00 00 00 90 00 00 00 64 00 00 00 88 00 00 00 90 00 00 00 etc.

and you read:

64 00 00 00 88 00 00 00 90 00 00 00 64 00 00 00 88 00 00 00 90 00 00 00 etc.

 

To read the correct data just use:

buffer_read(buffer, buffer_s32);

This will read a full 4 bytes of a signed int.

And then check the buffer size to see if more than one int came at once.


In Topic: Is there any extension creation tutorial

02 July 2014 - 11:36 AM

Check out: http://help.yoyogame...1648-Extensions

 

There is one for Android, one for IOS and one for Mac, Windows and JS.

 

Android one:

http://help.yoyogame...droid-GMS-v1-3-


In Topic: Websites Marking My Game As Malicious

25 April 2014 - 02:05 PM

Looks like your computer is infected with a Sality virus. This kind of virus plants malicious code on your computer and will often attempt to infect every .exe file it can get its hands on. Your game was most likely infected by the virus. Sality is very hard to remove, as it can duplicate itself into every .exe file on your computer in a way that can't be reversed automatically.


In Topic: The Great Gmc Jam #11 Discussion Topic

27 July 2013 - 02:46 AM

Ahh, haven't used Game Maker in so long, let's hope I can make something decent by the end of the Jam ;)

 

For anyone still trying to find an idea, Just write random things to do with monsters on paper, or in notepad, and just develop the idea, even if you won't use it :P You're more likely to think of something good if you are in a monster-game theme mindset.. I did this, and while I'm not using alot of these ideas, it helped me think of the idea I am using ;)

 

Spoiler


In Topic: Count To 7500 By End Of July!

08 June 2013 - 10:36 AM

5441