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

deathhound246
@pfahli ^
pegperegogaucho
Yup, the newest commit is always posted in that channel!
deathhound246
All prebuilt exes are downloadable from appveyor and will be linked in that channel
pfahli
Perfect, thank you very much
deathhound246
np
pegperegogaucho
So, if the object is unknown (class not registered) the dynamic type of the object is CKUnknown. That is because no factories exist for the class id to construct an object (see constructObject function in KObject.h). In order to fix the issue, the class will need to get registered, which currently seems to not be done in the hex editor. But I believe this might be on purpose, since if the classes are registered, you couldn't just edit the raw memory... I guess the solution would be to create a function to get the class name of a class id without having a CKObject (sub)type object to call the virtual function...
pegperegogaucho
* The CKUnknown class overrides the getClassName function to return "?"
deathhound246
looks like potentially this in main.cpp register classes call occurs after it opens the hex ui
pfahli
Suggestion for a new logo
deathhound246
> But I believe this might be on purpose, since if the classes are registered, you couldn't just edit the raw memory... I think you're right. I added a call to register classes at the start of hex ui func, and although it does show classes, it isn't showing the hex for them. But it is showing the hex for unknown classes still
pegperegogaucho
Note the "return 0;" after the HexEditorUI
deathhound246
ah yea, that'll make sure they dont get registered :Obelul:
pegperegogaucho
Not sure if it fits the theme of the XXL games
pegperegogaucho
So you cannot register the classes, so it looks like there is unfortunately currently no way to get the class name like that. I guess a "hacky" solution would be to create a separate kenv, register the classes there and then get the class name by constructing an object, calling the vfunc and immediately destroying it again :Obelul:
pegperegogaucho
But obviously the long-term solution would be a way to get the class name "statically"
adrientd
Yes, that's a feature that got added to ImGui recently, good thing I just updated it
adrientd
Indeed, in hex editor no class is registered and only CKUnknown is used, as it only keeps the bytes of the serialized object, which is what the hex editor needs. Unfortunately registering the class is the only to get a name, otherwise it's just "?". I guess if you really want to have names for unknown classes you would have to get them from a file (the json files have some names for example).
adrientd
I wonder how did you make this logo?
pfahli
With illustrator, its a vector file
pfahli
I can make one that's more Romesque