STP Dragon Posted August 7, 2009 Posted August 7, 2009 (edited) The triggers in the list (ME) can't be sorted. If you afterwards want to add a trigger in the middle of the list, you have to add it at the end and enter all the tiggers one by one till you are at the desired position. I have to add many triggers in all my missions after the patch. Is it possible to edit the triggers in a sourcefile for a easyer handling? Edited August 7, 2009 by =STP= Dragon Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
Panzertard Posted August 7, 2009 Posted August 7, 2009 I've been tampering with *units* my Templates.bs and mission.file in a similar fashion, but I've not tested in with triggers. I was successful at sorting the units by hand. (I had a group of 99 units - when you template it and replace it back on a map, the sorting is messed up .. twice .. by some odd algorithm) Due to the nature of the ME-functions (maybe the serializer before save) some objects are scrambled in the oddest fashion. But by the looks of it - it's gets "randomized" in the same fashion every time ... so Im quite interestied in figuring out which order it is, and "unstack/unwind" it back to the original sort with an external function. Sorry for the lenghty answer, but my answer is "yes, it may be possible" .. but I havent tested it with triggers yet :) The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
STP Dragon Posted August 7, 2009 Author Posted August 7, 2009 OK, with which program I can edit the .miz file? Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
Panzertard Posted August 7, 2009 Posted August 7, 2009 Please see the "HOW-TO associate WinRar with .MIZ and .MIZ.TRK" at the end of the post at http://www.rockhaggis.com/cgi/me_forum/me.pl?m-1249575991/ The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
STP Dragon Posted August 7, 2009 Author Posted August 7, 2009 Ahhhh! Now I understand it! You open the .miz with WinRAR! Then you can see a file named "mission". This file you can open with notepad++. There I can see the triggers! Yes this should be possible. But I have to carefully. If I forget a letter the mission probably crashes. Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
Panzertard Posted August 7, 2009 Posted August 7, 2009 Yes, it is just a basic archive file with a different extension. :) You'll find all sorts of nice content when you start preparing your missions as well - meaning you may be able to copy that content from one mission to another. Some files may require a tad of editing of course. The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
STP Dragon Posted August 7, 2009 Author Posted August 7, 2009 Nice! I took a look into the sourcecode. The triggers are at the begining and it looks like the numbers in brackets are the possition in the triggerlist (ME). So I can copy the whole lines of the triggers to the right position and count the numbers again. (at the beginning and at the end of every trigger). Right? Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
Panzertard Posted August 7, 2009 Posted August 7, 2009 There's more than one section, a brief look shows there's at 3 sections tied together. I assume section 1 or 3 decides the sort order - but also, the number (ID) attached to the trigger must be readjusted. So you must keep all the ID's in sync. DISCLAIMER: I'm just guessing here - let's hear it from you if you get it sorted :) The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
STP Dragon Posted August 7, 2009 Author Posted August 7, 2009 In my missions it looks different: The flags in my triggers are different..... They are not in the brackets. In my case I think I only have to count the numbers again. Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
Panzertard Posted August 7, 2009 Posted August 7, 2009 To get the color coding / brackets and "auto-sectioning" go to the Language menu and select LUA as language. Then you can use the "-" and "+" on the left hand side to minimize the other sections that you dont want to see. :) The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
STP Dragon Posted August 7, 2009 Author Posted August 7, 2009 (edited) Yes thx... but this is not what I mean. Your flags are displayed in brackets: mission.trigflag[1]=true In my missions my flags are includet in the code: then a_set_flag(\"1\") So I think it is not nesessary to edit the other sections you listed. I think I only have to count the TriggerIDs I marked red. Edit: I see... the trigrules = also have to counted.... Edited August 7, 2009 by =STP= Dragon Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
STP Dragon Posted August 8, 2009 Author Posted August 8, 2009 It's working! :) You have to edit the section #3 (trigrules =) http://lockonforum.de/thread.php?postid=50481#post50481 Homepage: Spare-Time-Pilots DCS:BlackShark v1.0.2: BLINDSPOTs EditorMod DRAGONs ArmA2-Sounds DRAGONs BS1 TRAININGPACK DRAGONs MISSIONPACK [bS & FC2] DCS:World: TM WARTHOG PROFIL FOR BS2 DRAGONs BS2_TRAININGPACK DRAGONs TRAININGPACK DRAGONs MISSIONPACK
Panzertard Posted August 8, 2009 Posted August 8, 2009 Ah, great - good thing you figured it out then :) The mind is like a parachute. It only works when it's open | The important thing is not to stop questioning
Recommended Posts