Spawn layer questions

Discussions of the development process of the game.
Tomcat
VIP
Posts: 1353
Joined: Tue Feb 08, 2011 7:05 am
android_version: 7.0

Spawn layer questions

Post by Tomcat »

I've been poking around in the TMX files the last couple of days, starting to learn the system - the classes and resources. I see that the ordering of layers isn't necessarily always the same. The spawn layer is mostly second, after keys, but sometimes this varies, and in some maps there are multiple spawn layers for different groups of monsters and/or NPCs.

Does the order matter, since those layers are not visible?? What is the purpose of splitting the spawns? Performance enhancement?

Planning to dig into the TMX parsing class next...
Samuel
VIP
Posts: 655
Joined: Wed Feb 23, 2011 3:35 pm
android_version: 2.2

Re: Spawn layer questions

Post by Samuel »

Don't look at the raw files. Use the editor tiled.
Level: 101, XP: 18780586, Gold: 358739
HP: 398, AC: 303%, AD: 84-95, AP: 4, ECC: 12, CM: -, BC: 13%, DR: 0
RoLS: 2, ElyR: 1, RoL: 1, ChaR: 1, GoLF: 1, ShaF: 1, SRoV: 2, VSH: 1, WMC: 0, GoW: 0
sdevaney
Site Admin
Posts: 1178
Joined: Fri Jan 28, 2011 10:17 pm
android_version: 14 - Android 14
Contact:

Re: Spawn layer questions

Post by sdevaney »

Samuel wrote:Don't look at the raw files. Use the editor tiled.
Indeed, you can get the editor here.

And for more info read this tutorial.

sdevaney
Tomcat
VIP
Posts: 1353
Joined: Tue Feb 08, 2011 7:05 am
android_version: 7.0

Re: Spawn layer questions

Post by Tomcat »

sdevaney wrote:
Samuel wrote:Don't look at the raw files. Use the editor tiled.
Indeed, you can get the editor here.

And for more info read this tutorial.

sdevaney
I'm using Tiled already. I've also installed the Java JDK and the Android SDK, but haven't tried to do any compiling . In fact I'm not sure if there's another tool that I need to build a running app.
Norbert
Lvl:52 XP:2597576 AP:12 HP:124 AC:282 AD:30-42 CHS:27 CM:2.0 ECC:18% BC:132 DR:2
Skills: CS:2 IF:2 Ev:3 Rg:1 DgPro:1 1HPro:2 LtAPro:2 FS-DW:2 Sp-DW:1
Equip: FP BSS JoF RoP PRoB SrpHbk GoLF EnhCH EnhCB
Other: DotSP VD GoW FB TG RoD+6 Oegyth:6
User avatar
nyktos
VIP
Posts: 3463
Joined: Wed Sep 14, 2011 5:38 pm
android_version: 7.1 - Nougat
Location: Nor City, Dhayavar

Re: Spawn layer questions

Post by nyktos »

i thought all you needed was notepad++ to unpack the source...
whats the other stuff for?
i guess i could google it... :lol:
"Embrace the Shadow"

Image

[Lv: 60] [HP: 175] [AC: 361] [AD: 25-39] [BC: 75]
[Dual Wielding Swords] [Unarmored Fighting]
Tomcat
VIP
Posts: 1353
Joined: Tue Feb 08, 2011 7:05 am
android_version: 7.0

Re: Spawn layer questions

Post by Tomcat »

nyktos wrote:i thought all you needed was notepad++ to unpack the source...
whats the other stuff for?
i guess i could google it... :lol:
Notepad is all you need just to read and modify the source code, both Java and xml, but the other tools are to build with.
Norbert
Lvl:52 XP:2597576 AP:12 HP:124 AC:282 AD:30-42 CHS:27 CM:2.0 ECC:18% BC:132 DR:2
Skills: CS:2 IF:2 Ev:3 Rg:1 DgPro:1 1HPro:2 LtAPro:2 FS-DW:2 Sp-DW:1
Equip: FP BSS JoF RoP PRoB SrpHbk GoLF EnhCH EnhCB
Other: DotSP VD GoW FB TG RoD+6 Oegyth:6
User avatar
nyktos
VIP
Posts: 3463
Joined: Wed Sep 14, 2011 5:38 pm
android_version: 7.1 - Nougat
Location: Nor City, Dhayavar

Re: Spawn layer questions

Post by nyktos »

do they work in conjunction with Tiled?
im assuming they do or you wouldnt bother...

and using these tools...
can oskar / scott use whats produced with them without changing what u submit?

just curious, experimenting over here...

:twisted:
"Embrace the Shadow"

Image

[Lv: 60] [HP: 175] [AC: 361] [AD: 25-39] [BC: 75]
[Dual Wielding Swords] [Unarmored Fighting]
Tomcat
VIP
Posts: 1353
Joined: Tue Feb 08, 2011 7:05 am
android_version: 7.0

Re: Spawn layer questions

Post by Tomcat »

nyktos wrote:do they work in conjunction with Tiled?
im assuming they do or you wouldnt bother...

and using these tools...
can oskar / scott use whats produced with them without changing what u submit?

just curious, experimenting over here...

:twisted:
Tiled reads and writes TMX files, which the AT app then reads directly, with no other modification necessary. The other data, for monsters, quests, items, etc are stored in XML files, which I believe are also read directly by the app, though I haven't yet identified the code that does that. I haven't tried the editors for those either.
Norbert
Lvl:52 XP:2597576 AP:12 HP:124 AC:282 AD:30-42 CHS:27 CM:2.0 ECC:18% BC:132 DR:2
Skills: CS:2 IF:2 Ev:3 Rg:1 DgPro:1 1HPro:2 LtAPro:2 FS-DW:2 Sp-DW:1
Equip: FP BSS JoF RoP PRoB SrpHbk GoLF EnhCH EnhCB
Other: DotSP VD GoW FB TG RoD+6 Oegyth:6
sdevaney
Site Admin
Posts: 1178
Joined: Fri Jan 28, 2011 10:17 pm
android_version: 14 - Android 14
Contact:

Re: Spawn layer questions

Post by sdevaney »

Tomcat wrote:
nyktos wrote:do they work in conjunction with Tiled?
im assuming they do or you wouldnt bother...

and using these tools...
can oskar / scott use whats produced with them without changing what u submit?

just curious, experimenting over here...

:twisted:
Tiled reads and writes TMX files, which the AT app then reads directly, with no other modification necessary. The other data, for monsters, quests, items, etc are stored in XML files, which I believe are also read directly by the app, though I haven't yet identified the code that does that. I haven't tried the editors for those either.
That is pretty much how it works. The only part left out is that the online content editor is used to create all the non-map content. It basically takes your input from the web page and turns it into an XML syntaxed file. Which as Tomcat so excellently pointed out the app gets the bulk of its information.

Although we are currently looking at options to standardize our resource files so that it is easier to both add and extract data.
We are looking to simplify the maintenance and upgrades of the files. As well as hopefully cutting down the time it takes to create the content.

sdevaney
Tomcat
VIP
Posts: 1353
Joined: Tue Feb 08, 2011 7:05 am
android_version: 7.0

Re: Spawn layer questions

Post by Tomcat »

sdevaney wrote:
That is pretty much how it works. The only part left out is that the online content editor is used to create all the non-map content. It basically takes your input from the web page and turns it into an XML syntaxed file. Which as Tomcat so excellently pointed out the app gets the bulk of its information.

Although we are currently looking at options to standardize our resource files so that it is easier to both add and extract data.
We are looking to simplify the maintenance and upgrades of the files. As well as hopefully cutting down the time it takes to create the content.

sdevaney
Is there documentation on the content editor? I've seen a couple of development tutorials that seem out of date. Even just a list of definitions of the field would help ... Many are self explanatory to the average player, but others are harder.

For instance on the Monster tab, what are Size (dimension of icon in tiles?) :?: and Faction? Looking through the monster type xml, I don't see Faction anywhere, and Size is always either blank or rarely 1x1. Also, I figured out what "spawn group" is, but only because I've been poking around in the map file spawn layer. The average player us likely at a loss what to put here.

Anything I can do to help?
Norbert
Lvl:52 XP:2597576 AP:12 HP:124 AC:282 AD:30-42 CHS:27 CM:2.0 ECC:18% BC:132 DR:2
Skills: CS:2 IF:2 Ev:3 Rg:1 DgPro:1 1HPro:2 LtAPro:2 FS-DW:2 Sp-DW:1
Equip: FP BSS JoF RoP PRoB SrpHbk GoLF EnhCH EnhCB
Other: DotSP VD GoW FB TG RoD+6 Oegyth:6
Post Reply