Tutorial Scenariomanagerbp (basic Custom Objectives)

Discussion in 'PC Editor Discussion' started by queekusme, Oct 6, 2023.

  1. queekusme

    queekusme New Member

    Joined:
    Oct 4, 2023
    Messages:
    11
    Likes Received:
    5
    Sorry I couldn't seem to inline the images so have attached them at the end

    So I decided to have a stab at the ScenarioManagerBP bluprint we need to create for a scenario to work.
    Based off of this (https://www.youtube.com/live/fDPqDPQ2r6Y?si=gupfHeptF7XVtTk9&t=2578) youtube video at 42:58 I deduced a little on how to get something working.

    This isn't 100% as it requires you to create a child of the ObjectiveAction bluprints you want to use as I can't seem to use the originals in ScenarioManagerBP like in the video, i digress

    Once I had copied ObjectiveAction_WaitBP I was able to drag it into the list of components
    [See ScenarioManager BP Contents.png]

    I then was able to change some of the variables (These aren't reflected onto the child created at the start)
    [See ScenarioManager Details.png]

    Once this was setup I could now create the bluprint itself.

    This was done using the 'Event On Composer Will Add Instruction' event. Make sure to call the parent, i dunno what the parent does but its usually important.

    After this I created a call to 'Flow Add Action' and linked it to the action added earlier. To create a getter for the action drag it from the 'Variables' section and select the 'get' option. you can then link it to 'Action' on 'Flow Add Action.

    It should look like this
    [See Scenario Manager.png]

    When I played this along with a simple timetable which can be seen below
    [See scenario timetable.png] - This was created using Matt's scenario tutorial.

    This then started the service at 10:00am and immediately ran the wait instruction
    [See wait for something.png]
    and then immediately afterwards continued the timetable by instructing me to open the doors and close them.

    This is as far as I got, I am still yet to play with any of the other Actions however from the youtube video linked at the top, it seems that doing button and lever Actions is incredibly simple, its stuff like subtitles and other actions which I forsee being the sticking point.

    I hope this helps get people started using the ScenarioManagerBP side of scenarios and look forward to seeing what you all make.
     

    Attached Files:

    • Helpful Helpful x 1
  2. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    I've made a video today outlining how to do it all which I'll be publishing soon, my video showed how I made my scenario manager etc so will help give people an insight . You bet me to publishing a tutorial haha.
     
    Last edited: Oct 6, 2023
    • Helpful Helpful x 1
  3. queekusme

    queekusme New Member

    Joined:
    Oct 4, 2023
    Messages:
    11
    Likes Received:
    5
    Ooh, please let me know when it’s up, I’d deffo be interested in seeing what you got working
     
  4. Tigert1966

    Tigert1966 Well-Known Member

    Joined:
    Aug 18, 2020
    Messages:
    2,178
    Likes Received:
    3,670
    I would never have worked this out myself - Thanks.

    Looking forward to the video.
     
  5. Boingleboeing

    Boingleboeing Member

    Joined:
    Jul 31, 2021
    Messages:
    85
    Likes Received:
    45
    We should really make a mega list of all the "useful" (I mean the ones you use the most) and make a big spreadsheet with what they do and how to use them, I know the names are pretty self-explanatory but still
     
  6. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    So you could do that but then the objective actions can be used a few different ways. One example is shown in my video when I post it layer today.
     
  7. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    - as promised here is my video walking through Scenario Manager BP objective actions :). As far as I know my knowledge is correct but I would prob bet at some stage DTG will prob do their own Scenario Manager BP tutorial etc. For now my video I think will help a lot.
     
    • Helpful Helpful x 4
    • Like Like x 1
  8. queekusme

    queekusme New Member

    Joined:
    Oct 4, 2023
    Messages:
    11
    Likes Received:
    5
    The video isn't loading for me so here's a direct link: www.youtube.com/watch?v=gy66JBFaPUI
    Thanks for sharing, this answered quite a few of my questions,

    Still hoping to find out how to add the text boxes on the bottom of the screen as well as a few other things but im sure they'll come in time
     
  9. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    I'm going to try this later on. If I get it working, now I think I know how it's done, I'll share a tutorial. Need to hook my airpods up to my PC so I can record some audio
     
  10. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    So as said above you have to record a voice over in wav format and then in ue you make a sound cue and in there you put the subtitles.

    Then in the action you add the voice over.
     
  11. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Had a go at doing this using the video tutorial as a basis and it will not action when it creates my service at load. It won't even print to the screen the Service Name the Event is supposed to be working from. I really don't know why it's not working. I wonder if it's the same reason PIS isn't working for it either.
     
  12. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    Have you set the scenario definition as play in editor.

    Show some screenshot of your code please.
     
  13. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    Need to see your blueprint, can you send it me or share screenshot so I can have a look. Sounds to me that either you have created the event rather then over Riding it or you can not called back to the parent event so it's not doing the code it should back in cpp land
     
  14. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Will fire up the PC and zip up my plugin then send over as a DM. Give me 5 mins.
     
  15. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    Awsome thank you
     
  16. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Just sent on DM, thanks for your help!
     
  17. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    I finish work roughly now so I'll boot up my pc and have a look
     
    • Helpful Helpful x 1
  18. Boingleboeing

    Boingleboeing Member

    Joined:
    Jul 31, 2021
    Messages:
    85
    Likes Received:
    45
    Hi, Just saw the video, can you send the plugin you made so I can have a peeksy inside ? :)
     
  19. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    Don't really fancy sending my full scenario I have a lot in there as its a full on one rather then just a mess around one.

    If you watch that video though the scenario manager is the focus. I believe there is other tutorials in forms for making the scenario bit just without manager part
     
    • Like Like x 1
  20. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    I'm.happy to answer any question have as well
     
    • Like Like x 1
  21. queekusme

    queekusme New Member

    Joined:
    Oct 4, 2023
    Messages:
    11
    Likes Received:
    5
    [still cant inline images for some reason]

    I'm so happy to have got this working... debugged this for ages to realise I didn't have my 'is it actually my player service' check setup

    tl;dr:
    1. drag in your sound file
    2. add your subtitles
    3. create sound cue + drag in sound + connect to output
    4. attach to a wait action with 'complete action on finish' set to true, set 'use wait countdown' to false, and 'hide objective/completion notification' set to true
    5. add a 'composer will add service' event (with parent)
    6. add a branch and check the service name is your player service name
    7. add 'flow add action' node to end, connecting up your intro action
    8. profit
    excluding my idea requiring a signal be passed at danger, this should allow me to start prototyping some basic stuff, especially now greggryan2 's video was really helpful, ty again
     

    Attached Files:

    • Like Like x 1
  22. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    I'm now trying to add the "Walk to platform" waypoint objective markers on my scenario test sandbox.

    I have the "ObjectiveWalkToMarker_C" actors placed and saved to Scenario scenery tiles. I have them uniquely named and I want to make it where after the VO/Subtitles, the player will be guided to walk through each marker until the reach the platform with the train the player will drive. I'm not sure exactly what objective blueprint I need, but based on looking through the names, I deduced the best one would be the Objective Action Enter Exit BP. So I set the objective to my Actor, add it to the flow but when I PIE and the VO/Subtitles is finished, I get the objective, the map shows the location of the Actor, but the actor doesn't render and passing through where the marker would be, doesn't trigger it.

    Anybody managed to have a go at this and got it working?
     
  23. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    So all you need is a move to objective action.

    You don't need to set anything on the objective action apart from the UI bit
     
  24. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Hmm very strange then because I get the objective, the markers don't render and the objective seems to be stuck to the player.

    Video below:

     
  25. greggryan2

    greggryan2 Active Member

    Joined:
    Dec 21, 2018
    Messages:
    419
    Likes Received:
    179
    So you need to use flow add action with markers.

    Then make a variable and you add all yours walk to markers to the array
     
  26. josh_the_tech

    josh_the_tech Active Member

    Joined:
    Dec 9, 2016
    Messages:
    256
    Likes Received:
    158
    Amazing! It works!

    Here's a screenshot to help others wondering:

    [​IMG]

    Next challenge, work out why PIS isn't working at the stations in my scenario.
     
  27. queekusme

    queekusme New Member

    Joined:
    Oct 4, 2023
    Messages:
    11
    Likes Received:
    5
    I believe DTG Matt answered this in another post… however I can’t find it…
     

Share This Page