Forged Alliance Forever Forged Alliance Forever Forums 2018-05-29T17:47:38+02:00 /feed.php?f=41&t=16246 2018-05-29T17:47:38+02:00 2018-05-29T17:47:38+02:00 /viewtopic.php?t=16246&p=164085#p164085 <![CDATA[Re: Creating Mod with Google API for Translating ingame text]]>
  • FA uses its own implementation of LUA. Some functions are not available from the inbuild LUA, for example file access is completely restricted to the game.prefs file (probably to prevent mods from executing malicious code).
  • The ice adapter is not part of the game code, it is a separate executable which routes the network traffic. A mod would have to be run from within the game and thus works on a completely different basis.
  • Loading custom dlls is the purpose of this code https://github.com/FAForever/supcom-se however it never got implemented because of the possiblities to exploit it.

Statistics: Posted by CookieNoob — 29 May 2018, 17:47


]]>
2018-05-29T17:05:42+02:00 2018-05-29T17:05:42+02:00 /viewtopic.php?t=16246&p=164084#p164084 <![CDATA[Re: Creating Mod with Google API for Translating ingame text]]>
I think i have figured out what is the problem with the LUA_PATH Variable. Seems lua 5.0 doesnt use Package.path table. However if i set LUA_PATH still it cannot load the .dll from luasocket libary. I know there was a similiar problem when implementing the ICE Adapter.

I would just need to use sockets. ... any suggestions ?
thx for help

Statistics: Posted by NoUnits — 29 May 2018, 17:05


]]>
2018-05-27T23:58:51+02:00 2018-05-27T23:58:51+02:00 /viewtopic.php?t=16246&p=163986#p163986 <![CDATA[Creating Mod with Google API for Translating ingame textchat]]>
I Stuck creating a mod, which translates Textchat from Any Language into users Languge and reverse.
Biggest Problem so far was to get the Luasocket libary working with my current lua installation. However i managed to overcome those difficulties and wantet to test my Code with the FA Supcom game.

But the game freezed when starting, and there was an erorr about an unrecognized Variable LUA_PATH
I thought this happens because luasocket is made for lua5.1 and the game uses 5.0...
does anyone know how to get luasocket or any other libary made for 5.1 running in fa ?

Thanks for your effort,
sincerly NoUnits

PS: i could share my mod via googledrive if you have an idea

Statistics: Posted by NoUnits — 27 May 2018, 23:58


]]>