User Tools

Site Tools


dromed:traptimedrelayprob

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revision
Previous revision
Last revision Both sides next revision
dromed:traptimedrelayprob [2009/03/10 22:01]
r_soul created
dromed:traptimedrelayprob [2009/11/13 19:54]
r_soul Changed how the solutions were written.
Line 11: Line 11:
 ===== The Solutions ===== ===== The Solutions =====
  
-==== Don't Use Timed Events ==== +There are a number of things ​you can do to avoid the problem:
-You can avoid anything that involves timers, but this limits what you can do.+
  
-==== Include a Copy of gen.osm ​====+  ;Include a copy of gen.osm 
 +  ://This is the best solution if you've already set up a lot of timers and you don't want to have to change them all.// 
 +  :If the script works for you, you can include your own gen.osm in your FM zip file. The "​Premier"​ version of gen.osm has a later file date, so FM managers probably won't extract your own copy when your mission is installed. There is an easy way to get around this problem: 
 +    * Make a copy of gen.osm and rename it, e.g. ``YourFMname.osm`` 
 +    * In Dromed, type ``script_drop`` and select ``gen`` (or ``gen.osm``) from the list. 
 +    * Type ``script_load YourFMname`` 
 +    * Don't forget to save your mission. 
 +  :FM managers //will// extract this .osm because it's name will be unique.
  
-If the script works for you, you can include your own gen.osm in your FM zip file. The "​Premier"​ version of gen.osm has later file date, so FM managers probably won't extract your own copy when when your mission is installed. There is an easy way to get around this problem: +  ;Use Custom Script 
-  ​* Make a copy of gen.osm and rename it, e.g. YourFMname.osm +  ​: Some custom scripts can be timed: 
-  In Dromed, type ``script_drop`` and select ​``gen`` (or ``gen.osm``) from the list+    * ``TrapRandomTimer`` from tnhScript. You can use the same values for the ``min_time`` and ``max_time`` parameters to ensure ​the same delay each time
-  Type ``script_load YourFMname`` +    * ``NVRelayTrap`` from NVScript can be delayed using the ``NVRelayTrapDelay`` parameter. 
-  ​* Don't forget to save your mission. +  ​:Both of those scripts take the time in milliseconds.
-FM managers //will// extract this .osm because it's name will be unique.+
  
-==== Use a Custom Script ====+  ;Use TrapDelayer from miss16.osm 
 +  :This script works little differently to ``TrapTimedRelay``,​ so it would only be a suitable replacement in certain circumstances:​ 
 +  * The delay can only be whole seconds 
 +  * It handles interruptions (e.g. a subsequent ``TurnOff`` message) in a different way.
  
-Some custom scripts can be timed+  :If you decide to use this, do the following
-  * TrapRandomTimer from tnhScript. You can use the same values for the ``min_time`` and ``max_time`` parameters to ensure the same delay each time. +  * Type ``script_load miss16`` 
-  NVRelayTrap from NVScript can be delayed using the NVRelayTrapDelay parameter. +  * Find your ``TrapTimedRelay`` objects: 
-Both of those scripts take the time in milliseconds.+    Change ​the script to ``TrapDelayer`` 
 +    * Convert ​the ``Script -> Timing`` property to seconds.
  
-==== Use a Lever ====+  :It is then recommended that you test the new timers thoroughly, e.g. activate them then deactivate them before the delay has passed, and make sure their behaviour is still appropriate.
  
-The humble lever (e.g. ``Up/Down Switch``) can be used as a timer. The ``Tweq -> Joints`` property can be used to set the speed of the joint, and the distance it travels, which determines the time taken. The lever only activates things when the joint has finished moving.+  ;Use a Lever 
 +  : The humble lever (e.g. ``Up/Down Switch``) can be used as a timer. The ``Tweq -> Joints`` property can be used to set the speed of the joint, and the distance it travels, which determines the time taken. The lever only activates things when the joint has finished moving.
  
-NOTEME Levers //​de//​activate things as soon as they begin their "​reverse"​ direction. In other words, the delay only applied when they are turned on.+  :NOTEME Levers //​de//​activate things as soon as they begin their "​reverse"​ direction. In other words, the delay is only applied when they are turned on
 + 
 +  ;Don't Use Timed Events 
 +  :You can avoid anything that involves timers, but this limits what you can do.
dromed/traptimedrelayprob.txt · Last modified: 2011/01/12 15:38 by r_soul