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"

Infinite Loop on Script

Hello everyone,

My name is Jose Manuel and I am trying to make a "game" to people who need to do some exercise of rehabilitation.

The problem reside on blueprint where we create the floor and the script. Actually we got Main Menu and Pause Menu but when we click Start on Main Menu an error spam the window:

alt text

And here you got the script: alt text

THANK YOU SO MUCH

Product Version: UE 4.13
Tags:
captura.png (8.6 kB)
captura1.png (87.8 kB)
more ▼

asked Jan 11 '17 at 08:53 AM in Blueprint Scripting

avatar image

joselz94
1 1 5 5

avatar image Speckulous Jan 11 '17 at 09:20 AM

The 3 mentioned functions could be helpful, SpawnPoints, SpawnBlocker and SpawnCoins

avatar image joselz94 Jan 11 '17 at 05:29 PM

Ups, sorry about that alt text alt text alt text

THANKS AGAIN!

avatar image Arechon Jan 11 '17 at 10:11 AM

I can't spot any mistakes in this BP. Note that for Unreal an infinite Loop just means that a Node has been triggered very frequently (e.g. 100.000 times in a second). Disable everything but one function. If this works, enable a next one and see if that works to find out where exactly the error happens. Are there any other Actors related to this BP? Check them.

avatar image joselz94 Jan 11 '17 at 10:22 AM

the problem is that after i create menu and pause menu, everything works good but before i implement it the error has come and the game goes correctly if i press "Simulate" in BP_FloorTile ; while i stayed in MainMenu level, it doesn´t work

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

2 answers: sort voted first

Have you tried moving this logic to "Begin Play" instead of the Constructor? I find it's generally less dangerous to have init logic run at Begin Play when everything is guaranteed to be loaded in the world than in the Constructor. Also keep in mind that the constructor will run when you place an object in the world and interact with it in the Editor viewport, but Begin Play will only run when you are "Playing" the game.

more ▼

answered Jan 11 '17 at 06:23 PM

avatar image

kbrownski
71 1 4 5

avatar image joselz94 Jan 11 '17 at 09:22 PM

If i try to move the constructor script to Even Begin play I think that i would need to create the other function on the same "way" because it couldn't play well if I dont create it

avatar image kbrownski Jan 24 '17 at 10:20 PM

what specifically requires you to have your functions run in the constructor script?

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

Ups, sorry I forget this post. Mates I solved this problem moving the construction script to event begin play. Thanks for all your help

more ▼

answered Jan 24 '17 at 10:31 PM

avatar image

joselz94
1 1 5 5

avatar image kbrownski Jan 24 '17 at 10:42 PM

no worries, glad you resolved it! you should mark my answer as resolved so others can hopefully find the same recommendation useful :)

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

Ups, sorry I forget this post. Mates I solved this problem moving the construction script to event begin play. Thanks for all your help

more ▼

answered Jan 24 '17 at 10:32 PM

avatar image

joselz94
1 1 5 5

(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