2 Questions [Solved]
Moderator: Moderators
-
Hill400
- Private First Class
- Posts: 81
- Joined: Wed Jun 11, 2014 4:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: New England, USA
2 Questions [Solved]
Hello,
I have 2 questions that should be simple for most, but I can't seem to figure them out for the life of me.
1) How do you change a class' name?
2) How to change heroes on existing maps by modifying the lua files?
I'm sorry if I'm being a nuisance by posting this. Thanks for any help anyone can lend.
I have 2 questions that should be simple for most, but I can't seem to figure them out for the life of me.
1) How do you change a class' name?
2) How to change heroes on existing maps by modifying the lua files?
I'm sorry if I'm being a nuisance by posting this. Thanks for any help anyone can lend.
Last edited by Hill400 on Thu Jul 17, 2014 4:11 pm, edited 1 time in total.
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: 2 Questions
1. http://www.gametoast.com/viewtopic.php?t=971
2. look at the side's .req file. See the name of the hero you want. Load that hero with the side like any other unit in the lua. Change the name of the addheroclass part of the lua to your hero.
2. look at the side's .req file. See the name of the hero you want. Load that hero with the side like any other unit in the lua. Change the name of the addheroclass part of the lua to your hero.
-
Hill400
- Private First Class
- Posts: 81
- Joined: Wed Jun 11, 2014 4:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: New England, USA
Re: 2 Questions
1) Great- thanks!
2) I'm still a little confused (sorry), let's say for example you want to change the hero from Pilot Luke to Han Solo (on shipped Hoth). How would go about doing that? Which file(s) or folder(s) would you move and/or edit? Thanks once again, I really appreciate the help.
2) I'm still a little confused (sorry), let's say for example you want to change the hero from Pilot Luke to Han Solo (on shipped Hoth). How would go about doing that? Which file(s) or folder(s) would you move and/or edit? Thanks once again, I really appreciate the help.
- SpartanA259
- Captain

- Posts: 498
- Joined: Tue Jul 19, 2011 2:47 pm
- Projects :: Orion City
- xbox live or psn: Steam: [404] Ash
- Location: New Reno, Nevada
Re: 2 Questions
*** = Three Letter Map ID
I am assuming you have set the map up so you are editing the stock Hoth map.
In BF2_ModTools/assets/sides you'd copy the folder named "all" and paste it in your maps sides folder in BF2_ModTools/data_***/sides.
Next in the "all" folder you would open up the all.req and look for the unit named "all_hero_hansolo_tat".
In your LUA located in BF2_ModTools/data_***/Common/scripts/*** open up the the hot1g_con file.
Scroll a bit down and you'll see
Change it to this:
Then change this line:
To this
Save then munge
Hopefully that helps.
I am assuming you have set the map up so you are editing the stock Hoth map.
In BF2_ModTools/assets/sides you'd copy the folder named "all" and paste it in your maps sides folder in BF2_ModTools/data_***/sides.
Next in the "all" folder you would open up the all.req and look for the unit named "all_hero_hansolo_tat".
In your LUA located in BF2_ModTools/data_***/Common/scripts/*** open up the the hot1g_con file.
Scroll a bit down and you'll see
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hidden/Spoiler:
Hopefully that helps.
-
razac920
- 2nd Lieutenant

- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
Re: 2 Questions
You don't need to copy the folder "all" to do that, just make any map, and replace the contents of one of your LUA files you get, for example ***g_con, etc. with the hot1g_con.lua contents from assets, then modify it however you want.
-
Hill400
- Private First Class
- Posts: 81
- Joined: Wed Jun 11, 2014 4:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: New England, USA
Re: 2 Questions
Thank you all for the help but I must not be following your directions properly, because I can't seem to get it to work. I took hot1g_con.lua from assets/scripts/hot and moved it to data_***/common/scripts/***, made the correct changes to the script, and see no changes in the game when it's all munged and I try to run it.
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: 2 Questions
it has to be in YOUR map's script. The script you copied will not be read. You can rename the hot1g_con to your map's script and it will work.
-
Hill400
- Private First Class
- Posts: 81
- Joined: Wed Jun 11, 2014 4:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: New England, USA
Re: 2 Questions
Ok, thanks again. Out of curiosity, how do modders change it so that they can have multiple changes to multiple luas in their packs? If it's too complex don't bother explaining it to me, but thanks anyway.
-
Marth8880
- Resistance Leader
- Posts: 5042
- Joined: Tue Feb 09, 2010 8:43 pm
- Projects :: DI2 + Psychosis
- xbox live or psn: Marth8880
- Location: Edinburgh, UK
- Contact:
Re: 2 Questions
What do you mean?Hill400 wrote:how do modders change it so that they can have multiple changes to multiple luas in their packs?
-
Hill400
- Private First Class
- Posts: 81
- Joined: Wed Jun 11, 2014 4:50 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
- Location: New England, USA
Re: 2 Questions
Don't worry about it, I'm having issues explaining it myself. Frankly, it doesn't matter that much to me and I'd be wasting your time if I tried to explain it. Thanks for your concern though.
- commanderawesome
- Field Commander

- Posts: 971
- Joined: Tue Aug 13, 2013 11:58 pm
- Projects :: Skin Changer - Warfront - Other stuff
- xbox live or psn: AaTc_CmdrAwesome
- Location: The Universe
Re: 2 Questions
No it doesn't, I did that with my Local Wars mod. You just have to load the script in the addme.lua, like so:MileHighGuy wrote:it has to be in YOUR map's script. The script you copied will not be read. You can rename the hot1g_con to your map's script and it will work.
Hidden/Spoiler:
-
MileHighGuy
- Jedi

- Posts: 1194
- Joined: Fri Dec 19, 2008 7:58 pm
Re: 2 Questions [Solved]
I know that is true, I was just making it easy for him.
- commanderawesome
- Field Commander

- Posts: 971
- Joined: Tue Aug 13, 2013 11:58 pm
- Projects :: Skin Changer - Warfront - Other stuff
- xbox live or psn: AaTc_CmdrAwesome
- Location: The Universe
Re: 2 Questions [Solved]
Oh, ok.
