Forged Alliance Forever Forged Alliance Forever Forums 2018-02-07T23:02:20+02:00 /feed.php?f=41&t=15869 2018-02-07T23:02:20+02:00 2018-02-07T23:02:20+02:00 /viewtopic.php?t=15869&p=160639#p160639 <![CDATA[Re: Where do I get the modified version of Lua 5.0?]]>
Anihilnine wrote:
I dont think you need modified lua 5.

The types you are looking for (boolean, string) are defined in a file somewhere in the scd files.

The problem is you are trying to build a file by itself, instead of the entire project.

How are you building this?

To be more specific, it is this file:
mohodata/lua/dataInit.lua

Code:
# Copyright � 2005 Gas Powered Games, Inc.  All rights reserved.

function BOOLEAN(b)
   return b
end

function INTEGER(i)
   return i
end

function FLOAT(f)
   return f
end

function VECTOR2(x,y)
   return { x, y, type = 'VECTOR2' }
end

function VECTOR3(x,y,z)
   return { x, y, z, type = 'VECTOR3' }
end

function RECTANGLE(x0,y0,x1,y1)
   return { x0, y0, x1, y1, type = 'RECTANGLE' }
end

function STRING(s)
   return s
end

function GROUP(group)
   group.type = 'GROUP'
   return group
end

Up to this point I still don't know its actual purpose.

Statistics: Posted by Jip — 07 Feb 2018, 23:02


]]>
2018-02-06T16:56:54+02:00 2018-02-06T16:56:54+02:00 /viewtopic.php?t=15869&p=160535#p160535 <![CDATA[Re: Where do I get the modified version of Lua 5.0?]]> Statistics: Posted by Lionhardt — 06 Feb 2018, 16:56


]]>
2018-02-06T16:43:01+02:00 2018-02-06T16:43:01+02:00 /viewtopic.php?t=15869&p=160533#p160533 <![CDATA[Re: Where do I get the modified version of Lua 5.0?]]>
https://github.com/ozonexo3/FAForeverMa ... Header.txt

https://github.com/ozonexo3/FAForeverMa ... Footer.txt

Statistics: Posted by ozonex — 06 Feb 2018, 16:43


]]>
2018-02-06T16:41:12+02:00 2018-02-06T16:41:12+02:00 /viewtopic.php?t=15869&p=160532#p160532 <![CDATA[Re: Where do I get the modified version of Lua 5.0?]]> Statistics: Posted by Lionhardt — 06 Feb 2018, 16:41


]]>
2018-02-06T16:37:06+02:00 2018-02-06T16:37:06+02:00 /viewtopic.php?t=15869&p=160531#p160531 <![CDATA[Re: Where do I get the modified version of Lua 5.0?]]> Statistics: Posted by nine2 — 06 Feb 2018, 16:37


]]>
2018-02-06T16:36:13+02:00 2018-02-06T16:36:13+02:00 /viewtopic.php?t=15869&p=160530#p160530 <![CDATA[Re: Where do I get the modified version of Lua 5.0?]]>
I want to write better version of the props transformation script i hacked together in python a few years back and for that I need to parse the tables in the save.lua into table objects... which works just fine with the exception of the functions BOOLEAN etc. But okay I can just define dummy function for them as I don't need their implementation... I think.

Statistics: Posted by Lionhardt — 06 Feb 2018, 16:36


]]>
2018-02-06T16:28:58+02:00 2018-02-06T16:28:58+02:00 /viewtopic.php?t=15869&p=160528#p160528 <![CDATA[Re: Where do I get the modified version of Lua 5.0?]]>
The types you are looking for (boolean, string) are defined in a file somewhere in the scd files.

The problem is you are trying to build a file by itself, instead of the entire project.

How are you building this?

Statistics: Posted by nine2 — 06 Feb 2018, 16:28


]]>
2018-02-06T16:12:17+02:00 2018-02-06T16:12:17+02:00 /viewtopic.php?t=15869&p=160527#p160527 <![CDATA[Where do I get the modified version of Lua 5.0?]]> The wiki mentions that FA uses a modified version of Lua. I built Lua 5.0 from the official website, but apparently that version does not work for FA files. For example when I run the interpreter with a <mapname>_save.lua it sayst it does not know the typecaste or constructor like function calls BOOLEAN, STRING etc.

Snippet from such a file:

Code:
MasterChain = {
        ['_MASTERCHAIN_'] = {
            Markers = {
                ['AmphPN10'] = {
                    ['hint'] = BOOLEAN( true ),
                    ['type'] = STRING( 'Amphibious Path Node' ),
                    ['adjacentTo'] = STRING( 'AmphPN03 AmphPN04' ),
                    ['color'] = STRING( 'ff00ffff' ),
                    ['graph'] = STRING( 'DefaultAmphibious' ),
                    ['prop'] = STRING( '/env/common/props/markers/M_Path_prop.bp' ),
                    ['orientation'] = VECTOR3( 0, -0, 0 ),
                    ['position'] = VECTOR3( 460.5, 32.9141, 204.5 ),
                },


Dunno... are these custom functions that are defined elsewhere and the map files get loaded where the functions are defined already or are these predefined functions of that modified lua interpreter? And where do I get that modified one if this is the case?

Statistics: Posted by Lionhardt — 06 Feb 2018, 16:12


]]>