Lionhardt wrote:Thing is, atm resources that are not standard are not supported though the client, right? If I put custom resources in my map, they won't be displayed for somebody that just downloaded the map but not the custom resource.
I apologise for inviting myself into this conversation, but I think this is incorrect. See also the following post from in 2013:
viewtopic.php?f=53&t=4651
And, when I look at how Supreme Commander 'hooks' the files into the game:
- Code: Select all
path = {}
local function mount_dir(dir, mountpoint)
table.insert(path, { dir = dir, mountpoint = mountpoint } )
end
local function mount_contents(dir, mountpoint)
LOG('checking ' .. dir)
for _,entry in io.dir(dir .. '\\*') do
if entry != '.' and entry != '..' then
local mp = string.lower(entry)
mp = string.gsub(mp, '[.]scd$', '')
mp = string.gsub(mp, '[.]zip$', '')
mount_dir(dir .. '\\' .. entry, mountpoint .. '/' .. mp)
end
end
end
mount_contents(SHGetFolderPath('PERSONAL') .. 'My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\mods', '/mods')
mount_contents(SHGetFolderPath('PERSONAL') .. 'My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\maps', '/maps')
mount_dir(InitFileDir .. '\\..\\gamedata\\*.scd', '/')
mount_dir(InitFileDir .. '\\..', '/')
It appears to be inrelevant of whether the files are inside a .scd (located in gamedata), or whether it is properly placed inside a maps folder. I have not yet tested it, but I will soon. I am currently figuring out how props are made.
Meaning: if I am right, the custom props can be downloaded to the client, along with the map. It doesn't leave the fact that:
Franck83 wrote:What do you mean by non standard ? It means that it needs to be added to FAF (.scd gamefolder file) ?
This is way better, seeing that two maps that share the same custom props requires them both to be downloaded and stored seperately, otherwise. On top of that, creating a 'library' of valid props could never be a bad thing too.