x

Search in
Sort by:

Question Status:

Search help

  • Simple searches use one or more words. Separate the words with spaces (cat dog) to search cat,dog or both. Separate the words with plus signs (cat +dog) to search for items that may contain cat but must contain dog.
  • You can further refine your search on the search results page, where you can search by keywords, author, topic. These can be combined with each other. Examples
    • cat dog --matches anything with cat,dog or both
    • cat +dog --searches for cat +dog where dog is a mandatory term
    • cat -dog -- searches for cat excluding any result containing dog
    • [cats] —will restrict your search to results with topic named "cats"
    • [cats] [dogs] —will restrict your search to results with both topics, "cats", and "dogs"

adding new parameter to struct breaks game

Hi

I recently changed my working player struct to have one extra parameter. After recreating my widgets with the new player info, every time i reopen my project the displayed player info on my widgets break. How can i fix this issue?. Or is my project now corrupted..

  • SamuelB

Product Version: UE 4.17
Tags:
more ▼

asked Nov 06 '17 at 10:29 AM in Blueprint Scripting

avatar image

Samuelb
283 9 19 22

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

2 answers: sort voted first

Well i guess the best answer is to not change/add any struct variables afterwards... I ended up opening a backup and redoing all implementations that had been lost. -samuelb

more ▼

answered Nov 07 '17 at 12:48 PM

avatar image

Samuelb
283 9 19 22

(comments are locked)
10|2000 characters needed characters left
Viewable by all users

when you changing something like structs or input parameters for functions, they usually broken. you can try to use Refresh nodes in blueprints context menu.

more ▼

answered Nov 06 '17 at 10:37 AM

avatar image

redbox
4.3k 80 17 104

avatar image Samuelb Nov 06 '17 at 10:44 AM

I tried that, it does refresh the nodes, but when i make the changes, close and restart the project the same issue persist. That means everytime i relaunch the project, i would have to fix every widget over again.

avatar image Samuelb Nov 06 '17 at 10:49 AM

alt text

A quick screencap of the issue, this also requires me to rename the event parameter. It wont let me name the parameter "pinfo". It automatically set the name to be either "newparameter" or "p1info".

Edit: this is what happens when i reopen the project after i just fixed it.

playerinfobug.png (151.2 kB)
(comments are locked)
10|2000 characters needed characters left
Viewable by all users
Your answer
toggle preview:

Up to 5 attachments (including images) can be used with a maximum of 5.2 MB each and 5.2 MB total.

Follow this question

Once you sign in you will be able to subscribe for any updates here

Answers to this question