ANDROID – FileStreams and reading .txt files

About Monkey 2 Forums Monkey 2 Development ANDROID – FileStreams and reading .txt files

This topic contains 4 replies, has 3 voices, and was last updated by  cocon 4 months, 2 weeks ago.

Viewing 5 posts - 1 through 5 (of 5 total)
  • Author
    Posts
  • #15164

    Amon
    Participant

    If I remove:

    When I remove the above code from my game it successfully loads my GameScreen scene. If I leave the code uncommented the android app closes as soon as the GameScreen scene loads.

    The level1.txt file stores level data in number format.

    What could be the reason that it is failing like this?

    #15165

    DruggedBunny
    Participant

    Have you checked if fs = Null?

    Doubting “asset:: slash data/etc” is valid, I would normally expect “asset::data/etc”. (Could be wrong though… )

    #15166

    Amon
    Participant

    Argggh! Thanks, James. That was the problem. the added “/” was sending it to crashville.

    Fixed now and working fine. 🙂

    #15168

    DruggedBunny
    Participant

    Yay!

    #15186

    cocon
    Participant

    Perhaps it would be a good idea for Monkey to do an Assertion for notifying users explicitly.

Viewing 5 posts - 1 through 5 (of 5 total)

You must be logged in to reply to this topic.