Skip to content

Blueprint special variable names and conversion to "_" in Skokum. #18

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
EpicSkookumScript opened this issue Nov 19, 2019 · 0 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@EpicSkookumScript
Copy link
Owner

Issue by Andy2244
Friday Nov 15, 2019 at 15:49 GMT
Originally opened as https://github.com/SkookumScript/SkookumScript-Plugin/issues/18


UE4 Version
Binary 4.23.1

SkookumScript Version
4.23.1-9631420

Describe the bug
I noticed that some packages from the asset-store frequently use special characters in there BP variable names, which all get converted to "_" or are ignored completely.

Rotation >
Rotation <
* Forward
- Forward
+ Forward

results in sk

 Real             rotation_    : 0.0
 Real             rotation_    : 0.0

 Boolean            forward?              : false
 Boolean            forward?              : false
 Boolean            forward?              : false

than we get this error:

A variable with the name 'rotation_' has already been created and is available in this scope and duplicate/shadowed variable names are not allowed.
Choose a different parameter name.

Expected behavior
While i can work around this in my own code, its quite hard/time consuming to fix those errors for asset-store stuff.
So maybe its a better idea to convert special characters to some ascii/hex representation?
Something like:
ascii

 Real             rotation_62    : 0.0
 Real             rotation_60    : 0.0

or Hex

 Real             rotation076    : 0.0
 Real             rotation074    : 0.0

This way each special character gets encoded to a compatible variable name, without creating duplicates.

@EpicSkookumScript EpicSkookumScript added bug Something isn't working enhancement New feature or request labels Nov 19, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant