[MOD] Immediate Orders (updated April 18, 2021)
Moderators: Moderators for English X Forum, Scripting / Modding Moderators
-
- Posts: 398
- Joined: Tue, 17. Dec 13, 01:34
[MOD] Immediate Orders (updated April 18, 2021)
Adds copies of some regular orders as "Priority Orders" which are added to the front of the order queue instead of the back, and "Clear Orders" which clears out the order queue on top of that.
Adds several default behaviors to the right-click menu so you can issue them to multiple units with a single click.
Get it on Nexus.
Adds the following "Priority Orders".
-Fly to
-Attack
-Attack in range
-Dock at
Adds the following "default behaviors" to the right-click menu.
-Patrol (on the sector that you clicked on)
-AutoTrader
-Distribute Wares
-Sector Miner
-Advanced Miner
-Expert Miner
(AutoTrader/Miner type behaviors automatically have the warebasket filled with all possible wares.)
Adds all of the above to "Clear Orders".
Now, if EgoSoft would please take notes and implement at least some of these in the base game...
Adds several default behaviors to the right-click menu so you can issue them to multiple units with a single click.
Get it on Nexus.
Adds the following "Priority Orders".
-Fly to
-Attack
-Attack in range
-Dock at
Adds the following "default behaviors" to the right-click menu.
-Patrol (on the sector that you clicked on)
-AutoTrader
-Distribute Wares
-Sector Miner
-Advanced Miner
-Expert Miner
(AutoTrader/Miner type behaviors automatically have the warebasket filled with all possible wares.)
Adds all of the above to "Clear Orders".
Now, if EgoSoft would please take notes and implement at least some of these in the base game...
Last edited by Berserk Knight on Sun, 18. Apr 21, 19:09, edited 3 times in total.
Re: [MOD] Immediate Orders
m8, excellent. This is badly needed
Re: [MOD] Immediate Orders
Cool, could you add this to Steam Workshop?
Re: [MOD] Immediate Orders
FYI this isn't compatible with the 2.5 beta branch. Right clicking on objects when you have one of your own selected doesn't work.
-
- Posts: 398
- Joined: Tue, 17. Dec 13, 01:34
Re: [MOD] Immediate Orders
It is caused by the outdated RightClickAPI, which I'll pick up until/unless morbideth returns.
However, unless you are a modder attempting to keep your mods' code updated, you really should be using the beta to test the patch itself so EgoSoft can fix THEIR stuff, not as an early update.
On that principle, I do not release updates for beta. (Also, beta updates can be frequent at times, which is very annoying when trying to maintain code through.)
Re: [MOD] Immediate Orders
Tbh mate, im not asking you to update for the beta, and I do submit feedback for egosoft on their beta builds (not that it matters if I don't, that's largely my business) - I posted here to let you know that once 2.5 hits the mod will be incompatible as a courtesy and a heads up, nothing more nothing less.Berserk Knight wrote: ↑Tue, 16. Apr 19, 22:14However, unless you are a modder attempting to keep your mods' code updated, you really should be using the beta to test the patch itself so EgoSoft can fix THEIR stuff, not as an early update.
On that principle, I do not release updates for beta. (Also, beta updates can be frequent at times, which is very annoying when trying to maintain code through.)
-
- Posts: 398
- Joined: Tue, 17. Dec 13, 01:34
Re: [MOD] Immediate Orders
Well, I constantly keep track of the beta so the heads up wasn't really needed, but thanks anyways.Hornet108 wrote: ↑Wed, 17. Apr 19, 10:47Tbh mate, im not asking you to update for the beta, and I do submit feedback for egosoft on their beta builds (not that it matters if I don't, that's largely my business) - I posted here to let you know that once 2.5 hits the mod will be incompatible as a courtesy and a heads up, nothing more nothing less.
The part about me not doing updates for beta wasn't specifically pointed at you (more of an announcement, really), so sorry if you felt that way and took offense.
-
- Posts: 377
- Joined: Mon, 15. Mar 04, 08:07
Re: [MOD] Immediate Orders
I just wanted to point out that punctuation and choice of wording make all the difference.
Berserk Knights wording of -
Now if the statement read 'Unless a modder...' then okay, you can argue that it was not a direct response to hornet specifically. I touched on that I may as well touch on one other finer detail but one could easily look past when Berserk Knight wrote
Look I know people get their arms in a twist when others point out how things are written on the internet but let us be real about it, without communication skills most of us would be no better than monkeys, pointing at each other and making hand signals and hoping the other monkey understood the interpretation. (Example: So Sorry that you took offence to this.) Can be taken two ways, to me it sounded more like condescension and... like a slight stab. However, written as 'So, sorry, I did not mean things to sound directly offensive.' the tone is changed.
Now I am not here to pick a fight I am simply stating from a bystander point of view where mistakes were made that lead to two people passively flexing on each other.
Obviously, I know the intent just myself included have run into plenty of times a bunch of needless back and forth bickering could have been avoided by the tone the statement made. Some people are sensitive, If I had to guess Hornet might be a fellow Australian hornet probably don't care because we fight Kangaroo's on the side of the highway's down here
All that aside, I watch the mods progress, it has been in my load order for some time and it is really handy to have appreciated the efforts
Berserk Knights wording of -
Turned the entire statement towards hornet when coupled with the direct quote from hornet.Unless you are a modder...
Now if the statement read 'Unless a modder...' then okay, you can argue that it was not a direct response to hornet specifically. I touched on that I may as well touch on one other finer detail but one could easily look past when Berserk Knight wrote
and as without a breath 'So, Sorry,' changed for me at least the way even I read the reply.So Sorry
Look I know people get their arms in a twist when others point out how things are written on the internet but let us be real about it, without communication skills most of us would be no better than monkeys, pointing at each other and making hand signals and hoping the other monkey understood the interpretation. (Example: So Sorry that you took offence to this.) Can be taken two ways, to me it sounded more like condescension and... like a slight stab. However, written as 'So, sorry, I did not mean things to sound directly offensive.' the tone is changed.
Now I am not here to pick a fight I am simply stating from a bystander point of view where mistakes were made that lead to two people passively flexing on each other.
Obviously, I know the intent just myself included have run into plenty of times a bunch of needless back and forth bickering could have been avoided by the tone the statement made. Some people are sensitive, If I had to guess Hornet might be a fellow Australian hornet probably don't care because we fight Kangaroo's on the side of the highway's down here
All that aside, I watch the mods progress, it has been in my load order for some time and it is really handy to have appreciated the efforts
*modified*
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
*X3 LiteCube User*
MOD GemFX Real Space Shaders
MOD Variety and Rebalance Overhaul Icon Pack
I lost my Hans and should not be flying Solo.
Re: [MOD] Immediate Orders
So anyway, does this work with 2.5?
-
- Posts: 28
- Joined: Fri, 2. Mar 07, 00:58
Re: [MOD] Immediate Orders
It wont until G_workaround gets updating, it has to be updated everytime egosoft makes changes to the ui.
Re: [MOD] Immediate Orders
Sorry to pester, any word on this?
-
- Posts: 398
- Joined: Tue, 17. Dec 13, 01:34
Re: [MOD] Immediate Orders
Hi Beserk Knight,Berserk Knight wrote: ↑Thu, 30. May 19, 05:22Gah, 2.50 got pushed to live on the one day I was too busy to check.
Mod updated.
You should also update (edit) your original posts subject line to something like:
[MOD] Immediate Ordes (Compatible with v2.50)
or
[MOD] Immediate Ordes (Works with v2.50)
Then update the body of your post to say something like:
Updated May 29, 2019 to work with game update v2.50
That way people don’t have to search the thread looking for that important info! (You probably forgot as it sounds like you’ve been busy like a bee).
Thanks for the mod!
Cheers!
COMPUTER SPECS
[Mobo] SABERTOOTH 990FX R2.0
[CPU] AMD FX-9370 8 Cores 4.4 - 4.7GHZ 16MB DDR3-1866
[Cooling] Corsair Hydro Series H80I CPU Cooler System
[Video] Evga 970 GTX SC 3.5Gb Ram ==> [Ram] G-Skills Ripjaws X 16GB
[Harddrive] (2) x Samsung 850 Evo 250GB SSD
[Harddrive] Samsung 840 Series 120GB SSD ==> [Harddrive] WD BLACK 1TB 64MB 7200RPM
[Disc Player] LG 14X BLU-RAY BURNER ==> [Case] Thermaltake A71 Chaser [Windows 7 Pro]
[Mobo] SABERTOOTH 990FX R2.0
[CPU] AMD FX-9370 8 Cores 4.4 - 4.7GHZ 16MB DDR3-1866
[Cooling] Corsair Hydro Series H80I CPU Cooler System
[Video] Evga 970 GTX SC 3.5Gb Ram ==> [Ram] G-Skills Ripjaws X 16GB
[Harddrive] (2) x Samsung 850 Evo 250GB SSD
[Harddrive] Samsung 840 Series 120GB SSD ==> [Harddrive] WD BLACK 1TB 64MB 7200RPM
[Disc Player] LG 14X BLU-RAY BURNER ==> [Case] Thermaltake A71 Chaser [Windows 7 Pro]
-
- Posts: 398
- Joined: Tue, 17. Dec 13, 01:34
Re: [MOD] Immediate Orders
Sorry mate!Berserk Knight wrote: ↑Thu, 30. May 19, 05:22Gah, 2.50 got pushed to live on the one day I was too busy to check.
Mod updated.
Take it as a compliment - im a huge fan of your work!
Re: [MOD] Immediate Orders (updated May 30, 2019)
Just a quick one if anyone finds this absolutely essential but is having problems with it in the 3.0 beta - here is a (very hacky) solution to make this work. I have disabled some of the right click functionality that was causing issues, but they are things that I personally don't miss. Some of the things disabled may still work, but they haven't been tested because I don't need them.
To use this, replace the function capi.InsertLuaAction in the right_click_api.lua in the root of the RightClickAPI extension with the following code:
Again, this is a hacky work-around (I'm not familiar with how this mod actually works, I was just able to hack this together to get it working) until 3.0 is released properly and Berserk Knight hopefully keeps up his excellent work and updates the mod
To use this, replace the function capi.InsertLuaAction in the right_click_api.lua in the root of the RightClickAPI extension with the following code:
Code: Select all
function capi.InsertLuaAction(actiontype, istobedisplayed)
local doIt = true
-- process your own action
if actiontype == "accountmanagement" then
capi.OnAccountmanagement()
doIt = false
elseif actiontype == "assign" then
capi.OnAssign()
doIt = true
elseif actiontype == "attack" then
capi.OnAttack()
doIt = true
elseif actiontype == "attackinrange" then
capi.OnAttackinrange()
doIt = true
elseif actiontype == "attackmultiple" then
capi.OnAttackmultiple()
doIt = true
elseif actiontype == "attackplayertarget" then
capi.OnAttackplayertarget()
doIt = false
elseif actiontype == "board" then
capi.OnBoard()
doIt = true
elseif actiontype == "build" then
capi.OnBuild()
doIt = true
elseif actiontype == "buildships" then
capi.OnBuildships()
doIt = true
elseif actiontype == "changeformation" then
capi.OnChangeformation()
doIt = false
elseif actiontype == "configurestation" then
capi.OnConfigurestation()
doIt = true
elseif actiontype == "collect" then
capi.OnCollect()
doIt = false
elseif actiontype == "collectlockbox" then
capi.OnCollectlockbox()
doIt = false
elseif actiontype == "collectspace" then
capi.OnCollectspace()
doIt = false
elseif actiontype == "deployhere" then
capi.OnDeployhere()
doIt = true
elseif actiontype == "deployat" then
capi.OnDeployat()
doIt = true
elseif actiontype == "depositinventory" then
capi.OnDepositinventory()
doIt = true
elseif actiontype == "dockat" then
capi.OnDockat()
doIt = true
elseif actiontype == "dockatplayer" then
capi.OnDockatplayer()
doIt = true
elseif actiontype == "dockrequest" then
capi.OnDockrequest()
doIt = true
elseif actiontype == "dropinventory" then
capi.OnDropinventory()
doIt = true
elseif actiontype == "explore" then
capi.OnExplore()
doIt = false
elseif actiontype == "exploreupdate" then
capi.OnExploreupdate()
doIt = false
elseif actiontype == "flyto" then
capi.OnFlyto()
doIt = true
elseif actiontype == "follow" then
capi.OnFollow()
doIt = true
elseif actiontype == "getsupplies" then
capi.OnGetsupplies()
doIt = true
elseif actiontype == "guidance" then
capi.OnGuidance()
doIt = true
elseif actiontype == "hire" then
capi.OnHire()
doIt = false
elseif actiontype == "logicalstationoverview" then
capi.OnLogicalstationoverview()
doIt = true
elseif actiontype == "manageassignments" then
capi.OnManageassignments()
doIt = false
elseif actiontype == "mining" then
capi.OnMining()
doIt = true
elseif actiontype == "orderoverview" then
capi.OnOrderoverview()
doIt = false
elseif actiontype == "paintmod" then
capi.OnPaintmod()
doIt = false
elseif actiontype == "player_docktotrade" then
capi.OnPlayer_docktotrade()
doIt = true
elseif actiontype == "proceedwithorders" then
capi.OnProceedwithorders()
doIt = true
elseif actiontype == "protectstation" then
capi.OnProtectstation()
doIt = true
elseif actiontype == "recallsubs" then
capi.OnRecallsubs()
doIt = true
elseif actiontype == "removeallorders" then
capi.OnRemoveallorders()
doIt = true
elseif actiontype == "sellships" then
capi.OnSellships()
doIt = true
elseif actiontype == "stopandholdfire" then
capi.OnStopandholdfire()
doIt = true
elseif actiontype == "targetview" then
capi.OnTargetview()
doIt = false
elseif actiontype == "teleport" then
capi.OnTeleport()
doIt = true
elseif actiontype == "upgrade" then
capi.OnUpgrade()
doIt = true
elseif actiontype == "upgradeships" then
capi.OnUpgradeships()
doIt = true
elseif actiontype == "venturedockat" then
capi.OnVenturedockat()
doIt = false
elseif actiontype == "wareexchange" then
capi.OnWareexchange()
doIt = true
elseif actiontype == "withdrawandhold" then
capi.OnWithdrawandhold()
doIt = true
elseif actiontype == "withdrawfromcombat" then
capi.OnWithdrawfromcombat()
doIt = true
elseif actiontype == "cheat_satellite" then--I don't know if modders can get access to these, so Im adding them anyway.
capi.OnCheat_satellite()
doIt = false
elseif actiontype == "cheat_navbeacon" then
capi.OnCheat_navbeacon()
doIt = false
elseif actiontype == "cheat_resourceprobe" then
capi.OnCheat_resourceprobe()
doIt = false
elseif actiontype == "cheat_takeownership" then
capi.OnCheat_takeownership()
doIt = false
elseif actiontype == "cheat_warp" then
capi.OnCheat_warp()
doIt = false
elseif actiontype == "rename" then
doIt = false
elseif actiontype == "fleetrename" then
doIt = false
elseif actiontype == "removeallordersandwait" then
doIt = false
elseif actiontype == "collectdeployables" then
doIt = false
elseif actiontype == "crewtransfer" then
doIt = false
else
DebugError("Unknown order type")
DebugError(actiontype)
doIt = false
end
if doIt == true then
--then call original function first
orig.insertLuaAction(actiontype, istobedisplayed)
end
end
Re: [MOD] Immediate Orders (updated May 30, 2019)
Hornet108 wrote: ↑Mon, 18. Nov 19, 02:18Just a quick one if anyone finds this absolutely essential but is having problems with it in the 3.0 beta - here is a (very hacky) solution to make this work. I have disabled some of the right click functionality that was causing issues, but they are things that I personally don't miss. Some of the things disabled may still work, but they haven't been tested because I don't need them.
To use this, replace the function capi.InsertLuaAction in the right_click_api.lua in the root of the RightClickAPI extension with the following code:
Again, this is a hacky work-around (I'm not familiar with how this mod actually works, I was just able to hack this together to get it working) until 3.0 is released properly and Berserk Knight hopefully keeps up his excellent work and updates the modCode: Select all
function capi.InsertLuaAction(actiontype, istobedisplayed) local doIt = true -- process your own action if actiontype == "accountmanagement" then capi.OnAccountmanagement() doIt = false elseif actiontype == "assign" then capi.OnAssign() doIt = true elseif actiontype == "attack" then capi.OnAttack() doIt = true elseif actiontype == "attackinrange" then capi.OnAttackinrange() doIt = true elseif actiontype == "attackmultiple" then capi.OnAttackmultiple() doIt = true elseif actiontype == "attackplayertarget" then capi.OnAttackplayertarget() doIt = false elseif actiontype == "board" then capi.OnBoard() doIt = true elseif actiontype == "build" then capi.OnBuild() doIt = true elseif actiontype == "buildships" then capi.OnBuildships() doIt = true elseif actiontype == "changeformation" then capi.OnChangeformation() doIt = false elseif actiontype == "configurestation" then capi.OnConfigurestation() doIt = true elseif actiontype == "collect" then capi.OnCollect() doIt = false elseif actiontype == "collectlockbox" then capi.OnCollectlockbox() doIt = false elseif actiontype == "collectspace" then capi.OnCollectspace() doIt = false elseif actiontype == "deployhere" then capi.OnDeployhere() doIt = true elseif actiontype == "deployat" then capi.OnDeployat() doIt = true elseif actiontype == "depositinventory" then capi.OnDepositinventory() doIt = true elseif actiontype == "dockat" then capi.OnDockat() doIt = true elseif actiontype == "dockatplayer" then capi.OnDockatplayer() doIt = true elseif actiontype == "dockrequest" then capi.OnDockrequest() doIt = true elseif actiontype == "dropinventory" then capi.OnDropinventory() doIt = true elseif actiontype == "explore" then capi.OnExplore() doIt = false elseif actiontype == "exploreupdate" then capi.OnExploreupdate() doIt = false elseif actiontype == "flyto" then capi.OnFlyto() doIt = true elseif actiontype == "follow" then capi.OnFollow() doIt = true elseif actiontype == "getsupplies" then capi.OnGetsupplies() doIt = true elseif actiontype == "guidance" then capi.OnGuidance() doIt = true elseif actiontype == "hire" then capi.OnHire() doIt = false elseif actiontype == "logicalstationoverview" then capi.OnLogicalstationoverview() doIt = true elseif actiontype == "manageassignments" then capi.OnManageassignments() doIt = false elseif actiontype == "mining" then capi.OnMining() doIt = true elseif actiontype == "orderoverview" then capi.OnOrderoverview() doIt = false elseif actiontype == "paintmod" then capi.OnPaintmod() doIt = false elseif actiontype == "player_docktotrade" then capi.OnPlayer_docktotrade() doIt = true elseif actiontype == "proceedwithorders" then capi.OnProceedwithorders() doIt = true elseif actiontype == "protectstation" then capi.OnProtectstation() doIt = true elseif actiontype == "recallsubs" then capi.OnRecallsubs() doIt = true elseif actiontype == "removeallorders" then capi.OnRemoveallorders() doIt = true elseif actiontype == "sellships" then capi.OnSellships() doIt = true elseif actiontype == "stopandholdfire" then capi.OnStopandholdfire() doIt = true elseif actiontype == "targetview" then capi.OnTargetview() doIt = false elseif actiontype == "teleport" then capi.OnTeleport() doIt = true elseif actiontype == "upgrade" then capi.OnUpgrade() doIt = true elseif actiontype == "upgradeships" then capi.OnUpgradeships() doIt = true elseif actiontype == "venturedockat" then capi.OnVenturedockat() doIt = false elseif actiontype == "wareexchange" then capi.OnWareexchange() doIt = true elseif actiontype == "withdrawandhold" then capi.OnWithdrawandhold() doIt = true elseif actiontype == "withdrawfromcombat" then capi.OnWithdrawfromcombat() doIt = true elseif actiontype == "cheat_satellite" then--I don't know if modders can get access to these, so Im adding them anyway. capi.OnCheat_satellite() doIt = false elseif actiontype == "cheat_navbeacon" then capi.OnCheat_navbeacon() doIt = false elseif actiontype == "cheat_resourceprobe" then capi.OnCheat_resourceprobe() doIt = false elseif actiontype == "cheat_takeownership" then capi.OnCheat_takeownership() doIt = false elseif actiontype == "cheat_warp" then capi.OnCheat_warp() doIt = false elseif actiontype == "rename" then doIt = false elseif actiontype == "fleetrename" then doIt = false elseif actiontype == "removeallordersandwait" then doIt = false elseif actiontype == "collectdeployables" then doIt = false elseif actiontype == "crewtransfer" then doIt = false else DebugError("Unknown order type") DebugError(actiontype) doIt = false end if doIt == true then --then call original function first orig.insertLuaAction(actiontype, istobedisplayed) end end
Worked for me too not perfect but at least working
Re: [MOD] Immediate Orders (updated May 30, 2019)
I tried your hotfix. The context menu opens again. But is missing the mass crew transfer option which was introduced in Beta 3.0Hornet108 wrote: ↑Mon, 18. Nov 19, 02:18Just a quick one if anyone finds this absolutely essential but is having problems with it in the 3.0 beta - here is a (very hacky) solution to make this work. I have disabled some of the right click functionality that was causing issues, but they are things that I personally don't miss. Some of the things disabled may still work, but they haven't been tested because I don't need them.
To use this, replace the function capi.InsertLuaAction in the right_click_api.lua in the root of the RightClickAPI extension with the following code:
Again, this is a hacky work-around (I'm not familiar with how this mod actually works, I was just able to hack this together to get it working) until 3.0 is released properly and Berserk Knight hopefully keeps up his excellent work and updates the modCode: Select all
function capi.InsertLuaAction(actiontype, istobedisplayed) local doIt = true -- process your own action if actiontype == "accountmanagement" then capi.OnAccountmanagement() doIt = false elseif actiontype == "assign" then capi.OnAssign() doIt = true elseif actiontype == "attack" then capi.OnAttack() doIt = true elseif actiontype == "attackinrange" then capi.OnAttackinrange() doIt = true elseif actiontype == "attackmultiple" then capi.OnAttackmultiple() doIt = true elseif actiontype == "attackplayertarget" then capi.OnAttackplayertarget() doIt = false elseif actiontype == "board" then capi.OnBoard() doIt = true elseif actiontype == "build" then capi.OnBuild() doIt = true elseif actiontype == "buildships" then capi.OnBuildships() doIt = true elseif actiontype == "changeformation" then capi.OnChangeformation() doIt = false elseif actiontype == "configurestation" then capi.OnConfigurestation() doIt = true elseif actiontype == "collect" then capi.OnCollect() doIt = false elseif actiontype == "collectlockbox" then capi.OnCollectlockbox() doIt = false elseif actiontype == "collectspace" then capi.OnCollectspace() doIt = false elseif actiontype == "deployhere" then capi.OnDeployhere() doIt = true elseif actiontype == "deployat" then capi.OnDeployat() doIt = true elseif actiontype == "depositinventory" then capi.OnDepositinventory() doIt = true elseif actiontype == "dockat" then capi.OnDockat() doIt = true elseif actiontype == "dockatplayer" then capi.OnDockatplayer() doIt = true elseif actiontype == "dockrequest" then capi.OnDockrequest() doIt = true elseif actiontype == "dropinventory" then capi.OnDropinventory() doIt = true elseif actiontype == "explore" then capi.OnExplore() doIt = false elseif actiontype == "exploreupdate" then capi.OnExploreupdate() doIt = false elseif actiontype == "flyto" then capi.OnFlyto() doIt = true elseif actiontype == "follow" then capi.OnFollow() doIt = true elseif actiontype == "getsupplies" then capi.OnGetsupplies() doIt = true elseif actiontype == "guidance" then capi.OnGuidance() doIt = true elseif actiontype == "hire" then capi.OnHire() doIt = false elseif actiontype == "logicalstationoverview" then capi.OnLogicalstationoverview() doIt = true elseif actiontype == "manageassignments" then capi.OnManageassignments() doIt = false elseif actiontype == "mining" then capi.OnMining() doIt = true elseif actiontype == "orderoverview" then capi.OnOrderoverview() doIt = false elseif actiontype == "paintmod" then capi.OnPaintmod() doIt = false elseif actiontype == "player_docktotrade" then capi.OnPlayer_docktotrade() doIt = true elseif actiontype == "proceedwithorders" then capi.OnProceedwithorders() doIt = true elseif actiontype == "protectstation" then capi.OnProtectstation() doIt = true elseif actiontype == "recallsubs" then capi.OnRecallsubs() doIt = true elseif actiontype == "removeallorders" then capi.OnRemoveallorders() doIt = true elseif actiontype == "sellships" then capi.OnSellships() doIt = true elseif actiontype == "stopandholdfire" then capi.OnStopandholdfire() doIt = true elseif actiontype == "targetview" then capi.OnTargetview() doIt = false elseif actiontype == "teleport" then capi.OnTeleport() doIt = true elseif actiontype == "upgrade" then capi.OnUpgrade() doIt = true elseif actiontype == "upgradeships" then capi.OnUpgradeships() doIt = true elseif actiontype == "venturedockat" then capi.OnVenturedockat() doIt = false elseif actiontype == "wareexchange" then capi.OnWareexchange() doIt = true elseif actiontype == "withdrawandhold" then capi.OnWithdrawandhold() doIt = true elseif actiontype == "withdrawfromcombat" then capi.OnWithdrawfromcombat() doIt = true elseif actiontype == "cheat_satellite" then--I don't know if modders can get access to these, so Im adding them anyway. capi.OnCheat_satellite() doIt = false elseif actiontype == "cheat_navbeacon" then capi.OnCheat_navbeacon() doIt = false elseif actiontype == "cheat_resourceprobe" then capi.OnCheat_resourceprobe() doIt = false elseif actiontype == "cheat_takeownership" then capi.OnCheat_takeownership() doIt = false elseif actiontype == "cheat_warp" then capi.OnCheat_warp() doIt = false elseif actiontype == "rename" then doIt = false elseif actiontype == "fleetrename" then doIt = false elseif actiontype == "removeallordersandwait" then doIt = false elseif actiontype == "collectdeployables" then doIt = false elseif actiontype == "crewtransfer" then doIt = false else DebugError("Unknown order type") DebugError(actiontype) doIt = false end if doIt == true then --then call original function first orig.insertLuaAction(actiontype, istobedisplayed) end end
Re: [MOD] Immediate Orders (updated May 30, 2019)
I get the following error in the debug log:
The context menu opens but does not show the mass crew transfer option.
Code: Select all
[=ERROR=] 199789.79 Table row height mismatch in row 4: expected height = 10, actualheight = 15 [Klaus]