• Hey! Guest! The 36th GMC Jam will take place between February 27th, 12:00 UTC - March 2nd, 12:00 UTC. Why not join in! Click here to find out more!


  1. Sammi3

    Should Dlls always return a value?

    I wasted perhaps almost half a day trying to debug my dll crashing (I even built a tool during that time that can compile GameMaker projects from the terminal so that I could run my game from vscode so that I could attach a debugger to see what was happening in the dll). The return value in...
  2. Sammi3

    Using a GameMaker Texture in a DirectX11 dll

    I have a dll that uses directx11 and I wanted to get a texture (sprite_get_texture, surface_get_texture, ...) as an ID3D11ShaderResourceView so that it can be manipulated on the dll side. Is this possible? I thought those functions gave us pointers to a directx resource or are they a local...
  3. Sammi3

    Casting D3DX11Device from os_get_info into valid data type

    I wanted to cast the D3DX11Device and D3DX11Context from the map provided by os_get_info into the correct type using the correct formating. On the C++ side, I currently have my dll setup as follows: fn_export double Init(void* dx11Device, void* dx11Context, void* windowHwnd) { //Cast void...
  4. Edwin

    GML How to add C++ functions into GameMaker using dll's?

    Hello, I want to use one of the functions from c++ that returns the string. Is this possible and how do I do that? Sadly but I couldn't find any good tutorials about making c++ dll extensions for GM:S.
  5. vdweller

    GMS 2 Putting a n-bytes C++ value in a buffer for GM to read

    Hi all! I am working on a C++ dll's ability to return a char array. My first question is: The template specifies a return type of char pointer . Is there a problem if the function returns an unsigned char pointer? I did some tests and it seems like it has no problem, but maybe it won't be OK...
  6. kraifpatrik

    GMS 2 Custom C++ in YYC without DLLs

    Hello everyone, recently I got into going through C++ source files generated by YYC, trying to get some understanding of how GameMaker works behind the hood. I'm putting this together and sharing with you in hopes to pontentially enable the community to make custom tools that could improve the...
  7. kraifpatrik

    GMS 2 Optimizing code for YYC

    Hey everyone, yesterday I started fiddling around with C++ files generated by YYC (the path to the files can be found in the console upon start of running the project with YYC, for me it was C:\Users\kraif\AppData\Roaming\GameMakerStudio2\Cache\GMS2CACHE) and I found that there are situations...
  8. Kasra

    Legacy GM Using Shader Scripts[SOLVED]

    i search internet for an appropriate shader tutorial begginer to advance, in game maker, almost nothing, people ruined internet, so i forced to get a 24 Hour Course in udemy about (How to programming Opengl with c++) can that tutorial help me write a shader in game maker ? or opengl is writting...
  9. lord_berto

    GML drawing live video to surface? ( need help from CS wizards )

    Hello everybody im currently working on a project and want to know if it is somehow possible to write some kind of dll that will allow gms2 to receive some kind of video input as a surface. perhaps im too ignorant about this subject and im asking something next to impossible. my current...
  10. K3llyll

    Linux [MAYBE SOLVED]• How can I use .SO files ?

    Actually there are a few questions that I want to ask. EDIT : I got the answer to the first two questions in another forum. I just need help with the third question. 1• I don't know much about Linux. .so files on Linux = .dll files on Windows, is it correct ? I mean, does both types of files...
  11. N

    Legacy GM [EDITED}

    I think i am going to see if there is some built - in alternatives that GM:S 1.4 has.
  12. S

    I want to add 128-bit floats to GML with C++, where do I start?

    Hello, I want to add this: https://www.boost.org/doc/libs/1_67_0/libs/multiprecision/doc/html/boost_multiprecision/tut/floats/float128.html to GML, for Windows, Linux and MacOS. I'm not pretty sure what is possible and what is not with extensions yet, if someone could guide me a little bit I'd...
  13. houdinik

    C++ Plugin Menu for GM2 editor

    Hey guys is that possible to create a dll to work directly in GM2 like a custom Menu ( e.g. File, Edit, Build). I know c++ I just need know where is the SDK docs or some template project. I just found this video, but its not that I want Thank you!
  14. Samuel Venable

    [SOLVED] MFC/VB6 in GameMaker?

    This is a two-part question since both have to do with MFC, (though only the latter has to do with VB6). 1) Can I write a NON-ActiveX DLL and use that as an extension for GameMaker: Studio (using MFC)? I tried doing this and the DLL didn't seem to be recognized by GMS. This could be just...
  15. Samuel Venable

    [SOLVED] C++ Extension Writing: Return UTF-8 Encoding?

    I'm writing an update for most of my extensions to support UTF-8 encoding on Windows. So far so good, I got several functions working with UTF-8, because I'm converting the char * arguments to WCHAR before using them. There is a roadblock however. One of my functions has a return value that...
  16. Tthecreator

    change a window's dpi awareness after creation

    I'm working on a dll for game maker and I'm running into some issues. I seems I can't change the dpi settings on an already created window. Is this true or is there some workaround? I've been using SetProcessDpiAwareness and SetThreadDpiAwarenessContext. I was using c# but I don't mind...
  17. Poking Pug

    Any way to use C/C++ code with GM:Studio v1.4 or v2??

    Hi! Basically the question is self-explanatory: GM:S has been using its proprietary language from the beginning, which has changed a bit over the years, but it's clear that it is not using regular C/C++/JavaScript/Delphi/etc. syntax, it's a mix of them with some personal touches. All I want to...
  18. D

    Question - Code Writing extensions

    Hello, GM community. I would like to know if it is possible to write native extensions in e.g. Windows DLLs to augment the GML system. If so, how can I start? Can someone point me examples in C/C++, C# or whatever other language supported? Thank you!
  19. Paskaler

    Legacy GM [SOLVED] DLL: LoadLibraryA failed with code 126

    I started meddling with DLL files recently as I need them in my project. I followed a couple tutorials, but this error keeps popping up, and I have no idea why. Here's a screen of the GML code I'm using for testing: This is pretty much the way it was done in all the tutorials. I have read in...
  20. TheStolenBattenberg

    Alpha MAEngine - Community 3D Engine

    MAEngine has been under development for two years now, as a closed community project; headed by me, TickleForce (Venomous on the old GMC forums), and Falki147. Due to time limitations (I'm getting married now, and I think the others have left for other game development tools and school), I'm...