Search Results
Post Author Forum Replies Views Posted [asc]
    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 60,642 10-30-2022, 09:58 PM
    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 60,642 10-30-2022, 09: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 60,642 10-30-2022, 05:35 AM
    Thread: Read Access Violation
Post: RE: Read Access Violation

megamarc Wrote: (10-30-2022, 02:34 AM) -- No it can't as they're two unrelated properties: Layer.palette is an optional property that can be NULL -and by default is-, whereas Tileset.palette is manda...
System64 Support 15 26,909 10-30-2022, 02:51 AM
    Thread: Read Access Violation
Post: RE: Read Access Violation

megamarc Wrote: (10-29-2022, 07:44 PM) -- Hi! Thanks for your suggestion. However, it's not recommended to modify linked resources that have been loaded recursively. For example when you load a tile...
System64 Support 15 26,909 10-29-2022, 10:30 PM
    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 60,642 10-29-2022, 08:12 PM
    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 60,642 10-29-2022, 09:34 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 60,642 10-29-2022, 02:15 AM
    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 60,642 10-28-2022, 04:07 AM
    Thread: Read Access Violation
Post: RE: Read Access Violation

megamarc Wrote: (10-27-2022, 09:24 AM) -- System64 Wrote: (10-27-2022, 03:47 AM) -- Hi, can one tileset uses multiple palettes? (Like Palette attribute per tile in old consoles) Thanks for your answ...
System64 Support 15 26,909 10-27-2022, 11:45 PM
    Thread: Read Access Violation
Post: RE: Read Access Violation

megamarc Wrote: (10-27-2022, 03:15 AM) -- Thanks for your feedback guys! I've pushed the fix to the multi-palette issue to github, you an update your builds to release 2.11.3. As it's an important f...
System64 Support 15 26,909 10-27-2022, 03:47 AM
    Thread: Palette attribute per tile
Post: RE: Palette attribute per tile

megamarc Wrote: (08-11-2022, 04:11 PM) -- You should modify the loader in LoadTilemap.c to load a custom property from Tiled called "palette" for example. Use this property to set an integer value wi...
System64 Support 11 23,393 08-11-2022, 04:40 PM
    Thread: Palette attribute per tile
Post: RE: Palette attribute per tile

Okay so I now have a problem. The problem I have is I want to store the palette index in each tile cell of the tilemap. Sadly, Tiled doesn't support that. However, I can make a second layer that cont...
System64 Support 11 23,393 08-11-2022, 06:22 AM
    Thread: Palette attribute per tile
Post: RE: Palette attribute per tile

megamarc Wrote: (08-10-2022, 07:54 PM) -- No doubt you'll have segfaults while developing features! :P  I often suffer them, too, so it's normal. Unmanaged languages with direct memory access like C ...
System64 Support 11 23,393 08-10-2022, 08:52 PM
    Thread: Palette attribute per tile
Post: RE: Palette attribute per tile

megamarc Wrote: (08-10-2022, 03:28 PM) -- To fully support per-tile palette, you should modify DrawLayerScanline(), DrawLayerScanlineScaling(), DrawLayerScanlineAffine() and DrawLayerScanlinePixelMap...
System64 Support 11 23,393 08-10-2022, 05:02 PM
    Thread: Palette attribute per tile
Post: RE: Palette attribute per tile

megamarc Wrote: (08-09-2022, 02:52 PM) -- Hi again, The renderer should know which palette to use for each tile based on the palette index bits, in the same way it knows what graphic to draw based o...
System64 Support 11 23,393 08-09-2022, 08:50 PM
    Thread: Palette attribute per tile
Post: RE: Palette attribute per tile

megamarc Wrote: (08-09-2022, 01:18 AM) -- Hi! I've thougth about this feature some time ago. To implement this, there should be a global store of slotted palettes -layers and sprites are slotted, ...
System64 Support 11 23,393 08-09-2022, 01:51 AM
    Thread: Palette attribute per tile
Post: Palette attribute per tile

Hi I want to implement a palette attribute per tile like most retro consoles such as NES, SNES, MegaDrive/Genesis did into my fork of Tilengine Have you an idea about how I can implement this please...
System64 Support 11 23,393 08-08-2022, 05:40 PM
    Thread: Tilengine Anim Suite
Post: RE: Tilengine Anim Suite

jackjohnson Wrote: (06-27-2022, 12:13 PM) -- What program should I use to make sprites?  paper.io 2 (https://paperio2.online/)   -- Aseprite is the best pixel art software in my opinion
System64 Presentations 4 10,965 06-29-2022, 04:18 AM
    Thread: [Suggestion] Getting the positions of a layer
Post: RE: [Suggestion] Getting the positions of a layer

RootBeerKing Wrote: (05-18-2022, 11:29 PM) -- Did you ever make the pull request for this? Would love these features to be added to the main project. -- I just did the pull request right now.
System64 Support 8 20,481 05-31-2022, 06:15 PM