Asterix Gaming Guild Logo GeneralXXLXXL 2XXL 3XXXLOlympic GamesXXL EditorToolsOff-TopicXXL RomasteredXXL 2 RemasteredOther GamesModsCaesar's ChallengeUnfair XXLPatchesFan ArtPersonal ArtSpeedrunningMediaRandomizerBETA RomeHSKALPresence AdrienPresence SPQRSupport Bot Helpdesk

#editor

pegperegogaucho
No problem!
pegperegogaucho
Take your time :)
adrientd
Yes, there can be different classes using the same IDs. For example Arthur reused some IDs from removed classes from previous games for newer classes. In editor, the ClassRegister.cpp file contains code that registers (enables) only the classes that are used by the game you're loading, so two classes with same IDs should never happen.
deathhound246
Ah I see how that works You just register each class with the addFactory call and it pulls the id out of that class
adrientd
Yes, once added via addFactory, the editor will instantiate this class whenever it sees a serialized object of corresponding IDs in the game files.
deathhound246
https://pastebin.com/0njRHEPn
deathhound246
These are the logs
deathhound246
Also compiling from master branch with no changes
pegperegogaucho
Okay, so there are already errors with the vcpkg include files
deathhound246
I did run the vcpkg integrate command prior to this too
deathhound246
And installed the modules from vcpkg
pegperegogaucho
Make sure that in the project configuration of XXL-Editor you have selected the correct triplet (x86-windows)
deathhound246
Wheres the config option for that in VS?
pegperegogaucho
You need to right click the project and then select "properties"
deathhound246
It's still not able to find the vcpkg header files
deathhound246
Saying this I am on VS 2022, which hasn't been tested. Wonder if it's something to do with that?
pegperegogaucho
I don't think so, I compiled it successfuly on VS2022 Preview many times
pegperegogaucho
Ensure that you have everything installed by running vcpkg with the list command i.e. vcpkg.exe list
pegperegogaucho
Otherwise try running the integrate install again, tbh I am not sure what the issue is :Obelul:
deathhound246
``` fmt:x86-windows 11.0.2 {fmt} is an open-source formatting library provi... inih:x86-windows 58 Simple .INI file parser inih[cpp]:x86-windows Build the C++ library libsquish:x86-windows 1.15#14 Open source DXT compression library. nlohmann-json:x86-windows 3.11.3#1 JSON for Modern C++ sdl2:x86-windows 2.30.7 Simple DirectMedia Layer is a cross-platform dev... stb:x86-windows 2024-07-29#1 public domain header-only libraries vcpkg-cmake-config:x64-windows 2024-05-23 vcpkg-cmake-get-vars:x64-windows 2023-12-31 vcpkg-cmake:x64-windows 2024-04-23 vcpkg-tool-meson:x64-windows 1.5.1 Meson build system zlib:x86-windows 1.3.1 A compression library ```