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
That's crazy, I cannot believe that this is intentional
pegperegogaucho
Because on the first frame it will generate a duration of 6, but then if any of the next frames generate a number less than the timer it just goes to the next key
hesopesomeso
The ratio check is like so: ```c++ enemy_ratio := hook_enemy_id / enemy_count if (enemy_ratio > choreo_key.enemy_ratio) update_choreo_key() ```
hesopesomeso
you mean this? yeah it's weird :Obelul:
pegperegogaucho
Yup
hesopesomeso
The timer is reset though.
pegperegogaucho
When the key ends?
hesopesomeso
updated.
hesopesomeso
Yes, when the next gets selected.
pegperegogaucho
But still that is not the correct behavior I would say. The correction would be to generate a duration once, store it somewhere and then when the timer is larger than the duration to reset the timer and generate another random duration.
pegperegogaucho
This also explains why basically no choreokey in the game uses this feature, the min=max for almost all keys. No wonder when they programmed it like this :WeirdButOkayChamp:
hesopesomeso
Yeah :Obelul: I shall do it justice! :KEKW: how is the game holding together!
hesopesomeso
I don't call these values min/max, but start/end timer.
pegperegogaucho
This is hard to believe because usually the game works very well and an obvious error like this is out of picture
hesopesomeso
I don't believe it's supposed to be min/max. It does make some sense to me.
pegperegogaucho
How so?
hesopesomeso
It does seem stupid - the chance that you go to next choreo key the first frame is `((min-max)-delta_time)/(min-max)`
pegperegogaucho
I made a simple tool to create the property JSON (with or without properties) from the c++ headers and the existing JSON:
Download Encyclopedia.py:
Direct Download



pegperegogaucho
It goes through every class in the file (found through a clever regex) and adds it to a dictionary which is the class that will be output to the JSON. In the end it overrides the existing information from the existing JSON to ensure that no information is deleted. Inner type properties get put into the outer types and so forth
pegperegogaucho
Here is the output when run with: ```python python Encyclopedia.py --properties Properties_XXL1.json --headers CKGameX1.h CKGameX1_Components.h --output Properties_XXL1_out.json ```
Download Properties_XXL1_out.json:
Direct Download