buffers

  1. W

    Windows [Solved!] How to get an integer from a buffer at correct position

    Hello, I am trying to get the image width and height from a .png file IHDR chunk inside a buffer so I can make the correct sized surface to write my buffer to. I have followed (converted) this stack overflow post's advice but i am getting the wrong values from it, in fact I loaded a 512 x 512...
  2. U

    GameMaker Need File Size to Determine Buffer Size?

    The player in my game has to explore a rather large world that can't reasonably fit into memory. Instead, they simply load parts of the world from files as they approach and unload as they walk away. This was working fine at first, but as I added more complexity in how designers can build these...
  3. D

    Audio file length

    Hi there, I'm trying to create a game with a big circle that changes in size to the beat of a song. The audio files aren't imported into the game because i want people to be able to use their own files. I've succesfully managed to load a list of all songs in a certain folder, and i'm using the...
  4. Pfap

    [SOLVED]http buffer

    [SOLVED] posting_match 2 0 2 Content-Length Date 5 Thu, 24 May 2018 03:40:52 GMT The above is the show_debug_message(); output of the below program: if ds_map_find_value(async_load, "id") == request{ show_debug_message("posting_match"); show_debug_message(async_load[? "response_headers"])...
  5. R

    GML Trouble with buffers

    Hi, i'm getting trouble with the buffers. I've read the documentation but to no avail. I only made a little test, to experiment, but it doesn't even work and I do not understand why. Here is the code : msgBuffer = buffer_create(1024, buffer_fixed, 1); buffer_poke(msgBuffer, 0, buffer_string...
  6. L

    GML Flow-Field Optimization

    I've been developing a flow field for some time now and i'm running out of optimization ideas. Currently, it's just too slow for use in an actual game. I am using buffers, accessors, and making sure my scripts are as lightweight as possible. I already know about separating the map into several...
  7. W

    Android [SOLVED!] copying a file using buffer problem

    Hello, in my project I want to just copy a file in the included files without modifying or doing anything to it and save it in a folder. So after realizing GMS' file handling functions do not work with .mp3 files I converted my file to an .ogg and I got it to load the file into a buffer and...
  8. S

    Legacy GM Save buffer server side

    Hi,i was wondering if i receive a buffer from the client and i want to save it to the server how should i do it? Should i use buffer_save(buffer, filename); or something else? And would it work if i receive 2 different buffers and i want to save it one by one?
  9. 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?
  10. B

    Legacy GM buffer alignment - deciding the size of buffer alignment

    Hi,i'm wondering how do you decide the size of the buffer alignment? because here it's 2: player_buffer = buffer_create(16384, buffer_fixed, 2); but what will happen if i set it to 1 or 3? Thanks in advance!
  11. Tsa05

    GameMaker Advice for packed resources?

    I'd like to be able to take a number of sound files, combine them all into one single resource file package, and use them in GameMaker. Lots of games seem to do this kind of thing with media files; it makes it much easier to supply updates and downloadable extra content. I could obviously pack...
  12. M

    Game Maker buffers comprehensibility on a network

    I want to use the network_send_raw function to communicate with a server which is not created using Game Maker. The buffer sent to the server with this function would be written using buffer_write, with buffer_string as argument. My question is: would the string be comprehensible at the server...
  13. H

    How many buffers should I use?

    I just got some LAN working for the first time in one of my games, so now it's time for me to start filling up packets with information about objects in the room. Now I'm wondering how I should send packets in a resource friendly manner. I've read that: -strings should be aligned to 1 -8 bit...
  14. S

    GameMaker buffer based palettizing? game currently really slow.

    does anybody know how to make a my palette_create and tileset_create functions faster? right now it takes about 2 minutes to load everything before the game starts to draw. I'm trying to make custom palettized tile drawing so I can make a zelda game. currently its coming along very well but...
  15. M

    Legacy GM [SOLVED] How does game maker write/read bytes to buffers?

    I searched for "endian" and "significant" in the manual, but it didn't give me anything. Little endian or big endian?
  16. K

    How do i update my Network Players sprite_index

    Hi, so I'm relatively new to game development and I'm currently developing an MMO and so far have multiple clients successfully connecting to my server. My local player object moves correctly and has the correct sprite movements (up,down,left,right). but I'm having a little difficulty in making...
  17. 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...
  18. ras maxim

    Windows buffer_set_surface doesn't work for Nvidia videocards?

    Hello. GMS 2.0, trial version. //Create event var w = 32; var h = 32; var surface = surface_create(w, h); var buffer = buffer_create(4 * w * h, buffer_fixed, 1); buffer_seek(buffer, buffer_seek_start, 0); for(i=0; i<w*h; i++) { buffer_write(buffer, buffer_u8, 0); buffer_write(buffer...
  19. hippyman

    Design Using buffers for maps

    I've been fiddling around on paper for the past day trying to design a compact format for building pieces to allow for larger grid based maps while not using a ton of memory. The building mechanics I'm designing it for is something similar to a game called Project Highrise, just to give you an...
  20. S

    GML Networking, Not receiving sent buffers

    I send buffers from a server. I use a draw event to make sure the buffers have the value I want when i send them, and they do. The 4 buffers are as follows: 4, for a switch statement, and 1, 2, and 3 for the variables buf1, buf2, and buf3 respectively. My client receives the 4, but when i change...
Top