UnderminersTeam / UndertaleModTool

The most complete tool for modding, decompiling and unpacking Undertale (and other GameMaker games!)
GNU General Public License v3.0
1.12k stars 213 forks source link

Adding a new extension via the extension editor crashes the game (bleeding edge) #1713

Open DT-is-not-available opened 5 months ago

DT-is-not-available commented 5 months ago

Describe the bug

Hi, I am currently modding a game called circloO using this tool (specifically the bleeding edge version, the stable version fails to open the game) and I am in the process of trying to add a custom DLL to the game (following this tutorial as closely as I can). However, when trying to launch the game via the temp runner with this new extension present, it won't even open, nor show an error message. Below I have attached the setups I have for the extension, as well as the snippet of code I am compiling into the DLL (which compiles just fine with no error messages) in case I'm doing something blatantly wrong that can be pointed out.

Reproducing steps

  1. Create a new C file with the following code:
    
    #include <windows.h>

define API __declspec(dllexport)

API double add(double one, double two) { return one+two; }


and compile it into a shared library DLL file named `gmlua.dll`

2. Move the outputted DLL to the same folder as the game.

3. Configure the extension as you would normally, my specific setup is as follows:
![image](https://github.com/UnderminersTeam/UndertaleModTool/assets/66632141/e97bd5be-b2ab-416d-ace8-f68decffe007)
![image](https://github.com/UnderminersTeam/UndertaleModTool/assets/66632141/3aa0f6fd-166d-4a7d-b52d-4530dac5ca43)
![image](https://github.com/UnderminersTeam/UndertaleModTool/assets/66632141/2ad61ed6-5920-46e7-b4bb-731638823b9f)

4. Try to run the game

### Setup Details

1. I am using the bleeding edge version of UndertaleModTool, though the about page says v:0.5.1.0
2. I am running Windows 11
3. The game I am trying to mod is [circloO](https://store.steampowered.com/app/2195630/circloO/)
Miepee commented 1 month ago

@DT-is-not-available can you post the logs of the game when it is run? in linux and macos, just posting the stdout and stderr content works, on windows you ahve to launch the game with some special flag.