-
Notifications
You must be signed in to change notification settings - Fork 6
File Search Path Order
This is the order that NS2 will search for files that are normaly in NSRoot\ns2\
NSRoot = Natural Selection Root Directory
GameDir = the directory specified with the command line argument “/game”
1: GameDir\ns2\
2: GameDir\core\
3: NSRoot\ns2\
4: NSRoot\core\
5: foreach Line in NSRoot\directories.txt
Line\ns2\
Line\core\
end
each line can be name of directory inside the NSRoot directory or a full path to a directory
directories.txt is only loaded once on game startup and not on map changes
Lets say the games searching for the file “lua\Mods\Practice_Client.lua”
and NSRoot is C:\Natural Selection 2
and directories.txt contains 2 lines that are “testdir” and “testdir2”
This would be the locations that NS2 would look for that file:
C:\Natural Selection 2\ns2\lua\mods\Practice_Client.lua
C:\Natural Selection 2\core\lua\mods\Practice_Client.lua
C:\Natural Selection 2\testdir\ns2\lua\mods\Practice_Client.lua
C:\Natural Selection 2\testdir\core\lua\mods\Practice_Client.lua
C:\Natural Selection 2\testdir2\ns2\lua\mods\Practice_Client.lua
C:\Natural Selection 2\testdir2\core\lua\mods\Practice_Client.lua