Wayback Machinekoobas.hobune.stream
May JUN Jul
Previous capture 12 Next capture
2021 2022 2023
1 capture
12 Jun 22 - 12 Jun 22
sparklines
Close Help
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
  • Asset Store
  • Get Unity

UNITY ACCOUNT

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account
  • Blog
  • Forums
  • Answers
  • Evangelists
  • User Groups
  • Beta Program
  • Advisory Panel

Navigation

  • Home
  • Products
  • Solutions
  • Made with Unity
  • Learning
  • Support & Services
  • Community
    • Blog
    • Forums
    • Answers
    • Evangelists
    • User Groups
    • Beta Program
    • Advisory Panel

Unity account

You need a Unity Account to shop in the Online and Asset Stores, participate in the Unity Community and manage your license portfolio. Login Create account

Language

  • Chinese
  • Spanish
  • Japanese
  • Korean
  • Portuguese
  • Ask a question
  • Spaces
    • Default
    • Help Room
    • META
    • Moderators
    • Topics
    • Questions
    • Users
    • Badges
  • Home /
avatar image
0
Question by Nirvan · Nov 27, 2015 at 10:13 AM · xmlbuild errorfilesplaymode

Errors in .exe after build (maybe caused by not correct reading xml files)

Hi, today I wanted build my project and everything seems to not work! Only few script are working. (In editor playmode everything works perfectly) When I build project with developer build and console there are a lot of null refrence exeptions.

So I opened "output_log.txt" and here I have many: http://pastebin.com/5g1bYej8

But after few lines I have this:

IsolatedStorageException: Could not find a part of the path "G:\testInz\Nowy folder\Dark Time_Data\Resources\Text Files\Inventory\Consumable\DATA_Items.xml". at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share, Int32 bufferSize, Boolean anonymous, FileOptions options) [0x001f9] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs:290

at System.IO.FileStream..ctor (System.String path, FileMode mode, FileAccess access, FileShare share) [0x00000] in :0

at System.Xml.XmlUrlResolver.GetEntity (System.Uri absoluteUri, System.String role, System.Type ofObjectToReturn) [0x00082] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/System.XML/System.Xml/XmlUrlResolver.cs:69

at Mono.Xml2.XmlTextReader.GetStreamFromUrl (System.String url, System.String& absoluteUriString) [0x00053] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/System.XML/System.Xml/XmlTextReader.cs:193

at Mono.Xml2.XmlTextReader..ctor (System.String url, System.Xml.XmlNameTable nt) [0x00044] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/System.XML/System.Xml/XmlTextReader.cs:115

at System.Xml.XmlTextReader..ctor (System.String url, System.Xml.XmlNameTable nt) [0x00006] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/System.XML/System.Xml/XmlTextReader2.cs:107

at System.Xml.XmlDocument.Load (System.String filename) [0x00002] in /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/System.XML/System.Xml/XmlDocument.cs:697

at ItemsXMLReader..ctor (System.String path) [0x00011] in C:\Inzynier\CDV-Slavic-Survival-Game\Slavic Survival RPG Game\Assets\GameScripts\UI\TextReaders\ItemsXMLReader.cs:22

at Assets.GameScripts.GameItems..ctor () [0x00048] in C:\Inzynier\CDV-Slavic-Survival-Game\Slavic Survival RPG Game\Assets\GameScripts\GameItems.cs:28

at GameController.Awake () [0x00058] in C:\Inzynier\CDV-Slavic-Survival-Game\Slavic Survival RPG Game\Assets\GameScripts\GameController.cs:117

(Filename: /Users/builduser/buildslave/mono-runtime-and-classlibs/build/mcs/class/corlib/System.IO/FileStream.cs Line: 290)

And after this there is avalanche of errors which probably are caused by not working xml rading (when path is correct in editor there is avalanche of null references too)

I created my xml reading classes based on this example: http://forum.unity3d.com/threads/add-multiple-language-support-to-your-unity-projects.206271/

So I using Path.Combine function to get xml files, maybe I should use something else to make it work in build? My .xml files are in "Assets/Resources/Xml Files/" Folder

Thanks.

Comment
Add comment
10 |3000 characters needed characters left characters exceeded
▼
  • Viewable by all users
  • Viewable by moderators
  • Viewable by moderators and the original poster
  • Advanced visibility
Viewable by all users

0 Replies

· Add your reply
  • Sort: 

Your answer

Hint: You can notify a user about this post by typing @username

Up to 2 attachments (including images) can be used with a maximum of 524.3 kB each and 1.0 MB total.

Follow this Question

Answers Answers and Comments

4 People are following this question.

avatar image avatar image avatar image avatar image

Related Questions

assign file type to a game? 1 Answer

Include a file to build - and keep it editable 0 Answers

Refresh assets during build. 1 Answer

IsolatedStorageException when creating new XmlDocument variable only on android build. 0 Answers

A node in a childnode? 1 Answer


Enterprise
Social Q&A

Social
Subscribe on YouTube social-youtube Follow on LinkedIn social-linkedin Follow on Twitter social-twitter Follow on Facebook social-facebook Follow on Instagram social-instagram

Footer

  • Purchase
    • Products
    • Subscription
    • Asset Store
    • Unity Gear
    • Resellers
  • Education
    • Students
    • Educators
    • Certification
    • Learn
    • Center of Excellence
  • Download
    • Unity
    • Beta Program
  • Unity Labs
    • Labs
    • Publications
  • Resources
    • Learn platform
    • Community
    • Documentation
    • Unity QA
    • FAQ
    • Services Status
    • Connect
  • About Unity
    • About Us
    • Blog
    • Events
    • Careers
    • Contact
    • Press
    • Partners
    • Affiliates
    • Security
Copyright © 2020 Unity Technologies
  • Legal
  • Privacy Policy
  • Cookies
  • Do Not Sell My Personal Information
  • Cookies Settings
"Unity", Unity logos, and other Unity trademarks are trademarks or registered trademarks of Unity Technologies or its affiliates in the U.S. and elsewhere (more info here). Other names or brands are trademarks of their respective owners.
  • Anonymous
  • Sign in
  • Create
  • Ask a question
  • Spaces
  • Default
  • Help Room
  • META
  • Moderators
  • Explore
  • Topics
  • Questions
  • Users
  • Badges