159th_Falcon Posted May 10, 2013 Posted May 10, 2013 Ok, does anyone know if you can modify the dropdown box in the multiplayer GUI? The one you can use to select folders to navigate to your missions? Hoping it is cause it would make swapping between squad, public and training missions a lot easier for the 159th server admins. Any ideas? [sIGPIC][/sIGPIC] The keeper of all mathematical knowledge and the oracle of flight modeling.:)
aussieboy Posted May 10, 2013 Posted May 10, 2013 Hi, you should be able too. I don't fly online but you could take a look in the DCS World\Scripts\net folder and it's sub-folders You can open and edit .dlg files with notepad or the like.
ajax Posted May 10, 2013 Posted May 10, 2013 Here you go, Falcon: Edit {DCS}\Scripts\UserFiles.lua to include the lines in red. Modify according to your system. local lfs = require('lfs') sysTracksPath = lfs.currentdir() .. 'Missions\\Tracks\\' userMissionPath = lfs.writedir()..'Missions\\' userTrackPath = lfs.writedir()..'Tracks\\' sysCampaignPath = lfs.currentdir() .. 'Missions\\Campaigns\\' userCampaignPath = lfs.writedir() .. 'Missions\\Campaigns\\' userMoviePath = lfs.writedir() .. 'Movies\\' [color=Red]userSquadMissionPath = lfs.writedir()..'Missions\\Squad\\' userPublicMissionPath = lfs.writedir()..'Missions\\Public\\' userServmanMissionPath = lfs.currentdir()..'Missions\\Multiplayer\\' [/color] function initLocations() function _(str) return str end lfs.add_location(_('My Missions'), userMissionPath) [color=Red] lfs.add_location(_('Squad Missions'), userSquadMissionPath) lfs.add_location(_('Public Missions'), userPublicMissionPath) lfs.add_location(_('Servman Missions'), userServmanMissionPath) [/color]end initLocations()
159th_Falcon Posted May 10, 2013 Author Posted May 10, 2013 (edited) Awesome, so why haven't you done this on the Squad server yet Ajax?:D btw, can we also use full directory paths instead of the ones above starting from the main game directory? ie, c:/users/username/missions/squad Edited May 10, 2013 by 159th_Falcon [sIGPIC][/sIGPIC] The keeper of all mathematical knowledge and the oracle of flight modeling.:)
ajax Posted May 10, 2013 Posted May 10, 2013 (edited) Well, Falcon, I figured it out just this morning and TBH never thought about it before you asked the question.:) I presume full file paths are acceptable, but I haven't tested it. Edit: Full pathnames work fine. Edited May 10, 2013 by ajax 1
Recommended Posts