1. Waifu Enthusiast

    SOLVED Problems moving data from buffer into vertex buffer

    Hi. I've made an exporter for blender that exports models for importing into gamemaker. First, it writes the number of mesh objects in the scene. For every mesh object in the scene: it saves the object's position, scale, rotation, number of triangles, then followed by the vertex data of the...
  2. Antikore

    SOLVED Sending an image through network

    I've been playing around with GMS 1.4 native networking the last days and I'm doing pretty good, but the challenge I'm facing now is so much more complicated than I've expected. My idea is to send an small image (240 x 135) from the server to the client. As I'm doing my tests on my own computer...
  3. kamiyasi

    GMS 2.3+ Is there an asynchronous event for when the app on mobile is minimized?

    I'm testing my project on my Android tablet, and I noticed that if I minimize the project to go to the home screen, then pull it back up again, then gpu_set_texrepeat gets set to false, or at least it appears to. I have 3D elements drawn using the buffer that use textures outside of the 0-1 UV...
  4. Yizzard

    GMS 2.3+ Audio Error? Maybe?

    So basically I have been having this error happen in one level specifically of my game, and not anywhere else where if you enter a battle with an enemy every once in a while the game crashes. I have no idea if it's happening due to this OpenAL error that i keep getting but I don't really see...
  5. Anixias

    GMS 2.3+ Unions in GML

    Hi, all. (This is for use with networking, but it might be useful for save data) I have created a BitPacker which allows you to read/write at the bit-level instead of the byte-level to/from buffers. The issue of course was reading and writing data types other than unsigned integers. The...
  6. Pelican Police

    buffer_read - but it won't crash if you read beyond the end

    GM Version: 1.4 Target Platform: ALL Download: N/A Links: N/A Summary: If you try to read beyond the end of a buffer, you will get an error. This is a problem if your game uses buffers for networking, because anyone could maliciously send a buffer that ends unexpectedly, triggering this...
  7. DonMaklesso

    [SOLVED] Sending surface over network

    Hi, I've been trying to send an application_surface in a buffer (I'm using a server-client system) and displaying it in the client's game so that he would "see what the server sees" but this doesn't seem to work. It doesn't crash or anything just nothing happens. Here's the code: // Server -...
  8. S

    GMS 2 Reading from outside buffer

    Hey all, I've run into a weird networking bug. I've got two projects, a client and a server. When I run both on my local computer, or both on an Azure VM, they work fine. However, if I try to run the client on my local machine and the server on a VM, I get the following error as soon as I...
  9. FatalSleep

    Handle padding for received data packets?

    From the GMS2.x docs: async_load[? "buffer"] "buffer": This is the unique "buffer ID" which is generated by the event. A "grow" type buffer, byte aligned to 1, is created to hold the ID should be stored in a variable and used for all further function calls to the buffer in this event. Just like...
  10. solarcrispz

    GMS 2 Attempting to write outside buffer, line -1?

    Hey guys I've been putting together a multiplayer game with pretty good success. I've encountered "attempting to read from outside buffer, returning 0" errors before, but they're never as ambiguous as the one I'm consistently running into recently. Here it is: FATAL ERROR in action number 1 of...
  11. king javo

    GMS 2 Buffer Memory Usage

    Hi, I'm noticing when using buffer_delete() I'm not seeing the memory usage come down. For example, if I create a new buffer using buffer_create() the memory increases by let's say 20 MB. When I delete the buffer using buffer_delete() the memory really doesn't move. Then if I repeat this...
  12. mbeytekin

    SOLVED Illegal buffer index error when using gif_save() function

    I'm trying to save animated gif in GM2. I'm using GM and sometimes I get an error when I use gif_save() function; ___________________________________________ ############################################################################################ FATAL ERROR in action number 1 of...
  13. mbeytekin

    SOLVED Sending a surface or buffer to a C++ DLL and getting processed image from it to a surface or buffer back

    I'm trying to send a surface to dll and process it in DLL, and after this get this processed image back. I tried send surface as buffer (argument as double) but it's not working. My mean goal is using opencv library in C++. Anyone can help please ?
  14. D

    GMS 2 Losing connection after changing levels

    Like the title says, both players lose connection when I change rooms. Before hand, I'm new to networking and I'm spawning both of them on a setup room to verify if both players are working correctly. However, going to the first level makes the buffers not reach the host and the clients. I've...
  15. 5

    Decompressing a compressed buffer loses data

    Can somebody tell me what I doing wrong in this? before = buffer_create(1024,buffer_fast,1); buffer_poke(before,0,buffer_u8,255); buffer_poke(before,1,buffer_u8,127); buffer_poke(before,2,buffer_u8,63); buffer_poke(before,3,buffer_u8,31); show_debug_message("size...
  16. andev

    In what circumstance is 'size' in network_send_* ever not buffer_tell(buffer)?

    As the title asks. Why is it necessary to state the size of the buffer when sending a packet? When would you ever use a different value (and what happens if you do? I assume it crops the buffer but then again?)
  17. Erik Leppen

    GMS 2 Vertex buffers: extend after vertex_end? Drawing a trace curve

    How do I extend a vertex buffer with additional vertex data after it has been closed with vertex_end, and without removing all existing vertex data in it? Basically what I want is a moving instance drawing its trajectory. Because drawing all segments every step is way too slow, I want to use a...
  18. E

    GML Check if outside of buffer

    Hello, is there a way to check if data exists in the position of a buffer you're trying to read from? My code for sending the data has no errors, because my server runs fine for hours, but sometimes it randomly sohws an error "Attempting to read from outside the buffer (line -1)". I think it...
  19. M

    Followed networking tutorial, getting same issue

    buffer_read argument 1 incorrect type (undefined) expecting a Number (YYGI32) at gml_Object_Server_NetworkingEvent_1 (line 47) - buffer_read(buff, buffer_string) Happens, when I try to read from a buffer, called buff. How to resolve it?