Search found 2964 matches

by Stef
Mon Aug 05, 2019 7:57 am
Forum: SGDK
Topic: About sinFix16()
Replies: 5
Views: 287

Re: About sinFix16()

Chilly Willy perfectly explained the reason of the value you obtained and sin table size :) If you want faster sin wav depending x position, try something as : enemyPosy = contsY + sinFix16(enemyPosx * sinSpeed); If you also want larger sin amplitude then multiply that way : enemyPosy = contsY + sin...
by Stef
Tue Jul 30, 2019 12:34 pm
Forum: Demos
Topic: Sid Meier’s Civilization for Sega Genesis
Replies: 3
Views: 505

Re: Sid Meier’s Civilization for Sega Genesis

One of my preferred game ! It looks really nice :)
Too bad it was never released on Megadrive (while a SNES version does exist). It would be awesome to have mouse support :D
by Stef
Thu Jul 25, 2019 12:29 pm
Forum: SGDK
Topic: SGDK1.4 crashes at compilation
Replies: 4
Views: 194

Re: SGDK1.4 crashes at compilation

Good test :P
Seriously you may have a hardware issue on your laptop, you shoul try some burning tests on it to check that everything is ok.
by Stef
Wed Jul 24, 2019 7:53 am
Forum: SGDK
Topic: SGDK1.4 crashes at compilation
Replies: 4
Views: 194

Re: SGDK1.4 crashes at compilation

Same.. what you have to know is that the new rescomp can heavily use your CPU for the sprite optimization process. I'm almost certain that is overheat problem which cause the hardware failure, you may try to force your computer to run in eco mode (for a laptop), reducing the CPU performance but so a...
by Stef
Mon Jul 22, 2019 9:43 pm
Forum: SGDK
Topic: SGDK1.4 : Typo in sample/xgmplayer
Replies: 1
Views: 144

Re: SGDK1.4 : Typo in sample/xgmplayer

fixed :p

I didn't updated it since a while (so the problem with the SPR_initEx(..) method)
by Stef
Thu Jul 18, 2019 12:21 pm
Forum: SGDK
Topic: 4 PCM example
Replies: 3
Views: 318

Re: 4 PCM example

At least that proves that it's possible ;)
by Stef
Thu Jul 18, 2019 12:17 pm
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 30
Views: 1292

Re: Mega Mouse unused nibbles research

joytest.zipI couldn't tell you why it was hanging, but it was. And the new code fixes the issue. The new functions for checking and setting latched counters is a good idea in any case. Here's the joytest main.c file - I changed it a bit to make it clear that you can compile with it set to auto dete...
by Stef
Wed Jul 17, 2019 11:08 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 30
Views: 1292

Re: Mega Mouse unused nibbles research

After having checked my code, the HV counter latching shouldn't have been a problem as i didn't used the HV Counter for passive wait in usual code, i'm using it mainly for CPU usage statistics.. Anyway i modified the getSubTick() method to take care of that, hoping it will be enough to resolve these...
by Stef
Wed Jul 17, 2019 10:13 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 30
Views: 1292

Re: Mega Mouse unused nibbles research

@Chilly Willy> Thanks for having investigated the issue. I will change the timer code to take care of that :) I have to admit i don't know too much about that HV latching, i though it was "temporary", just the time you read out the HV value from the Int2 callback then the latch was released (probabl...
by Stef
Wed Jul 17, 2019 9:47 am
Forum: SGDK
Topic: 4 PCM example
Replies: 3
Views: 318

Re: 4 PCM example

Unfortunately DefleMask do not allow to use the 4 PCM channels from the XGM driver. I only know one japanese guy using several PCM channels in Megadrive music (and this is quite recent). For that he uses a custom made tool based on MML that it convert to XGM : https://www.youtube.com/watch?v=CFaXGos...
by Stef
Tue Jul 16, 2019 8:42 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 30
Views: 1292

Re: Mega Mouse unused nibbles research

Oh i meant the 23 dec 2014 commit : https://github.com/Stephane-D/SGDK/commit/037f7a192f908b42c844e79b418aa63b709117c4#diff-9448328387d39802f36cc14809afa177 From the changelog: * added Sega Phaser support (Chilly Willy). * updated Joy sample to add Phaser test (Chilly Willy). And you can see that ma...
by Stef
Mon Jul 15, 2019 7:46 am
Forum: Controls
Topic: Mega Mouse unused nibbles research
Replies: 30
Views: 1292

Re: Mega Mouse unused nibbles research

I just pushed changes so it now ignores the FF part of the header :-) Still someone reported (in SGDK Discord server) that menacer support (and probably justifier as well) is broken is last SGDK. It looks like that joytest binary from December 13th 2014 is ok, but I saw you pushed important changes ...
by Stef
Fri Jul 12, 2019 7:44 pm
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 308

Re: Internal XGM specs ?

No way to add that really, at least good luck trying to fit that in.. One of the reason I want to rewrite the driver is to reduce file size ;-)
by Stef
Fri Jul 12, 2019 8:30 am
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 308

Re: Internal XGM specs ?

To be honest i don't think you can modify the current XGM driver to add new feature. It already fills up all the Z80 RAM so it becomes almost impossible to push new features into it. I'm myself thinking about rewriting a new XGM driver (derived from current but still rewrite from scratch) to add new...
by Stef
Thu Jul 11, 2019 10:28 am
Forum: SGDK
Topic: Internal XGM specs ?
Replies: 5
Views: 308

Re: Internal XGM specs ?

Salut Tryphon :)

Yes, internally the XGM is compiled to XGC format (a bit different but not much).
But what do you want to generate XGC format directly ? XGM is simpler to generate and you can always use the xgmtools (available in SGDK) to convert from XGM to XGC.