How do I add a custom units and heroes into my mod? [Solved]
Moderator: Moderators
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
I got ninja'd... I had typed out 75% of the instructions when my phone buzzed with the notification email that you had responded. Oh well.
Sandtrooper, follow his instructions as closely as possible. If you still can't get it I will record a short video showing/explaining the process and upload it to Youtube for you. I know I am a visual/kinesthetic learner so I learn new things better when I can do them while watching someone else do the same thing.
Sandtrooper, follow his instructions as closely as possible. If you still can't get it I will record a short video showing/explaining the process and upload it to Youtube for you. I know I am a visual/kinesthetic learner so I learn new things better when I can do them while watching someone else do the same thing.
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
@jedimoose32 That is how I am as well! That would be great anothonybf2 is also helping me a lot XD
EDIT
Awesome! One question so far: when you made the tcw folder where did you copy common from? (there are so many common folders)
EDIT
Awesome! One question so far: when you made the tcw folder where did you copy common from? (there are so many common folders)
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
In this case, he means assets/sides/common.
You're right, there are lots of common folders.
You're right, there are lots of common folders.
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
For the animations part, should I put the folders munged and pre munged into the munged in tcw folder or the contents of both munged and pre munged into munged in tcw folder? So another way of saying this is should the contents of munged and pre munged by Nedaarb7 be together in the munged folder or should I put the munged and pre munged folders with contents in them into my mods munged folder? Lol that gets confusing.
EDIT
And looking in the odf files for the characters name I see both TCWdhmaul and tcwmaul, which should I use? tcwmaul one does have a .combo at the end though so it might be TCWdhmaul.
EDIT
And looking in the odf files for the characters name I see both TCWdhmaul and tcwmaul, which should I use? tcwmaul one does have a .combo at the end though so it might be TCWdhmaul.
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: How do I add a custom units and heroes into my mod?
You want the name of the character odf.
The combo file is just how the lightsaber moves and what you can do while attacking.
Note
the same name should be applied in map script, req codes, odf name/combo, etc.
The combo file is just how the lightsaber moves and what you can do while attacking.
Note
the same name should be applied in map script, req codes, odf name/combo, etc.
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
Okay cool but what about the first question I had. Should I put put munged and pre-munged into munged or the contents of those two folders into munged?
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
Only the contents of munged go into munged. The premunged folder contains raw animation files that you would use if you wanted to create a custom animation bank.
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
Okay, I did everything and it still didn't work. I think where I messed up was this part: Then in map code used ReadDataFile("dc:SIDE\\tcw.lvl", "tcw_what_ever_name_Was") Then put the same character string for SetHeroClass. Could you give me some pictures and stuff. I am supposed to be editing ABCc_con in data_ABC, Common, scripts, ABC right? I also don't really know exactly where I need to put the ReadDataFile script so a couple of screenies might help. It would also be nice to know if TCWdhmaul is the right name or not, because it is the one I have been using for all of this.
EDIT
And it may not make sense to you but when you put in something like "tcw_what_ever_name_Was" it kinda throws me off and confuses me.
And does it matter if these are spaced out or not:
ucft
{
REQN
{
"class"
"cis_hero_tcwdmaul"
}
}
EDIT2
One other thing. Should the .req file in data_ABC, Sides, tcw, req be called TCWdhmaul and have this for the the text inside:
ucft
{
REQN
{
"lvl"
"tcw_inf_TCWdhmaul"
}
}
or is something wrong in here. "tcw" part in this used to be gam and TCWdhmaul used to say gamorrean or something. Maybe "lvl" should say "class" and when you enter stuff on this forum it isn't spaced out a few. Maybe it should be?
EDIT
And it may not make sense to you but when you put in something like "tcw_what_ever_name_Was" it kinda throws me off and confuses me.
And does it matter if these are spaced out or not:
ucft
{
REQN
{
"class"
"cis_hero_tcwdmaul"
}
}
EDIT2
One other thing. Should the .req file in data_ABC, Sides, tcw, req be called TCWdhmaul and have this for the the text inside:
ucft
{
REQN
{
"lvl"
"tcw_inf_TCWdhmaul"
}
}
or is something wrong in here. "tcw" part in this used to be gam and TCWdhmaul used to say gamorrean or something. Maybe "lvl" should say "class" and when you enter stuff on this forum it isn't spaced out a few. Maybe it should be?
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: How do I add a custom units and heroes into my mod?
The ReadDataFile should scan what ever the name is on odf/req files.
I'm sorry for using an example name but I can't remember tech names for things.
The .req in data_mod\sides\tcw should be
ucft
{
REQN
{
"lvl"
"cis_hero_TCWdhmaul"
}
}
The character specific .req should be named cis_hero_TCWdhmaul
with this data (located in data_mod\sides\tcw\req folder)
ucft
{
REQN
{
"class"
"cis_hero_TCWdhmaul"
}
}
That's also the name you read on the map code and put for SetHeroClass
Note
When Read Data File finds "cis_hero_TCWdhmaul" , it looks in "tcw.lvl" or the name of the side file, it then looks to the side.req file which calls the character specific files, which goes and grabs the odf.
Odf file finds models, textures, animations etc.
This is kinda how the game finds something.
ReadDataFile> tcw.req> cis_hero_TCWdhmaul.req> cis_hero_TCWdhmaul.odf
I'm sorry for using an example name but I can't remember tech names for things.
The .req in data_mod\sides\tcw should be
ucft
{
REQN
{
"lvl"
"cis_hero_TCWdhmaul"
}
}
The character specific .req should be named cis_hero_TCWdhmaul
with this data (located in data_mod\sides\tcw\req folder)
ucft
{
REQN
{
"class"
"cis_hero_TCWdhmaul"
}
}
That's also the name you read on the map code and put for SetHeroClass
Note
When Read Data File finds "cis_hero_TCWdhmaul" , it looks in "tcw.lvl" or the name of the side file, it then looks to the side.req file which calls the character specific files, which goes and grabs the odf.
Odf file finds models, textures, animations etc.
This is kinda how the game finds something.
ReadDataFile> tcw.req> cis_hero_TCWdhmaul.req> cis_hero_TCWdhmaul.odf
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
Could you give me screenshots of the inside of both .req files and a screenshots of the ReadDatafile code? And again, should the the text in the .req files be spaced out at all? And what is the name of the .req inside the req folder?
EDIT
And the thing in the SIDE folder of addon should be called tcw.lvl right?
EDIT2
And is the .req file in tcw supposed to be called tcw.req? Thats what I have.
EDIT
And the thing in the SIDE folder of addon should be called tcw.lvl right?
EDIT2
And is the .req file in tcw supposed to be called tcw.req? Thats what I have.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
Sit tight my friend... I'm uploading a video tutorial to YouTube right now. I'll post it here when it's done in about 5 minutes.
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
So in your tutorial everything works fine? Really though, both of you, thank you SO much for helping and continuing to help me throughout my newbieness XD Hopefully I wont have to many more questions after this video.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
See for yourself: HERE
I hate hearing my own voice in videos, I sound like 5 years younger than my age...
Edit: Sorry for the not-so-great video quality. I tried a few different screen recorders and this was the first one I found that didn't make all my actions extremely laggy.
I hate hearing my own voice in videos, I sound like 5 years younger than my age...
Edit: Sorry for the not-so-great video quality. I tried a few different screen recorders and this was the first one I found that didn't make all my actions extremely laggy.
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
Lol we all hate our own voice. I'm going to watch the video now, thanks!
EDIT
I did exactly as you did in the video but it STILL didn't work..... I honestly don't get what i'm doing wrong.
EDIT
I did exactly as you did in the video but it STILL didn't work..... I honestly don't get what i'm doing wrong.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
How long is your munge taking? If it's really fast or gives you any weird errors then you need to apply the Vista Munge fix.
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: How do I add a custom units and heroes into my mod?
When it comes to modding, I'd listen to a frog high on meth as long as I could learn something.
Anyway Jedimoose, if you wanna play the regular game faster, make shortcut for BattlefrontII.exe and in target path add /win /nointro
What he did in the video is exactly what I did and made the new Maul playable.
If you can't fix it sooner or later, I'll remake it and just send you the compiled .lvl file.
Anyway Jedimoose, if you wanna play the regular game faster, make shortcut for BattlefrontII.exe and in target path add /win /nointro
What he did in the video is exactly what I did and made the new Maul playable.
If you can't fix it sooner or later, I'll remake it and just send you the compiled .lvl file.
Last edited by AnthonyBF2 on Tue Mar 17, 2015 1:07 am, edited 1 time in total.
-
Sandtrooper956
- Corporal

- Posts: 158
- Joined: Thu Jul 31, 2014 3:58 pm
- Projects :: Just some little things
- xbox live or psn: No gamertag set
Re: How do I add a custom units and heroes into my mod?
I already used the vista munge fix a while back to fix that problem. I am really freaking confused right now.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
That's a neat trick. Thanks. Is there a way to get the full version to print to the BFront2 log as well? Because that's really the main reason I use the modtools version...anthonybf2 wrote:Anyway Jedimoose, if you wanna play the regular game faster, make shortcut for BattlefrontII.exe and in target path add /win /nointro.
- AnthonyBF2
- Sith

- Posts: 1255
- Joined: Wed Aug 21, 2013 3:55 pm
- Projects :: PS2+PSP Overhaul
Re: How do I add a custom units and heroes into my mod?
Regular game cannot print the file, how ever you can use the Black Bag Ops server manager to run the mod on Internet/LAN, and join. You can play regular game but you'll be online, how ever the server itself makes an error text
To put a mod map in server manager just make folder "addon" inside Star Wars Battlfront II PC Server, copy mod to addon and run swbf22sm.exe in MAPS tab you'll see the mission names. Server only detects eli,con,ctf,1flag and assault.
I don't mean to hijack the topic here but I really feel these are things people should know that most probably do not, well those who never used the server tool.
Edit, oh wow I forgot
IN target path for BattlefrontII.exe you can load the game directly to a level if you add the mission name.
ex. /win /nointro tat2g_eli
Now you can play like instantly xD
To put a mod map in server manager just make folder "addon" inside Star Wars Battlfront II PC Server, copy mod to addon and run swbf22sm.exe in MAPS tab you'll see the mission names. Server only detects eli,con,ctf,1flag and assault.
I don't mean to hijack the topic here but I really feel these are things people should know that most probably do not, well those who never used the server tool.
Edit, oh wow I forgot
IN target path for BattlefrontII.exe you can load the game directly to a level if you add the mission name.
ex. /win /nointro tat2g_eli
Now you can play like instantly xD
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: How do I add a custom units and heroes into my mod?
Very good to know. Won't work for my current project since my mod falls well outside the normal gamemodes and eras, but I'll keep that in mind. Edit: Wow, that's awesome. I'll create a separate shortcut for my mod project!! :runaround:
Back on-topic... Sandtrooper, can you please post the contents of the following files (be sure to use hide tags and code tags):
- jdi.req (I'm assuming you used jdi? If not then substitute your side's code)
- jdi_hero_TCWdhmaul.req
- ABCc_con.lua
- your error log (try to run the map in BF2_ModTools, then show us the contents of <bf2 install directory>\GameData\BFront2.txt)
Back on-topic... Sandtrooper, can you please post the contents of the following files (be sure to use hide tags and code tags):
- jdi.req (I'm assuming you used jdi? If not then substitute your side's code)
- jdi_hero_TCWdhmaul.req
- ABCc_con.lua
- your error log (try to run the map in BF2_ModTools, then show us the contents of <bf2 install directory>\GameData\BFront2.txt)
