Hey Guest! Ever feel like entering a Game Jam, but the time limit is always too much pressure? We get it... You lead a hectic life and dedicating 3 whole days to make a game just doesn't work for you! So, why not enter the GMC SLOW JAM? Take your time! Kick back and make your game over 4 months! Interested? Then just click here!
Hello,
i use buffer_read, but if someone use old version, it will return outside of buffer error. Is there a way to check if it's in buffer last data input?
Something like if(ver = buffer_read(net_buff, buffer_string)) // This wont work.
Thanks for help!
im creating a buffer save/load system that saves sprites and variables to a single external file.
below is what I have sofar. its just doing variables and it works
but how do I handle sprites? I understand I have to draw sprites to a surface and use buffer_get_surface and buffer_set_surface...
GMS2 IDE v2.2.1.375
GMS2 Runtime v2.2.1.291
Preface:
I have been briefly learning how 3D works within GMS2 and am trying to write a simple 3D game by scratch so I understand all of the ins-and-outs. No 3rd party extensions and 3rd party scripts are only allowed if I fully understand them. Just...
I did some searches in the Gamemaker Community and it sounds like these functions were iffy in Gms1 and that it might be the user's system causing problems.
Create event:
buff = buffer_create(1024, buffer_grow, 1);
opp_surf = -1;
//will write to buffer here
alarm[0] = 60;
//the main...
let say i put
var some_buffer = ds_map_find_value(async_load,"buffer");
in network async event, should i delete the some_buffer variable everytime at the end of network async event to prevent memory leaks?
i noted that when i delete it, it will cause illegal buffer error sometime
So I'm trying to draw a surface, pretty simple really, but the surface does not draw and instead the output gives me the following message "Trying to set texture that is also bound as a depth buffer-bailing". I have not worked with buffers at all so I'm not sure how this is happening. Any...
Hello! I'm doing a multiplayer game. In the Async Networking event of my object oServer i switch the EventType received so to know to do:
var ClientSocket = async_load[? "socket"]
switch(async_load[? "type"]){
case network_type_connect:
//do something
case...
i'm getting this error when i minimise the game in windows or come out and back into the game on android..
___________________________________________
############################################################################################
ERROR in
action number 1
of Draw Event
for object...
I've pinned down a strange issue while writing buffers, that seems to be out of reach for me to solve. I have 10 buffers being written from server to client to load content onto the client by specifying static and then dynamic contents' data. Everything is transferred correctly EXCEPT the 6th...
Debug says buffer is blank and nothing is getting sent to my server beyond a connection was successful message.
client_socket = network_create_socket(network_socket_tcp);
if (network_connect_raw(client_socket,"127.0.0.1",13000) >=0){
t_buffer = buffer_create(4, buffer_fixed, 1)...
Hey okay i'm trying to use a surface buffer to get the colours of pixels but when i do and create a 3d model using d3d_model_vertex_colour() it's all greyed out. I'm not sure why it keeps doing it. Here is the code i'm using:
///sprite_make_model(index)
var sprite = argument[0];
var w =...
Hey guys,
When I switch to full screen my image buffer gets cleared.
How do i restore it after the fullscreen/windowed switch, do I need to copy or save the buffer before the swap and then restore it after, or is there a simpler way of doing this ?
The documentation for buffer_get_surface just doesn't go into enough detail to get me started.
I'm trying to get pixel color info from a surface, following what examples I can find online, but reading the buffer gets a read outside the buffer position 0 type error, which makes me think the...
i'm trying to read a received tcp packet from custom c# server. i copy the code from an officiel example (NetworkDemo) i'm stuck on this for days now. all that's happening is the server sending a packet containing a message and i'm trying to read it and flash it to the debug console. here is the...
I was wondering if it was possible to use a negative offset to read values from a buffer_wrap. As an example, say I want to read data from 10 positions behind a buffer_wrap current "seek" position (seek - 10) with the buffer_peek command. If the current seek position is less than 10, will the...
GM Version: 1.4.1763
Target Platform: ALL
Download: GMS:1.4 .gmz file
Links: N/A
Summary:
This tutorial is an example of how to take pixel art sprites and convert them to 3d models in real time. This makes the sprites look solid and "voxelized" in the 3d space as opposed to flat planes...
EDIT: After some tests, it turns out that the speed of buffer_get_surface for an 8x8 surface is pretty much the same speed as what it would be for a 256x256 surface. So not only will this not make my game faster, but it would slow it down. Never figured out why the shader didn't work but it's...
So in working on my game, I'm copying a binary file into a buffer. The file can be of a varying size, so I'm doing it one byte at a time until I hit the end. The issue I'm running into now is reading values back from the buffer. The data is all there correctly, but buffer_read() is expecting...
Hey guys.
I currently try to learn how to do basic networking and i stumbled across following error when sending/ receiving data:
The error only occurs when the code wich "receives" the data is active (1 client connected to the server,sends data, server crashes), so either it doesnt send data...
Hello!
I have an object named o Client. It connects to the rever without problem.
I have an oServer object, wich is the server, and accepte o Client's connecton without problem.
I want to send packet from the Client, but i I set up the recieving in oServer's Async Networking event the game...