Forged Alliance Forever Forged Alliance Forever Forums 2019-04-08T10:50:20+02:00 /feed.php?f=41&t=17397 2019-04-08T10:50:20+02:00 2019-04-08T10:50:20+02:00 /viewtopic.php?t=17397&p=173285#p173285 <![CDATA[Re: How to add custom lobby options via lobbyoptions.lua?]]>
Here is a link to all commands/functions that are available for programming in SupCom Lua:
https://supcom.fandom.com/wiki/LUADOC_1.5.3599

A short guide for modding (no .scd mods)
https://wiki.faforever.com/index.php?title=Modding

And a good code example for .SCD modding is the mod from Balthazar (BrewLan)
https://github.com/The-Balthazar/BrewLAN/tree/master/gamedata

Statistics: Posted by Uveso — 08 Apr 2019, 10:50


]]>
2019-04-08T10:18:08+02:00 2019-04-08T10:18:08+02:00 /viewtopic.php?t=17397&p=173283#p173283 <![CDATA[Re: How to add custom lobby options via lobbyoptions.lua?]]>
Thanks for the clarification! Love your AI, I'm actually using your mod as reference for some things... Shame only AI options can be added, but it's better than nothing.

By chance did you use any specific resource for the mod API, or just learn things by browsing source files?

Statistics: Posted by douglasg14b — 08 Apr 2019, 10:18


]]>
2019-04-08T07:26:33+02:00 2019-04-08T07:26:33+02:00 /viewtopic.php?t=17397&p=173278#p173278 <![CDATA[Re: How to add custom lobby options via lobbyoptions.lua?]]>
douglasg14b wrote:
* /lua/AI/LobbyOptions/lobbyoptions.lua (IS called, but can only add to AIOpts and not globalOpts) (Why does this get called??)


This is only for AI mods to add AI options.

You can't change the lobby if you use a normal mod.
A normal mod only works after the lobby, if you start into the gameworld.

You need a .SCD mod to do so. (zip file inside the GAMEDATA folder)

Statistics: Posted by Uveso — 08 Apr 2019, 07:26


]]>
2019-04-08T02:04:59+02:00 2019-04-08T02:04:59+02:00 /viewtopic.php?t=17397&p=173277#p173277 <![CDATA[How to add custom lobby options via lobbyoptions.lua?]]>
I've tried the following:

* /lua/ui/lobby/lobbyoptions.lua (doesn't get called)
* /hook/lua/ui/lobby/lobbyoptions.lua (doesn't get called)
* /SCHOOK/lua/ui/lobby/lobbyoptions.lua (doesn't get called)
* /lua/ui/lobbyoptions.lua (doesn't get called)
* /lua/lobbyoptions.lua (doesn't get called)
* /lua/AI/LobbyOptions/lobbyoptions.lua (IS called, but can only add to AIOpts and not globalOpts) (Why does this get called??)
* /lua/LobbyOptions/lobbyoptions.lua (doesn't get called)


Where do I need to put this file for it to be called, and have access to globalOpts? PhantomX puts it under /phantomxhook/lua/ui/lobby/lobbyoptions.lua and it gets called there, how?

Statistics: Posted by douglasg14b — 08 Apr 2019, 02:04


]]>