You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Can the Order functions that modify orders be white-listed for NoGo? Eg. GSOrder.UnshareOrder.
I'm making a utility GS that clones and sells vehicles for connections as the source industry is changing production. If you want to argue against this kind of usage of NoGo, I can point out that you can already clone and sell vehicles. So this modifying of orders isn't the first company modifying action to be opened up to NoGo.
The reason why I want to modify the orders is that GSVehicle.SendVehicleToDepot fails at all cases when clicking the send to depot button in the GUI. Thus a better way of selling vehicles is to unshare its orders, clear the orders and put there two depot orders, switch orders once and then remove the last depot order. Additionally it is useful to turn around road vehicles with speed == 0. After doing that you can just leave the vehicle and be sure that at some point it will end up in the depot (as long as there is a path to it). (this is the method that I use in CluelessPlus to sell vehicles)
This is not what NoGo was ever intended for. We've discussed and rejected this mainly because, as you already say, this is (only) useful for managing a company. NoGo scripts should be used for goals, awards (BuildVehcle) etc.
You've pointed out CloneVehicle, that addition is now seen as a mistake that will perhaps be removed in 1.3.
Zuu opened the ticket and wrote:
Reported version: trunk
Operating system: All
This issue was imported from FlySpray: https://bugs.openttd.org/task/5089
The text was updated successfully, but these errors were encountered: