Windows builds not working

Hi.

Trying to get a Windows version to run under Vista, but nothing happens when I try to open the file. No warnings or error messages are displayed, it just doesn’t open. Any ideas?

thanks,
P

May sound too simple, but did you remember to include the scene in the build? I’ve made that mistake before.

Nope, the scene is in the file list in the build dialogue.

Did some additional tests to try to narrow it down:

Web builds won’t work either (they work on my mac), IE7 closes down without warnings. Webplayers at unity3d.com works though (island demo + light demo).

Found an old project (1.6) where I had a PC build and it works, but upgrading and building breaks it. Looks like it’s an issue with the Unity version I’m using (2.1.0f5 (16146)).

The computer is brand new, just powered it up today and updated it so it should be ok. I’m a complete Vista novice so it’s not completely unlikely that I’m doing something wrong on that end, but the fact that I have older builds work suggests it’s not the machine right?

help :slight_smile:

/Patrik

Anything in Data\output_log.txt after the game disappears?

Yes there’s an error message:

Audio devices: Generic Hardware (default: Generic Hardware)
[Invalid UTF-8]
Cannot determine the text encoding for the assembly location: C:\Users\Jacob T\xe6kker\Documents\Shooter\ShooterPC.app\Shooter.exe
GLib: Cannot convert message: Conversion from character set ‘UTF-8’ to ‘CP1252’ is not supported
Please add the correct encoding to MONO_EXTERNAL_ENCODINGS and try again.
mono: exit called, code -1

But the message is not in all of my tests. In some of the tests that’s not working there’s just the Audio devices line and nothing more.

/P

may be you try to run your application under Vista 64bit ?
If yes, just move game folder in Programs Files (x86)

[quote]
Cannot convert message: Conversion from character set ‘UTF-8’ to ‘CP1252’ is not supported
Please add the correct encoding to MONO_EXTERNAL_ENCODINGS and try again.
[/quote] Not Unicode characters? I have some bugs too with cyrillic charset.

it’s probably cuz Vista (and all windows OSes for that matter) just blows.

looks like you have got one of the nice errors on windows Vista :slight_smile:

TRy on XP SP3 if you can (do you know anyone that has a machine with XP?); check that you have all the service packs for vista, updated DX and .NET framework…pc are not like mac…they need to be updated often :stuck_out_tongue:

usually the error messages on vista are not showing where is the problem, but i would consider to look into the logs in the windows folder.

you have got a mono error for UTF character set from Unity…i wonder if any of your object has weird character in (should not matter, but hey…it worth the try :P)

long shot but do you have anything copy and pasted (like from the wiki)? line ending prob maybe? maybe a shift+space?

I don’t think this has anything to do with the scripts or the content, most likely something with the location he’s trying to run this stuff from.

Patrik: what is the full folder path where you’re launching this from? Are you using any plugin DLLs? What’s the language of Vista’s user interface?

I saw a similar problem when I tried to run a Unity3D program on Vista. Nothing happended at all. Seemed to be related to my user name.

output_log:
Audio devices: Generic Hardware (default: Generic Hardware)
[Invalid UTF-8]
Cannot determine the text encoding for the assembly location: C:\Users\S\xf8ren\Desktop\program.exe
GLib: Cannot convert message: Conversion from character set ‘UTF-8’ to ‘CP1252’ is not supported
Please add the correct encoding to MONO_EXTERNAL_ENCODINGS and try again.
mono: exit called, code -1

I can assure that my user name is not S\xf8ren though.

Moving the program to a location with plain old-school ascii chars solved the problem (e.g. c:\somename)

Cheers,

Soeren

By the way, I just experienced the exact same thing with Windows XP (same username)

However, the ‘Avert Fate’ demo has no such problem.

/Søren

Perhaps the text editor you use to store your texts does not save UTF compliant files but files in some region specific format.

I’ve commonly such issues when working on Windows where you often need to enforce UTF usage in editors, otherwise you get western / cyrillic, which is NOT UTF (and therefor beside western ie ASCII not even capable to convert to UTF)

You are right about the UTF issue and all the fun one can have with different code pages on Windows.

I did not really edit any text file though. I just ran the program.

It may eventually be something the developer/publisher need to check before shipping the project. At least it looks like Mono is giving us a clue.

Cheers
Soeren

Im seeing a similar problem - all browsers crash after closing the tab that hosts unity. Safari at least gave me some output:

090326 11:03:50 Closing plugin window
web: shutdown player
Cleanup player
GLib: Cannot convert message: Conversion from character set 'UTF-8' to 'CP1252' is not supported

** (Safari.exe:3852): WARNING **: Aborting of threads in domain UnityRuntimeDomain timed out.
Exception unloading domain
web: shutdown finished
090326 11:04:00 loader: final cleanup
090326 11:04:00 loader: unload unity dll
090326 11:04:00 Instance 9428f3a5ccc4654e876638ed5e4cee85 shutting down

any ideas? (I’ve submitted a bug report)

My problem was fixed by adding a smartFox.Disconnect to OnApplicationQuit