OndrejNepozitek / Edgar-Unity

Unity Procedural Level Generator
https://ondrejnepozitek.github.io/Edgar-Unity/docs/introduction
MIT License
817 stars 70 forks source link

how to solve InvalidOperationException #75

Closed Ori9883 closed 4 years ago

Ori9883 commented 4 years ago

Timeout was reached when generating level I think my room and corridor are in line with the rules

OndrejNepozitek commented 4 years ago

Hey! The timeout error happens when the generator is not able to find a valid level. It is often caused by a missing corridor or a wrong length of doors.

Please do the following: There is an "Advanced" section in the Dungeon Generator component and there should be an "Export map description" button. Click the button and it should create a file called "exportedMapDescription.json" in the root folder of your project. Please send me this file - it contains information about the shapes of your rooms. (In order to attach the file to this issue, you have to convert it to a txt file). I'll look into that file so we can solve the issue.

Ori9883 commented 4 years ago

Thank you for your reply. I have solved this problem.

Example 2 is more difficult to use because of the perspective angle

OndrejNepozitek commented 4 years ago

I'm glad to hear that. Let me know if you need help with anything else!