Giter Site home page Giter Site logo

Comments (20)

Muro81 avatar Muro81 commented on May 22, 2024 1

Ive got android studio, could probably look up the files and folders created if you want me to.

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024 1

Yeah device explorer, but in like an hour or two.

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024

Deleting the map that was in the mod, solved it.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

Deleting the map that was in the mod, solved it.

What? How do you delete a mod without also deleting its maps?

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024

Not sure, I pressed from mods menu delete mod. And I go to maps editor screen, load map, and delete the map that was leftover. Should the game handle this scenario or the modders?

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

From the trace, clear enough.

But you must have re-saved the map in map editor before mod deletion, which makes a copy in your maps folder, otherwise it would have been gone. Must be. Better check myself...

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

Or - wait - one mod comes with maps that require another mod - could be - I've already thought about preventing that sort of thing... We'll see.

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024

I never touched the map in map editor tho, only time i viewed it was in the star game screen.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

... or Android bungled the delete. That OS's file security concepts are degrading more rapidly than butter on the surface of the sun...
You don't happen to have a root file manager or adb-based one?

Waaaiiittt.... What was up with that perverse copying of the entire mods folder structure on startup? That could be the culprit of the map still being around!

That fix PR is valid anyway, but someone should investigate how all internal/local/external folders really look after mod deletion... And I am lazy.

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024

Not sure about the file manager, I have one that came with phone.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

Not sure about the file manager, I have one that came with phone.

Sorry, I was using too technical language. You can't normally see files private to an app except via how that app presents them. And I'd like to see what really became of the folder of a deleted mod. People with not-out-of-the-box tools could go and look, but normally you can't. And those tools are either a "rooted" OS (meaning you must have unlocked the device's loader partitions - either through a vendor feature or hacking) or a programmer's debugger.

On desktop, your steps do not reproduce any problem - which is fine as the patch closes a mistake that needed closing anyway.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

android studio

"Device Explorer", then look for mod remnants (of the ancient thingy mod) under /data/data/com.unciv.app/files/mods and /sdcard/Android/data/com.unciv.app/files/mods ...

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024

I tried this but I cant access any files under the com.unciv.app, run as: package not debuggable, Is what it says.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

Oh well, adb is a science in itself. Maybe it needs some more config, like activating developer mode and then some setting in the dev options... So gotta test that myself, only I got no API level 33 device or AVD in sight... Too resource-hungry and -wasteful...

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024

Its possible to view debuggable aps, but id need to build it in debug mode on my phone to view that. Should it be possible if I git clone the project?

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

Remotely possible - though if so, it's likely a security feature comparing signatures. My Studio can look into all the apps's /data/data/packagename/files, no matter whether built myself or not, but then I have LineageOS and LOS may change these rules. adb bypassing Linux owner/group permissions always sounded to me like a feature marshalled by the system, not using the root hack to make the su binaries available...

from unciv.

Muro81 avatar Muro81 commented on May 22, 2024

Wel I have some apps that were built by myself on Windows machines. I can acces the debug ones but not the release ones that were signed? Or it could be the shrinking or minifying of resources as well I guess?

from unciv.

AdityaMH avatar AdityaMH commented on May 22, 2024

Also editing base ruleset even just add "a" will lead you permanent crash.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

No, just tested - mod deletion is clean, and the offer to copy mods from /sdcard/Android/data/com.unciv.app/files/mods is just that - an offer to be able to mod on Android, it only copies in one direction, no download leftover loaded from there. So that fix just merged should be enough... Tested, it does uncrash what was crashing.

from unciv.

SomeTroglodyte avatar SomeTroglodyte commented on May 22, 2024

... what the patch didn't fix is this: Start a new game with a base ruleset mod, then delete it, then try "Quickstart". No crash and the message is perfectly clear, but it could revert to vanilla instead - with message.... No priority.

from unciv.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❀ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.