[GenRes] resource compiler

Talk about development tools here

Moderator: BigEvilCorporation

Post Reply
User avatar
KanedaFr
Administrateur
Posts: 1118
Joined: Tue Aug 29, 2006 10:56 am
Contact:

[GenRes] resource compiler

Post by KanedaFr » Tue Dec 01, 2015 11:13 pm

As you know, rescomp is the official resource compiler of SGDK.
See GenRes has an alternative but be warned :
  • I updated it when I need it
  • No header (resource.h) generated because I don't follow this way, I prefer to handle it manually
I also included a lot of tools related to sound (Echo's related, PCM, PSG...) and MAP support multi layers.
And I doc the build process to let anyone make his own change, build it on other OS or convert it for another retro system.


If you still want to try it, jump to bitbucket download page and use the magic command :

Code: Select all

genres help



Available Plugins (2.1 - 06Dec'18):
BITMAP
Convert any 16 colors image to tiles.

HIRES
Convert a 31 colors image to 2 planes / 2 palettes data....like ToyStory did for exemple

FONT
minimal version of `BITMAP` to import font (96 tiles)

PAL
extract 16colors pal

SPRITE
Like `BITMAP` but convert to suitable sprites

SPRITESHEET
A more advanced feature : convert a image with several sprites to a list of sprites, with framerate, user defined animation, collide box...
made before SGDK sprite feature so you won't be able to use it like this

MAP
Import layers and bitmap data from [Mappy](http://www.tilemap.co.uk/mappy.php) maps
Handle any size of tiles if 8-based (ie will split them in 8x8 tile)
Quantize to 16 colors if needed
I really wanted to be able to load MAP/FMP from any source :)

CONTROLS
Add moves list or cheat code to your game.

DAC
Convert sound to use with any of the SGDK supported drivers

PSG
Import Atari, Amstrad, MSX.. tone *(no noise support)*

ECHO_BANK
Easily create Echo instrument list.
Support almost every ym2612 instrument dump format.

ECHO_BGM
Convert MIDI file to ECHO bgm

ECHO_SFX
Create sfx based on Echo instruments

DATA
Add raw data, similar to bintoc tool or asm's INCBIN




Difference with GenRes 1.0
GenRes 1.x used

Code: Select all

plugin id file option option option option option
which is not really suited for fine tuning (ie lots of options!)

GenRes 2.x uses

Code: Select all

plugin id file
{
option 
option
option
...
}


note: for anyone interested, MAP support is based on my free Mappy Library, available on https://bitbucket.org/SpritesMind/libmappy

troudki
Interested
Posts: 17
Joined: Sun Dec 20, 2015 10:31 am

Re: [GenRes] 2.0 released

Post by troudki » Sun Dec 20, 2015 11:32 am

Yes.. very cool to convert Atari ST YM file to PSG format..
Newbie question : how to link or import the output (asm file) to SGDK ? :oops:

troudki
Interested
Posts: 17
Joined: Sun Dec 20, 2015 10:31 am

Re: [GenRes] 2.0 released

Post by troudki » Wed Dec 23, 2015 4:47 am

:oops: ok i found it.. i didn't see the sample test/basic in bitbucket ..
I tried with a YM Atari ST and the result replay is little speedy :?

User avatar
KanedaFr
Administrateur
Posts: 1118
Joined: Tue Aug 29, 2006 10:56 am
Contact:

Re: [GenRes] 2.0 released

Post by KanedaFr » Wed Dec 23, 2015 10:42 am

since YM is based on VBL, did you play it on NTSC or PAL system ?
Also did you use the correct DESTINATION value (see genres help psg) ?

troudki
Interested
Posts: 17
Joined: Sun Dec 20, 2015 10:31 am

Re: [GenRes] 2.0 released

Post by troudki » Sat Jan 02, 2016 11:31 pm

Play in PAL system works perfect.
Thx for this great feature to convert YM file

User avatar
KanedaFr
Administrateur
Posts: 1118
Joined: Tue Aug 29, 2006 10:56 am
Contact:

[GenRes] 2.1 released

Post by KanedaFr » Fri Dec 07, 2018 8:31 am

New version 2.1 available
Include HIRES plugin
Fix MAP plugin in many ways (TILE option, layer up to 100, support any FMP format...)
New MAP option : FORCE16 (quantize tiles to 16 colors)

+ all the stuff I made on 2.0beta about PSG

see main post for link and details

Post Reply

Who is online

Users browsing this forum: No registered users and 0 guests