User Tools

Site Tools


dromed:traptimedrelayprob

Differences

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

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
Last revision Both sides next revision
dromed:traptimedrelayprob [2009/03/11 20:42]
r_soul
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 ====+
  
-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 when your mission is installed. There is an easy way to get around this problem: +  ;Include a copy of gen.osm 
-  * Make a copy of gen.osm and rename it, e.g. ``YourFMname.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.// 
-  * In Dromed, type ``script_drop`` and select ``gen`` (or ``gen.osm``) from the list. +  :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: 
-  * Type ``script_load YourFMname`` +    * Make a copy of gen.osm and rename it, e.g. ``YourFMname.osm`` 
-  * Don't forget to save your mission. +    * In Dromed, type ``script_drop`` and select ``gen`` (or ``gen.osm``) from the list. 
-FM managers //will// extract this .osm because it's name will be unique.+    * Type ``script_load YourFMname`` 
 +    * Don't forget to save your mission. 
 +  :FM managers //will// extract this .osm because it's name will be unique.
  
-==== Use a Custom Script ​====+  ;Use a Custom Script 
 +  : Some custom scripts can be timed: 
 +    * ``TrapRandomTimer`` from tnhScript. You can use the same values for the ``min_time`` and ``max_time`` parameters to ensure the same delay each time. 
 +    * ``NVRelayTrap`` from NVScript can be delayed using the ``NVRelayTrapDelay`` parameter. 
 +  :Both of those scripts take the time in milliseconds.
  
-Some custom scripts can be timed: +  ;Use TrapDelayer from miss16.osm 
-  * ``TrapRandomTimer`` from tnhScript. You can use the same values for the ``min_time`` and ``max_time`` parameters to ensure the same delay each time. +  :This script works a little differently to ``TrapTimedRelay``,​ so it would only be a suitable replacement in certain circumstances:​
-  * ``NVRelayTrap`` from NVScript can be delayed using the ``NVRelayTrapDelay`` parameter. +
-Both of those scripts take the time in milliseconds. +
- +
-==== 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. +
-==== Use TrapDelayer from miss16.osm ​==== +
-This script works a little differently to ``TrapTimedRelay``,​ so it would only be a suitable replacement in certain circumstances:​+
   * The delay can only be whole seconds   * The delay can only be whole seconds
   * It handles interruptions (e.g. a subsequent ``TurnOff`` message) in a different way.   * It handles interruptions (e.g. a subsequent ``TurnOff`` message) in a different way.
  
-If you decide to use this, do the following:+  :If you decide to use this, do the following:
   * Type ``script_load miss16``   * Type ``script_load miss16``
-  * Find your ``TrapTimedRelay`` objects ​and convert ​the ``Script -> Timing`` property to seconds.+  * Find your ``TrapTimedRelay`` objects
 +    * Change the script to ``TrapDelayer`` 
 +    * Convert ​the ``Script -> Timing`` property to seconds
 + 
 +  :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. 
 + 
 +  ;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 is only applied when they are turned on.
  
-It is then recommended ​that you test the new timers ​thoroughlye.g. activate them then deactivate them before the delay has passed, and make sure their behaviour is still appropriate.+  ;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