Matrix Games Forums

Forums  Register  Login  Photo Gallery  Member List  Search  Calendars  FAQ 

My Profile  Inbox  Address Book  My Subscription  My Forums  Log Out

Lua importing .inst is looking at the wrong path

 
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 >> Lua importing .inst is looking at the wrong path Page: [1]
Login
Message << Older Topic   Newer Topic >>
Lua importing .inst is looking at the wrong path - 2/20/2016 11:03:54 AM   
VFA41_Lion


Posts: 228
Joined: 1/30/2014
Status: offline
ERROR: Could not find a part of the path 'C:\Program Files (x86)\Steam\steamapps\common\Command Modern Air Naval Operations\GameMenu_CMANO\ImportExport\

well yeah, because my Command folder doesn't have a "gamemenu_cmano" subfolder... :(

Would creating the folder and stuffing all the game folders into it screw anything up?

edit: oh hey it does, it just only has a Lua folder, autoplay, and a copy of the executables and .dlls. Weird.

< Message edited by VFA41_Lion -- 2/20/2016 12:05:44 PM >


_____________________________

Post #: 1
RE: Lua importing .inst is looking at the wrong path - 2/20/2016 12:24:43 PM   
mikmykWS

 

Posts: 11524
Joined: 3/22/2005
Status: offline
Could you please post the Lua code you used? That is key in troubleshooting this.

< Message edited by mikmyk -- 2/20/2016 1:25:51 PM >


_____________________________


(in reply to VFA41_Lion)
Post #: 2
RE: Lua importing .inst is looking at the wrong path - 2/21/2016 3:17:20 AM   
VFA41_Lion


Posts: 228
Joined: 1/30/2014
Status: offline
x = math.random(1,3)
if x == 1 then
    ScenEdit_ImportInst('India', 'Viraat CVBG-North.inst')
elseif x == 2 then
    ScenEdit_ImportInst('India', 'Viraat CVBG-West.inst')
else
    ScenEdit_ImportInst('India', 'Viraat CVBG-East.inst')
end


Ultimately I fixed it by copying and pasting the import/export folder to the gamemenu_cmano folder. Doesn't seem to have adversely affected anything.

_____________________________


(in reply to mikmykWS)
Post #: 3
RE: Lua importing .inst is looking at the wrong path - 2/21/2016 4:30:07 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Do you have the scenario to attach here?

Normal location of that folder is off the game installed folder, regardless of Matrix or Steam version, I would have thought.
Might be interesting to see if it works on the Matrix install.

< Message edited by michaelm -- 2/21/2016 5:32:45 AM >


_____________________________

Michael

(in reply to VFA41_Lion)
Post #: 4
RE: Lua importing .inst is looking at the wrong path - 2/21/2016 4:39:28 AM   
michaelm75au


Posts: 13500
Joined: 5/5/2001
From: Melbourne, Australia
Status: offline
Tried a quick test on Matrix version and save an import as 'test.inst' in the expect folder C:\Matrix Games\Command Modern Air Naval Operations\ImportExport
1. ran a test from console and no error showed
ScenEdit_ImportInst('India', 'test.inst')
2. Tried it again with a different name and got expected error
ScenEdit_ImportInst('India', 'test2.inst')
ERROR: Could not find file 'C:\Matrix Games\Command Modern Air Naval Operations\ImportExport\test2.inst'.

Imports should be coming from the <game installed folder>\ImportExport as shown.
Not sure why Steam would be expecting a different folder.

_____________________________

Michael

(in reply to michaelm75au)
Post #: 5
Page:   [1]
All Forums >> [New Releases from Matrix Games] >> Command: Modern Operations series >> Tech Support >> Lua importing .inst is looking at the wrong path 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.625