Vehicle LUA Stuffz
Moderator: Moderators
-
agentfallenangel
Vehicle LUA Stuffz
k so I'm adding vehicles in the LUA. I want to add the ATTE for the rebels, and I want to add it for the republic too. I already added the ATTE to the Clonewars conquest LUA file under republic, but do i have to add it to the galactic civil war conquest file under the rebels as well? Would it just borrow it like the rebels borrow the imp speeder?
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Vehicle LUA Stuffz
No, each lua is a seperate file. You would have to load it from the rep side in the GCW lua as well.agentfallenangel wrote:k so I'm adding vehicles in the LUA. I want to add the ATTE for the rebels, and I want to add it for the republic too. I already added the ATTE to the Clonewars conquest LUA file under republic, but do i have to add it to the galactic civil war conquest file under the rebels as well? Would it just borrow it like the rebels borrow the imp speeder?
And you need to do some sort of other thing in the lua to get command walkers in (something about set leg count or something), but I don't know what it is.
-
agentfallenangel
Re: Vehicle LUA Stuffz
yeah the ATTE and the ATST arent showing up... but now at least I know somewhat why
Well, if its leg count, ATTE has 6 and ATST has 2
I r best at math
EDIT
and by the way fierfek, your introductory mod map guide is REALLY good and detailed. I had no clue how to mod until your guide came out
thanks dude
Well, if its leg count, ATTE has 6 and ATST has 2
EDIT
and by the way fierfek, your introductory mod map guide is REALLY good and detailed. I had no clue how to mod until your guide came out
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Vehicle LUA Stuffz
Thanks. The next version will be coming out within the next few days.
Can you post your lua? I'll se if you have it set up right.
Can you post your lua? I'll se if you have it set up right.
-
agentfallenangel
Re: Vehicle LUA Stuffz
kk here it is
FAMc_con
========================================================================
FAMg_con
I haven't had time to add the ATTE to the rebel section in the GCW LUA yet tho
FAMc_con
Hidden/Spoiler:
FAMg_con
Hidden/Spoiler:
I haven't had time to add the ATTE to the rebel section in the GCW LUA yet tho
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Vehicle LUA Stuffz
Okay, so find tis part in your lua (near the bottom):
Change it to look like this (changes in red):
And make sure you are creating the vehicle spawn correctly in zeroeditor.
Hidden/Spoiler:
Hidden/Spoiler:
-
agentfallenangel
Re: Vehicle LUA Stuffz
yeah I double checked it and it seems fine. the one thing i was slightly confused about is the control zone and capture zone.
The way I layed it out was the Control zone and capture zone were slightly apart from each other and the vehicle spawns weren't in either of the two. Is this right? What is the point of a control zone?
The way I layed it out was the Control zone and capture zone were slightly apart from each other and the vehicle spawns weren't in either of the two. Is this right? What is the point of a control zone?
- Par3210
- Jedi

- Posts: 1033
- Joined: Sun Jun 14, 2009 10:31 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Owning people in SWBF2
- Contact:
Re: Vehicle LUA Stuffz
to make vehicle spawns work?
- Frisbeetarian
- Jedi

- Posts: 1233
- Joined: Wed Sep 12, 2007 3:13 pm
Re: Vehicle LUA Stuffz
If you don't know, don't post. That's wrong anyways.Par3210 wrote:to make vehicle spawns work?
The point of control regions are to set certain vehicles for certain teams based on who controls a CP and/or work with decay rates once a vehicle leaves this region. If you're using a control region, you aught to put the vehicle spawn inside of it.
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Vehicle LUA Stuffz
Ahh, yeah, I got that part completely wrong in my guide. Sorry!
But, does it work now?
But, does it work now?
-
MercuryNoodles
- Jedi

- Posts: 1003
- Joined: Sun Mar 12, 2006 7:16 pm
- Projects :: Space - Boarding Action
- xbox live or psn: No gamertag set
Re: Vehicle LUA Stuffz
I don't see how it'll work without changing this line for both luas:
Code: Select all
AddWalkerType(3, 0) -- 3x2 (3 pairs of legs)Battlefront II Mission LUA Guide wrote:These next lines will add walkers to your level. The first number inside the parenthesis specifies how many leg pairs the walker type has. Droidekas are set up as a special case, with 0 leg pairs. So as you can see below, we have AddWalkerType(0,4) this specifies that we will have 4 walkers with 0 leg pairs (droidekas). 1 leg pair would specify a walker with one pair of legs, an ATST for example, or a one-man ATST from the clone wars era. So for 2 ATSTs, we would have a line that says; AddWalkerType(1, 2)
2 leg pairs would be a unit like the CIS spider walker, or an ATAT, and 3 leg pairs would be the 6-legged walker from the clone wars era.
-
agentfallenangel
Re: Vehicle LUA Stuffz
ok I'm really confused now.
I want to review some things:
Control regions should be placed NEAR Command post capture regions, but not in them.
Vehicle Spawns should be INSIDE the control region
Right?
As for that line of code, where do I put it in?
I want to review some things:
Control regions should be placed NEAR Command post capture regions, but not in them.
Vehicle Spawns should be INSIDE the control region
Right?
As for that line of code, where do I put it in?
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Vehicle LUA Stuffz
Just add the line in your .lua somewhere under
Code: Select all
-- Level Stats-
agentfallenangel
Re: Vehicle LUA Stuffz
that code was already in it
maybe it was the vehicle spawn that I did wrong. I used for the rep att and def slots
rep_walk_atte
is that right?
maybe it was the vehicle spawn that I did wrong. I used for the rep att and def slots
rep_walk_atte
is that right?
- Fierfek
- High General

- Posts: 805
- Joined: Wed Jul 01, 2009 4:38 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Somewhere in the Galaxy (Most Likely Scrapping Tinnies)
Re: Vehicle LUA Stuffz
That sounds right.......agentfallenangel wrote:that code was already in it
maybe it was the vehicle spawn that I did wrong. I used for the rep att and def slots
rep_walk_atte
is that right?
-
agentfallenangel
Re: Vehicle LUA Stuffz
then why won't the ATTE show up?
when the visualmunge completes, there are two errors. here is the munge log
when the visualmunge completes, there are two errors. here is the munge log
Hidden/Spoiler:
Last edited by agentfallenangel on Wed Jul 29, 2009 10:04 pm, edited 1 time in total.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Vehicle LUA Stuffz
Do you mind posting what it looks like exactly?agentfallenangel wrote:that code was already in it
EDIT: Nevermind, just change the zero you see into a one.
-
agentfallenangel
Re: Vehicle LUA Stuffz
OHH lol ok
nope, still doesn't work. Ill post the whole LUA file here
FAMc_con
FAMg_con
nope, still doesn't work. Ill post the whole LUA file here
FAMc_con
Hidden/Spoiler:
FAMg_con
Hidden/Spoiler:
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Vehicle LUA Stuffz
Remember to only check Common when you munge since you're only making changes to the scripts. Anyway, I don't see anything wrong with the CW script but there are two mistakes with the GCW one. Change this section
to
since the AT-TE can't be found in the all.lvl and as you can see here
the speeder bike occurs twice so just delete the top one.
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
-
agentfallenangel
Re: Vehicle LUA Stuffz
ATTE stilll does not appear 
After I munged, I still got a mungelog with two errors
Also, the imperial ATST doesn't appear. Is this the right name?: imp_walk_atst_jungle
After I munged, I still got a mungelog with two errors
Hidden/Spoiler:
