OFPEC Forum

Editors Depot - Mission Editing and Scripting => ArmA - Editing/Scripting General => Topic started by: desertjedi on 31 Mar 2009, 23:00:58

Title: Changing all Opfor from "GUER" to "EAST" in WordPad
Post by: desertjedi on 31 Mar 2009, 23:00:58
I've been doing some minor editing to the "CoopPack Multi-Purpose Training" mission pack on and off since I started playing Arma about six months ago. It's one of my favorite mission packs and I've done several things to it making it easier for solo play or two players (with AI mates).

After playing a lot of Evo and Domination, I went back to this pack for some vanilla, "standard-pace" gameplay. So, I'm the last guy alive in a barn-like structure with big openings at both ends running back and forth pasting Opfor with the SAW while they try to flank me. Finally I see one point blank and prone and I light him up and then I notice...he's wearing a RACS uniform?!?! How many times have I played this mission and not noticed that??? I guess I just never got that close to them before!

So I look in the mission.sqm file and all the Opfor are set up as SIDE="GUER". My question is...can I use WordPad to do a global change of SIDE="GUER" to SIDE="EAST"? I'm guessing it would work fine for the enemy soldiers but am I going to get tripped up by some vehicles or equipment that might have that attribute? Or does "SIDE=" only apply to soldiers?

BTW, I noticed that one of the scripts has RACS as not friendly to the West so I can change that as well. It's used to set AI skill levels based on whether the force is "friendly" or not.
Title: Re: Changing all Opfor from "GUER" to "EAST" in WordPad
Post by: Spooner on 01 Apr 2009, 00:34:06
You can do this, but be very careful of any direct edits to your SQM as if there are errors in it then ArmA will crash like a drunken tiger on roller-skates. However, just changing the side of a man won't change the uniform worn, which would require a change to the class as well.

Rather than using Wordpad, I can recommend just about any other editor, such as Notepad++ (which has a nice SQF syntax (http://www.ofpec.com/forum/index.php?topic=32806.0) module) or ArmAEdit (which is a a dedicated Armascript editor). I mean this for general editing rather than sqm editing, which, as I said, is not encouraged.
Title: Re: Changing all Opfor from "GUER" to "EAST" in WordPad
Post by: kju on 01 Apr 2009, 05:27:44
You can use SVN with a local server on your PC to save the history of each change
to avoid breaking the mission and have hard times get it working again.
Title: Re: Changing all Opfor from "GUER" to "EAST" in WordPad
Post by: desertjedi on 01 Apr 2009, 16:50:45
Quote
However, just changing the side of a man won't change the uniform worn, which would require a change to the class as well.
Thanks for saving me from making a big mess!  :-[

I will probably just do this manually in the editor. I want to cut way back on the number of enemies (77) located in the 700x500 AO anyway because the odds of me completing the mission alone (with AI) are just too low.

I do use ArmAEdit and like it.
Title: Re: Changing all Opfor from "GUER" to "EAST" in WordPad
Post by: desertjedi on 06 Apr 2009, 17:07:19
Okay, just for kicks I figured I'd go into the mission map and changes RACS soldiers to East but for some reason, each enemy player is locked to "Independent". I've never seen this before.

Can anyone tell me why this is so? And maybe how to unlock them?
Title: Re: Changing all Opfor from "GUER" to "EAST" in WordPad
Post by: Spooner on 06 Apr 2009, 20:27:12
For some reason, anything, once placed, can't have its side changed. This means you have to delete and recreate it if you want to change the side. Annoying, eh?