Unity3D-Wine-Support / Unity3D-on-Wine

Scripts for making Unity3D run on Wine.
GNU General Public License v2.0
103 stars 59 forks source link

3D view/context invisible when hitting "Play" (< 1.7.24) #14

Closed Pendrokar closed 10 years ago

Pendrokar commented 10 years ago

All objects in the scene get deleted when hitting Play. After pressing Play again to stop, then the scene is empty and has to be reloaded.

On startup both the scene panel AND the game panel have a 3d context.

However when you press the play button, the 3d context in the game panel dissapears and Unity responds with the error

width <= 0 || height <= 0 UnityEditor.DockArea:OnGUI()

Registered bugs related to this on WineHQ: http://bugs.winehq.org/show_bug.cgi?id=26921 http://bugs.winehq.org/show_bug.cgi?id=34858

Pendrokar commented 10 years ago

Fixed in Wine 1.7.24.

It seems this bug occurs due to a missing directory, creating the directory with the following path fixes the issue:

mkdir -p $WINEPREFIX/drive_c/users/$USER/AppData/LocalLow

WINEPREFIX environment variable should be the path to your Unity wineprefix('$ export WINEPREFIX=').

If this bug occured even by using installation scripts found in this git repository, then it should be reported, as the script should have created the directory.

Pendrokar commented 10 years ago

A patch has been created by a Wine developer. http://bugs.winehq.org/show_bug.cgi?id=22896#c15

This bug is still not marked fixed in 1.7.23. Requires testing so it would be added in the next development version of Wine.

jurf commented 10 years ago

This is so cool. I'll update the script to test whether the current Wine version has the bug or not.

Pendrokar commented 10 years ago

What do you mean by "current Wine version", development or the one of git(master/nightly)?

jurf commented 10 years ago

https://code.google.com/p/winetricks/wiki/AddingNewVerbs#Applying_Workarounds_for_Wine_Bugs

jurf commented 10 years ago

@Pendrokar please test the script, I don't have enough space or resources to do so myself and I'm not comfortable with letting an untested script into the wild.

Pendrokar commented 10 years ago

Seems fixed on an entirely clean install(no ie8 or tahoma).

Sorry Jellyface, but the verb script uses winetricks and I have had trouble making it use a patched Wine. Lets test it when 1.7.24 or 1.8 comes out.

jurf commented 10 years ago

Strange, I had to install Tahoma.

Protip, if you want Winetricks to use another Wine, assign the $WINE variable to it. Also, it does not matter what you install it with, as long as the install was successful, it cheanges the prefix appropriately, trust me, I do it all the time.

And if you have a patched Wine, you probably have a normal Wine too, right? Could you test it at least there, since that's the Wine we are supposed to be supporting, to see if it installs everything correctly.

Thanks.

Pendrokar commented 10 years ago

In order to test this 'Play' issue, I did not need Tahoma, I was somehow able to create a cube GameObject to test the functionality.

Very well, since this script is the latest I will test it with Wine 1.7.22

Pendrokar commented 10 years ago

Yes it works, even the workaround conditions, good job. Though I should have used the latest Unity. Oh well...

Pendrokar commented 10 years ago

Fixed in Wine 1.7.24. Though Ubuntu is falling behind on binary versions, as 1.7.22 is the latest available.