Author Topic: Problems with "Comical Machine Gun Joe"  (Read 2099 times)

0 Members and 1 Guest are viewing this topic.

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1491
  • Just a coding machine.
Re: Problems with "Comical Machine Gun Joe"
« Reply #15 on: August 30, 2010, 11:23:11 AM »
Here's a test version of the plugin.

Now,when the header is invalid the plugin checks the extension&follows this logic:

If the extension is ".sms"(all cases supported) then SMS runmode will be picked.
If the extension is ".md/32x/bin/gen/mars" and the size of the rom is > 32Mbit , then the runmode is set to MD32X_32_40Mbit
otherwise to MD32X_1_32Mbit(no save).

For all cases a warning message is displayed so that the user knows that something weird is happening behind the scenes.

Well, that seems to work, but the cart still won't run from flash. Weird... it works from SD, and other SMS games run from flash. I'm looking into it.
 ???

It may have something to do with the fact that the smallest size a flash game can be is 1 Mbit. What does your plugin do for games smaller than 128KB?
« Last Edit: August 30, 2010, 11:27:03 AM by ChillyWilly »

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2095
Re: Problems with "Comical Machine Gun Joe"
« Reply #16 on: August 30, 2010, 11:40:09 AM »
It may have something to do with the fact that the smallest size a flash game can be is 1 Mbit. What does your plugin do for games smaller than 128KB?

Nothing actually  ~sm-42.gif~

Here's a test version that pads the rom to 1Mbit when needed.  :)
Now its up to the programmer.

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1491
  • Just a coding machine.
Re: Problems with "Comical Machine Gun Joe"
« Reply #17 on: August 30, 2010, 12:24:25 PM »
Still doesn't work. I wrote F16 out as a test - it's also 32KB, but has a header. It almost works... it starts, but the game doesn't seem to work right. Maybe there's a problem in the client writing files smaller than 1 Mbit...

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2095
Re: Problems with "Comical Machine Gun Joe"
« Reply #18 on: August 30, 2010, 12:31:58 PM »
I'll tell to SivenYu to readback the size of the patched rom.That should fix it i think  ~sm-68.gif~.gif

Offline madmonkey

  • Moderator
  • Full Member
  • *****
  • Posts: 174
Re: Problems with "Comical Machine Gun Joe"
« Reply #19 on: September 09, 2010, 11:11:23 AM »
I may be late to the party, but
sms roms only run from flash if they're written aligned on 512KB.
size of the rom doesn't matter, if it's not written aligned, it will not run.

Offline ChillyWilly

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 1491
  • Just a coding machine.
Re: Problems with "Comical Machine Gun Joe"
« Reply #20 on: September 09, 2010, 12:28:12 PM »
I may be late to the party, but
sms roms only run from flash if they're written aligned on 512KB.
size of the rom doesn't matter, if it's not written aligned, it will not run.

That's probably it. I noticed that a rom written to 0 always works, but the next one rarely does depending on the sizes.

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2095
Re: Problems with "Comical Machine Gun Joe"
« Reply #21 on: September 10, 2010, 01:03:17 AM »
Here , try this.It aligns SMS roms to 512KB(when needed) as madmonkey suggested  :)

Offline madmonkey

  • Moderator
  • Full Member
  • *****
  • Posts: 174
Re: Problems with "Comical Machine Gun Joe"
« Reply #22 on: September 10, 2010, 05:42:21 AM »
can you do that from a plugin?
it needs to be aligned on flash, not pc memory

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2095
Re: Problems with "Comical Machine Gun Joe"
« Reply #23 on: September 10, 2010, 07:46:09 AM »
can you do that from a plugin?
it needs to be aligned on flash, not pc memory

I just align the memory buffer and its size  ~sm-69.gif~.gif
If the write routine writes 512KB aligned blocks it should work , since large sms roms work.

Offline madmonkey

  • Moderator
  • Full Member
  • *****
  • Posts: 174
Re: Problems with "Comical Machine Gun Joe"
« Reply #24 on: September 10, 2010, 09:27:23 AM »
If the write routine writes 512KB aligned blocks
that's a big if :)
you can just resize all roms smaller than 512KB to that size, but if I'm not mistaken, programmer doesn't read back modified size.

Offline Conle

  • Global Moderator
  • Hero Member
  • *****
  • Posts: 2095
Re: Problems with "Comical Machine Gun Joe"
« Reply #25 on: September 10, 2010, 11:12:35 AM »
that's a big if :)
you can just resize all roms smaller than 512KB to that size, but if I'm not mistaken, programmer doesn't read back modified size.

SivenYu implemented this at some point in the new patching system.It seems to work with the SNES plugin but haven't debugged it yet though.  :)