Search found 117 matches

by Moon-Watcher
Thu Oct 10, 2013 9:27 am
Forum: SGDK
Topic: Compiled TFM files are too big. How to reduce it?
Replies: 12
Views: 6942

Code: Select all

void TFC_init(const u8*);
void TFC_frame(void);
void TFC_play(u16);
Good point. I'll try to avoid this problem using the 68K driver
Stef wrote:I don't know if the driver source is available somewhere
Isn't it z80_tfm.s80 file?
by Moon-Watcher
Wed Oct 09, 2013 10:15 am
Forum: SGDK
Topic: Compiled TFM files are too big. How to reduce it?
Replies: 12
Views: 6942

You just need to modify the makefile.gen file : Replace %.s: %.tfc $(BINTOS) -align 32768 $< with %.s: %.tfc $(BINTOS) $< and it should reduce dramatically the size of your rom, but it may broke the TFM driver. Yep, it broke the driver. Do you use the 68k driver or the Z80 one ? I dunno :oops: Just...
by Moon-Watcher
Wed Oct 09, 2013 8:41 am
Forum: SGDK
Topic: Compiled TFM files are too big. How to reduce it?
Replies: 12
Views: 6942

Did some tests.

I compiled an old SGDK project without the align parameter and it generated a smaller rom. Haven't tested much.

I compiled my current project using the Uwol method. Of course it generated a smaller rom too but some tracks sounds really bad.
by Moon-Watcher
Tue Oct 08, 2013 9:02 am
Forum: SGDK
Topic: Compiled TFM files are too big. How to reduce it?
Replies: 12
Views: 6942

I shall answer myself.

I managed to shrink the rom from 768KB to 384KB ROM by using bin2h.exe (from Uwol source, thanks, Shiru!) instead of bintos.exe

Looks there's something weird in the SGDK / bintos.exe
by Moon-Watcher
Thu Oct 03, 2013 11:36 am
Forum: SGDK
Topic: Compiled TFM files are too big. How to reduce it?
Replies: 12
Views: 6942

Compiled TFM files are too big. How to reduce it?

All .o files compiled from .tfm are about 33-36kB, no matter its original size. Isn't it too much? How can I reduce it?
by Moon-Watcher
Wed Oct 02, 2013 3:13 pm
Forum: Tools
Topic: [SGDK] limit on the number of files?
Replies: 15
Views: 12366

I recently found this problem in my actual project in last SGDK</unuseful_reply> :P

- Edit:
Somebody move to the SGDK subforum, please
by Moon-Watcher
Mon Sep 16, 2013 11:48 am
Forum: SGDK
Topic: Colorful text without sprites
Replies: 5
Views: 4556

VDP_setPaletteColor(PAL2, 0x000E ); /** * \brief * Set RGB color to specified palette entry. * * \param index * Color index to set (0-63). * \param value * RGB intensity to set in the specified color index. */ void VDP_setPaletteColor(u16 index, u16 value); VDP_setPaletteColor doesn't accept "PAL2"...
by Moon-Watcher
Sat Aug 24, 2013 2:01 pm
Forum: SGDK
Topic: Changing rom header w/o recompiling SGDK
Replies: 9
Views: 6551

All my code uses a different header for every project since they all use different header info. What trouble did you have trying to put the header in the project directory? It seems a simple enough change to the makefile in the project directory - just use the current directory for the path to the ...
by Moon-Watcher
Fri Aug 23, 2013 2:08 pm
Forum: SGDK
Topic: Changing rom header w/o recompiling SGDK
Replies: 9
Views: 6551

Hmmm, /me thinking about a configuration file + command line tool executed in the makefile to modify the rom.bin could do the work...
by Moon-Watcher
Fri Aug 23, 2013 2:03 pm
Forum: SGDK
Topic: VDP_setScrollingMode error
Replies: 3
Views: 2960

Thanks for sharing. I also found SND_stopPlay_TFM() in sound.c :)
by Moon-Watcher
Fri Aug 23, 2013 10:53 am
Forum: SGDK
Topic: VDP_setScrollingMode error
Replies: 3
Views: 2960

VDP_setScrollingMode error

Seems VDP_setScrollingMode doesn't restore horizontal scroll by plane if it were previously set by tile. Not tested by line or vertical. VDP_setScrollingMode ( HSCROLL_TILE, VSCROLL_PLANE ); ... VDP_setScrollingMode ( HSCROLL_PLANE, VSCROLL_PLANE ); // doesn't work VDP_setReg ( 0x0B, 0 ); // resets ...
by Moon-Watcher
Fri Aug 23, 2013 10:32 am
Forum: SGDK
Topic: Changing rom header w/o recompiling SGDK
Replies: 9
Views: 6551

Changing rom header w/o recompiling SGDK

How?
by Moon-Watcher
Sun Aug 11, 2013 11:56 am
Forum: SGDK
Topic: Get sprite position/tile/palette etc.
Replies: 5
Views: 3937

You can use spriteDefCache array to get sprite data
by Moon-Watcher
Tue Jun 25, 2013 1:51 pm
Forum: SGDK
Topic: SND_startPlay_TFM doesn't sound like it should
Replies: 2
Views: 2547

Stef wrote:The only way to actually interrupt TFM playing is to unload the TFM driver (by loading another driver for instance).
Good point. I think I'll go that way.
by Moon-Watcher
Tue Jun 25, 2013 12:54 pm
Forum: SGDK
Topic: SND_startPlay_TFM doesn't sound like it should
Replies: 2
Views: 2547

SND_startPlay_TFM doesn't sound like it should

Playing multiple TFD's files via SND_startPlay_TFM function I notice a weird behavior. Can't describe what's exactly wrong and also can't say why it happens, but music certainly doesn't sound like it should. Can someone point about what's going on? ---------------------------------------------------...