Search found 30 matches

by FluffyQuack
December 5th, 2022, 11:56 pm
Forum: Other Remakes and Ports
Topic: Fluffy's Prince of Persia
Replies: 1
Views: 128

Re: Fluffy's Prince of Persia

I kind of put this project on the backburner the last few months, but I went back to it a few weeks ago. First of all, for the heck of it, here are some early screenshots I made in September. This was at the very start of the project where I've got level data loaded and I'm rendering the general lay...
by FluffyQuack
December 4th, 2022, 2:48 am
Forum: Prince Of Persia 2: The Shadow And The Flame
Topic: Disassemblies of PoP2
Replies: 16
Views: 7065

Re: Disassemblies of PoP2

Hm, it seems that each newer version of IDA Free supports fewer executable formats and CPUs. (Guess why?) I used IDA Free 4.3 to make this disassembly. I think 5.0 still supports DOS executables. BTW, you should open the *.idb file instead of PRINCE.EXE, though that might display the same error mes...
by FluffyQuack
December 3rd, 2022, 6:55 pm
Forum: Prince Of Persia 2: The Shadow And The Flame
Topic: Disassemblies of PoP2
Replies: 16
Views: 7065

Re: Disassemblies of PoP2

Here is a disassembly of PoP2 v1.1. I used this to make the hacks which change the arrow keys or Alt+N . I didn't add meaningful names in most other parts of the code, though. Is this supposed to be openable with IDA Free? When I open prince.exe I get this error message: PRINCE.EXE is not a PE file...
by FluffyQuack
November 22nd, 2022, 6:13 pm
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

I have added similar functionality on the branch " redefine_keyboard2 ". It adds controls as a separate menu and you can change any key without having to change all the others. It looks like this: redefine_keys.png Oh, then I don't need to work on my branch for that anymore. You've alread...
by FluffyQuack
November 9th, 2022, 10:06 pm
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

I experimented with a feature letting you remap controls: otow4sBTzA4 This is very obviously work-in-progress, hence the "blah blah blah" and it only letting you modify keyboard controls right now. Should I try to finish this feature? And also, is this style of UI for it okay? That is, it ...
by FluffyQuack
November 8th, 2022, 3:16 pm
Forum: SDLPoP
Topic: Dropped inputs
Replies: 4
Views: 115

Re: Dropped inputs

I don't remember ever encountering the issue as a kid so I must have been used to holding down keys for any action. But in more recent times as I've been bouncing between many different games (and 99% of games react to any button press, no matter how brief it is, and some games will also trigger dif...
by FluffyQuack
November 8th, 2022, 2:19 am
Forum: SDLPoP
Topic: Dropped inputs
Replies: 4
Views: 115

Re: Dropped inputs

I've got the problem fixed now. If anyone wants to test it, I've uploaded a build of my fork with the fix here: https://github.com/FluffyQuack/SDLPoP/releases Make sure to enter Settings->Gameplay and turn on "Enhanced mode" for the fix to take effect. I think this makes the controls feel ...
by FluffyQuack
November 7th, 2022, 3:38 pm
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

Finished writing the new PR which fixes dropped gamepad input and makes everything a toggle: https://github.com/NagyD/SDLPoP/pull/294 List of changes: Replaced joy_axis size definition with a define. Added joy_axis_max array that stores the highest reached value for analogue gamepad inputs between g...
by FluffyQuack
November 1st, 2022, 12:16 am
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

I tested the game in DosBox, and very brief keyboard and joystick input is dropped the same way there, so I think it's safe to say the original Dos release has the same issue. For the heck of it, I tested POP2 as well, and that also has the same issue. I can write a PR where I make it a toggle and a...
by FluffyQuack
October 30th, 2022, 11:59 pm
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

I've merged it. I further clarified the values of control_x and control_y: https://github.com/NagyD/SDLPoP/commit/f22213b14e05a76bb36cb135f915ef8115e37f22 "CONTROL_HELD" and "CONTROL_HELD_ALTDIRECTION" just felt strange to me. That's a fair change. You can go ahead and delete th...
by FluffyQuack
October 16th, 2022, 7:08 pm
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

Another PR that simplifies some code related to controller input: https://github.com/NagyD/SDLPoP/pull/292 I would have preferred to change this code to use bitflags or expand the value range the controller variables use (so it doesn't use 1 to signify different states depending on which specific co...
by FluffyQuack
October 10th, 2022, 10:02 pm
Forum: SDLPoP
Topic: Dropped inputs
Replies: 4
Views: 115

Re: Dropped inputs

Here's a video example showing dropped input:


At the bottom part of the video you can see input as they're received by Windows (this is shown by another application).
by FluffyQuack
October 10th, 2022, 9:52 pm
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

Oh, doing it all by hand sounds pretty hardcore. It is interesting to see what the original source code most likely looked like. A very faithful reverse engineering is pretty neat from a historical standpoint as you get a good glimpse at how it was made originally. But yeah, simplifying the code doe...
by FluffyQuack
October 9th, 2022, 4:11 pm
Forum: SDLPoP
Topic: Dropped inputs
Replies: 4
Views: 115

Dropped inputs

I did a playthrough of SDL-PoP a few days ago. It was my first playthrough of POP in over a year and there's one thing that keeps bugging me, which is that the game will sometimes drop input. It happens very rarely, but it's often enough that I find it a bit annoying. I can remember experiencing it ...
by FluffyQuack
October 9th, 2022, 3:53 pm
Forum: SDLPoP
Topic: SDLPoP; David's open-source port of PoP
Replies: 847
Views: 122110

Re: SDLPoP; David's open-source port of PoP

I have merged it. I made some further cleanups, I linked to the commits from my comment on the PR. Those are good changes. Moving variable assignments outside expressions definitely makes the code a lot more readable. I assume that was originally the result of automatic decompilation? A part of me ...