Anyone working on a Better LUA Giude?

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
jangoisbaddest
Lieutenant General
Lieutenant General
Posts: 661
Joined: Mon Feb 27, 2006 12:10 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: All Along The Watchtower

Anyone working on a Better LUA Giude?

Post by jangoisbaddest »

I consider myself someone who can learn on my own pretty well, but there are several confusing things about this programming code (in BFII). First off, the guide from the documentation doesn't explain very much about the syntax of functions, conditions, etc, and doesn't give many examples. Then it displays an extremely limited number of functions, which I'm sure is a tiny fraction of the ones available for the game. Also, upon looking at mission LUAs for the campaign scripts, some of Zerted's stuff, etc., there are conflicting syntax structures, and I'm not exactly sure how that affects the flow of programming. So I was just wondering if anyone was working on a better LUA guide....
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

RE: Anyone working on a Better LUA Giude?

Post by [RDH]Zerted »

-I've been slowly adding info to the modding Wiki. It has all the Lua functions (not all documented yet) from the game as well as almost all the ScriptCB functions.
-Lua is a programming language. Its main site is http://www.lua.org which also has some good tutorials (where I started off) on it.
-Yes, in the source scripts some of the lines end in semi-colons. If you look at my scripts, you'll see I've never used one. Lua doesn't require them. Look at Lua's site to get its syntax.
-I have some of my source code here: http://129.21.119.74:8088/swbf2/files/in%20development/ All my code is completely commented. Almost every line has a comment.
-I will be adding more Deathmatch scripts stuff over the next few days.
Post Reply