[DiscordArchive] Aren't they determined from the item subclasses available in your dbc?
[DiscordArchive] Aren't they determined from the item subclasses available in your dbc?
Archived author: Duran • Posted: 2024-10-20T17:55:40.553000+00:00
Original source
Aren't they determined from the item subclasses available in your dbc?
Archived author: stoneharry • Posted: 2024-10-20T17:56:12.379000+00:00
Original source
That's what I thought, but I've been double and triple checking the item subclass data and it all looks correct
Archived author: stoneharry • Posted: 2024-10-20T17:56:17.546000+00:00
Original source
I'll keep focusing on that for now, thanks!
Archived author: Duran • Posted: 2024-10-20T17:56:59.125000+00:00
Original source
Also gotta add the subclasses to the core, maybe that's missing?
Archived author: stoneharry • Posted: 2024-10-20T17:57:23.146000+00:00
Original source
Ohhh, yes. I didn't know it's needed core side
Archived author: stoneharry • Posted: 2024-10-20T17:57:42.097000+00:00
Original source
probably defaults to subclass 0 if it doesn't exist server side
Archived author: Duran • Posted: 2024-10-20T17:58:32.745000+00:00
Original source
Yeah, it also gives warning in the console if it can't find an item's subclass in the core (talking about TC 3.3.5 in general, idk how others work)
Archived author: stoneharry • Posted: 2024-10-20T17:59:45.640000+00:00
Original source
It looks like it is only used for `MAX_ITEM_SUBCLASS_GEM` and subsequently `MaxItemSubclassValues`, which is only used as a validation:
```
TC_LOG_ERROR("sql.sql", "Item (Entry: {}) has wrong Subclass value ({}) for class {}", entry, itemTemplate.SubClass, itemTemplate.Class);
```
So you are 100% correct
Archived author: stoneharry • Posted: 2024-10-20T18:04:48.672000+00:00
Original source
Fixed -- cheers