• Advertisement
Sign in to follow this  

There was a problem with A *.

Recommended Posts

Advertisement

It will help if you describe what the problem is. Please don't expect users to download your entire code, build it, execute it, try to diagnose what the problem is (without even know what the program should be doing), and then debug the entire thing for you.

What behavior are you expecting? What behavior are you seeing instead and why is this a problem? What have you tried to do to fix it yourself?

Share this post


Link to post
Share on other sites
1 minute ago, jpetrie said:

It will help if you describe what the problem is. Please don't expect users to download your entire code, build it, execute it, try to diagnose what the problem is (without even know what the program should be doing), and then debug the entire thing for you.

What behavior are you expecting? What behavior are you seeing instead and why is this a problem? What have you tried to do to fix it yourself?

Unity stops because of a crash when the start button is pressed... 

 

Share this post


Link to post
Share on other sites

Please take a look at this. Particular, at point 4.

What kind of crash? What is the exact error message? What's the callstack at the point where you break into the debugger? Have you put breakpoints in the function that is called when you click "start" and stepped through the code, looking for things that seem wrong?

Share this post


Link to post
Share on other sites
24 minutes ago, Titane said:

Unity stops because of a crash when the start button is pressed... 

 

If The Unity editor is crashing before you can read the console output, it also writes output to a logfile that you can check even if it completely crashes:

https://docs.unity3d.com/Manual/LogFiles.html

Usually Unity itself will only crash because of stack overflows due to unbounded recursion, or due to really arcane stuff that I doubt you're getting into yet.  Since you mention A* my guess is that your code contains unbounded recursion.

Edited by Nypyren

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

  • Advertisement
  • Advertisement
  • Popular Tags

  • Advertisement
  • Popular Now

  • Similar Content

    • By owenjr
      Hi there.
      I'm pretty new to this and I don't know if it has been asked before, but here I go.
      I'm developing a game using SFML and C++.
      I would like to use the "Tiled" tool to load maps into my game but I don't actually find any tutorial or guide on how to exaclty use it (I know that I have to read an XML file and stuff). I just step into diverse projects that make all a mess. 
      Anyone knows where can I find good information to make my map loader by myself?
      Thanks in advantage!!
    • By GhostarWhite7
      Today again I painted the next drawing. I look at him and I understand that something is wrong in him. Can problems with the prospect or with black and white or with the composition or is everything terrible? help me figure it out, help.. My english is not very well, i'm from russia and i want to draw for game

    • By MHG OstryTM
      Hello guys,
      I've released my game for the first time. I'm very excited about it and I hope you'll enjoy the game - Beer Ranger. It's a retro-like puzzle-platfromer which makes you think a lot or die trying. You have a squad of skilled dwarfs with special powers and your goal is tasty beer. There is a lot of traps as well as many solutions how to endure them - it is up to your choice how to complete the level! 
      Link to the project: Project site
      Link to the Steam site with video: Beer Ranger
      Have fun and please write feedback if you feel up to.
      Some screens: 




    • By Timothy Sharp
      just to test out my animations, let's say i had a trip animation. How would I code a script to where my character would fall it mud and their clothes would become all muddy? I saw this in a game on Unreal 3 but is this possible with Unity?
    • By Manuel Berger
      Hello fellow devs!
      Once again I started working on an 2D adventure game and right now I'm doing the character-movement/animation. I'm not a big math guy and I was happy about my solution, but soon I realized that it's flawed.
      My player has 5 walking-animations, mirrored for the left side: up, upright, right, downright, down. With the atan2 function I get the angle between player and destination. To get an index from 0 to 4, I divide PI by 5 and see how many times it goes into the player-destination angle.

      In Pseudo-Code:
      angle = atan2(destination.x - player.x, destination.y - player.y) //swapped y and x to get mirrored angle around the y axis
      index = (int) (angle / (PI / 5));
      PlayAnimation(index); //0 = up, 1 = up_right, 2 = right, 3 = down_right, 4 = down

      Besides the fact that when angle is equal to PI it produces an index of 5, this works like a charm. Or at least I thought so at first. When I tested it, I realized that the up and down animation is playing more often than the others, which is pretty logical, since they have double the angle.

      What I'm trying to achieve is something like this, but with equal angles, so that up and down has the same range as all other directions.

      I can't get my head around it. Any suggestions? Is the whole approach doomed?

      Thank you in advance for any input!
       
  • Advertisement