Idea: Modding API: watch event flows run, and read the state their checks use #2783
Labels
No labels
area/accessibility
area/audio
area/input
area/install
area/menu
area/mods
area/renderer
area/saves
area/tooling
area/upscaling
beanstalk: approved
beanstalk: failed
beanstalk: needs approval
beanstalk: running
beanstalk: tested
ci: approved
good first issue
gpu/amd
gpu/igpu
gpu/intel
gpu/nvidia
help wanted
kind
bug
kind
chore
kind
docs
kind
feature
kind
performance
kind
question
needs measurements
platform/linux
platform/macos
platform/steam-deck
platform/windows
preview
priority
critical
priority
high
priority
low
regression
risk
high
risk
low
risk
medium
status
blocked
status
confirmed
status
duplicate
status
invalid
status
needs-info
status
wontfix
ci: approved
No milestone
No project
No assignees
2 participants
Notifications
Due date
No due date set.
Dependencies
No dependencies set
Reference
MagicBeanDev/Longshot#2783
Loading…
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
The idea
I'm building Ocarina Forge, a tool that reads a player's own dump and makes a Godot project. It converts event flows to C# scripts. The step order, branches and parameters come from the files, but what each action or query does is in the game's code. To rebuild that behaviour, and to let mods work with events, these are the gaps I found.
1. Watch event flows (most useful, read-only)
A mod could listen for:
game.state().modesaysmoviewhen a cutscene has control, but I found nothing that says which event or step is running.Why: this would answer most of my open questions by observation, such as which case of a query means yes, what units a fade length uses, or how camera parameters are interpreted.
2. Read the state that checks use
game.flagsreads plain flags, but I found nothing that evaluates an expression. Please add a read that evaluates one by name. My flows have 692 query steps using 143 expressions.EventExecuteProgressChallengeStep(280 steps) names a challenge and a step. TheStep_flags are enums, but I found no way to map a step's name to the flag's value, or back.EventQueryCheckPlayerState(226 steps) takes a number. Documentation of the numbers, or a matching read, would help.3. Do what event steps do (for mods that add or recreate events)
hideGameHud()hides all 2Dcamera.overridesetPositionin the same mapactors.setPositionworld.travel4. Acting during events
Flag, player and actor writes are refused outside play, so a mod can't act in the middle of an event. A
flowpatch can add only actions its flow already has, plus flag branches. Two options that would help:Anything else
mod-apiat5c1cd9f5b: the reference, the modding guides and parts of the source. Not tested in game, so please correct me if something here already exists.Possibly related, for context: