Forged Alliance Forever Forged Alliance Forever Forums 2017-05-24T18:22:40+02:00 /feed.php?f=41&t=14634 2017-05-24T18:22:40+02:00 2017-05-24T18:22:40+02:00 /viewtopic.php?t=14634&p=149570#p149570 <![CDATA[Re: Setup woes: CLobby.HostGame(self) expected 1 args, but g]]> Statistics: Posted by ketura — 24 May 2017, 18:22


]]>
2017-05-24T12:17:53+02:00 2017-05-24T12:17:53+02:00 /viewtopic.php?t=14634&p=149529#p149529 <![CDATA[Re: Setup woes: CLobby.HostGame(self) expected 1 args, but g]]>
So you should make the init file load the FAF repository and then load the mod you are developing with the lobby-mod manger. If you have more questions feel free to pm me in the client.

OR: you can just start the game with the FAF changes by launching the ForgedAlliance.exe in the bin folder of the FAF directory and then use the in-lobby-mod manager. (This is sufficient when you dont want to make changes to the FAF code, i.e. create a mod and not a game patch)

Statistics: Posted by CookieNoob — 24 May 2017, 12:17


]]>
2017-05-24T08:50:43+02:00 2017-05-24T08:50:43+02:00 /viewtopic.php?t=14634&p=149516#p149516 <![CDATA[Setup woes: CLobby.HostGame(self) expected 1 args, but got 2]]>
Initially, I followed the instructions on the wiki to create an init_dev.lua file, made a shortcut to ForgedAlliance within the FAF folder using the /init flag, and then pointed the dev_path variable to where I cloned the fa repo. So far so good, everything loaded fine and I could start a game.

However, if I ever try to change dev_path to point to anything except the fa repo, I can't get a skirmish match to run. It hangs on connecting and in the log I get this output:

Code:
info: LOBBY: Game port 0[None] opened.
warning: Error running OnFrame script in CScriptObject at 101a1300: void CLobby.HostGame(self)
           expected 1 args, but got 2
         stack traceback:
            [C]: in function `HostGame'
            ...ged alliance\gamedata\lua.scd\lua\ui\lobby\lobby.lua(341): in function `HostGame'
            ...rged alliance\gamedata\lua.scd\lua\ui\menus\main.lua(916): in function `StartLobby'
            ...rged alliance\gamedata\lua.scd\lua\ui\menus\main.lua(919): in function <...rged alliance\gamedata\lua.scd\lua\ui\menus\main.lua:911>
            ...rged alliance\gamedata\lua.scd\lua\ui\menus\main.lua(818): in function <...rged alliance\gamedata\lua.scd\lua\ui\menus\main.lua:810>
            ...rged alliance\gamedata\lua.scd\lua\ui\menus\main.lua(320): in function <...rged alliance\gamedata\lua.scd\lua\ui\menus\main.lua:305>


It seems to me that I'm missing some file or something somewhere in my mod, except I can't get it to work with any other mods, either. I've tried downloading the ModBootstrap mod and a couple of other small Hello World-esque mods, but I cannot get them to successfully load either.

Am I missing something in how I'm supposed to set this up? The wiki seemed to suggest that I point the init file to the individual mod, but now I'm wondering if it's supposed to be developed as a subfolder within the fa file structure or something.

Any help on how I'm supposed to organize my folders/init files would be greatly appreciated.

Statistics: Posted by ketura — 24 May 2017, 08:50


]]>