string

  1. FoxyOfJungle

    GMS 2.3+ How to decompile a buffer? (It's possible??)

    When it comes to security issues, there are certain things that we need to know how to avoid or know if it is possible. There is a function called buffer_save(), however, is it possible to "decompile" this buffer saved in a text file?, somewhere else without using GMS 2 (the buffer_read()...
  2. samspade

    GMS 2.3+ Resource IDs are Numbers, Not Strings

    GM Version: GMS 2.2.5 and 2.3 Target Platform: All Download: NA Links: YouTube Video A Micro Tutorial for Someone New to Gamemaker and a Reference for the Rest of Us Resources ids are numbers not strings. Knowing this will help you prevent some bugs and allow you to do things like create...
  3. FoufaDjo

    SOLVED how to replace clipboard string special chr

    i want to cope and past only numbs and the chr "." for the ip string but idk a key word to target all special char i only fond string letters and digits that cover specific chr
  4. xDGameStudios

    GMS 2.3+ [DISCUSSION] Concat strings the easy way!

    Given the changes that were made to the GML parser, I would like to know what is your opinion on YYG allowing the use of something similar to what we can see in JS and C#. JS: var a = "foo"; var b = "bar"; var c = "damn"; var text = `Today I want ${a} with a ${b} and it was ${c} great`; C#...
  5. angelwire

    SOLVED Having to append " to an IP address to use in a ds_map [Solved - I was totally wrong]

    EDIT: I'll leave this up as an sad reminder of how dumb I look. I had accidentally swapped "!= undefined" and "== undefined" and so I thought it was returning "undefined" when it was actually returning the player and visa-versa. Everything in this post is wrong Using 2.3 I'm making a...
  6. E

    Remove line breaks from string

    Hello, how would you remove line breaks from a string? So that it goes from this: Hello World. to this: Hello World.
  7. R

    GMS 2.3+ Extension function not properly reading string return value from .dll

    Hi all. I'm having some trouble with a pathfinding extension I'm trying to write. The first real function of the extension that I'm trying to test out is the function to make the grid object for pathfinding, and I figured that I could cast a pointer to the object into a string and pass that back...
  8. K

    String and Ds_Map

    Okay, Basically, what I'm trying to do is the following: I want to create a string that uses a variable in it. The variable is stored inside a Ds_Map When I try to run the game this happens: ___________________________________________...
  9. V

    GML [1.4.999] Preventing # from going next line

    I am trying to prevent hash character from going next line. I have already tried string_pos(ord("#"), message), keyboard_check_pressed(ord("#")), and string_pos(ord("\n"), message), but apparently they do not work. How can I check if # key is pressed? Or is it not possible at all?
  10. GunnyBoy

    Converting string to object name to return object ID

    I have objects used for the player to collide into to change rooms called "o_transition". Each object has a unique with a naming convention (current_room_to_target_room) and has a a variable for the current room it's in and the target room to move to in the creation code. I'm trying to find a...
  11. GunnyBoy

    SOLVED Automatic player position after room transition help

    Most of the tutorials I've done involves creating a "door" object for the player to run into and have which room to change to as well as the x and y position to start the player in each of the door objects creation code. While this works I'm trying to think of a way to do this with JUST the door...
  12. Kyrieru

    GMS 2 Seperate numbers in a string into an array? (solved)

    I'm loading a text file with lines like; 1,5,12 And I need to convert it into an array. I understand (more or less) how I would have to do this, but frankly as more of an artist than a programmer; when I think about it my soul tries to leave my body. Because I know I will stumble over it...
  13. Daniel Mallett

    GMS 2 Drawing text frustrations

    I'm having a break from my main project to work on some form controls. I'm currently writing a text box control. I am perfectly happy with the code I have at the moment so I really don't want to completely restructure it in order to fix the following issue. The gap between each letter either...
  14. FoxyOfJungle

    GML Turn string into ******** password

    What is the most efficient way to turn a string into something unread for use in a password textbox? Example: Password: 12345678 Password in the draw_text(): ******** I tried to use string_format() and string_replace_all(), but I don't know if I did it wrong. Is using loops the only...
  15. Michael Hart

    SOLVED 3 or 4 strings to fit in specific area

    i have strings that should fit in an area from 210 to 786 . i would like to have 3 or 4 strings to scale to fit in this area. the variables are called guest1, guest2, guest3 and guest4 all of these variables vary in string_width how can i make these fit using draw_text_transformed?
  16. TheMrPancho

    GMS 2 Eliminar ultimo carácter de una cadena de texto/Remove the last character in a text string

    ¡¡Hola, primero que todo soy un usuario de habla hispana y mi inglés no es muy bueno!! Bueno lo que busco es como eliminar el último carácter de una cadena de texto. Llevo dos días usando Game maker 2 en su versión prueba, y me falta mucho por aprender. una agradecería de corazón su ayuda...
  17. C

    Finding the longest string in an array

    Im working on GUI right now and want to make sure the menu backdrop changes in size to fit the longest string in a given array. What function could I use to accomplish this? (I'm using GMS:S 1.4)
  18. zendraw

    SOLVED weird string error

    i get this error when i try to run the project and i cant see why is it happening
  19. K

    change multiple variables value in a for loop

    hello everyone. i'm new to coding in general and i was wondering if you can help me with this problem: i have this variables global.StatLvl1 = 2 global.StatLvl2 = 2 global.StatLvl3 = 2 global.StatLvl4 = 2 global.StatLvl5 = 2 global.StatLvl6 = 2 global.StatLvl7 = 2 global.StatLvl8 = 2...
  20. sv3nxd

    GML Most efficient way to render a textbox

    Hey, I'm currently working on an open-source project in which you can create a textbox with one single command. I've been working on it for a long time now, trying to improve it in every way I could. (https://github.com/Sven98/ezBox) I was wondering if the way I am doing it right now is...
Top