Switch Rebel snipers through ODF? [Solved]

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Alexrd
Lance Corporal
Posts: 99
Joined: Fri Nov 06, 2009 1:42 pm
Projects :: Phase I Clone Trooper Mod
Location: Portugal

Switch Rebel snipers through ODF? [Solved]

Post by Alexrd »

Is there a way where I can switch the sniper girl by the sniper man (Tantive IV), through the .odf files?
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Rebel snipers

Post by skelltor »

Yes open the male snipers odf and replace the females with the males odf.
User avatar
Alexrd
Lance Corporal
Posts: 99
Joined: Fri Nov 06, 2009 1:42 pm
Projects :: Phase I Clone Trooper Mod
Location: Portugal

Re: Rebel snipers

Post by Alexrd »

Didn't work.
User avatar
skelltor
Sith
Sith
Posts: 1431
Joined: Fri Dec 11, 2009 6:24 pm
Projects :: BFSM
Games I'm Playing :: SWBFII
xbox live or psn: skelltor95
Location: minisnowta
Contact:

Re: Rebel snipers

Post by skelltor »

did u munge and put the new lvl in game?
User avatar
RED51
Jedi
Jedi
Posts: 1024
Joined: Sun Sep 07, 2008 6:25 pm
Games I'm Playing :: SWBFII

Re: Rebel snipers

Post by RED51 »

This is actually very simple to do. The male and female snipers are different entitles, which can be summoned by the LUA through their REQ files.
Here is the male sniper REQ:
"all_inf_sniper_fleet"
Call him through your LUA, and you now have a male sniper, ya sexist(just messing around, :P )!

edit:
Just realized that you meant through the ODF, but the REQ is much more sufficient, unless you require ODF changes, but even then, just edit the "all_inf_sniper_fleet" ODF files.
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Rebel snipers

Post by Fiodis »

Hang on, now. What exactly are you trying to do? Switch which unit is used for the stock map and era? Switch the unit in a custom era/map? What?
User avatar
Alexrd
Lance Corporal
Posts: 99
Joined: Fri Nov 06, 2009 1:42 pm
Projects :: Phase I Clone Trooper Mod
Location: Portugal

Re: Rebel snipers

Post by Alexrd »

skelltor wrote:did u munge and put the new lvl in game?
I munged, but it didn't worked. I wouldn't put the new lvl in game if it doesn't work in my map.
Fiodis wrote:Hang on, now. What exactly are you trying to do? Switch which unit is used for the stock map and era? Switch the unit in a custom era/map? What?
Both. If it works on my map, I just have to change the lvl of the alliance side for the in game lvl.
RED51 wrote:This is actually very simple to do. The male and female snipers are different entitles, which can be summoned by the LUA through their REQ files.
Here is the male sniper REQ:
"all_inf_sniper_fleet"
Call him through your LUA, and you now have a male sniper, ya sexist(just messing around, :P )!

edit:
Just realized that you meant through the ODF, but the REQ is much more sufficient, unless you require ODF changes, but even then, just edit the "all_inf_sniper_fleet" ODF files.
Through the REQ, will it change the in game units?
User avatar
hunting shadow
Private First Class
Posts: 79
Joined: Sun Jan 18, 2009 11:37 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Somewhere in the wilderness of Mandalore
Contact:

Re: Rebel snipers

Post by hunting shadow »

@1: do you call for the edited side in your lua? like this:
Hidden/Spoiler:
[code]ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper", -assuming you copied over the male snipers ODF Content into the female ones
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat")[/code]
@2: doing so may break your online compatibility, because your female sniper would call for a diffrent .msh than the one of the other players. I say may because I'm not sure about it and i already made the experience that you can do quite a lot of stuff to your sides without braking compatibility. Imho the best way: deleting the female mesh, copying the male mesh and rename it so that it has got the same name as the former female mesh. This way, you would definitly keep your Compatibility and you wouldn't need to bother with the req, lua or odf.

@3: Supposing you mean the units on the stock maps with "in game units" then the answer is no. You would need to call for the req in the missions lua, and calling for a diffrent unit as stock on stock maps will definitly prevent you from playing online. it is much easier to do like i described above, to replace the meshes.
User avatar
Alexrd
Lance Corporal
Posts: 99
Joined: Fri Nov 06, 2009 1:42 pm
Projects :: Phase I Clone Trooper Mod
Location: Portugal

Re: Rebel snipers

Post by Alexrd »

hunting shadow wrote:@1: do you call for the edited side in your lua? like this:
Hidden/Spoiler:
[code]ReadDataFile("dc:SIDE\\all.lvl",
"all_inf_rifleman",
"all_inf_rocketeer",
"all_inf_sniper", -assuming you copied over the male snipers ODF Content into the female ones
"all_inf_engineer",
"all_inf_officer",
"all_inf_wookiee",
"all_hero_hansolo_tat")[/code]
Got it done. Forgot to add "dc:" on the lua.

So, I copied the whole male sniper .odf content, and pasted it over the girl sniper .odf content, added the "dc:" on the .lua, munged, replaced the all.lvl of my map by the all.lvl of the game and it works on the whole game, multiplayer included.

Thanks for the help.

EDIT: Now I can't delete my map. It says the folder is open in another program... Any tips?
Last edited by Alexrd on Tue Mar 30, 2010 9:35 am, edited 1 time in total.
User avatar
Teancum
Jedi Admin
Jedi Admin
Posts: 11080
Joined: Wed Sep 07, 2005 11:42 pm
Projects :: No Mod project currently.
Games I'm Playing :: Destiny
xbox live or psn: No gamertag set
Location: Indiana

Re: Rebel snipers

Post by Teancum »

Reboot, then delete.
User avatar
Alexrd
Lance Corporal
Posts: 99
Joined: Fri Nov 06, 2009 1:42 pm
Projects :: Phase I Clone Trooper Mod
Location: Portugal

Re: Rebel snipers

Post by Alexrd »

Done. Thanks. ;)
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Rebel snipers

Post by Maveritchell »

Teancum wrote:Reboot, then delete.
http://ccollomb.free.fr/unlocker/
Quicker than rebooting.
Post Reply