locked
My unity game problem RRS feed

  • Question

  • User1202614147 posted
    hello I'm doing a sandbox game unity mehmet but I have a problem in writing the following issue DirectoryNotFoundException: Could not find a part of the path "C:\Users\mehme\Block in Blocks\Assests\Resources\ItemData.txt".
    System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.Boolean anonymous, System.IO.FileOptions options) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
    System.IO.FileStream..ctor (System.String path, System.IO.FileMode mode, System.IO.FileAccess access, System.IO.FileShare share, System.Int32 bufferSize, System.IO.FileOptions options, System.String msgPath, System.Boolean bFromProxy, System.Boolean useLongPath, System.Boolean checkHost) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
    (wrapper remoting-invoke-with-check) System.IO.FileStream..ctor(string,System.IO.FileMode,System.IO.FileAccess,System.IO.FileShare,int,System.IO.FileOptions,string,bool,bool,bool)
    System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize, System.Boolean checkHost) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
    System.IO.StreamReader..ctor (System.String path, System.Text.Encoding encoding, System.Boolean detectEncodingFromByteOrderMarks, System.Int32 bufferSize) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
    System.IO.StreamReader..ctor (System.String path, System.Boolean detectEncodingFromByteOrderMarks) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
    System.IO.StreamReader..ctor (System.String path) (at <599589bf4ce248909b8a14cbe4a2034e>:0)
    (wrapper remoting-invoke-with-check) System.IO.StreamReader..ctor(string)
    Itemdatabase.GetDatabase (System.String path) (at Assets/Scripts/Inventory/Itemdatabase.cs:42)
    Itemdatabase.Start () (at Assets/Scripts/Inventory/Itemdatabase.cs:31)
    how to fix
    <g-bubble jsname="VCkuzd" jscontroller="BlFnV" data-tp="5" jsshadow=""></g-bubble><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"></path></svg><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></svg>
    <g-info-bubble id="tw-info-bubble" jscontroller="zMMxKd" jsaction="rcuQ6b:npT2md"></g-info-bubble>
     
    how to fix
    <g-bubble jsname="VCkuzd" jscontroller="BlFnV" data-tp="5" jsshadow=""></g-bubble><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"></path></svg><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></svg>
    <g-info-bubble id="tw-info-bubble" jscontroller="zMMxKd" jsaction="rcuQ6b:npT2md"></g-info-bubble>
     
    <g-bubble jsname="VCkuzd" jscontroller="BlFnV" data-tp="5" jsshadow=""></g-bubble><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path d="M3 9v6h4l5 5V4L7 9H3zm13.5 3c0-1.77-1.02-3.29-2.5-4.03v8.05c1.48-.73 2.5-2.25 2.5-4.02zM14 3.23v2.06c2.89.86 5 3.54 5 6.71s-2.11 5.85-5 6.71v2.06c4.01-.91 7-4.49 7-8.77s-2.99-7.86-7-8.77z"></path></svg><svg focusable="false" xmlns="http://www.w3.org/2000/svg" viewbox="0 0 24 24"><path d="M16 1H4c-1.1 0-2 .9-2 2v14h2V3h12V1zm3 4H8c-1.1 0-2 .9-2 2v14c0 1.1.9 2 2 2h11c1.1 0 2-.9 2-2V7c0-1.1-.9-2-2-2zm0 16H8V7h11v14z"></path></svg>
    <g-info-bubble id="tw-info-bubble" jscontroller="zMMxKd" jsaction="rcuQ6b:npT2md"></g-info-bubble>
    Sunday, December 22, 2019 2:26 PM

All replies

  • User665608656 posted

    Hi krafting,

    According to your description, we can't clearly know where your problem is?

    Please provide your code and requirements completely, and when providing the code, select Insert/Edit code sample option in the reply box to standardize your code.

    If you copied some content from other places, in your reply box, please click the Paste as text option in advance to ensure that the content you copied does not contain any format.

    This will help us understand your issue more intuitively.

    Best Regards,

    YongQing.

    Monday, December 23, 2019 7:57 AM
  • User1583119897 posted

    I could not answer it need more explanation about the problem

    https://www.androidfreewares.com/

    Friday, February 14, 2020 7:34 PM