• 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!

buffer

  1. Simon Gust

    Legacy GM Networking: client <-> server miscommunication

    Hello, Having a problem with networking I decided to look into. Problems with TCP: - server steals packets it sends to the client and claims them for itself offsetting the buffer seek and causing errors. Problems with UPD: - Once the client sends a packet, the server will read that packet...
  2. S

    Legacy GM Multiple buffer usage

    Hi,i was wondering how can i use 2 or more buffers at the same time and save them on the same server?
  3. Cloaked Games

    GameMaker Color Components from Buffer

    Hello, I am using buffer_get_surface to read color data for a sprite. However, I do not know how to get the color components from the color itself. I tried using color_get, which worked when I was using draw_getpixel, but seems to be always returning 0 in this situation. Here is the relevant...
  4. B

    Legacy GM Buffer write [SOLVED]

    How do you decide when to use buffer_u or buffer_s? And how do you decide when to use buffer_u8 or buffer_u16 or buffer_u32?
  5. B

    Legacy GM buffer storage

    Can you store several things in one buffer? For example life and strength
  6. B

    Legacy GM ds map "buffer"

    ds_map_find_value(async_load,"buffer"); What kind of value does "buffer" return?
  7. Simon Gust

    Windows File saving / loading issue

    Hello, I have run into a problem concerning file loading using get_save_filename and get_open_filename. I want to save a buffer using the file type .map but it doesn't really work. I get the error If I use buffer load ext to load the buffer I get which is very confusing for me. I know these...
  8. M

    Windows Getting buffer_set_surface to work.

    There have been several people who manage to get buffer_set_surface to work but many others could not. I've been doing some research to find out what might be the cause and it could be hardware dependent. I also found a little information that it might be the DirectX version on the computer...
  9. N

    Is there a way to convert the buffer to a texture or a sprite or surface?

    I use ffmpeg to read the frame of the movie. The read frame is filled in the buffer in BGRA format. The problem is that I need to replace it with a sprite or surface to draw it on the screen. I omitted the buffer_set_surface function because it is windows only. I can not find a way to...
  10. Zhanghua

    GameMaker Buffer W/R abnormal [Solved]

    //Write global.LevelState = array_create(15,false); var file_name = global.SaveFile; var size = array_length_1d(global.LevelState); var buff = buffer_create(size*4,buffer_fixed,1);//buffer_u32 for( var i = 0; i<size; i++ ){ buffer_poke(buff, i*4, buffer_u32, global.LevelState[i]); }...
  11. M

    storing a decimal value in a buffer

    Im trying to look for an alternative way of storing a decimal value in a buffer. if I store something decimal, it would floor the value and I need it to save the exact number. What ways can be done to resolve this?
  12. 2

    Legacy GM Using Txt file: Write to Buffer, Read String from Line, Send to Var to Display Character Dialog

    How do I put a txt file into a buffer then read specific lines from it? (eg. like how file_text_open_read() and file_text_readln() do without a buffer) I need to read strings with both numbers, and letters then feed it to a variable for display. Also I want to be able to add lines together in...
  13. T

    Get_char_at() parser not finding special characters despite being UTF-8

    I'm loading a CSV using buffer_load(), then going through it character by character with string_char_at(), it doesn't return any characters like 开始, スタート, 시작, Начать despite the .csv being encoded in UTF-8. This used to work but now it doesn't. Any ideas? I'm on v7.7.1447. Here, buffer_load()...
  14. A

    GML [SOLVED] Sprite to Buffer Unexpected Values

    Hey I am trying to load a sprite into a buffer (via drawing it to a surface) and am not getting the values I expect. When I try it with a 3x3 sprite with all blue pixels and print the values, I get this for my pixel values: 0 0 255 0 0 0 255 0 0 0 0 0 0 0 255 0 0 0 255 0...
  15. M

    Legacy GM [SOLVED] buffer returning incorrect value

    This is not the first time I encountered this problem. The few times I had were just part of some random experiments with GMS 1.4 (also in GMS2). But NOW it is happening for my team's game project and its a must fix now. I cant seem to know why or what is wrong ... I store a buffer value that...
  16. A

    GML High Float Precision Challenge (Buffers and Floats)

    I've been stuck on this problem for weeks now. Read a lot of material but didn't help. Finally I decided to ask for your expertise. May be solved by someone more knowledgeable easily. Here is the issue: I have a GLSL ES shader that sends some high precision floats to a surface. For the sake of...
  17. M

    Asset - Scripts buffer_getpixel: 10x faster than normal surface_getpixel (GMS1 and GMS2)

    Get buffer_getpixel at the marketplace! Need a faster surface_getpixel? You come to the right place! This asset comes with a small list of scripts that will help you get a pixel color super fast and its totally free. How to use each command: buffer_getpixel_begin(surface) = creates the buffer...
  18. M

    Understanding the buffer types for specific tasks

    Im working on a project that uses buffers for storing data and information in a separate file. I am currently using buffer_fast (obviously writing in buffer_u8) and my file saving works splendid. However, I am curious about the other alternatives. If I were to switch to buffer_grow and apply...
  19. M

    Save an image into a buffer

    Im new to buffers and was wondering how images are saved into buffers. Im pretty sure it is possible but I dont find any info on such.
  20. H

    GML [SOLVED] Copy sprite to buffer?

    Is there a convenient way to copy a sprite to a buffer? Not real-time, I realize sprites are stored in managed/static memory, but I need access to a sprite subimage to do precise collision testing. I'm not using built-in variables because of using custom matrix transforms. This is for a custom...
Top