|
Search Results
|
| Post |
Author |
Forum |
Replies
[asc]
|
Views |
Posted |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: [Issue?] Two tilesets, one palette?
| Hi,
I did this code :
Code:
--
#include "includes/Tilengine.h"
#include
int main()
{
TLN_Tilemap tilemap = TLN_LoadTilemap("assets/floor/floor-tilemap.tmx", "floor");
TLN_Init (400, 240, 1... |
|
System64 |
Support
|
32 |
66,926 |
10-28-2022, 04:07 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (10-29-2022, 01:46 AM)
--
Hi!
You are loading the tilemap before initialising the tileset, that may cause problems. TLN_Init() should go first.
--
So I need to initialise the Tiles... |
|
System64 |
Support
|
32 |
66,926 |
10-29-2022, 02:15 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (10-29-2022, 08:38 AM)
--
No, you need to initialise the engine with TLN_Init() before anything else. You're loading a tilemap before initialising the engine.
--
I fixed that, but I... |
|
System64 |
Support
|
32 |
66,926 |
10-29-2022, 09:34 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (10-29-2022, 07:21 PM)
--
In that case, I need to test it with the same assets you're using. With my test assets, it woks as expected. Can you upload them here?
--
Here are my asset... |
|
System64 |
Support
|
32 |
66,926 |
10-29-2022, 08:12 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
System64 Wrote: (10-29-2022, 08:12 PM)
--
megamarc Wrote: (10-29-2022, 07:21 PM)
--
In that case, I need to test it with the same assets you're using. With my test assets, it woks as expected. Can y... |
|
System64 |
Support
|
32 |
66,926 |
10-30-2022, 05:35 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (10-30-2022, 04:44 PM)
--
Hi,
I've run your test assets with Tilengine 2.11.3, and I get expected results.
This is Tiled wiew:
And this is Tilengine window result:
What do you... |
|
System64 |
Support
|
32 |
66,926 |
10-30-2022, 09:12 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (10-30-2022, 09:34 PM)
--
Strange... can you do git pull and rebuild the engine again? Your output corresponds to when multi palette issue was still not fixed. Output should be like i... |
|
System64 |
Support
|
32 |
66,926 |
10-30-2022, 09:58 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (10-31-2022, 03:16 AM)
--
Don't worry!
Thanks for your interest in this project and for providing useful tests cases that help finding bugs.
Hope you continue enjoying it and discov... |
|
System64 |
Support
|
32 |
66,926 |
10-31-2022, 04:19 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (10-31-2022, 04:35 AM)
--
Hi!
You have to use the TLN_SetTilemapTile() (https://www.tilengine.org/doc/group__tilemap.html#gad24907cc3b0c85a04f2a9345acc756a6) function and set the cor... |
|
System64 |
Support
|
32 |
66,926 |
10-31-2022, 11:22 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (11-04-2022, 03:44 AM)
--
Hi!
I'm glad this is already working for you. At's a good idea indeed: having non-standard attributes in separate layers using tile indexes, and mass-tran... |
|
System64 |
Support
|
32 |
66,926 |
11-04-2022, 03:51 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
| Okay so I'm currently talking with the devlopper of 16Tile. Is there some fields in the JSON you are interested in?
Also, note this tool can only have one tileset per layer. |
|
System64 |
Support
|
32 |
66,926 |
11-07-2022, 06:01 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (11-08-2022, 04:44 PM)
--
Hi,
Thanks for the info! I'll take a look.
zlib + base64 is a common scheme to encode binary data inside text files. It's the same format used in Tiled... |
|
System64 |
Support
|
32 |
66,926 |
11-12-2022, 03:05 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (11-03-2022, 03:35 AM)
--
Hi,
I've just pushed release 2.13 o GitHub that implements per-tile palette like in classic 2D chipsets. Up to 8 global palettes can be set with TLN_SetGl... |
|
System64 |
Support
|
32 |
66,926 |
11-03-2022, 08:07 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (11-03-2022, 04:44 PM)
--
Hi!
Glad you like this new feature :-)
Unfortunately Tiled editor doesn't allow setting custom properties on individual tilemap cells, only on tileset tile... |
|
System64 |
Support
|
32 |
66,926 |
11-03-2022, 07:10 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (11-03-2022, 10:22 PM)
--
Hi,
This kind of proposed functionality should be implemented in the application -game- domain, not inside the engine. It's not a bad idea, but it's kind of... |
|
System64 |
Support
|
32 |
66,926 |
11-03-2022, 11:12 PM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (11-04-2022, 12:32 AM)
--
Hi again!
Having a tool that isn't open source isn't a problem per se -at least for me- as long as it does what is expected to do. The problem is that t... |
|
System64 |
Support
|
32 |
66,926 |
11-04-2022, 03:18 AM |
| |
|
Thread: [Issue?] Two tilesets, one palette?
Post: RE: [Issue?] Two tilesets, one palette?
|
megamarc Wrote: (11-07-2022, 07:57 AM)
--
Hi!
Glad to know you're in contact with the developer.
The fields I'm interested on are those encoded in base64:
Tilemap.Grid
Tileset.Buffer
Tileset.Bu... |
|
System64 |
Support
|
32 |
66,926 |
11-08-2022, 03:31 AM |
| |
|
Thread: Vertical callback or per pixel callback : I understand/How does Tilengine work?
Post: RE: Vertical callback or per pixel callback : I un...
|
megamarc Wrote: (08-23-2023, 02:54 PM)
--
Hi!
Basic scaling (Neo-Geo style) is quite cheap, if fact zoomed-in layers have more pixel throughput than regular layers, because as each tile covers mor... |
|
System64 |
Support
|
29 |
49,469 |
08-23-2023, 06:01 PM |
| |
|
Thread: Vertical callback or per pixel callback : I understand/How does Tilengine work?
Post: RE: Vertical callback or per pixel callback : I un...
|
megamarc Wrote: (08-26-2023, 01:11 AM)
--
Hi!
Sorry, I can't give advice on reimplementing Tilengine in another language I don't know. I can however add new features based on suggestions, or fix exi... |
|
System64 |
Support
|
29 |
49,469 |
08-26-2023, 05:43 AM |
| |
|
Thread: Vertical callback or per pixel callback : I understand/How does Tilengine work?
Post: RE: Vertical callback or per pixel callback : I un...
|
megamarc Wrote: (08-30-2023, 08:53 PM)
--
Hi!
You can do this as long as you first call:
Code:
--
TLN_DisableLayer(myLayer)
--
If not, you'll be deleting a resource that is attached to an ... |
|
System64 |
Support
|
29 |
49,469 |
08-30-2023, 08:59 PM |