Occasionally, when starting my game and going into Creative play to test my verse script, the script just fails to start. I get no “Verse Program Started!” message and the script never started, and anything connected to it doesn’t work. I have no fix for it other than just restarting and attempting to launch until it finally works. This completely blocks me from being able to test, and I can spend hours just trying to launch or refresh to test something.
Hi DolphinDom, I’m taking a look and haven’t been able to reproduce this, yet. Your script runs both its OnBeginPlay and RubyLevel functions successfully for me every time I run it (5 out of 5).
If you make a new blank Verse template with only your device in the level, does that work reliably?
You mention that it can take hours trying to launch enough to get it to work. The log indicates that it takes about 1 to 2 minutes from clicking the Play button until you’re into Fortnite Creative Play mode. Is there something else that is lagging or taking up time? Any delays, slowdowns or performance issues in your workflow that I might not be experiencing here?
Hi GimmePizza, yeah, it’s super inconsistent in terms of when the function chooses to run or not. Some days I go all day without ever running into the issue; others, I just can’t test because it won’t start the script for me. Placing it on a different level has the same effect. It can work for a while (like multiple refreshes), but eventually, it will decide not to start the program.
When I say hours to launch, I mean I can spend hours of my day just hitting refresh or play over and over, which eventually adds to time wasted on trying to get the luck of the draw for the script to work.
Thanks Dom. And to make sure I’m recreating your workflow, when you say refresh, you’re talking about pressing Play to launch Creative edit mode in Fortnite, correct? You’ve been able to reproduce the issue this way before without having to change any verse code or pressing the compile scripts button in the editor?
What I’m getting at is whether it’s ever happened after you immediately create a new project, or if it only starts to repro after you have spent some time making changes. Either to the verse code on the device, properties on the device, or maybe other changes in the level. I’m going to assume you’ve already tried restarting the editor and it doesn’t resolve the issue.
Next time you get stuck in this loop where it will not execute for you, can you immediately restart the editor (make sure it doesn’t load your project by default), then make a new empty project and see if the generic my_device runs its OnBeginPlay for you, or also fails to execute? This will help narrow down whether the repro relates to some action you’ve taken in your workflow (that should work!) or something about your environment, or your connection to us.
One other thing that might help is for you to send a log when it is working. We have your log file on hand already that shows you running Fortnite and the script failing to execute.
Yes, by refresh, I mean the Play button to launch Creative edit. When I get on for the day, I’m usually able to test the code, I don’t recall a time when the code didn’t work immediately at the start of my day. However, after spending some time working on the code, it then seems to break. It may be that making large adjustments to the code is what causes it, and then for whatever reason, I am unable to test it for a little while after, even if I close the engine and relaunch, etc. I haven’t run into it again since you asked for me to test the empty project, but once I do, I’ll go ahead and try that and get the logs and see what happens…
– I actually went into the game to get a working log for you, and I ran into the bug again as I was typing this, so here’s the 2nd broken log: uefn-attachments-2022.10.20-13.23.26.zip (7.9 MB)
And then there is my test with a new empty project right after that last log and the generic my_device running (and yes, I got the Verse Program started message) uefn-attachments-2022.10.20-13.30.07.zip (5.9 MB)
And then, for the sake of being curious, I restarted the editor again and went to launch the GemstoneTycoon project, then launched into Creative Play, and the verse script did NOT function correctly again, so here is that log: uefn-attachments-2022.10.20-13.34.23.zip (10.2 MB)
I will be trying to get a working log for you as soon as I can, but the best thing I’ve found when this issue happens is just to leave it alone for a while, and eventually, it fixes itself.