View unanswered posts | View active topics It is currently Thu Jan 09, 2025 3:47 pm



Reply to topic  [ 15 posts ] 
 Nooby LUA scripter. 
Author Message

Joined: Mon Apr 06, 2009 10:40 am
Posts: 25
Reply with quote
Post Nooby LUA scripter.
Hey, I am brand new to LUA, and I was hoping this game would help me learn the basic, etc. But I can't even do stuff like make my own gun, as an example.

Anyway, are there any beginner LUA tutorials that will help with this game, and possibly some gun making tutorials? Thanks in advance...


Mon Apr 06, 2009 10:42 am
Profile WWW
User avatar

Joined: Sun Dec 09, 2007 3:08 pm
Posts: 481
Location: Islamic Republic of Bradistan, Yorkshire, England
Reply with quote
Post Re: Nooby LUA scripter.
StapledPuppet wrote:
Hey, I am brand new to LUA, and I was hoping this game would help me learn the basic, etc. But I can't even do stuff like make my own gun, as an example.

Anyway, are there any beginner LUA tutorials that will help with this game, and possibly some gun making tutorials? Thanks in advance...

Lua hasn't been implemented for weapon making yet.


Mon Apr 06, 2009 11:14 am
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Nooby LUA scripter.
Guns don't use Lua at the moment, its just a few variables in an .ini file. (Is there a name for that?) If you need examples, find a gun in coalition.rte, modify its variables, and see what has changed.

...

Morbo beat me to it, Oh well...

Edit: Also, this is very useful.


Mon Apr 06, 2009 11:17 am
Profile WWW

Joined: Mon Apr 06, 2009 10:40 am
Posts: 25
Reply with quote
Post Re: Nooby LUA scripter.
So, should I create a new thingy in the weapons.ini or whatever?


Mon Apr 06, 2009 11:20 am
Profile WWW
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Nooby LUA scripter.
No, just back up Coalition.rte and edit variables. If you want make your own .rte.


Mon Apr 06, 2009 12:02 pm
Profile WWW

Joined: Mon Apr 06, 2009 10:40 am
Posts: 25
Reply with quote
Post Re: Nooby LUA scripter.
Ahh, ok thanks a lot. But what does the .rte extension mean?


Mon Apr 06, 2009 12:21 pm
Profile WWW
User avatar

Joined: Sun Dec 09, 2007 3:08 pm
Posts: 481
Location: Islamic Republic of Bradistan, Yorkshire, England
Reply with quote
Post Re: Nooby LUA scripter.
It just tells the game that it's a module to be loaded AFAIK. If you don't want a mod to be loaded you can just remove .rte from the name.


Mon Apr 06, 2009 1:01 pm
Profile

Joined: Mon Apr 06, 2009 10:40 am
Posts: 25
Reply with quote
Post Re: Nooby LUA scripter.
Ok, thanks


Mon Apr 06, 2009 1:10 pm
Profile WWW

Joined: Mon Apr 06, 2009 10:40 am
Posts: 25
Reply with quote
Post Re: Nooby LUA scripter.
Yay, I made my first weapon, the Rocket Pistol :D


Mon Apr 06, 2009 2:05 pm
Profile WWW
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Nooby LUA scripter.
Heh, nice.
Also you will notice that once you get the hang of it, modding is very easy. (Offsets too!)


Mon Apr 06, 2009 4:48 pm
Profile WWW

Joined: Mon Apr 06, 2009 10:40 am
Posts: 25
Reply with quote
Post Re: Nooby LUA scripter.
Yeah, offsetting is quite dodgey, but I am getting the hang of it. But then what's next, do I then create custom sprites to go witht eh weapons? Etc...? And furthermore, how do I get more missions for campaign?


Mon Apr 06, 2009 5:03 pm
Profile WWW
Banned
User avatar

Joined: Thu Feb 05, 2009 6:39 pm
Posts: 413
Reply with quote
Post Re: Nooby LUA scripter.
It's lua, not LUA. It's a file tag, not an acronym.


Mon Apr 06, 2009 5:19 pm
Profile
User avatar

Joined: Thu Feb 12, 2009 1:47 am
Posts: 1182
Reply with quote
Post Re: Nooby LUA scripter.
Actually, its Lua. its capitalized. Its a noun.


Mon Apr 06, 2009 5:31 pm
Profile
Banned
User avatar

Joined: Thu Feb 05, 2009 6:39 pm
Posts: 413
Reply with quote
Post Re: Nooby LUA scripter.
Lol.
Bladecat4 - 1
3POK_PHALE - 1
StapledPuppet - 0


Mon Apr 06, 2009 5:33 pm
Profile
User avatar

Joined: Sun May 11, 2008 12:50 pm
Posts: 899
Reply with quote
Post Re: Nooby LUA scripter.
StapledPuppet wrote:
Yeah, offsetting is quite dodgey, but I am getting the hang of it. But then what's next, do I then create custom sprites to go witht eh weapons? Etc...? And furthermore, how do I get more missions for campaign?

Try working with more complicated things like actors. Then learn Lua and maybe some spriting.


Mon Apr 06, 2009 5:58 pm
Profile WWW
Display posts from previous:  Sort by  
Reply to topic   [ 15 posts ] 

Who is online

Users browsing this forum: No registered users


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.033s | 14 Queries | GZIP : Off ]