Jump to content

My map crashes right from the start


Core
 Share

Recommended Posts

Ok, I don't know what happened, I was trying to get entity to "float" over floor using AddForce() and suddenly my game started to crash the very first moment it loaded. And even if I load one of the older backup's that certainly worked back then, they crash too. I'm very worried, all my work suddenly stopped working. What can I do to fix this, please help!

Link to comment
Share on other sites

Oh, just managed to find out the problem... Sorry, It was my own fault, I have inventory script where I target this entity I was trying to "float" and at some point it had lost the pointer to this entity (or how do you say) I didn't check for "no target" in that script, so it crashed the whole game. That I don't understand why it rendered all my previous map saves unusable too. Took some time to figure it out... But yeah, lot to learn... And thank you very much for your offer for help, much appreciated

  • Upvote 1
Link to comment
Share on other sites

Ok, sorry it took so long! Here is simple map with entity (cylinder) following the target (player). If  there's no target, map crashes. And actually while quickly testing this map, I managed to crash the map once even if there was a target and Follow() function was working. And peculiar enough, at one point I was KILLED by the cylinder! :) 

FollowingThingTest.map

 

Edit. And this is the first time I upload a map, so please advice, what should I include? I just realized that map file only most likely is not enough...

Edit2. Added the AI script. Other map assets are from default fps project

FollowAIBasic.lua

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...