Page MenuHomeFeedback Tracker

Unable to add custom types through the cfgeconomycore.xml
New, UrgentPublic

Description

when trying to add new types through the "cfgeconomycore.xml" i get an error in the server console

21:41:38 !!! [CE][offlineDB] :: Type 'ClassName1' will be ignored. (Type does not exist. (Typo?))
21:41:38 !!! [CE][offlineDB] :: Type 'ClassName2' will be ignored. (Type does not exist. (Typo?))
21:41:38 !!! [CE][offlineDB] :: Type 'ClassName3' will be ignored. (Type does not exist. (Typo?))
21:41:38 !!! [CE][offlineDB] :: Type 'ClassName4' will be ignored. (Type does not exist. (Typo?))
21:41:38 !!! [CE][offlineDB] :: Type 'ClassName5' will be ignored. (Type does not exist. (Typo?))

when adding the code from the custom_types.xml file to the main types.xml file the error does not happen

Details

Severity
Trivial
Resolution
Open
Reproducibility
Always
Operating System
Windows 10 x64
Category
General
Steps To Reproduce

adding this code to your "cfgeconomycore.xml"

<ce folder="CustomTypes">
<file name="custom_types.xml" type="types" />
</ce>

with the file in said folder

Event Timeline

Hello davido234.

I had (and still have) the same issue with standard types.xml provided by Mass and others.

I changed the sequence the types.xml-files are loaded via the cfgeconomycore.xml, which reduced the "error" messages dramatically, but still leaves some errors in "wrong type names".

So, what I did next: I decrypted the pbo of SNAFU for an example, and searched for the keyword of the type which shows an error. (Using the Extractpbo version 2.26)

And: All these items do not exist in the pbos!
Result: The types.xml are listing items, which do not exist in the pbos!

My solution: I removed the items from the types.xml files, which obviously do not exist in the different pbos. Result: No more errors!

My recommendatio for you: Check the class names in your workshop. The class names are the names of the items.
You can compare your config.cpp structure with one of mine at https://github.com/GarageMan/example_config.cpp/blob/main/starting_gear_dovecote.cpp.

.:. lutz