Summary
When building my verse code or trying to open my project, the entire editor (UEFN) crashes.
The error in the UnrealEditorFortnite text document in the Crashes folder gives the following error before the crash:
Projects/tower_defense/Plugins/tower_defense/Content/tower.verse(57,74, 57,98) : Script error 3629: Parameter #3 must be named ?TowerTransform
. Once an earlier parameter is named (prefixed with ?
) any parameters that follow must also be named.
This is line 53-61 of the part of the code that crashes UEFN:
else:
Sleep(0.0)
spawn{SpawnPlaceholderTower(CustomAgent, InputTrigger)}
PlaceTower(CustomAgent:custom_agent, ?PlaceholderProp:creative_prop, TowerTransform:transform):void =
if (CustomAgent.DecreaseMoney(TowerCost)?):
if (RealPlaceHolderProp := PlaceholderProp?):
RealPlaceHolderProp.Dispose()
It has to do with adding the ‘?’ before PlaceholderProp. When removing the ‘?’ the crash disappears and I’m able to start up my project again.
Note that there is another place in my code when I’m calling the PlaceTower
function (in a different verse file and doesn’t appear in the error logs I think):
Class.PlaceTower(Owner, TowerLoc)
The fix is easy, since I’m writing improper code, but I don’t think the entire editor should crash upon open the project (not even the verse file, just the project itself). The only way I could fix it was by going into vs code myself and change the code by removing the ‘?’ as explained above.
This is not a current issue for me, but I thought it would be handy to report anyway since this seems far from intended to me
Please select what you are reporting on:
Unreal Editor for Fortnite
What Type of Bug are you experiencing?
Verse
Steps to Reproduce
I think to reproduce one must do:
- Add a
?somevariable
into the parameters for a function - Call the function without passing in a value for
?somevariable
or calling it not by inputting?somevariable:=12312
but instead just12312
.
Expected Result
Works or atleast gives me a verse build error in the editor
Observed Result
The entire editor crashes when starting up the file. Note that the editor also crashes when first introducing the code in verse with the project open and hitting ‘build verse code’. So not only when open the editor for the first time, but also when its already open.
Platform(s)
PC; Windows