We have a new Beta: v0.8.13 ("Troubling Times") !

Useful links
Source code of the game - Contribution guide - ATCS Editor - Translate the game on Weblate - Example walkthrough - Andor's Trail Directory - Join the Discord
Get the game (v0.8.12.1) from Google, F-Droid, our server, or itch.io

Custom character graphic?

Unstructured ideas, requests and suggestions for the development of the game.
User avatar
ornsio
Posts: 19
Joined: Thu Nov 25, 2021 12:26 am
android_version: 11 - Android 11
Contact:

Re: Custom character graphic?

Post by ornsio »

ornsio wrote: Sat Jan 25, 2025 12:31 am
Nut wrote: Wed Jan 22, 2025 2:17 pm Contributing is playing on another level :geek: ...
Lol, yeah, so...... I don't think I'm ready to play on that level :?
If it were just a matter of adding a new drawable resource, it looks like it might not be too bad, but it seems using image files provided at runtime is a whole different animal, and the existing code is clearly not designed with that in mind. I think this one is a bit beyond a Java / Android beginner!
User avatar
Nut
Posts: 1770
Joined: Mon Oct 27, 2014 12:14 pm
android_version: 8.0
Location: Glade

Re: Custom character graphic?

Post by Nut »

Not only provided at runtime but also integrated in the savegame, so that you still have it for different characters.
Well, life is no unicorn farm ... :D
Nut
User avatar
ornsio
Posts: 19
Joined: Thu Nov 25, 2021 12:26 am
android_version: 11 - Android 11
Contact:

Re: Custom character graphic?

Post by ornsio »

Nut wrote: Sat Jan 25, 2025 9:06 pm Not only provided at runtime but also integrated in the savegame, so that you still have it for different characters.
Well, life is no unicorn farm ... :D
Ok, I know I said this was beyond me, but I've caught the bug and my brain won't let it go.... I know you probably don't have a lot of time for thinking about this sort of thing, but does this sound like a viable high-level shell of a plan for a solution?

1. Expansion of the New Game UI for optionally uploading a custom character image to the app-specific internal storage space.
2. Expansion of the code that currently only "looks at" the character image files from drawable resources to support an alternative option of using the uploaded file kept in the app's internal storage. (This would need to include validation that the file exists and is useable, and fallback code to use one of the "baked-in" images if it's not.)
3. An abstraction layer over this code to allow most of the code base (including the savegame writing/reading code) to "not care" whether the underlying Bitmap object originates from drawables or from internal storage.

I know this "plan" glosses over a lot of tricky implementation details, but am I at least in the ballpark here?


Ideally you'd be able to support multiple custom images for multiple savegames, but I think supporting just one useable custom image would be a good first step.
User avatar
rijackson741
Posts: 4520
Joined: Tue Aug 20, 2013 2:04 am
android_version: 10 - Android 10
Location: Somewhere in Dhayavar
Contact:

Re: Custom character graphic?

Post by rijackson741 »

Well, there are also the issues of image size and aspect ratio.
Level:75, XP:7656192, PV:866, FQ:105
HP:226, AC:255, AD:47-61, AP:3, ECC:23%, CM:3.0, BC:192, DR:3
Gold: 241432 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1, WoB:1
HH:1, WA:1, D:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, WP:B:1, AP:L:1, FS:DW:2, S:DW:1
User avatar
ornsio
Posts: 19
Joined: Thu Nov 25, 2021 12:26 am
android_version: 11 - Android 11
Contact:

Re: Custom character graphic?

Post by ornsio »

Right - I figured those would be validated by the image upload UI and underlying code before it accepts the user-provided image and stores it in the app's storage.
User avatar
Antison
Posts: 5760
Joined: Mon Mar 28, 2011 11:33 pm
android_version: 14 - Android 14
Location: A home without a beagle is just a house

Re: Custom character graphic?

Post by Antison »

Do you also plan to enable the current players to be able to switch to a custom sprite/avatar/character image?
"A home without a beagle is just a house"
User avatar
ornsio
Posts: 19
Joined: Thu Nov 25, 2021 12:26 am
android_version: 11 - Android 11
Contact:

Re: Custom character graphic?

Post by ornsio »

I mean, to be realistic, there's very little chance I will actually work on any of this :(, but if I did I would not try to allow existing savegames to have the character graphic swapped out.

That's not a current feature even with the built-in character image options, and I think it would be too ambitious to try to include that along with the other things mentioned all in one update.
Post Reply