[DiscordArchive] Can someone help me out here? I have a `thing.h` and `thing.cpp` file in the `scripts_custom` "folde
[DiscordArchive] Can someone help me out here? I have a `thing.h` and `thing.cpp` file in the `scripts_custom` "folde
Archived author: caweren • Posted: 2025-01-30T18:32:08.149000+00:00
Original source
Can someone help me out here? I have a `thing.h` and `thing.cpp` file in the `scripts_custom` "folder". I need to refer to the `thing.h` file in different parts of the core (never mind the eventual merge conflicts later). I have added the path to `scripts/custom` to the `Additional Include Directories` in the `C/C++` properties of `game`, but I'm getting all kinds of linker issues when compiling (`unresolved external symbol`). What am i doing wrong here?
Archived author: caweren • Posted: 2025-01-30T18:34:09.575000+00:00
Original source
I'm using the hotswap system on all scripts (including custom), don't know if that's relevant.
Archived author: caweren • Posted: 2025-01-30T18:35:00.001000+00:00
Original source
I have other custom stuff working absolutely fine, but they are not used in normal core files, and just register themselves with the `AddSC_` functions
Archived author: MaxtorCoder • Posted: 2025-01-30T18:35:20.151000+00:00
Original source
You cannot just reference code from scripts in game project (it's also generally frowned upon)
Archived author: Tea • Posted: 2025-01-30T18:35:21.576000+00:00
Original source
in `game` project? you cannot, that would be a circular dependency
Archived author: MaxtorCoder • Posted: 2025-01-30T18:35:33.300000+00:00
Original source
Well there is a better answer <:lul:451485508380655616>
Archived author: caweren • Posted: 2025-01-30T18:36:16.008000+00:00
Original source
It's just 3 methods, i can implement them directly into the `Player.cpp` file. I just wanted to keep it self-contained
Archived author: MaxtorCoder • Posted: 2025-01-30T18:36:32.733000+00:00
Original source
Just throw it in Player.cpp if it's related to Player entity
Archived author: MaxtorCoder • Posted: 2025-01-30T18:36:37.198000+00:00
Original source
No reason to have it self contained
Archived author: caweren • Posted: 2025-01-30T18:36:45.118000+00:00
Original source
Aight, cheers gents!