Halo 5 Forge Script: Bug or User Error?

Discussion in 'Halo and Forge Discussion' started by CHa0s, Dec 27, 2018.

  1. CHa0s

    CHa0s Spartan III
    Senior Member

    Messages:
    131
    Likes Received:
    84
    I'm going to use this thread to ask general script questions. At this point I've learned a lot and am willing to answer questions too, so if anyone has them feel free to post them up here and I'll help if I can.

    First up:
    I've written a 3+ page script sequence that uses every message in the alphabet and six script brains to do it, then spent very many hours going over it with a fine-toothed comb to work out any kinks. It's driving me nuts, because I don't know if what is going wrong is more Halo 5 scripting bugs, or user error!

    Specifically, I've scripted a brain to move OBJECT user:charlie (a welded group of three) horizontally, but for some reason when the script runs, user:charlie goes up vertically!

    Fact check:
    • The movement in the script is set to "local" (because the welded group rotates occasionally and this script needs to always move it left or right relevant to it's "face"), and each piece ungrouped and individually appears to be facing a direction where horizontal is the same direction (as opposed to, for example, up :/) I tested this by going into each piece's settings and toggling horizontal. They all move the same (World is not selected when I'm holding each piece)
    • None of the pieces have scripting on them (so no conflicts), they are only labled user:charlie
    • I tested on a blank map using a basic block and the script brains, and it's still nerfed.
    • There are no scripts telling user:charlie to go up. There are scripts telling user:charlie to go down, but those kick in later, after it's already misbehaving.
    • The group isn't just going "up", it's going up diagonally, and not even in the same horizontal it should be going!
    There are more bugs that are happening, but this is the first script on the entire sequence and I gotta start somewhere. There's a chance I messed it all up by hovering over a piece when scripting was turned on, but I don't want to rewrite the entire thing on new pieces until I've explored a couple more options.

    I wish Halo 5 Forge scripting worked as intended, then I'd KNOW it was something I'm doing wrong!!

    Any help or insight appreciated...
     
    Yumudas Beegbut likes this.
  2. GrayishPoppy210

    Messages:
    611
    Likes Received:
    984
    Map or prefab link would be nice to check out scripting. I'll link this thread to the scripters guild for you.
     
    CHa0s and Yumudas Beegbut like this.
  3. Yumudas Beegbut

    Yumudas Beegbut ONI Agent
    Wiki Contributor

    Messages:
    384
    Likes Received:
    339
    I had to set up a test map to figure out this problem & prolly lucked out that I tried out the thing that was the answer. <Weld and Animate Tests map>

    The problem is that we don't get to specify which of the welded-group OBJECTS gets treated like the base object that's being moved... thought it might be the parent, or first or last one added to the Action Targeting Mod list... but nope!

    Turns out the Last object of the group spawned onto the map is always chosen as the "move offset parent". Crap, maybe it was the First object... it's been awhile. The First/Last are the same as the SELECT mods.

    SWITCHING FIRST and LAST
    You can switch up the First/Last order by despawning the group siblings & timing it so that all the siblings are despawned at the same time and the others respawn & your Last object comes back after them which makes it the "move parent".

    • See the test map & hit that switch on the left to see this in action!
    • The First/Last order only gets changed between objects that are all despawned at some point in time, then if any respawn before earlier they become "First"
    • IIRC the real parent of the welded group can't be despawned (since that despawns the whole group)... might be that the whole group respawns when the parent does... it drags the siblings with it
    • Both the Spawn Action and the Respawn property worked for this

    THE TEST MAP
    Ignore the colorful automatic door stuff, you'll want the small group of switches & little welded group. I think it was like this... I can't really recall, but you won't have problems seeing what I mean... heheh
    • Left Switch: cycles thru which object will be the "move offset parent"
    • Middle Switch: wasn't terribly useful or something... maybe a reset?
    • Right Switch: issues the Move Offset that targets an object a little ahead and up from the group
    • You can tell which object is the "move parent" cuz it's the one that goes to that target thingum
     
    #3 Yumudas Beegbut, Dec 28, 2018
    Last edited: Dec 28, 2018
    CHa0s likes this.
  4. CHa0s

    CHa0s Spartan III
    Senior Member

    Messages:
    131
    Likes Received:
    84
    @Yumudas Beegbut thanks so much for the infos, I had no idea! Fortunately for me, the parent of my welds is acting like the parent: when the rotate script runs, everything rotates around it's "parent" (parents were dropped on the map last, so maybe that's why). None of my weld groups despawn throughout the game, so probably safe there.

    @GrayishPoppy210 what is this scripter's guild you speak of?! Do interested parties apply, or is it exclusive? I keep my maps super secret until I release them, but I can paste the script and link the brains and elevator prefabs. The missing pieces will be fusion coils that carry their own script (they recieve a message, do their thing, then send a message continuing the sequence). The entire sequence goes in chronological order using messages from alpha to zulu, so there won't be a conflict with the coils, but I can prefab them later and link it if needed.



    (as of 12/28/18)

    SCRIPT BRAINS
    #1 DROP ELEVATOR, #2a COUNTERCLOCK, #2b CLOCKWISE, #3 SLIDE ARM/BASE, #4a ARM TO COIL, #4b ARM DROP

    #1 Drops Elevator, Despawns Spin Brains
    Scrpt 1
    - Match start -
    wait 20
    send alpha (starts arm slide sequence)

    #3 Slides Arm/Base to Coil, Back to Center
    Scrpt 1 (R)
    - Recieve alpha -
    wait 20
    move -17 in 5
    send barvo

    #4a Vertical Arm to Coil, Back to Center
    Scrpt 1 (top row)
    - Recieve barvo -
    move 32.5 in 10
    send charlie (starts 1st fusion coil sequence)

    Fusion coil pair recieve charlie, move, send delta

    #4b Drops Arm (with coil), Back to Center
    Scrpt 1 (top row)
    - Recieve delta -
    -67 in 10
    wait 10
    move 32.5 in 10
    send echo (elevtr)

    ** 2 recieve echo:
    #4a Vertical Arm to Coil, Back to Center
    Scrpt 5
    - Recieve echo -
    wait 4
    move 17 in 5
    //Elevator first drop then spin sequence starts//
    #1 Drops Elevator, Despawns Spin Brains
    Script 2
    - Recieve echo -
    wait 10
    move (user alpha) -156.5 vert in 20
    send foxtrot (CC)
    *******

    #2a Spins user:alpha Counterclockwise When Spawned
    Scrpt 3
    - Recieve foxtrot -
    spawn
    send golf

    #1 Drops Elevator, Despawns Spin Brains
    Script 3 (despawns cclws)
    - Recieve golf -
    wait 9 (how long it takes elevator to spin 45 degrees)
    send hotel

    ++ 2 recieve hotel:
    #2a Spins user:alpha Counterclockwise When Spawned
    Script 4
    - Recieve hotel -
    despawn //Elevator first drop then spin sequence ends//
    #3 Slides Arm/Base to Coil, Back to Center
    Scrpt 2 (M)
    - Recieve hotel -
    wait 20
    move 0 in 5 (arm base already in position, moves 0)
    send india
    +++++++++

    #4a Vertical Arm to Coil, Back to Center
    Scrpt 2 (mid row)
    - Recieve india -
    move 16.25 in 5
    move -16.25 in 5
    sends juliette

    Fusion coil pair recieve juliette, move, send kilo

    #4b Drops Arm (with coil), Back to Center
    Scrpt 2 (mid row)
    - Recieve kilo -
    move -32.5 in 5
    wait 10
    move 32.5 in 5
    send lima (elevtr)

    ** 2 recieve lima:
    #3 Slides Arm/Base to Coil, Back to Center
    Scrpt 6
    - recieve 1 multi - (lima, zulu)
    wait 4
    move 0 in 5 (already in return position)
    //Elevator second drop then spin sequence starts//
    #1 Drops Elevator, Despawns Spin Brains
    Script 4
    - Recieve lima -
    wait 10
    move (user alpha) -156.5 vert in 20
    send mike (C 1st)
    **********

    #2b Spins user:alpha Clockwise When Spawned
    Scrpt 3
    - Recieve mike -
    spawn
    send november

    #1 Drops Elevator, Despawns Spin Brains
    Script 6 (despawns clckws)
    - Recieve novmbr -
    wait 9
    send oscar

    ++ 2 recieve oscar:
    #2b Spins user:alpha Clockwise When Spawned
    Scrpt 4
    - Recieve oscar -
    despawn //Elevator second drop then spin sequence ends//
    #3 Slides Arm/Base to Coil, Back to Center
    Scrpt 3 (L)
    - Recieve oscar -
    wait 20
    move 17 in 5
    send papa
    ++++++++++

    #4a Vertical Arm to Coil, Back to Center
    Scrpt 3 (top row)
    - Recieve papa
    move 32.5 in 10
    sends quebec

    Fusion coil pair recieve quebec, move, send romeo

    #4b Drops Arm (with coil), Back to Center
    Scrpt 3 (top row)
    - Recieve romeo -
    -67 in 10
    wait 10
    move 32.5 in 5
    send sierra

    ** 2 recieve sierra:
    #3 Slides Arm/Base to Coil, Back to Center
    Scrpt 7 (return to center from left)
    - recieve sierra -
    wait 4
    move -17 in 5
    //Elevator third drop then spin sequence starts//
    #1 Drops Elevator, Despawns Spin Brains
    Script 5
    - Recieve sierra -
    wait 10
    move (user alpha) -156.5 vert in 20
    send tango (C 2nd)
    **********

    #2b Spins user:alpha Clockwise When Spawned
    Scrpt 5
    - Recieve tango -
    spawn
    send uniform

    #1 Drops Elevator, Despawns Spin Brains
    Script 7 (despawns clckws)
    - Recieve unifrm -
    wait 9
    send victor

    ++ 2 recieve victor
    #2b Spins user:alpha Clockwise When Spawned
    Scrpt 6
    - Recieve victor -
    despawn //Elevator third drop then spin sequence ends//
    #3 Slides Arm/Base to Coil, Back to Center
    Scrpt 4 (M)
    - Recieve victor -
    wait 20
    move 0 in 5 (already in position)
    send whiskey
    ++++++++++

    #4a Vertical Arm to Coil, Back to Center
    Scrpt 4 (top row)
    recieve whiskey
    move 32.5 in 10
    sends xray

    Fusion coil pair recieve xray, move, send yankee

    #4b Drops Arm (with coil), Back to Center
    Scrpt 4 (top row)
    - Recieve yankee -
    -67 in 10
    wait 10
    move 32.5 in 5
    send zulu (elevtr)

    ** 2 recieve zulu:
    #3 Slides Arm/Base to Coil, Back to Center
    Scrpt 6
    - recieve 1 multi - (lima, zulu)
    wait 4
    move 0 in 5 (already in position)
    //Elevator last drop, no spin//
    #1 Drops Elevator, Despawns Spin Brains
    Script 8
    - Recieve zulu -
    wait 10
    move (user alpha) -156.5 vert in 20
    **********

    END OF ROUND/GAME

    Edited to change prefab links
     
    #4 CHa0s, Dec 28, 2018
    Last edited: Dec 28, 2018
  5. GrayishPoppy210

    Messages:
    611
    Likes Received:
    984
    I believe the scripters guild is open to all. Just a discord server focussed around scripting really. You might need permission to access certain projects within but otherwise not. I'll see if I cannget you an invite link quick

    Edit: here ya go https://discord.gg/3Jtvy3
    message me if link expires before you get to it
     
    #5 GrayishPoppy210, Dec 28, 2018
    Last edited: Dec 28, 2018
    Yumudas Beegbut and CHa0s like this.
  6. CHa0s

    CHa0s Spartan III
    Senior Member

    Messages:
    131
    Likes Received:
    84
    I edited the above post to change the prefab links to exactly what I'm currently using.
     

Share This Page