dicarlolab / ThreeDWorld

Generator of interactive Unity-based 3D environments with physics
Other
21 stars 4 forks source link

unity is not "active" #58

Open yamins81 opened 7 years ago

yamins81 commented 7 years ago

@pbashivan you wrote Hi Dan,

I’m having issues connecting to the unity. I try using the tdw_editor_mode_client.py code to connect to unity and generate images but the script stops because it can’t find unity to be active. Have you had this issue before? How do you debug the code?

yamins81 commented 7 years ago

@pbashivan can you paste the full error message and where you got it?

pbashivan commented 7 years ago

I don't get any errors. I'm running the 3Dworld code on my mac so everything is local. Here are the steps to recreate this.

  1. Start unity
  2. Press play in unity to run the environment
  3. Run the tdw_editor_mode_client.py script via "python tdw_editor_mode_client.py" Script stops without any errors. I traced the code in editor_mode script and the thread which checks whether unity is up or not, stops the loop.

It seems like the script cannot connect to unity for some reason. Maybe this is related to different version of unity that I'm using. When I import the ThreeDWorld project in unity and load the base scene, I have two "Missing Prefab"s under the baseScene.

pbashivan commented 7 years ago

It seems like the code on the windows server is different from the master branch and I'm guessing that's why I started having these issues today. It looks like the richard-temp branch is more like what is on the windows machine. Anybody knows what is the correct branch to work with?

roates123 commented 7 years ago

hey guys,

this was caused by the .gitignore filtering prefab files, which made my last push skip out on the prefab files pouya is missing. I changed the .gitignore file and the new push should work!

roates123 commented 7 years ago

use the master branch, richardTemp is from when I was working on a big change that deviated from master, but has since been merged

pbashivan commented 7 years ago

Thanks Richard! It's working again.