• Announcements

    • khawk

      Download the Game Design and Indie Game Marketing Freebook   07/19/17

      GameDev.net and CRC Press have teamed up to bring a free ebook of content curated from top titles published by CRC Press. The freebook, Practices of Game Design & Indie Game Marketing, includes chapters from The Art of Game Design: A Book of Lenses, A Practical Guide to Indie Game Marketing, and An Architectural Approach to Level Design. The GameDev.net FreeBook is relevant to game designers, developers, and those interested in learning more about the challenges in game development. We know game development can be a tough discipline and business, so we picked several chapters from CRC Press titles that we thought would be of interest to you, the GameDev.net audience, in your journey to design, develop, and market your next game. The free ebook is available through CRC Press by clicking here. The Curated Books The Art of Game Design: A Book of Lenses, Second Edition, by Jesse Schell Presents 100+ sets of questions, or different lenses, for viewing a game’s design, encompassing diverse fields such as psychology, architecture, music, film, software engineering, theme park design, mathematics, anthropology, and more. Written by one of the world's top game designers, this book describes the deepest and most fundamental principles of game design, demonstrating how tactics used in board, card, and athletic games also work in video games. It provides practical instruction on creating world-class games that will be played again and again. View it here. A Practical Guide to Indie Game Marketing, by Joel Dreskin Marketing is an essential but too frequently overlooked or minimized component of the release plan for indie games. A Practical Guide to Indie Game Marketing provides you with the tools needed to build visibility and sell your indie games. With special focus on those developers with small budgets and limited staff and resources, this book is packed with tangible recommendations and techniques that you can put to use immediately. As a seasoned professional of the indie game arena, author Joel Dreskin gives you insight into practical, real-world experiences of marketing numerous successful games and also provides stories of the failures. View it here. An Architectural Approach to Level Design This is one of the first books to integrate architectural and spatial design theory with the field of level design. The book presents architectural techniques and theories for level designers to use in their own work. It connects architecture and level design in different ways that address the practical elements of how designers construct space and the experiential elements of how and why humans interact with this space. Throughout the text, readers learn skills for spatial layout, evoking emotion through gamespaces, and creating better levels through architectural theory. View it here. Learn more and download the ebook by clicking here. Did you know? GameDev.net and CRC Press also recently teamed up to bring GDNet+ Members up to a 20% discount on all CRC Press books. Learn more about this and other benefits here.
Sign in to follow this  
Followers 0
?????????

Unity
Standalone build always fails

10 posts in this topic

I am having a serious problem with Unity. I decided to start working with it 2 days ago and everything went fine until I wanted to build & run a simple game I created. The "game" is basically just composed of a scene with a terrain, a cube, the included Constructor model in Unity, and a script I wrote to make the model go to where I click my mouse on the terrain.
But these are all irrelevant details. Inside of Unity, I can press the play button and everything works wonderful. I can build a web player and it works great. However when I go ahead and try to build the "game" into a standalone executable Unity gives me an error (posted below). I have tried everything suggested - including creating a new project, all to no avail. Also, the executable inside the StagingArea directory works good.
[b]Moving file failed[/b]
Moving Temp/StagingArea/Data to
C:/Users/David/Unity/Game\Game_Data
[Try Again] [Force Quit] [Cancel]

The console contains the following:
Error building Player: IOException: Failed to Move File / Directory from 'Temp/StagingArea/Data' to 'C:/Users/David/Unity/Game\Game_Data'.

The log contains the following:
[source lang="plain"]building target 5
- starting compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll, for buildtarget 5
- starting compile Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll, for buildtarget 5
- Finished compile Library/ScriptAssemblies/Assembly-CSharp-firstpass.dll
- Finished compile Library/ScriptAssemblies/Assembly-UnityScript-firstpass.dll
- starting compile Library/ScriptAssemblies/Assembly-CSharp.dll, for buildtarget 5
- Finished compile Library/ScriptAssemblies/Assembly-CSharp.dll
Unloading 5 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 386 unused Assets to reduce memory usage. Loaded Objects now: 1135. Operation took 100.109242 ms.
System memory in use: 38.3 MB.

Mono dependencies included in the build
Boo.Lang.dll
Mono.Security.dll
System.dll
mscorlib.dll
Assembly-CSharp-firstpass.dll
Assembly-CSharp.dll
Assembly-UnityScript-firstpass.dll

Unloading 2 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 132 unused Assets to reduce memory usage. Loaded Objects now: 858. Operation took 95.242910 ms.
System memory in use: 34.6 MB.
Unloading 3 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 365 unused Assets to reduce memory usage. Loaded Objects now: 1146. Operation took 107.446179 ms.
System memory in use: 36.2 MB.
Unloading 5 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 163 unused Assets to reduce memory usage. Loaded Objects now: 911. Operation took 112.492986 ms.
System memory in use: 58.9 MB.
Unloading 7 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 376 unused Assets to reduce memory usage. Loaded Objects now: 936. Operation took 105.572350 ms.
System memory in use: 58.9 MB.

Textures 2.0 mb 24.7%
Meshes 305.8 kb 3.7%
Animations 919.2 kb 11.1%
Sounds 0.0 kb 0.0%
Shaders 17.0 kb 0.2%
Other Assets 1.0 mb 12.6%
Levels 14.9 kb 0.2%
Scripts 41.3 kb 0.5%
Included DLLs 3.8 mb 46.9%
File headers 8.6 kb 0.1%
Complete size 8.1 mb 100.0%

Used Assets, sorted by uncompressed size:
1.3 mb 16.5% Assets/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Textures/constructor_normals.png
1.2 mb 14.8% Assets/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Constructor.FBX
1.0 mb 12.6% Assets/New Terrain.asset
682.8 kb 8.2% Assets/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Textures/constructor_diffuse.png
17.0 kb 0.2%
0.2 kb 0.0% Assets/Standard Assets/Character Controllers/Sources/PrototypeCharacter/Materials/constructor_done.mat
0.1 kb 0.0% Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonController.js
0.1 kb 0.0% Assets/Standard Assets/Character Controllers/Sources/Scripts/PlatformInputController.js
0.1 kb 0.0% Assets/Standard Assets/Character Controllers/Sources/Scripts/ThirdPersonCamera.js
0.1 kb 0.0% Assets/Standard Assets/Character Controllers/Sources/Scripts/FPSInputController.js
0.1 kb 0.0% Assets/Standard Assets/Scripts/Utility Scripts/MeshCombineUtility.cs
0.1 kb 0.0% Assets/Standard Assets/Scripts/General Scripts/DragRigidbody.js
0.1 kb 0.0% Assets/Standard Assets/Character Controllers/Sources/Scripts/CharacterMotor.js
0.1 kb 0.0% Assets/Standard Assets/Scripts/Utility Scripts/CombineChildren.cs
0.1 kb 0.0% Assets/Standard Assets/Scripts/General Scripts/ActivateTrigger.cs
0.1 kb 0.0% Assets/Standard Assets/Scripts/Camera Scripts/SmoothLookAt.js
0.1 kb 0.0% Assets/Standard Assets/Scripts/Camera Scripts/SmoothFollow.js
0.1 kb 0.0% Assets/Standard Assets/Scripts/Camera Scripts/MouseOrbit.js
0.1 kb 0.0% Assets/Standard Assets/Character Controllers/Sources/Scripts/MouseLook.cs
0.1 kb 0.0% Assets/MoveToClick.cs
Unloading 3 Unused Serialized files (Serialized files now loaded: 0 / Dirty serialized files: 0)

Unloading 1 unused Assets to reduce memory usage. Loaded Objects now: 1201. Operation took 82.725413 ms.
System memory in use: 68.1 MB.
Error building Player: IOException: Failed to Move File / Directory from 'Temp/StagingArea/Data' to 'C:/Users/David/Unity/Game\Game_Data'.

(Filename: Line: -1)[/source] Edited by wiz3kid
0

Share this post


Link to post
Share on other sites
Thats a bit odd, normally there shouldn't be any problems writing to the user directory in Windows.

a few things you can check though:

1) That you are logged in as "David"
2) That the folder C:/Users/David/Unity/Game\Game_Data exists and isn't write protected. (if the folder doesn't exist you can check the permissions on the Game and Unity folders to make sure they're not write protected either) Edited by SimonForsman
0

Share this post


Link to post
Share on other sites
[quote name='SimonForsman' timestamp='1343656634' post='4964486']
Thats a bit odd, normally there shouldn't be any problems writing to the user directory in Windows.

a few things you can check though:

1) That you are logged in as "David"
2) That the folder C:/Users/David/Unity/Game\Game_Data exists and isn't write protected. (if the folder doesn't exist you can check the permissions on the Game and Unity folders to make sure they're not write protected either)
[/quote]
1) Yeah, David that's me!
2) Ok, so the folder did not exist - so that must be the problem. I am guessing Unity can't write to the folder?
I checked right now, and the permissions on the Game folder stated Read Only (only applies to files in folder), so I removed that and it still didn't work. [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img] Edited by wiz3kid
0

Share this post


Link to post
Share on other sites
[quote name='wiz3kid' timestamp='1343658066' post='4964497']
[quote name='SimonForsman' timestamp='1343656634' post='4964486']
Thats a bit odd, normally there shouldn't be any problems writing to the user directory in Windows.

a few things you can check though:

1) That you are logged in as "David"
2) That the folder C:/Users/David/Unity/Game\Game_Data exists and isn't write protected. (if the folder doesn't exist you can check the permissions on the Game and Unity folders to make sure they're not write protected either)
[/quote]
1) Yeah, David that's me!
2) Ok, so the folder did not exist - so that must be the problem. I am guessing Unity can't write to the folder?
I checked right now, and the permissions on the Game folder stated Read Only (only applies to files in folder), so I removed that and it still didn't work. [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]
[/quote]

Have you tried restarting unity and/or rebooting your system ?
0

Share this post


Link to post
Share on other sites
[quote name='SimonForsman' timestamp='1343658719' post='4964500']
[quote name='wiz3kid' timestamp='1343658066' post='4964497']
[quote name='SimonForsman' timestamp='1343656634' post='4964486']
Thats a bit odd, normally there shouldn't be any problems writing to the user directory in Windows.

a few things you can check though:

1) That you are logged in as "David"
2) That the folder C:/Users/David/Unity/Game\Game_Data exists and isn't write protected. (if the folder doesn't exist you can check the permissions on the Game and Unity folders to make sure they're not write protected either)
[/quote]
1) Yeah, David that's me!
2) Ok, so the folder did not exist - so that must be the problem. I am guessing Unity can't write to the folder?
I checked right now, and the permissions on the Game folder stated Read Only (only applies to files in folder), so I removed that and it still didn't work. [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]
[/quote]

Have you tried restarting unity and/or rebooting your system ?
[/quote]
I restarted Unity a dozen of times. I turned my machine off this morning, and turned it back on in the afternoon, so that didn't help I guess... (unless you think I should restart again?)
BTW, I am running the 30-day pro-trial.
0

Share this post


Link to post
Share on other sites
[quote name='wiz3kid' timestamp='1343659750' post='4964504']
[quote name='SimonForsman' timestamp='1343658719' post='4964500']
[quote name='wiz3kid' timestamp='1343658066' post='4964497']
[quote name='SimonForsman' timestamp='1343656634' post='4964486']
Thats a bit odd, normally there shouldn't be any problems writing to the user directory in Windows.

a few things you can check though:

1) That you are logged in as "David"
2) That the folder C:/Users/David/Unity/Game\Game_Data exists and isn't write protected. (if the folder doesn't exist you can check the permissions on the Game and Unity folders to make sure they're not write protected either)
[/quote]
1) Yeah, David that's me!
2) Ok, so the folder did not exist - so that must be the problem. I am guessing Unity can't write to the folder?
I checked right now, and the permissions on the Game folder stated Read Only (only applies to files in folder), so I removed that and it still didn't work. [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]
[/quote]

Have you tried restarting unity and/or rebooting your system ?
[/quote]
I restarted Unity a dozen of times. I turned my machine off this morning, and turned it back on in the afternoon, so that didn't help I guess... (unless you think I should restart again?)
BTW, I am running the 30-day pro-trial.
[/quote]

hmm, You could try creating a new project using a different folder and re-import your assets/scripts and see if this helps, (I'm running out of ideas)
0

Share this post


Link to post
Share on other sites
I checked right now, and the permissions on the Game folder stated Read Only (only applies to files in folder), so I removed that and it still didn't work.[img]http://www.nlmlol.info/g.gif[/img]
0

Share this post


Link to post
Share on other sites
[quote name='chukangore' timestamp='1343663699' post='4964528']
I checked right now, and the permissions on the Game folder stated Read Only (only applies to files in folder), so I removed that and it still didn't work.[img]http://www.nlmlol.info/g.gif[/img]
[/quote]
Could you give a link to that image?
0

Share this post


Link to post
Share on other sites
The owner of the folder was set to Administrator instead of my name (perhaps because I launched Unity as administrator when I created the game), so I changed the owner to me, and it still does not work. I don't know what else to do! [img]http://public.gamedev.net//public/style_emoticons/default/unsure.png[/img] I really want to be able to do this right. Having to constantly interrupt my development in order to launch the file from Explorer really slows me down... [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]
0

Share this post


Link to post
Share on other sites
Firstly, try removing the temp folder (back it up/copy it first if you're worried about data loss!) from your assets folder and re-starting Unity -- I've heard a number of times that similar problems have been solved that way. If it's still not working try the following:[list=1]
[*]Save any other work you're doing, and close all un-needed programs. You can keep a web-browser open with these instructions, as long as you don't have any Unity-related web-players or the like open. For best results, start from a fresh re-start of your machine.
[*]Open task manager (press Ctrl + Shift + Escape, [b]-or-[/b] press Ctrl + Alt + Del and choose "start task manager" from the menu).
[*]If you have Unity currently running, close it. After waiting a moment, ensure there aren't any copies still running in task manager.
[*]On the "processes" tab of task manager, look for and close any processes that look like the following: "[i]x:\Windows\Explorer.exe /factory,{guid} -Embedding[/i]"
[list]
[*][b]Note:[/b] to do the above you need to enable the "command line" column in View > Select Columns.

[/list]
[/list]
[list]
[*]Ensure you don't have any files from the _Data folder open in any program.
[*]Re-start Unity, and perform a build in an empty directory.
Let us know if that helps at all! I had these instructions saved in a document after experiencing a similar problem a while back and piecing it together from a couple of different sources online -- hopefully it works for you as well!
[/list]
[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
0

Share this post


Link to post
Share on other sites
[quote name='jbadams' timestamp='1343707594' post='4964699']
Firstly, try removing the temp folder (back it up/copy it first if you're worried about data loss!) from your assets folder and re-starting Unity -- I've heard a number of times that similar problems have been solved that way. If it's still not working try the following:[list=1]
[*]Save any other work you're doing, and close all un-needed programs. You can keep a web-browser open with these instructions, as long as you don't have any Unity-related web-players or the like open. For best results, start from a fresh re-start of your machine.

[*]Open task manager (press Ctrl + Shift + Escape, [b]-or-[/b] press Ctrl + Alt + Del and choose "start task manager" from the menu).

[*]If you have Unity currently running, close it. After waiting a moment, ensure there aren't any copies still running in task manager.

[*]On the "processes" tab of task manager, look for and close any processes that look like the following: "[i]x:\Windows\Explorer.exe /factory,{guid} -Embedding[/i]"
[list]
[*][b]Note:[/b] to do the above you need to enable the "command line" column in View > Select Columns.
[/list]
[/list]
[list]
[*]Ensure you don't have any files from the _Data folder open in any program.
[*]Re-start Unity, and perform a build in an empty directory.
Let us know if that helps at all! I had these instructions saved in a document after experiencing a similar problem a while back and piecing it together from a couple of different sources online -- hopefully it works for you as well!
[/list]
[img]http://public.gamedev.net//public/style_emoticons/default/smile.png[/img]
[/quote]
1. Nothing helps. [img]http://public.gamedev.net//public/style_emoticons/default/sad.png[/img]
2. The _Data folder does not ever exist.
0

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0

  • Similar Content

    • By NajeNDa
      Hi there,
      I am a game programmer (C#/C++) who is looking for a project to join. I am computer science engineer plus Master Degree in Game Development, currently working in one the most renown mobile games company (2 years academic experience, 1 year working experience).
      I have developed several prototypes or even games almost ready to release, but I always lack of artists, so I am looking for a project already set up or few artist to begin working in something.
      My preferences are:
      Unity or Unreal Engine 4 based project (UE4 prefered) PC/Console game prefered but mobile is acceptable Not interested in VR Serious team with almost all the roles filled or pretending to be filled 3D project prefered over Sprites Guaranteed 7 work hours per week, Crunch 20 work hours per week  European team (if timezone is not a problem for you, so it is not for me) I am not looking for any kind of money income from games neither the team, I want to do this as a hobby and a way to improve my skills.
      Cheers
    • By OPNeonGames
      SumiKen : Ink Blade Samurai is released! Download and leave a review to help support the game!
      Download here for free : https://play.google.com/store/apps/details?id=com.OPNeon.SumiKen&hl=en

      ★★★★★ - "Just get it it's the best runner!" - Icatsasha
      ★★★★★ - "Great game, wonderful art! Super addictive!" - EZk1ll 
      A casual samurai runner game with seven samurai and beautiful mountain paintings. Join Sumi and his samurai companions on this epic path to slash & dash through endless hordes of enemy lines. Beware of the enemy blades as a single blow from the sword blade will end it all. Will you be turned into faded ink? Or will you train and become a samurai legend?
       
    • By OPNeonGames
      Hey guys, posting my work in progress for Macho Cat here. 

      A very early prototype for Macho Cat. Everything is just placeholder for now
      What is Macho Cat?
      A silly little game where you scrub the macho cat with random objects found in trash and junkyard to please him
      Gameplay feature?
      -Cat scrubbin, lots of scrubbin
      -Unlock moar objects in junkyard 
      -Funny, silly and easy
      When will the game release?
      December 2017 (estimate)
      Interested to Beta test?
      opneongame@gmail.com
    • By MCKillerZ1
      UNITY ENGINE
      IN SEARCH FOR MEMBERS
       
      Hey there. I am currently looking for at least 4 members ( for now ) to join me in making games together.
      Sure, I'm still a student ( 17 years old ) but this is what I wish to achieve in the future.
       
      My goal is simple:
      :- Create my own game development team consisting of 5 members total.
      :- Work together as a team, and also learn game related things together.
      :- Successfully finish a simple game, and upload it to any source ( Google Play, Steam, Origin, etc... )
      :- Gain popularity as a team over the time.
       
      My role in the team is the producer or manager, or maybe the leader.
      I do have talent regarding to creating games. My main ability is creating 3D Models via SketchUp, and I've had experience doing it for about 2-3 years.
      I did learn a bit of programming, but I only understand the basics of it. I can't really make a functioning program.
      Currently, I'm learning the basics of making music using FL Studio 12, and I will learn basic animation, level design and character modelling in the future.
       
      Requirements To Join:
      1. Good English communicating skills.
      2. Always online whenever needed.
      3. Good internet connection/speed.
      4. Have a decent computer/laptop.
      5. At least knows the basics of game development related topics.
      6. Have a good camera and a set of headphones with mic, or just regular mic ( needed in the future ).
       
      Roles Available:
      1. Programmer - Main language is C#, but can also use Java ( I recommend C# ).
      2. Music Producer - Can create music according to the game's settings, and also create sounds.
      3. Animator - Can do decent animation of characters, vehicles and more.
      4. Graphics Designer - Able to do colour schemes, 2D sprites and more.
       
      Send me a message if interested.
       
       
    • By OPNeonGames
      Hey guys, posting my work in progress for Macho Cat here. 

      A very early prototype for Macho Cat. Everything is just placeholder for now
      What is Macho Cat?
      A silly little game where you scrub the macho cat with random objects found in trash and junkyard to please him
      Gameplay feature?
      -Cat scrubbin, lots of scrubbin
      -Unlock moar objects in junkyard 
      -Funny, silly and easy
      When will the game release?
      December 2017 (estimate)
      Interested to Beta test?
      opneongame@gmail.com
  • Popular Now