I cant seem to do it.
I am using the Free version of SU 7.1 - I have set up a location in PU for the level to be exported and when I direct Unity to it to via the PU package I get a “Cant find path” and the level comes in empty.
Any ideas?
thanks
r
I cant seem to do it.
I am using the Free version of SU 7.1 - I have set up a location in PU for the level to be exported and when I direct Unity to it to via the PU package I get a “Cant find path” and the level comes in empty.
Any ideas?
thanks
r
Sure ![]()
Perhaps seeing how I set things up can help - Playup is working well for me.
1st off I am on Windows and My Unity projects are set up inside my \Documents folder. Inside of the individual project’s asset folder, I have my own folder created called “Raw Objects”.
When I create a asset in PlayUP I point the plugin to the Raw Objects folder within my current Unity project. Remember to make everything into Groups or Components, and NAME them
Anyhow, I export from Sketchup (free ver 7 like yours) then jump over to Unity.
In that Unity project I mentioned I have of course already added the PlayUP editor resources so inside Unity, I just have to run the import level via PlayUP and everything imports without a problem.
Hope that’s some help.
I have been having similar problems with Playup. I am able to export the level but when importing it to Unity the level is empty.
This is what I have done:
If you have any ideas what could be the problem, please let me know.
You didn’t have to create a /PlayUp directory in your /Assets folder. PlayUp would have done that for you if it didn’t exist already.
Did you point your PlayUp settings in SketchUp to the correct /Assets directory?
If so, I would suggest searching your /Assets directory sub-directories for a file with the extension .LVL
If it doesn’t exist, it wasn’t generated for some reason. Or it may have been generated in the wrong directory if you didn’t point the SketchUp settings in the right place.
I was able to find the file with .LVL extension and I tried to import it (see the picture). After importing, I can see the level in hierarchy window, but no visible geometry imports into Unity.
After importing:
I think the problem is that you have it nested under /Assets/PLAYUP/PlayUp. Although the SketchUp side exporter will export there, the Unity level importer is looking for the objects and level files in /Assets/PlayUp/Levels and /Assets/PlayUp/Objects.
Thanks for being patient with me. This is what I get when trying without nested folders.
It’s having problems loading a.dae …
Make a simple box in SketchUp, group it, name it, and export it. Let me know if that works. If it does, then there is something odd about your model that the exporter doesn’t seem to like.
In this test scene I have exported just 3 simple cubes with textures (component A, B, and C). It seems that only component A gets exported but there is no geometry. Do you have any idea how I could start solving this problem step by step? Also, when trying Export All Components and Groups- option in PlayUp plugin, nothing seems to happen.
I made a video showing the steps to export here:
http://playuptools.com/videos/playup2unity.html
If it generates A.DAE, it should generate something for B.DAE and C.DAE. Even if it fails it would still generate a blank file. Also, it would make reference to B and C in your LVL file. Are you sure you are pointing to the correct assets director from PlayUp preferences? Are you sure that A.DAE isn’t the same A.DAE from the earlier test?
I created a new Unity project and I tried to export the whole thing again. Below you can see what I am trying to export. But, still only A.DAE gets imported into Unity (without geometry and the size of the file is 0kt). Therefore, I would assume that the problem is in Sketchup part of the exporting/importing process.
Have you noticed any other plugins causing problems for PaluUp?
I have not run into any conflicts with other plugins yet. Very odd.
Try this. Go to your /Resources/en-US/PlayUp/ directory. There is a file called _HL2_Source_Template.skp. Load that and try exporting it. It’s the same exact file from the video demo.
Also, when you export, run the Ruby Console in SketchUp and let me know if there are any error messages that pop up. That would be helpful.
Thanks again for the help.
I decided to install PlayUp plugin to Sketchup again and now it seems to work much better. Now I get all the components exported. Anyway, I don’t exactly get the results as in the video that you have provided. When importing to Unity I see the objects in Project window but only the man with machine gun gets imported into Hierarchy window. Also, orientation of the models are not correct. Is there some Unity settings that I should change?
Ok… I noticed from your Debug status bar in Unity that it’s finding an unknown character in that LVL file.
Open up _HL2_Source_Template.LVL in Notepad and tell me what you see. It should look like this:
<?xml version="1.0" ?>
<LEVELSETTINGS>
<ENTITIES>
<OBJECT NAME="_dev_tf2_Heavy" POSITION="35.0052228940387, -0.000659924966102565, 1.51909806270505" ROTATION="0.0, 0.0, -1.0, -8.34589885536176" SCALE="1.00000000000003, 1.00000000000003, 1.0" />
<OBJECT NAME="_dev_Source_Stairs_8x12" POSITION="416, 128.000000000018, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_door_56x112" POSITION="456.0, 512.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_crate_32x32" POSITION="424, 480.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Crate_48x48" POSITION="376, 480.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Crate_64x64" POSITION="312, 480.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="Legend" POSITION="0.0, 0.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_barrel_32x48" POSITION="387.098044193201, 75.2935682060775, -6.31088724176809e-030" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Counter_40x64" POSITION="448.0, 0.0, -2.43501347258945e-016" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Table_30x64" POSITION="256.0, 0.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-16, 128.0, 32.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="-192.0, 128.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Stairs_8x12#1" POSITION="-64, 127.999999999995, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-64, 128.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="80, 128.0, 96.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="32, 128.0, 64.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Stairs_8x12#1" POSITION="31.9999999999999, 127.999999999995, 64.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="128.0, 128.0, 128.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-16.0000000000021, 190.999999999995, 32.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="31.9999999999979, 190.999999999995, 64.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="-192.000000000002, 190.999999999995, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="79.9999999999979, 190.999999999995, 96.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="127.999999999998, 191, 128.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-64.0000000000021, 190.999999999995, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
</ENTITIES>
</LEVELSETTINGS>
Either the LVL file for some reason is not getting generated correctly, or the script files for PlayUp.unitypackage are doing something funky and might need to be reinstalled.
Here is what the _HL2_Source_Template.lvl-file looks in notepad:
<?xml version="1.0" ?>
<LEVELSETTINGS>
<ENTITIES>
<OBJECT NAME="_dev_tf2_Heavy" POSITION="35.0052228940387, -0.000659924966102565, 1.51909806270505" ROTATION="0.0, -0.0, -1.0, -8.34589800158794" SCALE="1, 1, 1.0" />
<OBJECT NAME="_dev_Source_Stairs_8x12" POSITION="416, 128.000000000018, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_door_56x112" POSITION="456.0, 512.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_crate_32x32" POSITION="424, 480.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Crate_48x48" POSITION="376, 480.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Crate_64x64" POSITION="312, 480.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="Legend" POSITION="0.0, 0.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_barrel_32x48" POSITION="387.098044193201, 75.2935682060775, -6.31088724176809e-030" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Counter_40x64" POSITION="448.0, 0.0, -2.43501347258945e-016" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Table_30x64" POSITION="256.0, 0.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-16, 128.0, 32.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="-192.0, 128.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Stairs_8x12#1" POSITION="-64, 127.999999999995, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-64, 128.0, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="80, 128.0, 96.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="32, 128.0, 64.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Stairs_8x12#1" POSITION="31.9999999999999, 127.999999999995, 64.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="128.0, 128.0, 128.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-16.0000000000021, 190.999999999995, 32.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="31.9999999999979, 190.999999999995, 64.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="-192.000000000002, 190.999999999995, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="79.9999999999979, 190.999999999995, 96.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_Railing_32x128" POSITION="127.999999999998, 191, 128.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
<OBJECT NAME="_dev_Source_StairRailing_32x48" POSITION="-64.0000000000021, 190.999999999995, 0.0" ROTATION="1, 0, 0, 0" SCALE="1.0, 1.0, 1.0" />
</ENTITIES>
</LEVELSETTINGS>
Odd…
<OBJECT NAME="_dev_tf2_Heavy" POSITION="35.0052228940387, -0.000659924966102565, 1.51909806270505" ROTATION="0.0, -0.0, -1.0, -8.34589800158794" SCALE="1, 1, 1.0" />
Change that line to say:
<OBJECT NAME="_dev_tf2_Heavy" POSITION="35.0052228940387, -0.000659924966102565, 1.51909806270505" ROTATION="0.0, -0.0, -1.0, -8.34589800158794" SCALE="1.0, 1.0, 1.0" />
…and try importing it.
I changed the piece of code but I don’t see any difference. Only the OBJECT NAME="_dev_tf2_Heavy- model gets imported and the orientation is the same as earlier.
Actually… what might be messing this up for you is if you had an older version of the PlayUp Unity package and didn’t update it with the new stuff in the latest build.
I would try reinstalling that package. Also, the PlayUp Unity dropdown menu importer should work fine, but if it still doesn’t work, try right-clicking on the LVL file in your project view and importing it that way (there should be an option on your right-click menu to import the PlayUp LVL file).
I just downloaded the latest version of PlayuUp (PlayUp Alpha ver. 0.9.3) and installed it to Sketchup. If I open the level-file and look at it with notepad, I can still see that there is SCALE=“1,1,1.0” instead of SCALE=“1.0,1.0,1.0”.
Also, I tried importing the level via right clicking the the level-file but I still get the same results.
If you pull the “_dev_Source_Stairs_8x12.dae” file from your project window to your hierarchy, does it appear?