Simple Tiled Implementation - STI v1.2.3.0

Showcase your libraries, tools and other projects that help your fellow love users.
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.7

Post by Karai17 »

Ah! I've fixed it so it uses the 0.9.2 feature set.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by Karai17 »

Added an image cache so that loading multiple maps with shared tilesets doesn't cause huge memory usage.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
User avatar
Rishavs
Party member
Posts: 103
Joined: Sat Oct 17, 2009 5:29 am
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by Rishavs »

m'man! i bring news of crashes and bugs.

Loading super duper mega maps via your library causes it to crash. worse, it kills the main love thread and the console doesnt registers any logs.

attaching the super duper mega map here so you can looksy it.
Image

PS. the map is created procedurally by a program called worldengine.
More discussion and the actual map is here;
http://forum.mapeditor.org/t/worldengin ... led/896/11
Attachments
tiled_seed_18000_comp.lua
(606.53 KiB) Downloaded 67 times
256_decor.png
256_decor.png (1.15 MiB) Viewed 2873 times
256_base.png
256_base.png (2.69 MiB) Viewed 2873 times
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by Karai17 »

So there are a few things I can say right off the bat.

1) Your chunks are WAY too big! STI just recently supports loading multiple maps so I highly recommend making significantly smaller maps and placing them in a grid using pixel offsets.

2) Your textures are outside the size range for many graphics cards. You should try to make the textures more compact and square if possible, such as 2048x2048 and trim off any unneeded spacing and other junk data.

I believe that your system is simply running out of memory trying to load such an unreasonable map.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
User avatar
Rishavs
Party member
Posts: 103
Joined: Sat Oct 17, 2009 5:29 am
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by Rishavs »

> unreasonable

:3 okie.

Thanks anyway.
I tried other tmx files and it does works with smaller files.

Would be nice to get some exact exception though so I can send it to the map maker. He would have liked the feedback on it.
Any idea how i can achieve that?
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by Karai17 »

It's hard to say what a reasonable chunk size limit should be. For instance, Minecraft chunks are 16x16x256. 16x16 is pretty small for a 2D tilemap, though. I would recommend maybe 128x128 tile chunks, or maybe up to 512x512. Anything bigger than that would just be a pain.
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
HumanRegret
Prole
Posts: 4
Joined: Mon Nov 09, 2015 12:44 pm

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by HumanRegret »

Do you think it could be possible to add in a feature that takes in a layer with a custom property eg. table = true then we can grab all tile locations from that layer and add it to a table with x,y coords, something like tabled = map.cTable. It would be for the sake of being able to draw things like Objectives, collectables etc onto the tiled map, load the map into sti, grab the coord data and remove that layer from view, run a for loop to loop through the table of coords for collisions, drawing items individually etc? Just a thought..
User avatar
Karai17
Party member
Posts: 930
Joined: Sun Sep 02, 2012 10:46 pm

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by Karai17 »

Why not just use an object layer?
STI - An awesome Tiled library
LÖVE3D - A 3D library for LÖVE 0.10+

Dev Blog | GitHub | excessive ❤ moé
HumanRegret
Prole
Posts: 4
Joined: Mon Nov 09, 2015 12:44 pm

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by HumanRegret »

Had no idea you could use object layers. ;o
User avatar
NightKawata
Party member
Posts: 294
Joined: Tue Jan 01, 2013 9:18 pm
Location: Cyberspace, Room 6502
Contact:

Re: Simple Tiled Implementation - STI v0.14.1.8

Post by NightKawata »

HumanRegret wrote:Had no idea you could use object layers. ;o
Yep, you can indeed use an object layer for that.

Image

I keep a palette map of all the object tiles, and then:

Image

boom.
"I view Python for game usage about the same as going fishing with a stick of dynamite. It will do the job but it's big, noisy, you'll probably get soaking wet and you've still got to get the damn fish out of the water." -taylor
Post Reply

Who is online

Users browsing this forum: slime and 28 guests