Author Topic: IQ's PGM WIP  (Read 278330 times)

Offline Aquashark

  • Newbies
  • *
  • Posts: 48
  • Karma: +0/-0
Re: IQ's PGM WIP
« Reply #45 on: February 28, 2009, 01:51:48 AM »
savestates for Martial Masters work well in the session you saved them

if you close the emulator, start it again and load the same savestates.. they won't work well. either the game freezes or sound is absent

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #46 on: February 28, 2009, 04:19:10 AM »
Here's an updated version. Lots of changes. :S
Please test savestates for all games. Also, a speed comparison (against official 97.02 release) would be cool. :)

http://www.fbadev.info/iq_132/fba_029702_pgm3.zip

Here's what changed:
Code: [Select]
* 02-28-2009
 *  Improved sprite drawing routine, should be much faster
 *  - Non-zoomed sprites drawn by seperate routine
 *  - Still very slow...
 *  Cleaned up pgm_run.cpp, removed all protection read/writes
 *  - Moved protection read/writes to pgm_prot.cpp
 *  - Added callback for resetting protection routines
 *  - Removed file writes from killbldt protection routine
 *  Sped up Arm7/68k syncing slightly
 *  - Only sync on 68k reads
 *  Reduced memory allocated for 8x8 tiles (only actually need 4mb)
 *
 * 02-26-2009
 *  Added decryption for kov2p
 *  Added kov2p205 (seems to be a valid dump)
 *  Cleaned up d_pgm.cpp
 *  Added region switch for asic27a games

Known bugs:
Code: [Select]
1 pixel line in oriental legends background
Killing Blade's protection routine is buggy (always has been...)


If everything's all good (I'll fix the olegends bug later), I should be sending this to Barry soon. :)


Offline Aquashark

  • Newbies
  • *
  • Posts: 48
  • Karma: +0/-0
Re: IQ's PGM WIP
« Reply #47 on: February 28, 2009, 07:45:20 AM »
same thing happens for Martial Masters as previous mentioned
with a little note: after loading the savestate (which is at the start of a Versus mode round), now the intro music can still be heard playing

also i set Region to World from dipswitches.. if that matters

Offline KOF2112

  • Expert
  • *****
  • Posts: 187
  • Karma: +14/-4
Re: IQ's PGM WIP
« Reply #48 on: February 28, 2009, 08:41:57 AM »
Quote
*  Added decryption for kov2p
 *  Added kov2p205 (seems to be a valid dump)

Not in Games List

Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: IQ's PGM WIP
« Reply #49 on: February 28, 2009, 11:57:57 AM »
Tests made with fba 029702 pgm3.

* Dragon World II (V110x, export) [drgw2]
- Save states works perfectly
- speed is a little bit slower than in official 97.02 release

* Chuugokuryuu II (V110J, Japan) [drgw2j]
- Save states works perfectly
- speed is a little bit slower than in official 97.02 release

* Zhong Guo Long II (V110C, China) [drgw2c]
- Save states works perfectly
- speed is a little bit slower than in official 97.02 release

* Frog Feast (PGM) [pgmforg]
- Save states works perfectly
- speed is a little bit slower than in official 97.02 release
« Last Edit: February 28, 2009, 12:54:23 PM by JacKc »


Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #50 on: February 28, 2009, 01:54:51 PM »
same thing happens for Martial Masters as previous mentioned
with a little note: after loading the savestate (which is at the start of a Versus mode round), now the intro music can still be heard playing

also i set Region to World from dipswitches.. if that matters
Exit the game first, then load your savestate through the file menu. That works...
Afaict, most of the issues with savestates are due to the sound hardware.

Not in Games List


Because it isn't working.  I've just set kov2106 to BurnDriverD as well (disabling it in non-debug builds).


@JackC -- Thanks, as always. :)

*edit*
Fixed the line in the background of olegend. :)  Graphics should be nearly perfect except for that priority issue in kov2. ^^
« Last Edit: February 28, 2009, 02:20:11 PM by iq_132 »


Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: IQ's PGM WIP
« Reply #51 on: March 01, 2009, 07:46:00 AM »
* Knights of Valor - Sangoku Sanki (V117) [kov]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
- Now no graphical glitches (solved in this version by iq_132)
BUG: Can use only one time a weapons (with P1 button 4), then it likes if this button has been disable (can't use during the rest of the game)

* Knights of Valor - Sangoku Sanki (V100, Japenese Board) [kovj]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG: Can use only one time a weapons (with P1 button 4), then it likes if this button has been disable (can't use during the rest of the game)

* Knights of Valor - Sangoku Sanki (V115) [kov115]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
- Now no graphical glitches (solved in this version by iq_132)
BUG: Can use only one time a weapons (with P1 button 4), then it likes if this button has been disable (can't use during the rest of the game)

* Knights of Valor Plus - Sangoku Sanki Plus (V119, alt) [kovplusa]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG: Can't use weapons (with P1 button 4), it likes if this button has been disable (can't use during the rest of the game)

* Knights of Valor Plus - Sangoku Sanki Plus (V119) [kovplus]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG: Can't use weapons (with p1 button 4), it likes if this button has been disable (can't use during the rest of the game)

* Knights of Valor 2 (V100) [kov2]
- Graphical bug in stage 2 (already known by iq_132)
- Save states works perfectly
- Speed comparison can't be tested 'as kov2 not working in official 97.02 release
BUG: Can't use weapons (with P1 button 4), it likes if this button has been disable (can't use during the rest of the game)

* Knights of Valor 2 (V106) [kov2106]
- Game not working as second ARM7 CPU is not emulated

* Martial Masters (USA, V104 V102 V102) [martmast]
- No graphical bugs (all previous graphical bugs have been solved by  iq_132)
- Save states works perfectly
- Speed comparison can't be tested 'as martmast not supported in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)
Note : martmast should be labelled as V104 V102 V102
snap #1 : fba 029702 pgm3
snap #3 : fba 029702 pgm2


* Martial Masters (China, V104 V102 V101) [martmasc]
- No graphical bugs (all previous graphical bugs have been solved by  iq_132)
- Save states works perfectly
- Speed comparison can't be tested 'as martmast not supported in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)
Note : martmasc should be labelled as V104 V102 V101
snap #2 : fba 029702 pgm3
snap #4 : fba 029702 pgm2


* Oriental Legend - Xi Yo Gi Shi Re Zuang (V106) [orlegend]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)

* Oriental Legend - Xi Yo Gi Shi Re Zuang (V111, Chinese Board)  [orld111c]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)

* Oriental Legend - Xi Yo Gi Shi Re Zuang (V112) [orlegnde]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)

* Oriental Legend - Xi Yo Gi Shi Re Zuang (V112, Chinese Board)  [orlegndc]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)

* Oriental Legend - Xi Yo Gi Shi Re Zuang (V105, Korean Board)  [orlegndc]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)

* P-GeMeni (060123) [pgemeni]
- Perfect graphics
Note : i was enable to "play" this demo (in the case it's playable)
- No sound (as i can't play this demo)

* Photo Y2K - Real and Fake (V104) [photo2yk]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
NOTE:  P1 button 4 not used in this game

* Real and Fake - Photo Y2K (V102, Japenese Board) [raf102j]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
NOTE:  P1 button 4 not used in this game

* Puzzle Star (v100MG) [puzlstar]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
NOTE:  P1 button 4 not used in this game

* The Killing Blade (v104) [killbld]
- Not Working

* The Killing Blade (v109, Chinese Board) [killbldt]
- Save states works perfectly
- speed seems to be the same as in official 97.02 release
BUG:  P1 button 4 is broken (it likes if this button has been disable - can't use during play)

NOTE: Seems in this version, the P1 Button 4 not works and has been disabled (maybe pb in dipswitches?)
« Last Edit: March 01, 2009, 02:48:48 PM by JacKc »


Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #52 on: March 01, 2009, 03:45:09 PM »
Ok, fixed the button 4 issue, that was pretty stupid lol just forgot to clear the inputs from the frame before, leaving the button "on" always after that.


* Martial Masters (USA, V104 V102 V102) [martmast]
Note : martmast should be labelled as V104 V102 V102
snap #1 : fba 029702 pgm3
snap #3 : fba 029702 pgm2


* Martial Masters (China, V104 V102 V101) [martmasc]
Note : martmasc should be labelled as V104 V102 V101
snap #2 : fba 029702 pgm3
snap #4 : fba 029702 pgm2


As far as I can tell, the V104 is the version of the 68K rom, the V102 is the version of the external (large) ARM7 rom, and the v100/v101 is the version of the internal ARM7 rom.  Not sure if I should add this info or not. ^^

At this point, there's really only a single issue that I want to clear up before I submit this -- I managed to break puzzle stars lol.
*edit*
Fixed. :) Going to look at some hacks JackC sent me though.


Btw, can anyone send me the unicode title stuff for kov2? I'd love to have that added as well. ^^
« Last Edit: March 01, 2009, 04:41:31 PM by iq_132 »


Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: IQ's PGM WIP
« Reply #53 on: March 02, 2009, 05:55:36 AM »
...

Btw, can anyone send me the unicode title stuff for kov2? I'd love to have that added as well. ^^
Hi iq_132,

i've found this site : http://www.chinese-tools.com/tools/converter-unicode.html

Also here's Chinese translation from happyasr

Gamecode
01 : Oriental Legend - 西游释厄传
02 : Dragon World 2 - 中国龙2
03: The Killing Blade - 傲剑狂刀
04 : Dragon World 3 - 中国龙3
05 : Oriental Legend Super -   西游释厄传SUPER
06 : Knights of Valor / Plus - 三国战纪/三国战纪正宗Plus
?? : Knights of Valor Super Heroes - 三国战纪-风云再起
07 : Photo Y2k - 大家来找茬
08 : Puzzle Star - 魔幻星座
09 : Puzzli II - ??
10 : Martial Masters -   形意拳
12 : Knights of Valor 2 - 三国战纪2
?? : Knights of Valor 2 Plus - 三国战纪2-群雄争霸
13 : DoDonpachi II - 怒首领蜂-蜂暴
45 : Demon Front - 魔域战线
46 : The Gladiator - 神剑风云
53 : Oriental Legend Ex - 西游释厄传-群魔乱舞
54 : Knights of Valor Heroes - 三国战纪-乱世枭雄
56 : Spectral Vs Generation - 圣魔世纪
57 : The Killing Blade Plus - 傲剑狂刀加强版


Offline OopsWare

  • Expert
  • *****
  • Posts: 38
  • Karma: +31/-0
Re: IQ's PGM WIP
« Reply #54 on: March 03, 2009, 02:01:25 AM »
WOW ....  the only word i can say ....  :eek:

Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #55 on: March 03, 2009, 05:36:39 PM »
WOW ....  the only word i can say ....  :eek:

I'm glad you approve. :) :)


On that note, I've submitted my sources to Barry.  With some luck, they'll be in the next FBA release. ^^


Offline iq_132

  • Administrator
  • *****
  • Posts: 3723
  • Karma: +411/-0
  • Definitely not Dink!
    • NeoSource
Re: IQ's PGM WIP
« Reply #56 on: March 03, 2009, 11:50:25 PM »
Fixed the priority issues with kov2. :)

Apparently, it is suppose to draw from sprite 0 until it reaches the last low (background) priority sprite behind the background layer, and then draw from that sprite to the end above the background. ^^  In the current implementation in MAME/FBA, it draws background priority until it reaches a foreground priority sprite.
« Last Edit: March 18, 2009, 01:01:30 PM by iq_132 »


Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: IQ's PGM WIP
« Reply #57 on: March 04, 2009, 07:05:16 AM »
WOW...Finally, you've fixed this priority issue :biggrin:

Great job iq_132 !!!


Offline KaNyErO

  • Member
  • ***
  • Posts: 142
  • Karma: +4/-0
Re: IQ's PGM WIP
« Reply #58 on: March 04, 2009, 07:25:21 AM »
shouldn't those characters have a shadow?

btw: Great job :)


Offline JacKc

  • FBNeo Dev
  • ******
  • Posts: 1677
  • Karma: +56/-0
  • Hasta la vista, Baby !
Re: IQ's PGM WIP
« Reply #59 on: March 04, 2009, 08:26:57 AM »
@ kaNyErO : Thoses characters must have shadows...But for Nebula, and FBA (after priority issue has been fixed), in stage 2, there is no shadow for characters...As in Mame, shadows are emulated but there is also the Background graphical bug with the grass

1) Nebula
2) Mame
3) FBA after Priority issue for kov2 in stage 2 has been Fixed
4) FBA before Priority issue for kov2 in stage 2 has been Fixed
5) FBA before Priority issue for kov2 in stage 2 has been Fixed

Something interesting in snap 4 and 5 :
- In snap 4 the grass doesn't appear and character shadow is here
- In snap 5 the grass appears but no shadow for character
« Last Edit: March 04, 2009, 08:38:08 AM by JacKc »