Looking for modding help [Solved]
Moderator: Moderators
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Looking for modding help [Solved]
Hey guys, first of all i want to thank u for reading this.
I just got started at modding , and ive surfed over and over the forum including the faqs and using the content in it in order to achieve my goal.
Well since i am a noob in modding my goal is still something small.
My goal is to give Secura's animations to maul.
Even tho ive been trying for days now i cant seem to change anything.
Certainly ive been interpreting ur teachings wrong.
If u guys dont have the patience to help me which i understand, could u send me the link of the tutorial on this matter? maybe ive been using the wrong threads , althought i think thats highly unprobable since the threads seem well organized and simple.
PS: The only programs needed for this little change are modtool and notepad right???
I just got started at modding , and ive surfed over and over the forum including the faqs and using the content in it in order to achieve my goal.
Well since i am a noob in modding my goal is still something small.
My goal is to give Secura's animations to maul.
Even tho ive been trying for days now i cant seem to change anything.
Certainly ive been interpreting ur teachings wrong.
If u guys dont have the patience to help me which i understand, could u send me the link of the tutorial on this matter? maybe ive been using the wrong threads , althought i think thats highly unprobable since the threads seem well organized and simple.
PS: The only programs needed for this little change are modtool and notepad right???
Last edited by Bulletkid on Wed Mar 25, 2015 6:47 pm, edited 2 times in total.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
First of all, yes, Notepad and the ModTools are all you will need. I'm not sure what you have done so far, but here's a quick summary of what you need to do in order to change a unit's animations:
1. Change Darth Maul's .odf file so his Animation property is the same as Aayla Secura's (should be spelled 'aalya' if I remember correctly).
2. Copy from the assets/sides/rep/munged folder the following files: aalya.anims, aalya.zaabin, and aalya.zafbin. Put them into your side's munged folder (e.g. data_ABC/sides/cis/munged).
3. Copy rep_hero_aayla.combo (I think that's what it's called) from the assets/sides/rep/odf folder and put it in your side's odf folder (data_ABC/sides/cis/odf).
What you do from here depends on what kind of weapon you want Darth Maul to have. If you want him to keep his double saber then you might need to change the contents of that .combo file in some way. Maybe someone else can tell you for sure?
If you want him to have two lightsabers just like Aayla, then copy over her lightsaber .odf from the Republic assets folder and put it in your odf folder. Now rename the prefix 'rep' to whatever you side name is, just to keep things tidy, e.g. cis_weap_hero_lightsabre_aayla.odf, or something similar (sorry, not at home right now so I can't verify file names).
Then go back into Maul's .odf file and change his first weapon name to match the name of that new .odf you just renamed. So now you've done everything you need to for the actual unit and weapon properties. Next...
4. Go to your data_ABC/common/scripts/ABC/ folder and open the script for your world (e.g. ABCc_con.lua). Scroll down to the part that says ReadDataFile("SIDE\\cis.lvl, ...") and simply add dc: before SIDE, so it looks like this: ReadDataFile("dc:SIDE\\cis.lvl, ... ")
If your side is not called cis then make sure you make this change to whatever side has your Darth Maul unit.
Then munge! Make sure Common is checked, and also choose EVERYTHING for Sides.
Before you munge make sure you have copied the Common side from assets/sides into data_ABC/sides/ or else you will get some nasty crashes. Hope this helps.
Happy modding!
1. Change Darth Maul's .odf file so his Animation property is the same as Aayla Secura's (should be spelled 'aalya' if I remember correctly).
2. Copy from the assets/sides/rep/munged folder the following files: aalya.anims, aalya.zaabin, and aalya.zafbin. Put them into your side's munged folder (e.g. data_ABC/sides/cis/munged).
3. Copy rep_hero_aayla.combo (I think that's what it's called) from the assets/sides/rep/odf folder and put it in your side's odf folder (data_ABC/sides/cis/odf).
What you do from here depends on what kind of weapon you want Darth Maul to have. If you want him to keep his double saber then you might need to change the contents of that .combo file in some way. Maybe someone else can tell you for sure?
If you want him to have two lightsabers just like Aayla, then copy over her lightsaber .odf from the Republic assets folder and put it in your odf folder. Now rename the prefix 'rep' to whatever you side name is, just to keep things tidy, e.g. cis_weap_hero_lightsabre_aayla.odf, or something similar (sorry, not at home right now so I can't verify file names).
Then go back into Maul's .odf file and change his first weapon name to match the name of that new .odf you just renamed. So now you've done everything you need to for the actual unit and weapon properties. Next...
4. Go to your data_ABC/common/scripts/ABC/ folder and open the script for your world (e.g. ABCc_con.lua). Scroll down to the part that says ReadDataFile("SIDE\\cis.lvl, ...") and simply add dc: before SIDE, so it looks like this: ReadDataFile("dc:SIDE\\cis.lvl, ... ")
If your side is not called cis then make sure you make this change to whatever side has your Darth Maul unit.
Then munge! Make sure Common is checked, and also choose EVERYTHING for Sides.
Before you munge make sure you have copied the Common side from assets/sides into data_ABC/sides/ or else you will get some nasty crashes. Hope this helps.
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
and yes i want to give him aayla double sword
btw whenever i paste the files from the assets into my sides folder should i rename it?
btw whenever i paste the files from the assets into my sides folder should i rename it?
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
It's up to you. If you do, make sure you also change any references to that file so that the names match. Just like in the example I gave with the lightsaber.
-
razac920
- 2nd Lieutenant

- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
Re: noob looking for help
I'm guessing that you want this modified Darth Maul character on a custom map? or stock map? At any rate, if that's ALL you want, you should be able to make those changes without having to make a custom side (though for most things you do and it is a good skill to have...)
If you go to data_***/Common/scripts/***/, find the era(s) and mode(s) you want these changes in, open those corresponding .lua files in notepad, make sure you load both Darth Maul and Aayla:
then use the LUA function "SetClassProperty" to make the changes to Darth Maul that you want, e.g.
In general the syntax is SetClassProperty([class],[property],[value]), where properties and values are found in .odf files
The one big limitation to this method is you cannot use SetClassProperty to modify weapon properties, only unit classes.
I've never tried switching out an animation set before, but I *think* it should work. And I know for a fact switching weapons does work. It's best to change properties in ScriptInit() not ScriptPostLoad(). Changing class weapons midgame (i.e. in ScriptPostLoad) will cause crashes in MP, and in SP works, but you need to respawn to get the new weapon.
If you go to data_***/Common/scripts/***/, find the era(s) and mode(s) you want these changes in, open those corresponding .lua files in notepad, make sure you load both Darth Maul and Aayla:
Code: Select all
ReadDataFile("SIDE\\rep.lvl",
"rep_hero_aalya")
ReadDataFile("SIDE\\cis.lvl",
"cis_hero_darthmaul")
Code: Select all
SetClassProperty("cis_hero_darthmaul","WeaponName1","rep_weap_lightsaber_aalya")
SetClassProperty("cis_hero_darthmaul","AnimationName","aalya")
The one big limitation to this method is you cannot use SetClassProperty to modify weapon properties, only unit classes.
I've never tried switching out an animation set before, but I *think* it should work. And I know for a fact switching weapons does work. It's best to change properties in ScriptInit() not ScriptPostLoad(). Changing class weapons midgame (i.e. in ScriptPostLoad) will cause crashes in MP, and in SP works, but you need to respawn to get the new weapon.
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
sorry for not awnsering with feedback, but when i munged it i got the level pack error, ive been trying to fix it.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
What happens in-game? Anything?
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
fixed the lvlpack error.
i made the changes u advised me and its crashing ingame, trying to fix it.
i made the changes u advised me and its crashing ingame, trying to fix it.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
Are you running the game from BF2_ModTools.exe? If so, can you copy and paste the contents of your BFront2.txt error log here for me to see?
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
for some reason that exe cant start, i have to copy the _LVL_PC file and the addme into the game.
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
Did you copy the exe into Battlefront II/GameData/ ?
Run it from there.
Run it from there.
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
OHHH lol its supposed to run it there? LOL
Edit: now it works offcourse thx
Edit: now it works offcourse thx
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
Yes, sorry, sometimes I assume that is common knowledge, when of course it isn't if you are relatively new to modding... 
If you haven't skimmed through the FAQ/Everything You Need thread be sure to do that at some point.
If you haven't skimmed through the FAQ/Everything You Need thread be sure to do that at some point.
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
it doesnt generate the bfront2.txt, i dont have compability files , and i checked the appdata path and nothing was there, is there some way to force its creation?
Edit: btw this only happens whenever i give him aaylas lightsaber, the animation files located in the munge folder and some odf. force powers i gave him , made no negative impact whatsoever.
Edit: GOT IT
btw: the game crashes 3 seconds after the team select menu appears
Edit: btw this only happens whenever i give him aaylas lightsaber, the animation files located in the munge folder and some odf. force powers i gave him , made no negative impact whatsoever.
Edit: GOT IT
Hidden/Spoiler:
btw: the game crashes 3 seconds after the team select menu appears
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
That's a strange one I haven't seen before. Do the stock maps or any other mod maps give you the same crash?
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
The funny thing is that it only happens when i change the lightsaber, so it got nothing to do with the maps, when i changed back the lightsaber to darthmauls original i didnt crash.
before it crashes i can see darthmauls lightsaber turned white, instead of having 2 lightsabers.
EDIT: OH WAIT A SECOND.... when u said
Edit2: already tried... made no difference whatsoever....
EDIT3
I can see now i forgot to do one of the things u mentioned... i didnt change any properties
before it crashes i can see darthmauls lightsaber turned white, instead of having 2 lightsabers.
EDIT: OH WAIT A SECOND.... when u said
was it supposed for me to transfer correspondent msh file?"If you want him to have two lightsabers just like Aayla, then copy over her lightsaber .odf from the Republic assets folder and put it in your odf folder. Now rename the prefix 'rep' to whatever you side name is, just to keep things tidy, e.g. cis_weap_hero_lightsabre_aayla.odf, or something similar (sorry, not at home right now so I can't verify file names).
Then go back into Maul's .odf file and change his first weapon name to match the name of that new .odf you just renamed. So now you've done everything you need to for the actual unit and weapon properties. Next..."
Edit2: already tried... made no difference whatsoever....
EDIT3
I can see now i forgot to do one of the things u mentioned... i didnt change any properties
-
jedimoose32
- Field Commander

- Posts: 938
- Joined: Thu Jan 24, 2008 12:41 am
- Projects :: Engineering Degree
- Location: The Flatlands of Canada
Re: noob looking for help
That would be a problem. Does it work now?
-
Bulletkid
- Private Recruit
- Posts: 24
- Joined: Sun Mar 15, 2015 7:31 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: noob looking for help
im not sure what is the full extent of the properties, how far they go?
ps: are the tentacles really necessary...?
Hidden/Spoiler:
ps: are the tentacles really necessary...?
-
razac920
- 2nd Lieutenant

- Posts: 365
- Joined: Sun Jan 16, 2011 12:42 am
Re: noob looking for help
The only edits you need to make to the Darth Maul odf are switching WeaponName1 to "rep_weap_lightsaber_aalya" and switching/adding AnimationName to "aalya". That's it. Like I previously said, you could make this edits in the script itself, rather than a custom side. If you do want to make a custom side, you have the choice of either copying over all the necessary Darth Maul/Aalya assets to this custom side, or you can just make a minimal custom side that only contains a darth maul .odf file and a darth maul .req file. If you are having trouble finding all the assets to copy over, this could be simple: just make sure to load the stock darth maul and aalya in your script before loading your custom darth maul.
-
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: noob looking for help
I know this might not help much NOW, but I have also recently gotten into modding and I experienced the same crash that happens a few seconds after the map starts. I had made a backup though of my data_ABC folder and my ABC folder in the addon folder though. From what I can tell, the crash will just start happening after messing around sometimes. How far into your mod were you? If you are not that far it might just be best to start over and make backups. Sorry I can't help more D:
