Desynced Feedback

Search
IDRatingCategoryDescriptionScreenshotDate
2466🙂GeneralContext: I'm trying to do an automation challenge for myself using the Custom Start mod to give the CC a behavior controller and a few other mods for missing instructions.

2 bugs (or unexpected behaviours) in behaviour instructions:

1. The "Loop research" instruction (data/instructions.lua:527) says "perform code for all researchable tech", but it loops over unresearchable tech.
Initially (when no research has been completed at all) it iterates the 3 basic researches.
After completing the first research ("Basic Signals"), looping again it first lists "Behaviors" which depends on "Basic Structures" for the reinforced plate but this
tech is still locked (not present in the codex or in the Assembler build menu) so "Behaviors" is not a researchable tech at that point.
Possible solutions are:
- not listing the unresearchable tech (by checking whether the ingredients are unlocked)
- changing the order of the iterated researches to 'simplest first'
- allowing a research to be stored in a behaviour parameter or variable so the behaviour can order them itself

I tried to work around this using "Get Research ingredients" from the "Auto utilities" mod and using the built-in "Can produce" instruction, however:

2. The "Can produce" instruction (data/instructions.lua:2808) does not take research / unlocked items into account.
It returns true even though the item is not producable because the required research is still locked.
When asking "Can produce" about "reinforced plate", it only checks if the unit has a producer for the recipe.
Since the recipe requires an assembler and the unit has one, it says "yes" even though the item cannot be produced.
Possible solution:
- check whether item is unlocked like the "Unlocked items" in the codex does.
2023-09-18 00:59:15

IDReplyAuthorDate

EULA    |    Privacy Policy    |    Presskit


© 2025 Stage Games • All rights reserved