YoYoGames / GameMaker-Bugs

Public tracking for GameMaker bugs
26 stars 8 forks source link

In-Game: [Android] Duplicating an Included File and reading it gives "Unable to find file in zip" error #2300

Open gm-bug-reporter[bot] opened 11 months ago

gm-bug-reporter[bot] commented 11 months ago

Description

Test note: If read directly, contains the file, no problem However, if you copy the included file first and read the new file, this will happen

Problem, in normal use, it is constantly opening the file, so it is always output,
Also, whether there are other problems, I don't know, because I only see this display problem

[input]

11-27 11:35:35.561 16956 17022 I yoyo    : /////////////////////////////////////////////////////////////
11-27 11:35:35.562 16956 17022 I yoyo    : Unable to find file in zip - /data/user/0/com.company.game/files/text/debug.txt
11-27 11:35:35.562 16956 17022 I yoyo    : v_ret = dsfajkafsdsdafsakd
11-27 11:35:35.562 16956 17022 I yoyo    : /////////////////////////////////////////////////////////////

Steps To Reproduce

Just run it. There you go. Android mode

18e3e801-3a25-4bb8-b0ba-74bbf31fdac0

Second package (see comments): ad5a408c-d623-40c0-9ce6-30859f5220af

axkd commented 11 months ago

Sorry, I forgot to send the project, please close this, I will send a new one

YYDan commented 11 months ago

Hehe, actually there IS a project on this one, but I can see you attached a project with a different name as an included file on the new report ;)

I'll close the new one, as we appear to have everything required here already, but I will move the new download link here also, just in case. Thanks.

axkd commented 11 months ago

I see. I thought, no, that's good,  

無恆 @.***

 

------------------ 原始邮件 ------------------ 发件人: "Daniel @.>; 发送时间: 2023年11月29日(星期三) 下午5:32 收件人: @.>; 抄送: @.>; @.>; 主题: Re: [YoYoGames/GameMaker-Bugs] Android file reading exception message (Issue #2300)

Hehe, actually there IS a project on this one, but I can see you attached a project with a different name as an included file on the new report ;)

I'll close the new one, as we appear to have everything required here already, but I will move the new download link here also, just in case. Thanks.

— Reply to this email directly, view it on GitHub , or unsubscribe . You are receiving this because you commented.Message ID: <YoYoGames/GameMaker-Bugs/issues/2300/1831533444 @ github . com>

axkd commented 11 months ago

@YYDan After recent tests, we found something that seems to have something to do with the path, Because, I unpacked, apk, bag, Remember, assets are their own resource paths. But when I test it, it turns out that when I write it, the default position is assets, I looked in the gms help and saw the description, and, should start with data, Hopefully this is right, fix the problem, provide some help, The latest, there is still this problem, as soon as you read the file, it will prompt this, However, only see the prompt, do not know if there are other unknown problems