Forums WoW Modding Support Archives TrinityCore Discord Archives [DiscordArchive] can i check the spell family or the id with an if? can you route me to a diagram of the entities in

[DiscordArchive] can i check the spell family or the id with an if? can you route me to a diagram of the entities in

[DiscordArchive] can i check the spell family or the id with an if? can you route me to a diagram of the entities in

Pages (2): 1 2 Next
rektbyfaith
Administrator
0
09-19-2021, 10:50 PM
#1
Archived author: Dejavù • Posted: 2021-09-19T22:50:03.517000+00:00
Original source

can i check the spell family or the id with an if? can you route me to a diagram of the entities in TC so i can watch what can i do with an object of a class?
rektbyfaith
09-19-2021, 10:50 PM #1

Archived author: Dejavù • Posted: 2021-09-19T22:50:03.517000+00:00
Original source

can i check the spell family or the id with an if? can you route me to a diagram of the entities in TC so i can watch what can i do with an object of a class?

rektbyfaith
Administrator
0
09-20-2021, 06:58 AM
#2
Archived author: <o> • Posted: 2021-09-20T06:58:15.852000+00:00
Original source

_>can i check the spell family or the id with an if?_
yes, if what you want to do is custom or your own server that will do what it sounds like. It will likely not be accepted as a commit unless there's absolutely no other way to fix the spell if it's broken, that's what spell scripts are for but if you read the source you'll notice plenty of other hardcoded spells like that, but most of them are committed many many years ago.

_>can you route me to a diagram of the entities in TC_
I'm not aware of any such diagram. There are some automatic tools out there but i'm not aware of how effective they are at big projects like tc. If you're on windows, I'd recommend visual studio as you can often just `ctrl+click` an entity to get to its definition, use the intellisense autocompletion (**much** improved in vs2019), or search for entities with `ctrl+t`. I also tend to use `Find all` (ctrl+f and select dropdown menu next to the search input) with `Entire Solution` selected, because it's often faster than using `Find all references` and often work just as well.
rektbyfaith
09-20-2021, 06:58 AM #2

Archived author: <o> • Posted: 2021-09-20T06:58:15.852000+00:00
Original source

_>can i check the spell family or the id with an if?_
yes, if what you want to do is custom or your own server that will do what it sounds like. It will likely not be accepted as a commit unless there's absolutely no other way to fix the spell if it's broken, that's what spell scripts are for but if you read the source you'll notice plenty of other hardcoded spells like that, but most of them are committed many many years ago.

_>can you route me to a diagram of the entities in TC_
I'm not aware of any such diagram. There are some automatic tools out there but i'm not aware of how effective they are at big projects like tc. If you're on windows, I'd recommend visual studio as you can often just `ctrl+click` an entity to get to its definition, use the intellisense autocompletion (**much** improved in vs2019), or search for entities with `ctrl+t`. I also tend to use `Find all` (ctrl+f and select dropdown menu next to the search input) with `Entire Solution` selected, because it's often faster than using `Find all references` and often work just as well.

rektbyfaith
Administrator
0
09-20-2021, 07:00 AM
#3
Archived author: <o> • Posted: 2021-09-20T07:00:34.793000+00:00
Original source

but consult the actual active devs in <#376073286884392970> if you're looking to be a contributor, it's been many years since I was active with emulation myself.
rektbyfaith
09-20-2021, 07:00 AM #3

Archived author: <o> • Posted: 2021-09-20T07:00:34.793000+00:00
Original source

but consult the actual active devs in <#376073286884392970> if you're looking to be a contributor, it's been many years since I was active with emulation myself.

rektbyfaith
Administrator
0
09-20-2021, 07:58 PM
#4
Archived author: Dejavù • Posted: 2021-09-20T19:58:37.099000+00:00
Original source

- yes i guess that it's not a best pratices to do that...
- i don't use visual studio, but i've understand what are you saying thank you
- before wanna be a contributor i need to understand open wide how the entities interact each other
rektbyfaith
09-20-2021, 07:58 PM #4

Archived author: Dejavù • Posted: 2021-09-20T19:58:37.099000+00:00
Original source

- yes i guess that it's not a best pratices to do that...
- i don't use visual studio, but i've understand what are you saying thank you
- before wanna be a contributor i need to understand open wide how the entities interact each other

rektbyfaith
Administrator
0
09-20-2021, 08:25 PM
#5
Archived author: ZaDarkSide • Posted: 2021-09-20T20:25:51.309000+00:00
Original source

an emulator is very complex piece of software and the documentation is made by volunteers don't expect documentation on a level of paid software
rektbyfaith
09-20-2021, 08:25 PM #5

Archived author: ZaDarkSide • Posted: 2021-09-20T20:25:51.309000+00:00
Original source

an emulator is very complex piece of software and the documentation is made by volunteers don't expect documentation on a level of paid software

rektbyfaith
Administrator
0
09-20-2021, 08:27 PM
#6
Archived author: ZaDarkSide • Posted: 2021-09-20T20:27:32.383000+00:00
Original source

mostly you need to read the code yourself see the database structure yourself and learn how this works, there are some resources online like the wiki https://trinitycore.atlassian.net/wiki/s.../Databases but with the rest you are on your own
rektbyfaith
09-20-2021, 08:27 PM #6

Archived author: ZaDarkSide • Posted: 2021-09-20T20:27:32.383000+00:00
Original source

mostly you need to read the code yourself see the database structure yourself and learn how this works, there are some resources online like the wiki https://trinitycore.atlassian.net/wiki/s.../Databases but with the rest you are on your own

rektbyfaith
Administrator
0
09-20-2021, 08:28 PM
#7
Archived author: ZaDarkSide • Posted: 2021-09-20T20:28:32.459000+00:00
Original source

don't assume any documentation is up-to-date or very accurate, always check the actual code and database structure and data you have, that's your ground truth
rektbyfaith
09-20-2021, 08:28 PM #7

Archived author: ZaDarkSide • Posted: 2021-09-20T20:28:32.459000+00:00
Original source

don't assume any documentation is up-to-date or very accurate, always check the actual code and database structure and data you have, that's your ground truth

rektbyfaith
Administrator
0
09-20-2021, 08:29 PM
#8
Archived author: Tea • Posted: 2021-09-20T20:29:41.857000+00:00
Original source

there is this thing too https://trinitycore.net/hierarchy.html
rektbyfaith
09-20-2021, 08:29 PM #8

Archived author: Tea • Posted: 2021-09-20T20:29:41.857000+00:00
Original source

there is this thing too https://trinitycore.net/hierarchy.html

rektbyfaith
Administrator
0
09-20-2021, 08:29 PM
#9
Archived author: ZaDarkSide • Posted: 2021-09-20T20:29:48.136000+00:00
Original source

and if you can make a better documentation or diagrams or whatever you found lacking and share it with everybody or improve the documentation you're free to do so
rektbyfaith
09-20-2021, 08:29 PM #9

Archived author: ZaDarkSide • Posted: 2021-09-20T20:29:48.136000+00:00
Original source

and if you can make a better documentation or diagrams or whatever you found lacking and share it with everybody or improve the documentation you're free to do so

rektbyfaith
Administrator
0
09-20-2021, 08:30 PM
#10
Archived author: ZaDarkSide • Posted: 2021-09-20T20:30:36.056000+00:00
Original source

i assume that one is generated based on the classes themselves
rektbyfaith
09-20-2021, 08:30 PM #10

Archived author: ZaDarkSide • Posted: 2021-09-20T20:30:36.056000+00:00
Original source

i assume that one is generated based on the classes themselves

Pages (2): 1 2 Next
Recently Browsing
 1 Guest(s)
Recently Browsing
 1 Guest(s)