Forums WoW Modding Support Archives TrinityCore Discord Archives [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

[DiscordArchive] Can someone help me out here? I have a `thing.h` and `thing.cpp` file in the `scripts_custom` "folde

rektbyfaith
Administrator
0
01-30-2025, 06:32 PM
#1
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?
rektbyfaith
01-30-2025, 06:32 PM #1

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?

rektbyfaith
Administrator
0
01-30-2025, 06:34 PM
#2
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.
rektbyfaith
01-30-2025, 06:34 PM #2

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.

rektbyfaith
Administrator
0
01-30-2025, 06:35 PM
#3
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
rektbyfaith
01-30-2025, 06:35 PM #3

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

rektbyfaith
Administrator
0
01-30-2025, 06:35 PM
#4
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)
rektbyfaith
01-30-2025, 06:35 PM #4

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)

rektbyfaith
Administrator
0
01-30-2025, 06:35 PM
#5
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
rektbyfaith
01-30-2025, 06:35 PM #5

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

rektbyfaith
Administrator
0
01-30-2025, 06:35 PM
#6
Archived author: MaxtorCoder • Posted: 2025-01-30T18:35:33.300000+00:00
Original source

Well there is a better answer <:lul:451485508380655616>
rektbyfaith
01-30-2025, 06:35 PM #6

Archived author: MaxtorCoder • Posted: 2025-01-30T18:35:33.300000+00:00
Original source

Well there is a better answer <:lul:451485508380655616>

rektbyfaith
Administrator
0
01-30-2025, 06:36 PM
#7
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
rektbyfaith
01-30-2025, 06:36 PM #7

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

rektbyfaith
Administrator
0
01-30-2025, 06:36 PM
#8
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
rektbyfaith
01-30-2025, 06:36 PM #8

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

rektbyfaith
Administrator
0
01-30-2025, 06:36 PM
#9
Archived author: MaxtorCoder • Posted: 2025-01-30T18:36:37.198000+00:00
Original source

No reason to have it self contained
rektbyfaith
01-30-2025, 06:36 PM #9

Archived author: MaxtorCoder • Posted: 2025-01-30T18:36:37.198000+00:00
Original source

No reason to have it self contained

rektbyfaith
Administrator
0
01-30-2025, 06:36 PM
#10
Archived author: caweren • Posted: 2025-01-30T18:36:45.118000+00:00
Original source

Aight, cheers gents!
rektbyfaith
01-30-2025, 06:36 PM #10

Archived author: caweren • Posted: 2025-01-30T18:36:45.118000+00:00
Original source

Aight, cheers gents!

Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)