Content format reference

Discussions of the development process of the game.
User avatar
Zukero
Lead Developer
Posts: 1962
Joined: Thu Jul 21, 2011 9:56 am
android_version: 8.0
Location: Eclipse

Re: Content format reference

Post by Zukero » Mon Mar 25, 2019 8:04 am

No problem at all. Thanks for reading it thoroughly and reporting the issues.
Lvl: 78, XP: 8622632, Gold: 271542, RoLS: 1, ElyR: -, RoL: -, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 1, VSH: 1, WMC: 1, GoW: 1
HP: 71, AC: 301%, AD: 38-47, AP: 3, ECC: 50%, CM: 3.75, BC: 101%, DR: 2

User avatar
BWPanda
Posts: 26
Joined: Sat Mar 09, 2019 3:31 pm
android_version: 9.0 - Pie
Location: Estonia
Contact:

Re: Content format reference

Post by BWPanda » Mon Apr 01, 2019 7:33 pm

Here, viewtopic.php?f=6&t=5825#p57706, regarding the IconID field, it says:
One sprite is generally defined as a 32x32px square within a spritesheet.
But what happens when it's not? E.g. https://github.com/Zukero/andors-trail/ ... demon2.png

How do you know what the sprite square's dimensions are? Is there a separate list of sprite dimensions somewhere I can reference? Or is this hard-coded for the few sprites that exceed the typical 32x32px square?

I guess the ideal situation would be to have a new field, something like 'IconSize', that defaults to '32x32' but, for example, for the Hira'zinn would be '64x64'.

User avatar
rijackson741
Posts: 2684
Joined: Tue Aug 20, 2013 2:04 am
android_version: 9.0 - Pie
Location: Somewhere in Dhayavar

Re: Content format reference

Post by rijackson741 » Mon Apr 01, 2019 7:55 pm

The information about sprite sizes is held in two places, one for AT, and one for ATCS. What are you trying to do?
Level:68, XP:5672461, PV:497, FQ:62
HP:220, AC:247, AD:46-58, AP:3, ECC:23%, CM:3, BC:171, DR:3
Gold: 222889 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, AP:L:1, FS:DW:2, S:DW:1

User avatar
BWPanda
Posts: 26
Joined: Sat Mar 09, 2019 3:31 pm
android_version: 9.0 - Pie
Location: Estonia
Contact:

Re: Content format reference

Post by BWPanda » Mon Apr 01, 2019 10:26 pm

I'm trying to automatically parse the source code and generate an online database of items, monsters, etc. So I'm trying to create an HTML IMG tag showing each individual sprite/icon.

User avatar
rijackson741
Posts: 2684
Joined: Tue Aug 20, 2013 2:04 am
android_version: 9.0 - Pie
Location: Somewhere in Dhayavar

Re: Content format reference

Post by rijackson741 » Mon Apr 01, 2019 10:54 pm

Look in ...\AndorsTrail\src\com\gpl\rpg\AndorsTrail\resource\ResourceLoader.java
Level:68, XP:5672461, PV:497, FQ:62
HP:220, AC:247, AD:46-58, AP:3, ECC:23%, CM:3, BC:171, DR:3
Gold: 222889 | RoLS:1, RoL:1, GoW:1, VSH:1, RoFLS:1
HH:1, WA:1, CS:2, Cl:1, IF:4, Ev:3, Re:2, WP:DA:1, WP:1S:1, AP:L:1, FS:DW:2, S:DW:1

Post Reply