KosmosPrime / plandustry

A command-line tool for working with Mindustry schematics
GNU General Public License v3.0
1 stars 2 forks source link

Reconstructor configuration not read #4

Closed bend-n closed 1 year ago

bend-n commented 1 year ago

Reconstructors can be configured to have the unit do a thing.

bXNjaAF4nBXKPQ6AIAwG0I+fuLjrKTyRcUDo0ASKKdXzq8kbHwJCQJTUCLGxEOZCIytfxl0ATDWdVAf8fjgsqRQ2fmhTyl2G6Z2t69fcz62I/gVp0BSJ

This schematic causes parsing to fail

Could not read schematic: failed to read block data
        Source: invalid dynamic data type (23)

See here

KosmosPrime commented 1 year ago

How did you get this schematic? When I try to command a reconstructor it always issues a move command (which the unit doesn't even follow) and is not serialized to schematics. On the other hand, the game clearly understands the config as it's preserved in the above schematic when built & then copied (but the resulting units don't mine either).

bend-n commented 1 year ago

You need to have a unit inside the reconstructor in order to change it, because otherwise mindustry doesnt know what options the unit has. The units do mine, if they have mining capability (eg poly).

image

bend-n commented 1 year ago

Ive implemented this on my fork

KosmosPrime commented 1 year ago

These commands are only available when you've got units selected, and it's currently not possible to select units and buildings at the same time. Monos immediately start mining yes, but that's because there's simply nothing else they can physically do. If you control one and then respawn it'll immediately go back to mining the closest ore. TL;DR I cannot reproduce the underlying issue (of type 23 data in schematics), which means I cannot test it properly. (Tested in build 145.1)

bend-n commented 1 year ago

No, those are polys, monos go into the reconstructor.

Steps to reproduce: Place additive from schem Place unit source for monos, point into additive Remove unit source, and power the reconstructor

KosmosPrime commented 1 year ago

Polys do not start mining immediately if upgraded using the reconstructor blueprint you provided. That's my problem.

I've been trying those steps, with factories running or not, in no case can I instruct any of them to mine resources after being built.

bend-n commented 1 year ago

Thats odd; they do for me. But even if they dont start mining, you can still check the config, no? So even when its not from the schem it doesnt work? Sounds like a anuke bug.

KosmosPrime commented 1 year ago

I have, if I place your schematic and then copy the buildings I get a schematic back which has them set. However, nothing I build myself (without schematic hacks) ends up with these configs. I'm in sandbox currently, I'll sanity check in campaign but that shouldn't be the issue.

Nope, no command mode in campaign either. Do you also get the icons when you select buildings or only when selecting units?

KosmosPrime commented 1 year ago

After messing around with a logic processor I got the menu to appear by ctrl-clicking the thing to change the config. Your schematic now also produces units that mine after being reconstruction. Sorry for making this so difficult.