Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Ferry mission with Lua, friendly ports dont work as destination

 
View related threads: (in this forum | in all forums)

Logged in as: Guest
Users viewing this topic: none
  Printable Version
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Ferry mission with Lua, friendly ports dont work as destination Page: [1]
Login
Message << Older Topic   Newer Topic >>
Ferry mission with Lua, friendly ports dont work as des... - 4/30/2019 10:11:33 AM   
mitsuF2

 

Posts: 8
Joined: 12/13/2017
Status: offline
Ferry missions for ships with destination in other faction/side.

ScenEdit_AddMission("Faction2", 'Ferry1','ferry',{Destination='Port1'})

This gives "ScenEdit_AddMission 0: missing destination" error if destination is in other friendly side.

Ferry-mission destined to a port in other friendly faction (with A subscript) CAN be added thru UI with Add New Mission.
So deduced that it would be possible thru script also.


Tried to add some regular (Cycle) ship traffic automatically, but the destination happened to be in other faction.
Search didn't help (yet?). Ferrying within a one side ofc works as expected.

User error/feature/a bug?

Thank You
Post #: 1
RE: Ferry mission with Lua, friendly ports dont work as... - 4/30/2019 4:06:18 PM   
Whicker

 

Posts: 664
Joined: 6/20/2018
Status: offline
not sure if it would work but did you try adding the side?

ScenEdit_AddMission("Faction2", 'Ferry1','ferry',{Destination='Port1', side="otherside"})

(in reply to mitsuF2)
Post #: 2
RE: Ferry mission with Lua, friendly ports dont work as... - 4/30/2019 4:57:12 PM   
mitsuF2

 

Posts: 8
Joined: 12/13/2017
Status: offline
Thanks for the reply

Adding side didn't seem to help, same error. Good idea though.
Dest has to be in the same side. Command Lua Docs only mention destination.

(in reply to Whicker)
Post #: 3
RE: Ferry mission with Lua, friendly ports dont work as... - 5/1/2019 10:22:59 PM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
I will check. Not sure if I updated Lua for ships as ferry mission originally applied to aircraft only.

I just noticed you want to add mission for port not belonging to the same side as the unit. Not sure that would be passing the Lua validation checks. [I have had an eye infection for the last week+ so vision is a bit fuzzy sometimes]

Can you add a save and what you want to execute so I can test it.

--
Ferry to friendly airfield also can't be created. Changing destination validation from 'by Side' to 'by Scenario', which aligns with UI, should correct this.

< Message edited by michaelm75au -- 5/2/2019 8:03:58 AM >


_____________________________

Michael

(in reply to mitsuF2)
Post #: 4
RE: Ferry mission with Lua, friendly ports dont work as... - 5/5/2019 9:00:22 AM   
mitsuF2

 

Posts: 8
Joined: 12/13/2017
Status: offline
Thanks

This will be helpful.

I edited the scenario in question ...and saved, so no good example existing at the moment.

(in reply to michaelm75au)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Ferry mission with Lua, friendly ports dont work as destination Page: [1]
Jump to:





New Messages No New Messages
Hot Topic w/ New Messages Hot Topic w/o New Messages
Locked w/ New Messages Locked w/o New Messages
 Post New Thread
 Reply to Message
 Post New Poll
 Submit Vote
 Delete My Own Post
 Delete My Own Thread
 Rate Posts


Forum Software © ASPPlayground.NET Advanced Edition 2.4.5 ANSI

1.891