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
The function is differnt now, it returns a copy, not sure if this might cause problems if some resources are querried every frame
thetomioka
Oh, they are? I was wondering why the function had a static pointer to the memory it allocated for the data.
thetomioka
I guess it would be better to change it to not read a file every frame, when reading it from resources it not possible on Linux.
pegperegogaucho
I just checked the original code, for the Resource folder it seems to create a new buffer with the data every time, but when it gets it from the resource it only returns the pointer from LockResource (I assume not a copy). Your version will make a copy when loading from the resource through the vector
pegperegogaucho
It's probably fine though, I think it always assigns the resource content to a static variable
thetomioka
It would still open a file handle every frame.
thetomioka
Reading a non-changing file every frame also feels kinda wrong.
pegperegogaucho
Ideally it would be a const pointer to the resource and from that you can make a copy if needed
pegperegogaucho
For that, you could maybe use a std::span
pegperegogaucho
But I have no say, it's Adriens choice in the end :Obelul:
thetomioka
I just set a breakpoint in the function and it doesn't seem to run every frame when just idling.
thetomioka
He can take the changes or leave them. I mainly want this to properly run on my linux laptop.
pegperegogaucho
Are you planning on creating mods? 👀
thetomioka
Maybe :SamHuh:
adrientd
Recently, I made some improvements to the ability to transfer "hooks" (such as types of enemies) from one level to another, trying to fix collisions, and also made it work not only on XXL1 but also on XXL2! Here's a 1 minute video demonstrating what is now possible with XXL2 :Obelul: :
Download Asterix__Obelix_XXL2_2025-08-23_22-01-04_hq.mp4:


pegperegogaucho
pegperegogaucho
Incredible, this will definitely be very useful for XXL2 mods. Does this work for all hooks or are some currently not supported, like the boss?
adrientd
I haven't tested every hook, and trying to export some of the hookd will crash the editor.
thetomioka
I've replaced all the wstring now. Still some work to do because of gcc being stricter than msvc I guess.
adrientd
Ah yes, had the same issue on another project. Just put `#include ` in the headers that use the path class. I thought making path an incomplete class could help reduce compilation times, but since declaring incomplete types in std might be "illegal", there's no other choice. :Obelul: