For the episode steps, you have two options:
- Set the Max Episode Step Num in the Trainer Settings to 100. Agents will automatically get Truncated if they hit the threshold
- You can call GetEpisodeStepNum and plug it into the Episode Steps. You can also make a variable and manually count the steps if you have trouble finding the automatically recorded one (just remember you would have to reset it from the agent’s reset too).
FYI in 5.5 I kind of messed up the design of the step num and need to move it in 5.6:
This is what you need to do in 5.5, but there isn’t a convenient way to get the PPO Trainer. You have to do it yourself and be careful of not creating a circular reference.
Otherwise I think you should be able to do what you want.
Let me know if this wasn’t clear or if you are still stuck.
Thanks!