first version of GMSN->GF3 Lua script