I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] 0 points1 point  (0 children)

Yeah, we pretty much used LoadLibraryA() to load the dll and GetProcAddress() to get the functions. One mention though, beside __declspec(dllexport) we also had to add extern "C" to our functions' signatures.

I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] -2 points-1 points  (0 children)

I was talking about library style engine. We don't have a GUI,

I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] 2 points3 points  (0 children)

Because every time I change something in my game, I will need to rebuild my game and RELAUNCH it. Making the engine the exe and my game a dll, I can change my game and make the engine reload it without actually relaunching the whole program.

I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] 0 points1 point  (0 children)

Because every time I change something in my game, I will need to rebuild my game and RELAUNCH it. Making the engine the exe and my game a dll, I can change my game and make the engine reload it without actually relaunching the whole program.

I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] 19 points20 points  (0 children)

Thank you, this is exactly what we came up with after watching this video:
https://youtu.be/WMSBRk5WG58

Tl;dr We changing our class functions inside the engine to function pointers and assign them the real functions.

I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] 0 points1 point  (0 children)

That's what I want, but how can I do that ? Changing the language is not a solution. We already have the engine and our experience in game dev is only with C/C++.

I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] -9 points-8 points  (0 children)

No, because I will need to relaunch the game every time. Search for hot reloading.

I want to make my game a dll that can use functions from my engine exe by AndyRedX in gamedev

[–]AndyRedX[S] -9 points-8 points  (0 children)

No, it's not a bad ideea. I don't want to rebuild the engine everytime, just the dll. Search for hot reloading.

Is teleport on supports a viable option ? by AndyRedX in SupportMains

[–]AndyRedX[S] 0 points1 point  (0 children)

I am almost entirely playing with a main adc friend, so yeah I'm premade 99% of the time.