Halo 5 Forge Scripting Problem

Discussion in 'Halo and Forge Discussion' started by nopuntintended, May 21, 2016.

  1. nopuntintended

    nopuntintended Ancient
    Senior Member

    Messages:
    21
    Likes Received:
    1
    UPDATE: May 22, 2016

    I found the problem, it had nothing to do with my scripts. When I was testing some scripts earlier I was messing around with the Alpha and Beta channels. Upon deleting those objects, their scripts were not deleted with the object. They were just attached to some other object (even though said object does not list any scripts attached to it). I only noticed this because I was setting things to spin by themselves on a timer, then ended up deleting them. Upon reloading the map, a random object in my map (a wall) was spinning. When looking at the wall, it had no scripts on it, but I could not stop it from spinning. When deleting the wall and replacing, the same thing happened with a different wall when I loaded the map. Upon recreating my map from scratch and coding up this scenario, it works perfectly.

    So for future reference, always delete all scripts off an object before deleting it. At least until this particular bug is patched.

    _________________________________________

    So I'm having trouble understanding why my script brains aren't triggering the way I would expect them to. I am trying to script 2 fans that will alternate between both off, Fan 1 on, both off, Fan 2 on, repeat (in order to simulate the gravity volumes turning on and off for a mini game I'm making). Each phase would last 60 seconds.

    Here are the scripts in my brains and fans:

    SB1: (designed to trigger movement in the blades every 1 second while they should be active)
    1. On Timer: Initial Delay = 0, Repeat timer = 1.00, Action = Message Send Charlie
    SB2: (controls Fan 1)
    1. On Timer: Initial Delay = 60.00, Repeat timer = 120.00, Action = Power Set Alpha Toggle
    2. On Match Start: Power Set Alpha Off
    SB3: (controls Fan 2)
    1. On Timer: Initial Delay = 120.00, Repeat timer = 120.00, Action = Power Set Bravo Toggle
    2. On Match Start: Power Set Bravo Off
    SB4: (sends signal to either Fan 1 or Fan 2 to cause them to rotate)
    1. On Multi Msg: Min trigger 3, Action: Send Msg Delta
      1. On Msg Received Charlie
      2. On Power Alpha: On
      3. On Power Bravo: Off
    2. On Multi Msg: Min trigger 3, Action: Send Msg Echo
      1. On Msg Received Charlie
      2. On Power Alpha: Off
      3. On Power Bravo: On
    Fan 1:
    1. On Msg Received Delta, Action = Rotate 180 over 0.90 seconds
    Fan 2:
    1. On Msg Received Echo, Action = Rotate 180 over 0.90 seconds
    The behavior that I am seeing is:
    1. Fan 1 and Fan 2 are off for 1 minute
    2. Fan 1 turns on to rotate only once (360 degrees), then turns off
    3. Both fans stay off for 1 minute
    4. Fan 2 turns on and runs for 2 minutes
    5. Fan 2 turns off (both fans stay off for 1 minute)
    6. Repeat
    The expected behavior is:
    1. Fan 1 and Fan 2 are off for 1 minute
    2. Fan 1 turns on and runs for 1 minute
    3. Fan 1 turns off (both fans off for 1 minute)
    4. Fan 2 turns on and runs for 1 minute
    5. Fan 2 turns off (both fans off for 1 minute)
    6. Repeat
    According to my math the switch states should be as follows (but they aren't behaving like this):

    A__B___C___D__E__Result____Time
    0__0__0/1__0__0__Both off___0-60
    1__0__0/1__1__0__Fan 1 on__60-120
    1__1__0/1__0__0__Both off___120-180
    0__1__0/1__0__1__Fan 2 on__180-240
    Repeat

    Any ideas as to how to fix this?
     
    #1 nopuntintended, May 21, 2016
    Last edited: May 22, 2016
    Rabid Hogs likes this.
  2. WagglyBeef

    WagglyBeef Legendary

    Messages:
    91
    Likes Received:
    53
    Best guess is that eventually the timers are syncing and toggeling power states at same time, try offsetting SB3 repeat timer by 121.00, if that doesn't work i have one more idea for a round about way to get it working
     
    #2 WagglyBeef, Jun 26, 2016
    Last edited: Jun 26, 2016

Share This Page