When adding a behavior parameter in a function, the editor shows the attached error message.
Please double check that the bug is not already reported in the issues list. 鉁斺湐
Steps to reproduce the behavior:
Please include a link to a game if possible! N/A
If applicable, add screenshots to help explain your problem.


Windows 8.1 Laptop
Beta 83 desktop app
This has happened more than once with several existing functions/behaviors.
I created a new one for the example above.
Thanks for the report! I can reproduce the issue, I'll fix that ASAP :)
Fixed for next version: https://github.com/4ian/GDevelop/commit/656f05e81e704b80e450407203fe9d2c7dd1da51
A "workaround" is to: choose "Objects" as type, choose an object type like Sprite or Text in the second select field (but not "any object") then choose "Behaviors" as type in the first select field. Finally select the proper behavior type :)
This is because there is a crash when the second select field value is empty.
Thank you for the workaround. It does allow me to add behaviors like that, but I wanted to let you know that they aren't being applied as expected. Come to think of it, since this crash started happening, all of my custom behaviors have been temperamental.
Sometimes my weapons don't shoot in one direction, but do shoot in the other three and other times it's health or death related. This time, I am trying to spawn specific items from an NPC and tweening them to a position - they weren't working as I intended from a function/behavior, but they seem okay in a regular / external event sheet.
Restarting the preview usually helps, but the issue still occurs.
It's hard to action this without being to reproduce the issue - could be a lot of things. There should not be any difference between two previews if you don't do any changes. Are you using anything in particular in your behaviors, like creating objects, testing collision?
The only thing I can think of is that the code generated from your behaviors would be too late to be generated - but that seems unlikely on the desktop app as it's done directly using the filesystem which is fairly quick.
In any case, this crash is a simple "mistake" in the UI and has no effect whatsoever on the behavior themselves.
I know, I'd send you my game files, but there's a lot of content and it would too easy to get lost even with comments that explain where to find something related. Maybe it's just too much for one game or it's my laptop that can't handle it.
Are you using anything in particular in your behaviors, like creating objects, testing collision?
Yeah, it varies depending on the behavior. I find that functions/behaviors are easiest to work with when they involve as few objects as possible and sometimes prefer to use the regular non-behavior functions. Honestly, I'm thinking it could be attributed to lag from too many Chrome processes, my CPU, and so on. :\
Most helpful comment
Fixed for next version: https://github.com/4ian/GDevelop/commit/656f05e81e704b80e450407203fe9d2c7dd1da51
A "workaround" is to: choose "Objects" as type, choose an object type like Sprite or Text in the second select field (but not "any object") then choose "Behaviors" as type in the first select field. Finally select the proper behavior type :)
This is because there is a crash when the second select field value is empty.