Some questions about Moding
Moderator: Moderators
- 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: Some questions about Mapping
Where is all_fly_kwing in your sides folder?
- 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: Some questions about Mapping
What skins did you change? Did you make backups? Did you save with RLE compression off?
- [RDH]Zerted
- Gametoast Staff

- Posts: 2982
- Joined: Sun Feb 26, 2006 7:36 am
- Projects :: Bos Wars AI - a RTS game
- xbox live or psn: No gamertag set
- Location: USA
- Contact:
Re: Some questions about Mapping
Just search your mod tool folders for it.Fierfek wrote:Where is all_fly_kwing in your sides folder?
Edit: Oops. Didn't notice the first 2 pages.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
"all_fly_kwing" is in assets\sides\all.[RDH]Zerted wrote:Just search your mod tool folders for it.Fierfek wrote:Where is all_fly_kwing in your sides folder?
Q1) Which layer to I put vehicle spawns in? [Base] or conquest?
Q2) If I have a neutral Cp with a vehicle spawn atached to it, do I add all_fly_kwing to the "classnuetral" in the vehicle spawn "CalssRepAtk" menu?
Q3) If the above is correct, where in the ***c_con.lua (Republic Era) do I put the "all_fly_kwing"? Under the Rep, or the Cis?
- 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: Some questions about Mapping
Q1) Put it in whatever layer you want (for instance if you want it in conquest then yes, you would put it in conquest)
Q2) Put it in whatever side you want it. For instance in space all vehicles except for their command vehicle (the gunship for the republic for instance) are neutral.
Q3) Put it under both sides.
Q2) Put it in whatever side you want it. For instance in space all vehicles except for their command vehicle (the gunship for the republic for instance) are neutral.
Q3) Put it under both sides.
- 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: Some questions about Mapping
Aha, no, I'm not looking for the asset, I'm just asking him a question.[RDH]Zerted wrote:Just search your mod tool folders for it.Fierfek wrote:Where is all_fly_kwing in your sides folder?
IronJaw, can I please see your lua?
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Ah, I deleted that set of files after a horrible mix up. The kwing was under:
Hidden/Spoiler:
- 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: Some questions about Mapping
Yeah, I saw that, and was wondering if you had fixed it.IronJaw wrote:Ah, I deleted that set of files after a horrible mix up. The kwing was under:
Hidden/Spoiler:
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Yep, on my next test level.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
Next problem.
While Munging my level:
Then this pops up:
By TRYc_con.lua
My TRYg_con.lua:
Any thoughts?
While Munging my level:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
- 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: Some questions about Mapping
Can we see the error log? I'm betting there will be some level chunk errors.
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
Re: Some questions about Mapping
Your .lua file is quite a mess. Why are you trying to reference all/rep from imp.lvl and all.lvl? Items colored red are errors.ReadDataFile("sound\\tat.lvl;tat2gcw")
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"rep_fly_vwing", -- Loading rep_fly_vwing from default all.lvl not possible
"all_fly_kwing",
"rep_fly_cat_dome", -- Same as vwing
"rep_hover_barcspeeder") -- Same as vwing, and extra ")"
"all_hero_hansolo_tat")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"rep_fly_vwing", -- vwing does not exist in imp.lvl
"all_fly_kwing", -- same as vwing above
"rep_fly_cat_dome", -- same as vwing above
"rep_hover_barcspeeder") -- same as vwing above, extra ")"
"imp_fly_destroyer_dome" )
- 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: Some questions about Mapping
I think he already fixed those.-_- wrote:Your .lua file is quite a mess. Why are you trying to reference all/rep from imp.lvl and all.lvl? Items colored red are errors.ReadDataFile("sound\\tat.lvl;tat2gcw")
ReadDataFile("SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper",
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"rep_fly_vwing",
"all_fly_kwing",
"rep_fly_cat_dome",
"rep_hover_barcspeeder")
"all_hero_hansolo_tat")
ReadDataFile("SIDE\\imp.lvl",
"imp_inf_rifleman",
"imp_inf_rocketeer",
"imp_inf_engineer",
"imp_inf_sniper",
"imp_inf_officer",
"imp_inf_dark_trooper",
"imp_hero_bobafett",
"rep_fly_vwing",
"all_fly_kwing",
"rep_fly_cat_dome",
"rep_hover_barcspeeder")
"imp_fly_destroyer_dome" )
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
IronJaw wrote: Q3) If the above is correct, where in the ***c_con.lua (Republic Era) do I put the "all_fly_kwing"? Under the Rep, or the Cis?
I assumed that if you must put "all_fly_kwing" (Which was a Rebel ship/unit) in to both the Rep and CIS sides,that I could do it to the ***g_con.lua.Par3210 wrote: Q3) Put it under both sides.
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
Re: Some questions about Mapping
From the error he posted, no, he didn't. I didn't even bother looking over the clone wars conquest .lua, but they have pretty much the exact same errors I outlined above.Fierfek wrote: I think he already fixed those.
They're wrong. I hate to have to say it this way, but they don't know what they're doing.IronJaw wrote:IronJaw wrote: Q3) If the above is correct, where in the ***c_con.lua (Republic Era) do I put the "all_fly_kwing"? Under the Rep, or the Cis?I assumed that if you must put "all_fly_kwing" (Which was a Rebel ship/unit) in to both the Rep and CIS sides,that I could do it to the ***g_con.lua.Par3210 wrote: Q3) Put it under both sides.
all_fly_kwing, as far as I'm concerned, can be only loaded by default from all.lvl unless it's a custom side.
- 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: Some questions about Mapping
Par is wrong.IronJaw wrote:IronJaw wrote: Q3) If the above is correct, where in the ***c_con.lua (Republic Era) do I put the "all_fly_kwing"? Under the Rep, or the Cis?I assumed that if you must put "all_fly_kwing" (Which was a Rebel ship/unit) in to both the Rep and CIS sides,that I could do it to the ***g_con.lua.Par3210 wrote: Q3) Put it under both sides.
The k-wing needs to be read on a seperate line:
Hidden/Spoiler:
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
I get it now! Each "ReadDataFile("SIDE\\all.lvl"," tells Munge to take those specific files from the "sides" folder and compile them into the "all.lvl" file.
-
-_-
- Gametoast Staff

- Posts: 2678
- Joined: Sat May 07, 2005 1:22 pm
Re: Some questions about Mapping
Well, something along those lines.
ReadDataFile("SIDE\\all.lvl"
"all_fly_kwing") -- Game Object is referenced in .lua file, game engines looks in all.req for all_fly_kwing, which leads to all_fly_kwing.req, then to the odf referenced in all_fly_kwing.req.
ReadDataFile("SIDE\\all.lvl"
"all_fly_kwing") -- Game Object is referenced in .lua file, game engines looks in all.req for all_fly_kwing, which leads to all_fly_kwing.req, then to the odf referenced in all_fly_kwing.req.
- IronJaw
- Sergeant Major

- Posts: 225
- Joined: Tue Jul 14, 2009 8:33 am
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: Look behind you, I'm with four other ninjas
Re: Some questions about Mapping
I have fixed the .lua
Everything works fine, other than no K-wing. I only need to set my other six cp to neutral and start my skin testing.
Thanks for the help!
Question:
Is there a way to have two of the same unite on a side? Would the .lua look like this? (for example, two snipers. [More like the ability to pick one of two skins in-game.])
Or, if I wanted two ep3 .msh useing units, would I have to create another unit?
I would assume that it would be as easy as copying the .msh and .odf of "rep_inf_ep3_sniper" and renaming it, put it in the "rep" sides folder, and add it under the
*edit* Also, I keep saving new skins over the older ones, (REL compression is off) the pix size is the same, but after I Munge "rep" (the side the new skins are in) they don't show up. HTe originals are still used. I know I save the new skins in the proper data_***\Side\rep\msh folder.
Everything works fine, other than no K-wing. I only need to set my other six cp to neutral and start my skin testing.
Thanks for the help!
Question:
Is there a way to have two of the same unite on a side? Would the .lua look like this? (for example, two snipers. [More like the ability to pick one of two skins in-game.])
Hidden/Spoiler:
I would assume that it would be as easy as copying the .msh and .odf of "rep_inf_ep3_sniper" and renaming it, put it in the "rep" sides folder, and add it under the
in the .luaReadDataFile("SIDE\\rep.lvl"
*edit* Also, I keep saving new skins over the older ones, (REL compression is off) the pix size is the same, but after I Munge "rep" (the side the new skins are in) they don't show up. HTe originals are still used. I know I save the new skins in the proper data_***\Side\rep\msh folder.
-
AQT
- Gametoast Staff

- Posts: 4910
- Joined: Sat Nov 03, 2007 4:55 pm
- Location: SoCal, USA
Re: Some questions about Mapping
In order to add the additional sniper unit, you must use the AddUnitClass function. Look here for more information (please read through the entire topic).
Look here for information concerning how to set up custom sides properly. It addresses your second question.
Remember, there is a topic stickied at the top of the SWBF2 Modding forum entitled The FAQ / Everything You Need Thread Version 2.0. It contains many links to various modding tutorials. Check it out before asking for help as the answers to your questions may be found there. If not or if you do not understand something, then ask for help.
Look here for information concerning how to set up custom sides properly. It addresses your second question.
Remember, there is a topic stickied at the top of the SWBF2 Modding forum entitled The FAQ / Everything You Need Thread Version 2.0. It contains many links to various modding tutorials. Check it out before asking for help as the answers to your questions may be found there. If not or if you do not understand something, then ask for help.
