FWGS / xash3d

DEPRECATED in favor of https://github.com/FWGS/xash3d-fwgs. Only bugfixes are accepted.
https://xash.su
GNU General Public License v3.0
553 stars 107 forks source link

[Android] SD Card permissions. #332

Closed Lion4K closed 6 years ago

Lion4K commented 6 years ago

Hi, as I believe you devs already know, theres a issue with the SD Storage access on Kit Kat or later android versions. However I'm here to present a possible solution.

I've seen some apps bypassing this, by using android's internal file picker, and some others have implemented something that makes the app asks the system for SD Card privileges, which in its turn asks the user about it.

This may provide some help. https://source.android.com/devices/storage/

Again, I'm not a developer, I have little to no knowledge on android developing, the most I know is to use ADB / Fastboot to custom rom procedures, and logcats. I'm just trying to be helpful.

Happy new year!!

a1batross commented 6 years ago

Everything is just like Half-Life, except you need to pass -game cracklife to command line arguments. And also you may have "cracklife" on your " /storage/F2ED-255F/xash"

Lion4K commented 6 years ago

but the -game comes after or before -rodir? or it doesn't matter? because it didn't worked.

I've used exactly like this:

cmd args -dev 3 -log -rodir /storage/F2ED-255F/xash -game cracklife

Path: /storage/emulated/0/xash

a1batross commented 6 years ago

It doesn't matter at all.

Lion4K commented 6 years ago

hm, yeah, it does not work at all.

Lion4K commented 6 years ago

BS Launcher doesn't work either.

Lion4K commented 6 years ago

Both CrackLife and BlueShift reaches main menu, but does not load any maps. you keep clicking the example "hazard course" and doesn't do anything.

In BS Launcher I used the line -dev 3 -log -rodir /storage/F2ED-255F/xash and it did load the main menu blue background. but still not loading any maps.

a1batross commented 6 years ago

No log, no honey.

7 янв. 2018 г. 12:40 ДП пользователь "Lion de Oliveira Lorena" < notifications@github.com> написал:

Both CrackLife and BlueShift reaches main menu, but does not load any maps. you keep clicking the example "hazard course" and doesn't do anything.

In BS Launcher I used the line -dev 3 -log -rodir /storage/F2ED-255F/xash and it did load the main menu blue background. but still not loading any maps.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d/issues/332#issuecomment-355779899, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEJgd5BZ55XKypAIYWSRWD8JTl-V21Vks5tH-hegaJpZM4RP714 .

Lion4K commented 6 years ago

I didn't knew log as necessary, where is the log?

Lion4K commented 6 years ago

Is this the log?

https://pastebin.com/QGabXNPW

a1batross commented 6 years ago

Re-run engine with -dev 5 -log, it will print more info to the engine.log.

7 янв. 2018 г. 10:50 ДП пользователь "Lion de Oliveira Lorena" < notifications@github.com> написал:

Is this the log?

https://pastebin.com/QGabXNPW

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/FWGS/xash3d/issues/332#issuecomment-355805961, or mute the thread https://github.com/notifications/unsubscribe-auth/ADEJgT8pex0jBUqS-b0R5n-V70lfbiXOks5tIHdhgaJpZM4RP714 .

Lion4K commented 6 years ago

dev 5 log https://pastebin.com/5mzumGWj

a1batross commented 6 years ago

Thanks, it seems bug of RoDir. It doesn't adds basedir from rodir before everything.

Lion4K commented 6 years ago

glad i could help somehow.

a1batross commented 6 years ago

Was fixed in dd3580d56c3fd06d0a62330d294097b2caaa31ea.