H > Coop + FAF Offline? Topic is solved

Moderator: PhilipJFry

H > Coop + FAF Offline?

Postby utofaery » 01 Oct 2015, 06:56

May be it's my fault for not looking harder for the answer
but I need help to start coop with FAF changes Offline.


"C:/Documents and Settings/All Users/FAForever/bin/ForgedAlliance.exe /init init_faf.lua /EnableDiskWatch"

Currently is what I would use to start the game with but I have no idea
on how to combine init_coop.lua with init_faf.lua
and start a coop mission map which I downloaded
and place in the right place in My Games folder

Please help me to make it work on my Desktop computer.
Mum forbid that I have any internet access on that computer.
utofaery
 
Posts: 6
Joined: 05 Sep 2015, 12:57
Has liked: 0 time
Been liked: 0 time
FAF User Name: utofaery

Re: H > Coop + FAF Offline?

Postby speed2 » 01 Oct 2015, 08:38

User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2

Re: H > Coop + FAF Offline?

Postby utofaery » 01 Oct 2015, 13:58

1
I wish to use it this way can you help me?

Code: Select all
dev_path = 'C:\\Documents and Settings\\All Users\\FAForever\\FAF'

-- this imports a path file that is written by Forged Alliance Forever right before it starts the game.
dofile(InitFileDir .. '\\..\\fa_path.lua')
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
-- these are the classic supcom directories. They don't work with accents or other foreign characters in usernames
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')
-- these are the local FAF directories. The My Games ones are only there for people with usernames that don't work in the uppder ones.
mount_contents(InitFileDir .. '\\..\\user\\My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\mods', '/mods')
mount_contents(InitFileDir .. '\\..\\user\\My Games\\Gas Powered Games\\Supreme Commander Forged Alliance\\maps', '/maps')
mount_dir(dev_path, '/')
-- these are using the newly generated path from the dofile() statement at the beginning of this script
mount_dir(fa_path .. '\\gamedata\\*.scd', '/')
mount_dir(fa_path, '/')
hook = {
    '/schook'
}
protocols = {
    'http',
    'https',
    'mailto',
    'ventrilo',
    'teamspeak',
    'daap',
    'im',
}



2
Init_coop.lua is not working
It loads and run but campaign is old one
And skirmish has no map or ai
utofaery
 
Posts: 6
Joined: 05 Sep 2015, 12:57
Has liked: 0 time
Been liked: 0 time
FAF User Name: utofaery

Re: H > Coop + FAF Offline?  Topic is solved

Postby speed2 » 01 Oct 2015, 15:30


its really nothing more than shortcut to file located here
Code: Select all
C:\ProgramData\FAForever\bin\ForgedAlliance.exe

and the stuff you need like init coop
Code: Select all
C:\ProgramData\FAForever\bin\ForgedAlliance.exe /init init_coop.lua /showlog
User avatar
speed2
Contributor
 
Posts: 3189
Joined: 05 Jan 2013, 15:11
Has liked: 636 times
Been liked: 1119 times
FAF User Name: speed2


Return to General Questions

Who is online

Users browsing this forum: No registered users and 1 guest