OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: DMN on 15 Feb 2004, 19:26:42

Title: Changing East to West (and vis versa)
Post by: DMN on 15 Feb 2004, 19:26:42
Does anybody know of a tool that will let be change the sides of units (men, cars etc) from east to west/ west to east?

The reason I ask is I got some of the excellent British troops from:

http://malvinas.cazadoresdemonte.com.ar/

but the only problem is that being an Argentinian mod, the british troops come up under East, not West. As I want to use them with other mods is there anything out there I can use to change their side to West?
Title: Re:Changing East to West (and vis versa)
Post by: Kaliyuga on 15 Feb 2004, 20:03:42
 use the old trick:

create an officer of the side you want your guys to be on...

group your dudes to the officer... and type this in his init line:

deletevehicle this

then the mission will start.. the officer will get deleted and then the next highest dude will take command of the group all the while still believing he 's on the side of the dead officer..

:cheers:
Title: Re:Changing East to West (and vis versa)
Post by: DMN on 16 Feb 2004, 12:47:10
Thanks for the reply.

I only have the editor that comes with the GOTY edtion, will that work with this?

Nice HST quote by the way, though I prefer:

"When the going gets wierd, the wierd turn pro."
Title: Re:Changing East to West (and vis versa)
Post by: macguba on 16 Feb 2004, 13:17:01
AFAIK this trick works with all versions of OFP.

Whichever one you're using, it's worth heading over to the official OFP site  (http://www.flashpoint1985.com)and upgrading to the latest version.    1.91 full from the download page or 1.96 beta from the forums.
Title: Re:Changing East to West (and vis versa)
Post by: DMN on 18 Feb 2004, 18:43:27
This trick does not seem to work in the GOTY edtion. I have all the latest patches etc.

Is there not a PBO editor that can be used?
Title: Re:Changing East to West (and vis versa)
Post by: Loup-Garou on 18 Feb 2004, 20:52:47
This trick must work : perhaps check the rank of the "deleted" officer (must be higher than the player's one).  ;)
Title: Re:Changing East to West (and vis versa)
Post by: macguba on 18 Feb 2004, 21:14:20
It should work - as Loup-Garou says, make sure that the officer to be deleted is the group leader.   Try making it work without deleting him, that way it will be easier to check what's going on.

As an alternative you can of course hack the mission.sqm.
Title: Re:Changing East to West (and vis versa)
Post by: timebandit on 12 Apr 2004, 11:07:00
I've been fiddling with the same thing - though I've been changing British West units to East to fit in with the cazadores scheme.

You need to De-PBO the addon and open the config (.cpp) file.

Edit this by going to the "units class" part and changing "SoldierE2 to "SoldierW" (or vice versa, depending on whether you want to ed up with soldiers on the West or East side).

Then go down to the "class CfgGroups" part and change "class East { name="East";" to "class West {name="West";" (or vice versa, as desired).

Below that, in the same part, change "side" from "0" to "1" (or v.v.).

Now re_PBO the files and put the new .pbo file in your addons folder and restart the editor.

I used  the "Make PBO"  and  "PBO Decryptor" tools by Amalfi [petr.skalsky@seznam.cz].

If it doesn't work for all the units in a given addon, check the "config" file again to make sure you didn't miss any "E"/"W" designators.

I hope this solves your problem.
Title: Re:Changing East to West (and vis versa)
Post by: Kuro on 13 Apr 2004, 06:15:50
More easy solution,

open your mission.sqm and edit the side directly.

in your mission.sqm you have:
...
class Item0
      {
                 
                 position[]={9002.005859,71.809998,4216.137207};
               azimut=355.000000;
               id=0;
               side="WEST";
               vehicle="BAS_DeltaOperator2DES";
               player="PLAYER COMMANDER";
               leader=1;
               skill=0.600000;
...


If you delete the "WEST" and overwrite it with "EAST"  the unit has changed side. Easy , isnt  it ?


Greating
Kuro
Title: Re:Changing East to West (and vis versa)
Post by: Loup-Garou on 13 Apr 2004, 16:32:35
More easy solution,

open your mission.sqm and edit the side directly.

in your mission.sqm you have:
...
class Item0
      {
                 
                 position[]={9002.005859,71.809998,4216.137207};
               azimut=355.000000;
               id=0;
               side="WEST";
               vehicle="BAS_DeltaOperator2DES";
               player="PLAYER COMMANDER";
               leader=1;
               skill=0.600000;
...


If you delete the "WEST" and overwrite it with "EAST"  the unit has changed side. Easy , isnt  it ?


Greating
Kuro

WOW !  :o What a trick ! Personally I never thought about opening "mission.sqm"... . Thanks, Kuro !
Title: Re:Changing East to West (and vis versa)
Post by: Jezuro on 14 Apr 2004, 20:12:32
In our little central Europe, we change mission.sqm almost every moment  ;D OK, I'm just kidding... But be careful - if you change ANYTHING that has anything to do with the side-changed unit, it's side will be turned back to normal. You cannot:

- change anything in the "edit unit" window in the editor; you cannot even double-click on it and press OK!
- change or add any waypoints for the unit

If you do so, you'll have to edit the mission.sqm again  :( - I've been messing with this stuff few days until I found out what's going wrong  ;D

Still you can group the unit with triggers, markers etc.
Title: Re:Changing East to West (and vis versa)
Post by: Kuro on 15 Apr 2004, 05:51:34
Jezuro is correct you should keep two versions of the mission.sqm. One for editing (with the "normal" east-west setting). And one for playtesting.
Well, maybe not the most convient way. But the result is perfect for the "normal" player. He can play the missions with the normal AddOn