No award weapons in custom map [Solved]
Moderator: Moderators
-
Cattermelon
- Private
- Posts: 41
- Joined: Mon Aug 28, 2017 12:14 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
No award weapons in custom map [Solved]
I made a custom map, and everything is working properly, except that I can't unlock any of the award weapons. I'm really new to the modding community, so I don't really have any more information to give. Sorry, lol!
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: No award weapons in custom map
take a look at the stock weapons for reference.
For those weapons are the award weapon and the ability to gain the award enabled
For those weapons are the award weapon and the ability to gain the award enabled
-
Cattermelon
- Private
- Posts: 41
- Joined: Mon Aug 28, 2017 12:14 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: No award weapons in custom map
Like, check in the odf files for the stock weapons? I did, and there's no lines of code for unlocking the corresponding award weapons.
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: No award weapons in custom map
well, there is. Look for something like LockForMedalsType = "only available if you gain the award" and ScoreForMedalsType = "gain the award"
or something similar to that. I don't have the exact names in mind and I'm not on my desktop computer at the moment.
or something similar to that. I don't have the exact names in mind and I'm not on my desktop computer at the moment.
-
Cattermelon
- Private
- Posts: 41
- Joined: Mon Aug 28, 2017 12:14 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: No award weapons in custom map
I checked all the odf files for that sides stock weapons, and none of them had a line of code that resembled that at all. As a matter of fact, I checked another sides stock weapons odf's and the code isn't in those either.
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: No award weapons in custom map
com_weap_award_rifle.odf
com_weap_inf_rifle.odf
pretty sure you didn't checked the base classes. Do you understand the heritage concept??
Hidden/Spoiler:
Hidden/Spoiler:
pretty sure you didn't checked the base classes. Do you understand the heritage concept??
-
Cattermelon
- Private
- Posts: 41
- Joined: Mon Aug 28, 2017 12:14 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: No award weapons in custom map
yeah, I understand the heritage concept, i just didn't notice those files had a parent class. Should I have copied the folder containing the file you mentioned into my maps sides folder? Also, I just realized while testing something on my map that I get the award rifle, but no other award weapons.
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: No award weapons in custom map
Of course you need the common files from the common folder as well. You can check for parent files in the first or 2nd line. Actually you should always look through the whole file and find things like com_inf_... or rep_weap_.. everything with a _ in it references a file and that file is needed in your project. Otherwise there can be munge or runtime errors.
Best way to get all files needed is starting with the req file that references the off file and from there you check every parent or child files and the same for those until there are no more parents or childs. Later, after you understand the structure better it will be more easy to you to get all files you need because you know exactly what you want.
Simply copying the common folder from the assets is no solution, because they needn't be complete and your project is wasted by unused - and as such unneeded - stuff.
Best way to get all files needed is starting with the req file that references the off file and from there you check every parent or child files and the same for those until there are no more parents or childs. Later, after you understand the structure better it will be more easy to you to get all files you need because you know exactly what you want.
Simply copying the common folder from the assets is no solution, because they needn't be complete and your project is wasted by unused - and as such unneeded - stuff.
-
Cattermelon
- Private
- Posts: 41
- Joined: Mon Aug 28, 2017 12:14 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: No award weapons in custom map
So you're saying that I need to find the first parent file for all the award weapons, then find all the odf files they reference, and then find all the odf files THEY reference, etc., until there are no more files being referenced, and then copy them all to my worlds sides folder. Is that correct?
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: No award weapons in custom map
Start with your side's req file (rep_inf_ep2_rifleman.req) as an example.
So you see it references the rep_inf_ep2_rifleman(.odf) file
In this file you find the ClassParent rep_inf_default_rifleman, the IconTexture rep_trooper_icon, and the both mesh files rep_inf_trooper and rep_inf_trooper_low1
So copy the both mesh files with all textures, .tga.option and .msh.option files
The IconTexture is as far as i remember in the common or ingame, so as long as you don't make your own of this, you don't need to care about that (it is this little arrow on the map)
Ok, so next you find all weapons for this unit, go and copy these odf files, too. And the rep_inf_default.odf. In the com_inf_default, that is referenced in the rep_inf_default, is nothing you need to take care as long as you don't go too much in detail.
You need the geometries, classparent and ordnance files here. And so you go on and on until nothing is left. In the ordnance you'll find something like this LaserTexture = "com_sfx_laser_blue" you find it in the effect folder and is needed as well.
Here is a list of what you need to search for in an odf file
*.odf
- Parent (odf or hardcoded class)
- property odf
- property mesh
- property textures
- property effects
and here in a effect file
*.fx
- texture (.tga)
Structure in general:
Side.req (1x)
- unit.req (0 to infinit)
- unitFP(optional)
- unit.odf (1)
- parent
- weapons
where a weapon has in general those files:
rifle, blaster:
base.odf
base_ord.odf
Rocketlauncher, grenades,..
base.odf
base_ord.odf
base_exp.odf
I hope this makes the start a little bit easier to you
Hidden/Spoiler:
Hidden/Spoiler:
So copy the both mesh files with all textures, .tga.option and .msh.option files
The IconTexture is as far as i remember in the common or ingame, so as long as you don't make your own of this, you don't need to care about that (it is this little arrow on the map)
Hidden/Spoiler:
Hidden/Spoiler:
Here is a list of what you need to search for in an odf file
*.odf
- Parent (odf or hardcoded class)
- property odf
- property mesh
- property textures
- property effects
and here in a effect file
*.fx
- texture (.tga)
Structure in general:
Side.req (1x)
- unit.req (0 to infinit)
- unitFP(optional)
- unit.odf (1)
- parent
- weapons
where a weapon has in general those files:
rifle, blaster:
base.odf
base_ord.odf
Rocketlauncher, grenades,..
base.odf
base_ord.odf
base_exp.odf
I hope this makes the start a little bit easier to you
-
Cattermelon
- Private
- Posts: 41
- Joined: Mon Aug 28, 2017 12:14 pm
- Projects :: No Mod project currently.
- xbox live or psn: No gamertag set
Re: No award weapons in custom map
Your solution worked! Thank you so much for the help!
- Anakin
- Master of the Force

- Posts: 4817
- Joined: Sat Sep 19, 2009 11:37 am
- Projects :: RC Side Mod - Remastered - SWBF3 Legacy
- Location: Mos Espa (germany)
Re: No award weapons in custom map [Solved]
you're welcome
