Page 1 of 1

Switch Rebel snipers through ODF? [Solved]

Posted: Mon Mar 29, 2010 4:59 pm
by Alexrd
Is there a way where I can switch the sniper girl by the sniper man (Tantive IV), through the .odf files?

Re: Rebel snipers

Posted: Mon Mar 29, 2010 5:12 pm
by skelltor
Yes open the male snipers odf and replace the females with the males odf.

Re: Rebel snipers

Posted: Mon Mar 29, 2010 5:18 pm
by Alexrd
Didn't work.

Re: Rebel snipers

Posted: Mon Mar 29, 2010 6:19 pm
by skelltor
did u munge and put the new lvl in game?

Re: Rebel snipers

Posted: Mon Mar 29, 2010 6:19 pm
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.

Re: Rebel snipers

Posted: Mon Mar 29, 2010 7:53 pm
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?

Re: Rebel snipers

Posted: Tue Mar 30, 2010 6:53 am
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?

Re: Rebel snipers

Posted: Tue Mar 30, 2010 7:27 am
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.

Re: Rebel snipers

Posted: Tue Mar 30, 2010 7:48 am
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?

Re: Rebel snipers

Posted: Tue Mar 30, 2010 8:15 am
by Teancum
Reboot, then delete.

Re: Rebel snipers

Posted: Tue Mar 30, 2010 8:35 am
by Alexrd
Done. Thanks. ;)

Re: Rebel snipers

Posted: Tue Mar 30, 2010 1:27 pm
by Maveritchell
Teancum wrote:Reboot, then delete.
http://ccollomb.free.fr/unlocker/
Quicker than rebooting.