OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Manz on 26 Dec 2005, 16:49:56

Title: I have a problem
Post by: Manz on 26 Dec 2005, 16:49:56
ok.

I have a mission on "desert island" where there is a tutorial how to "setcaptive false" at a unit while using a trigger.
so i have "merged" that mission to another mission on Winter Nogova and then it doesn't work..  ???


"the mission have NO scripts
Title: Re:I have a problem
Post by: ONoSixIsDown on 26 Dec 2005, 17:18:16
check to make sure you copied all the scripts from your tutorial mission to your new mission's folder 8)
Title: Re:I have a problem
Post by: Manz on 26 Dec 2005, 19:27:31
you don't  understand my problem but thanks anyway
Title: Re:I have a problem
Post by: TLI on 26 Dec 2005, 19:44:20
you don't understand my problem
Maybe not -- can you give us more details?
Title: Re:I have a problem
Post by: Manz on 26 Dec 2005, 20:29:54
MERGE you know what that mean? it is when you copy a mission to another in the EDITOR
 ;)
Title: Re:I have a problem
Post by: 456820 on 29 Dec 2005, 13:07:31
Quote
MERGE you know what that mean? it is when you copy a mission to another in the EDITOR

I dont think thats what he doesnt get i dont get any of it more detail
- Whats in the mission
- Are any other soldier names the same in the other mission your merging it into since that will mean the soldiers will have an _1 in their name which may not trigger off some triggers
- Whats else is oging on

etc etc
Things like that can help us alot more to understand the question since ive read and re-read your question and cant seem to get much sense of it

Quote
where there is a tutorial how to "setcaptive false" at a unit while using a trigger

And what does that mean is it like a tutorial mission to show people how to use the editor or is it like a mission where you learn how to make a unit setcaptive false ?
Title: Re:I have a problem
Post by: macguba on 29 Dec 2005, 13:07:58
Merging sounds easy but it isn't.   It's actually quite an advanced feature.    Sure, it copies everything in the editor across.    But it doesn't deal with any conflicts that creates, and it doesn't transfer any files such as init.sqs or scripts.

We can't help you if all you tell us is "it doesn't work".   We need specific details.     How do you know it doesn't work?   What should happen?  What does happen?

For a start, post a link to the tute so we know which one you are talking about, or at the very least tell us which tutorial it is.
Title: Re:I have a problem
Post by: Ding on 29 Dec 2005, 14:44:25
Why do uou need to merge this, why dont you just make a trigger that setcaptive's a unit? surley that would be easier than merging a mission to another.
Title: Re:I have a problem
Post by: Manz on 29 Dec 2005, 22:27:02
You didn't help me here..  :D but thanks anyway  :P
and sorry have nothing else to add here ::)


But i can say.....

 ...that the mission comes from this one:http://ofp.gamezone.cz/index.php?showthis=7727
and the mission is called "prisoner"
Title: Re:I have a problem
Post by: OrnelP on 30 Dec 2005, 04:46:58
I dont really see whats so difficult to understand.  I have run into this type

of problem too.  Manz is trying to move all triggers and such into his new

mission so he doesnt have to recreate everything.  But the mission will not

run without the scripts AND MERGE does not copy scripts.  You will have to

go into your C: drive Programs Codemasters OFP and USer then your profile

then go into the MISSIONs then Into The TUTe you are talking about then

copy all SQS and and other files except the mission file and copy them into

your OTHER USER MISSION. Hope this jargon helps ! -OrnelP :o
Title: Re:I have a problem
Post by: Manz on 30 Dec 2005, 20:07:26
ok... read up there ...............   NO scripts
Title: Re:I have a problem
Post by: Terox on 30 Dec 2005, 20:41:20
Manz

if you merge 1 mission into another
or
Rename a mission in the mission editor

then only the mission.sqm is copied over

You have to manually copy all the other files into the newly created mission folder

________________________________________________________________
________________________________________________________________
There is however a way to use a "Template" system that will allow you to create everything thats in 1 mission into another, including the scripts etc and it also keeps the playable units as playable units instead oif changing them to non playable, like merge does

To use this system, you have tio firstly PBO your "Template mission" and then place that Template mission into your ofp/templates folder
(The file may require an overview.html) cant remember, long time since i made them)

and then basically you select "Wizard" in the mission editor island selection screen (top option)

for a more detailed explanation, visit this link and specifially check out the section on "creating the mission folder"

instead of selecting

ECL ctf template

you would select the mission template with the name that you created

http://www.terox.nildram.co.uk/tutorial/ctf.html#CREATINGCTF
Title: Re:I have a problem
Post by: Pilot on 30 Dec 2005, 20:43:48
It seems to me that something messed up with the merge.  I have never merged anything, so I can't say at all what went wrong.  However, setcaptive is a very easy command to work with.
UnitName setcaptive true - Makes the unit captive
UnitName setcaptive false - Makes the unit non-captive

If you want a unit captive right from the start of the mission, put this in his init field:
this setcaptive true

If you want the unit to be captive sometime into the mission, put this in the On Activation field of a trigger:
UnitName setcaptive true

UnitName is the name you give the unit.

If you have no idea what I mean by init field or On Activation field, don't know how to name a unit, or can't set up a trigger, then I suggest you read up on some mission making tutorials (http://www.ofpec.com/editors/browse.php?category=1_1), look at the Tutorial Mission (http://www.ofpec.com/editors/resource_view.php?id=84), and play with the editor some more as you are still to new too this process to effectively make missions.

-Pilot

EDIT:
Beaten again
Title: Re:I have a problem
Post by: Planck on 30 Dec 2005, 20:48:39
What Manz means is (I think), when he merges the two missions together.......setcaptive is no longer working.

He can safely pass the soldiers without getting shot.

In this mission you are surrounded by enemy soldiers, you are within an area marked by barrels. If you try to leave the area you are shot.

The mission works by itself on Desert Island.....where it is supposed to be, but it no longer works once merged with a mission on Nogova.

I can only refer you to macgubas reply above Manz......Merged missions are a black art and there can be many instances where a conflict between different missions can crop up.....especially if they were originally based on different islands.

You really need to give more information at the outset if you expect people to help you, they can't help if they have to guess at where the problem might be.
Simply saying it doesn't work gives no indication at all.


Planck
Title: Re:I have a problem
Post by: Manz on 30 Dec 2005, 23:43:21
WoW WoW!.. Planck that's right... thanks! ;D
Title: Re:I have a problem
Post by: Pilot on 31 Dec 2005, 06:19:42
Quote
What Manz means is (I think), when he merges the two missions together.......setcaptive is no longer working.
I did understand that.  I was simpy trying to explain how setcaptive worked so Manz has a better understanding of the command.  It would seem to me, especially after all this, that it would have been easier for Manz to recreate the mission on Nogova than merge the two.  I think an understanding of the command itself would allow him to work more efficiently...basically, it would mean he wouldn't have to merge all his missions to get setcaptive to work ;)

-Pilot