v0.8.9 (Bugfixes + translations) released to Google Play!

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.9) from Google, F-Droid, our server, or itch.io

Issue with testing out different map for home

Discussions of the development process of the game.
Post Reply
rhansen541
Posts: 1
Joined: Fri Apr 06, 2012 5:35 pm
android_version: 2.3 - Gingerbread

Issue with testing out different map for home

Post by rhansen541 »

I was trying to use a different tile set and mess around with creating a new starting screen and game wont play with a new tileset being used with a different home map.
User avatar
nyktos
VIP
Posts: 3463
Joined: Wed Sep 14, 2011 5:38 pm
android_version: 7.1 - Nougat
Location: Nor City, Dhayavar

Re: Issue with testing out different map for home

Post by nyktos »

i'm pretty sure you are only able to use tiles supplied in the source code...
my guess would be to include the new maps into the code, then run the game.
(so the game can find the tiles you used in your new maps)

im only guessing here - still learning the ropes myself...
good luck though! :D

(i do remember reading that we should stay close to the preexisting "look & feel" when map making)
(so im only using their tiles - in hopes that my maps make it into the game)


~Embrace The Shadow~
"Embrace the Shadow"

Image

[Lv: 60] [HP: 175] [AC: 361] [AD: 25-39] [BC: 75]
[Dual Wielding Swords] [Unarmored Fighting]
oskarwiksten
Captain Awesome
Posts: 368
Joined: Sat Jan 29, 2011 8:51 am
android_version: 2.3 - Gingerbread
Location: Stockholm, Sweden

Re: Issue with testing out different map for home

Post by oskarwiksten »

In the source code, you'll have to modify ResourceLoader.java to include other tilesets if you want to add to the ones we already have. The string names of the added images in that file has to match the tileset name in
the TMX file, in addition to the actual filename.

For example (from a tmx file),

Code: Select all

<tileset firstgid="641" name="tiles_2_4" tilewidth="32" tileheight="32">
 <image source="../drawable/map_tiles_2_4.png" width="512" height="256"/>
</tileset>
This tileset matches on the "name" attribute of the <tileset> tag ("tiles_2_4"), against what you supply as tileset name in ResourceLoader.java.
/Oskar
Post Reply