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

adrientd
No problem!
adrientd
For some reason merging is a "red button" because it is still waiting for a AppVeyor build to finish:
adrientd
I guess it was looking for a build on the source branch, but AppVeyor is not enabled there apparently?
adrientd
Not sure why it needs that tbh, the PR one should be enough, but not sure how to disable it :Obelul:
adrientd
Just found it, I had to change that in the branch protection
pegperegogaucho
Now this is something weird: you can change the duration min/max in the choreokey, but there seems to be some kind of calculation error when randomising the float by the game. In this video I have 2 choreokeys in the choreography, both have the duration between 0 and 10. You would expect the average value to be 5, but it always generates a float between 0 and 1! What is going on here?
Download 2025-01-05_00-12-22.mp4:



pegperegogaucho
When I put the max to 100, it still generates mostly below 5 :KEKW: Wtf is this?
hesopesomeso
The check I believe is: `(random_float(0, 1) * (max - min) + min > choreography_timer) => discard`?
pegperegogaucho
What kind of nonsense is that, why not random_float(min, max)
pegperegogaucho
Still, why is it generating so un-uniformly? Is the RNG function?
hesopesomeso
`random_float(0, 1)` is definitely correct.
hesopesomeso
that's basically that x)
pegperegogaucho
Sure
hesopesomeso
`random_float(min, max) > choreography_timer => discard`
pegperegogaucho
Do you have the whole decompiled function?
hesopesomeso
yeah
hesopesomeso
it's very short, something like this: ``` if (min > max) return false; add to choreography timer if (random_float(min, max) > choreography_timer) return false; go to next choreo key index. return true; ```
pegperegogaucho
I must be reading this wrong, it's generating a new random number every frame?
hesopesomeso
Yes, it's checking for some weird ass enemy ratio (before the choreo key update, which is this)
pegperegogaucho
The enemy ratio is how many enemies are at their destination