Just a quick question, will you be putting this onto Nexus soon?


I have installed the Experimental version, lets see how it goes

Moderators: Scripting / Modding Moderators, Moderators for English X Forum
Thanks for reporting. First one was not replayed on my environment today, so it seems to need some time. Second one was fixed by inserting a missing line.
It's nice idea. Keeping independent orders in the wing is capable, not difficult. However, some additional idea is necessary to switch order mode (Keep independent, Same as commander, Vanilla, etc). For instance, if the new assignment commands are added to the menu of right click on ship, we can select order mode precisely and your idea will be realized.Elephant42 wrote: ↑Tue, 25. Dec 18, 23:29 Any chance you could add a purely cosmetic wing option? - what I mean by that is forming a wing just for keeping the ship list organised. Each member of the wing still has completely independant orders. Not sure if this is possible but it would be great if it was...
Many thanks, good luck and happy codingpesoda wrote: ↑Wed, 26. Dec 18, 01:14It's nice idea. Keeping independent orders in the wing is capable, not difficult. However, some additional idea is necessary to switch order mode (Keep independent, Same as commander, Vanilla, etc). For instance, if the new assignment commands are added to the menu of right click on ship, we can select order mode precisely and your idea will be realized.Elephant42 wrote: ↑Tue, 25. Dec 18, 23:29 Any chance you could add a purely cosmetic wing option? - what I mean by that is forming a wing just for keeping the ship list organised. Each member of the wing still has completely independant orders. Not sure if this is possible but it would be great if it was...
Full cargo ships often stop their work and should be fixed. And maybe it was serious than I think because it will also happen when many subordinates' trade-wares are changed at same time. Possibly, an efficiency of their trading is degraded by existing wrong cargo (but I unchecked).
Code: Select all
<diff>
<add sel="/aiscript/attention[1]/actions[1]/do_elseif[1]">
<debug_text text="'Stuck pos 2: %1 (%2)'.[this.ship.knownname, this.ship.idcode]" />
<do_if value="this.ship.isplayerowned">
<debug_text text="'Cargo count=%1'.[this.ship.cargo.list.count]" />
<do_all exact="this.ship.cargo.list.count" counter="$i">
<set_value name="$ware" exact="this.ship.cargo.list.{$i}"/>
<debug_text text="'stuck. cargo %1 (%2) was dropped. %3 (%4)'.[$ware.name, this.ship.cargo.{$ware}.count, this.ship.knownname, this.ship.idcode]" />
<drop_cargo object="this.ship" ware="$ware" exact="this.ship.cargo.{$ware}.count"/>
<!-- ** if list size is changed by dropping cargo, use do_all reverse **-->
</do_all>
</do_if>
</add>
</add>
</diff>
Still adopts the dock-sync approach, but also allowed subordinates to sync with their commanders when they subordinates dock.
Subordinates are excluded from the commander's Recall Subordinates if they are part of the "civilian fleet".
The updated version utilizes the Right Click API. Subordinates intended to perform trading or mining activities should be assigned to their commanders using the new "form/join [...] fleet" buttons. UI scripts are used to force normally impossible "trade" and "mining" assignments onto such ships. This allows the game to signal fighters to protect the commander as usual, while allowing civilian ships to work in the same fleet doing something else.pesoda wrote: ↑Sat, 22. Dec 18, 01:19
- Subordinates can only have same default order as the commander. E.g. They cannot protect ships in the same wing.
- For now, you can request unassigned ships or different wings to escort them.
- I think one of the solutions is that adding assignment commands to the right click menu of ships. (Alternative idea is also welcome.)
Partially responded; used Right Click API and UI scripts to handle assignments, but still used aiscripts to actually give assignments. I think it is impossible to avoid using aiscripts, as they are the only way for us to intercept certain events without needing to know the event target before hand, compared to MD scripts (and aiscripts work).