1. mbeytekin

    It gives this error while building. 'The given version [9] is not supported, only version 1 to 8 is supported in this build. '

    I think it's because of a DLL I'm using, but I compile all my DLLs in Visual Studio 2019. But when I activate only one, I get this error and the app is already crashing. I've searched the internet for this message but haven't been able to find the exact reason. Please can someone help?
  2. KironDevCoder

    SOLVED How to call GML functions from within C/C++?

    I managed to create an extension, next step to creating an modding extension is calling specific GML functions from within the extension. But how do I do this? My guess would be that I'd have to pass ptr(show_message) as an argument from GML -> C/C++, but how do I execute the function in C/C++...
  3. mbeytekin

    Screen flickering when using an OPENGL based DLL

    I have a DLL that I wrote in C ++ that processes an image and sends it back to Gamemaker. This DLL is OpenGL based.The image comes on, but it flickers constantly.I tried something like this; If I use display_reset at every step, it doesn't flicker, but of course it causes memory leak.Also, if I...
  4. mbeytekin

    GMS 2.3+ Vertex Buffer to ID3D11ShaderResourceView... is that possible?

    I want to send an image from Gamemaker for a DLL that I have prepared in c ++. The DLL image processing is running in the format ID3D11ShaderResourceView. So I need to somehow send a surface or sprite texture in Gamemaker to the DLL as a buffer address in ID3D11ShaderResourceView format. I...
  5. E

    [SOLVED] C++ pthread (an attempt to do a multithreading function)

    Hello, i don't know what is happening right now... because i'm doing a dll function that should be doing a task in another thread. My actual attempt is to make it work after compile, because yes, it compiles... but it throws me an error "LoadLibraryA failed with error code 126" and this only...
  6. Samuel Venable

    Asset - Extension Virtual Visit Maker (for Windows, macOS, and Ubuntu)

    Description Required Ubuntu Dependencies: sudo apt-get install libsdl2-dev libglu1-mesa-dev libgl1-mesa-glx freeglut3-dev mesa-common-dev libpthread-stubs0-dev libx11-dev libprocps-dev Optional Ubuntu Dependecies: sudo apt-get install zenity kdialog Add me on Discord to get faster support...
  7. EvanSki

    SOLVED Need help with Resizing Swap chain, V-sync error, maybe an issue with .DLL?

    Alright so This is what im doing, I have a .dll that allows me to access and call windows OS functions, displaying popups, opening and closing the cd tray, ect.. When I call the cd tray to open or close, Game maker hangs and pauses until the cd tray is ready for a command. notice how the...
  8. 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...
  9. 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 ?
  10. Bawat

    Windows Asynchronous C++ DLL Extension creation in Eclipse

    GM Version: GameMaker Studio Target Platform: Windows Only Download: https://www.bawat.net/downloads/GameMakerStudioResources/DLLExampleUsage.yyz Links: https://forum.yoyogames.com/index.php?threads/getting-started-with-c-dll-extension-creation-in-eclipse.73728/ Links...
  11. Bawat

    GMS 2 Getting started with C++ DLL Extension creation in Eclipse

    With the aim of getting improved performance, I set out on the odyssey to create a .DLL extension in C++. With no up to date resources on how to get this set up properly, and little memory of C++ it took me 2 days to get GMS2 and the DLL to communicate. The two goals of this guide and it's...
  12. 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...
  13. 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...
  14. 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...
  15. 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.
  16. 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...
  17. kraifpatrik

    GMS 2 Custom C++ in YYC without DLLs

  18. 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...
  19. K

    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...
  20. L

    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...