Page 1 of 1

Having Trouble Loading .LVLs from Another Folder [Solved]

Posted: Mon Oct 14, 2013 9:42 pm
by Nedarb7
I'm trying to load my .lvls from one of my mods into a custom maps LUA. Here's what that would look like:
Hidden/Spoiler:
ReadDataFile("..\\..\\..\\OO1\\data\\_LVL_PC\\core.lvl")
ReadDataFile("..\\..\\..\\OO1\\data\\_LVL_PC\\ingame.lvl")

ReadDataFile("..\\..\\..\\OO1\\data\\_LVL_PC\\sound\\cvw.lvl;cvwgcw")

And so on.
For some reason they aren't being loaded and the game crashes. This is the error I'm getting:
Hidden/Spoiler:
Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\..\OO1\data\_LVL_PC\core.lvl

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\..\OO1\data\_LVL_PC\ingame.lvl

Message Severity: 3
C:\Battlefront2\main\Battlefront2\Source\LuaCallbacks_Mission.cpp(866)
Lua ReadDataFile: Could not open ..\..\..\OO1\data\_LVL_PC\sound\cvw.lvl;cvwgcw
Any ideas?

Re: Having Trouble Loading .LVLs from Another Folder

Posted: Mon Oct 14, 2013 9:51 pm
by AQT

Code: Select all

ReadDataFile("..\\..\\addon\\OO1\\data\\_LVL_PC\\core.lvl")
The third pair of dots should be addon. :)

Re: Having Trouble Loading .LVLs from Another Folder

Posted: Mon Oct 14, 2013 9:53 pm
by Nedarb7
Ah, so I can't have three pairs of dots. Interesting. Thanks, AQT, I'll get back with the results.

-EDIT-
Works, topic is solved.