CusPop TODO list

Discussions about all other tools (CusPop, SAV/HOF editors) and hex editing.

Moderator: English Moderator Team

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: CusPop TODO list

Postby David » August 13th, 2016, 11:11 am

"level 1 crouching start" seems to work for me...
Note that it also changes the level of the "closing gate" special event.

"level 1 music", however, has two problems in its current form:
(See the end of the post for a hack that seems to work!)

1. The current hack changes only this part: [1]

Code: Select all

seg005:02EB 83 3E AA 4C 00                       cmp     need_level1_music, 0
seg005:02F0 74 30                                jz      loc_6102
seg005:02F2 83 3E 9E 0F 01                       cmp     current_level, 1 ; Special event: music when crouching
seg005:02F7 75 29                                jnz     loc_6102

SDLPoP: if (need_level1_music != 0 && current_level == 1) {

But the level number in this part should also be changed: [2]

Code: Select all

seg003:0041 83 7E 06 01                          cmp     [bp+level], 1 ; <-- here
seg003:0045 75 05                                jnz     loc_483C
seg003:0047 B8 01 00                             mov     ax, 1
seg003:004A EB 02                                jmp     short loc_483E
seg003:004C                      loc_483C:
seg003:004C 2B C0                                sub     ax, ax
seg003:004E                      loc_483E:
seg003:004E A3 AA 4C                             mov     need_level1_music, ax

SDLPoP: need_level1_music = (level == 1);

2. But even then, the music plays only if I start the game directly on the new level, using megahit.
That's because [2] is in init_game(), instead of play_level().
[Note: In the original game, the music plays only of you start directly on level 1, but not if you shift+L there from level 14.]

How to solve this?
The easiest way I found is to force the need_level1_music variable to be 1 always.
(We can do this without the danger of getting music on the wrong level, because the level number is re-checked in [1].)
That is: In [2], instead of changing the level number, just replace jnz with 2*NOP.

So what you need to do is: (in addition to what CusPoP currently does)
Search: 83 7E 06 01 75 05
Change: 75 05 to 90 90

Dark77
Wise Scribe
Wise Scribe
Posts: 293
Joined: October 26th, 2010, 7:10 pm
Location: Poland

Re: CusPop TODO list

Postby Dark77 » August 13th, 2016, 1:06 pm

Thank you! Now it all works. You were right, the crouching start setting works properly.

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: CusPop TODO list

Postby David » November 26th, 2016, 9:34 pm

Another TODO item: Guard skills: viewtopic.php?p=19945#p19945

David
The Prince of Persia
The Prince of Persia
Posts: 1327
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

Re: CusPop TODO list

Postby David » December 3rd, 2016, 10:35 am

doppelganger wrote:I could swear I saw a '1 minute remaining' message somewhere... maybe in a port of the game?

Maybe on the SEGA Genesis? viewtopic.php?p=19994#p19994

salvadorc17
Calif
Calif
Posts: 458
Joined: August 27th, 2011, 2:04 am

Re: CusPop TODO list

Postby salvadorc17 » December 3rd, 2016, 10:49 pm

David wrote:Another TODO item: Guard skills: viewtopic.php?p=19945#p19945


Guard skill should be configurable, does it not use the vales based on guard colors, some will have more skills than other..

User avatar
doppelganger
Vizier
Vizier
Posts: 110
Joined: April 24th, 2015, 9:04 am
Location: India

Re: CusPop TODO list

Postby doppelganger » December 14th, 2016, 10:10 am

David wrote:
doppelganger wrote:I could swear I saw a '1 minute remaining' message somewhere... maybe in a port of the game?

Maybe on the SEGA Genesis? viewtopic.php?p=19994#p19994


Yep. The Sega Genesis.
Doppelgänger
Hmm.. These mortals know about me.. :evil:

Download 'Hell of A Palace' now from Popot!


Return to “Other Tools & Hex Editing”

Who is online

Users browsing this forum: No registered users and 2 guests