Waydroid not showing new maps

A place to submit bugs to the Andor's Trail Development Team.
tactical371
Posts: 182
Joined: Sat Jun 17, 2023 4:04 am
android_version: 2.0

Waydroid not showing new maps

Post by tactical371 »

I followed the instructions on how to backup my save file to my Linux Mint computer- see viewtopic.php?t=6283 .

I am now trying to play v.0.8.8 on waydroid (emulator based on lineageOS for linux desktop). I do this by running a weston compositor and then running waydroid. I was able to put the andor's trail apk, my save game, and my worldmap folder onto waydroid by putting the files in /home/user/.local/share/waydroid/data/media/0/Android/data/com.gpl.rpg.AndorsTrail/files/andors-trail .

By doing this, I can play my save game and have access to the world map. However, the world map does not update itself when I go to a new place! See the following pictures.

Does anyone have any ideas on how to fix the bug? Is there any way to run Andor's Trail in a debug mode in order to see if it is trying to add the tile to the world map and failing for some reason?
You do not have the required permissions to view the files attached to this post.
User avatar
Nut
Posts: 1510
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 8.0
Location: Glade

Re: Waydroid not showing new maps

Post by Nut »

I don't understand your environment, so I just give you some general technical information here.

There are 2 places where the savegames and the worldmap folder are expected, depending on the Android version:
* With older versions (Android 10 (I think) and below the game store its files in the data folder.
* With newer Android versions the game files are stored below the APK itself.

When you start the game for the first time _with a newer Android_ version, the data from the old location is copied automatically to the folder below the APK.
Also there is a special import function in the load menu to put files there.
And the game needs explicitely the authority for any folder that is not below its own folder.

Now I could guess what might happen in your system, but it depends on many things: Android version, authority given, in which folder are new savegames written/updated?

Btw. Can you save and reload games?
Nut
alexm395
Posts: 1
Joined: Wed Dec 27, 2023 5:31 pm
android_version: 2.1 - Eclair

Re: Waydroid not showing new maps

Post by alexm395 »

Try launching Andor's Trail in a native Android environment like an phone/tablet rather than emulator. If the world map works there, points to an incompatibility with Waydroid.My suspicion is the app attempts to write out new map data but runs into a storage permission or compatibility issue with Waydroid. Debug logs and testing on raw Android should help narrow down where it's failing.Getting legacy apps working smoothly on emulation layers can definitely be tricky! Hopefully some logging and debugging steps can reveal what's blocking the world map rendering. Let me know if any other ideas come to mind! Printable templates are a godsend for those who love to turn ideas into tangible creations. Think of them as your personal DIY toolkit, just waiting to jump from your screen to the real world. Whether it's for organizing your home, spicing up a school project, or adding a personal touch to a gift, these templates are your secret weapon. Binder spine templates serve as customizable, ready-to-use tools to streamline the process of labeling binders. These templates come in a variety of dimensions, corresponding to different binder sizes, ensuring a precise fit into the spine’s label sleeve.
tactical371
Posts: 182
Joined: Sat Jun 17, 2023 4:04 am
android_version: 2.0

Re: Waydroid not showing new maps

Post by tactical371 »

Thank you. I am confused by what you mean. What does it mean to store a file below an apk? An apk is a file, not a folder.

The android version that it says I use on the right is incorrect; I preferred to keep the operating system of my phone private. However, the android phone did have a version below android 10.

Waydroid is based on LineageOS. LineageOS is based on Android 11. So it is probably an android 11 difference.

Yes, I am able to save and reload games. I just made 2 more save slots, and I reloaded them just fine.

In the Android 11 file system, where exactly is the apk stored? Where exactly is the world map stored?

Here are some pictures of what my file system looks like. How does this compare to Android 11 file system? Where are the files supposed to be in Android 11?

Alex, the save should work on my native android phone, but my native android phone is below version 10. Do you know of any way to run android apps in a debug mode that will store a debug log?

Thanks to both for your help. I am attaching pictures, but I am only allowed to post 3 pictures per post.
You do not have the required permissions to view the files attached to this post.
tactical371
Posts: 182
Joined: Sat Jun 17, 2023 4:04 am
android_version: 2.0

Re: Waydroid not showing new maps

Post by tactical371 »

continued pictures
You do not have the required permissions to view the files attached to this post.
tactical371
Posts: 182
Joined: Sat Jun 17, 2023 4:04 am
android_version: 2.0

Re: Waydroid not showing new maps

Post by tactical371 »

This is the last picture for now. Please show similar pictures for the Android 11 file system and where Andor's Trail world map would be in Android 11.
You do not have the required permissions to view the files attached to this post.
tactical371
Posts: 182
Joined: Sat Jun 17, 2023 4:04 am
android_version: 2.0

Re: Waydroid not showing new maps

Post by tactical371 »

I have done a little more research. It appears that if my character goes to new areas, the map image IS added to the world map folder at /home/user/.local/share/waydroid/data/media/0/Android/data/com.gpl.rpg.AndorsTrail/files/andors-trail . However, the game does not display the new world map images in the world map for some reason.
You do not have the required permissions to view the files attached to this post.
User avatar
Nut
Posts: 1510
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 8.0
Location: Glade

Re: Waydroid not showing new maps

Post by Nut »

That is strange. You have write access, so read access should not be a problem.
Could you try something? Rename the worldmap folder and check if the old maps of the worldmap are still displayed in the game.
Nut
tactical371
Posts: 182
Joined: Sat Jun 17, 2023 4:04 am
android_version: 2.0

Re: Waydroid not showing new maps

Post by tactical371 »

I have renamed the folder. A new worldmap folder showed up, and the world map works for the sectors of the map that I visit. Should I copy the files from the old world map folder to the new world map folder and see if the game can read the copied files in the new world map folder?
You do not have the required permissions to view the files attached to this post.
tactical371
Posts: 182
Joined: Sat Jun 17, 2023 4:04 am
android_version: 2.0

Re: Waydroid not showing new maps

Post by tactical371 »

Do I have to edit the worldmap1.html file to have the images listed in it?

Here is the worldmap_world1.html file in the current worldmap folder. I also renamed the worldmap html file in the old folder as worldmap_world2.html. I can see them as text instead of images by opening them in a text editor instead of a web browser.

<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Strict//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
<meta name="viewport" content="initial-scale=1.0, minimum-scale=0.02, maximum-scale=5.0" />
<title></title>
<style type="text/css">
html, body { height:100%%; padding:0; margin:0; }
div#table { height:100%%; width:100%%; display:table; }
div#cell { display:table-cell; vertical-align:middle; text-align:center;}
div#maps { width:600px; height:240px; position:relative; display:inline-block; }
div#playerPosition { position:absolute; z-index:3; font-size:19pt; color:red; text-shadow:rgba(0, 0, 0, 1) 2px 2px 2px; }
img { z-index:1; position:absolute; }
.namedarea { position: absolute; z-index:2; font-size:16pt; text-shadow:black 0.1em 0.1em 0.2em; text-align:center; }
.namedarea span { display:inline-block; vertical-align:middle; line-height:1em; }
.settlement { color:white; }
.other { color:#cccccc; }
</style>
</head>
<body>

<div id="table">
<div id="cell">
<div id="maps">
<img src="lake_shore_road_1.bccf1876.png" id="lake_shore_road_1" style="width:184px; height:240px; left:168px; top:0px;" /><img src="lake_shore_road_0.d0b42f35.png" id="lake_shore_road_0" style="width:160px; height:176px; left:0px; top:0px;" /><img src="mywildcave.b5714adc.png" id="mywildcave" style="width:240px; height:240px; left:360px; top:0px;" />

<div id="playerPosition">x</div>
</div>
</div>
</div>

<script type="text/javascript">
var player = document.getElementById("playerPosition");
var params = window.location.search.substring(1);
if (params) {
var pos = params.split(",");
var x = parseInt(pos[0])-(1176);
var y = parseInt(pos[1])-(3840);
player.style.top = y + "px";
player.style.left = x + "px";
} else {
player.style.display = "none";
}
</script>

</body>
</html>
You do not have the required permissions to view the files attached to this post.
Post Reply