SDLPoP; David's open-source port of PoP

Open-source port of PoP that runs natively on Windows, Linux, etc.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

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

Post by Norbert »

I don't know about the blood on the chomper, but...
VGA wrote:I am trapped by a gate at the right
...just wait a while near the gate, and a mouse will come to help you. :)
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

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

Post by Norbert »

In episode 61 of The Retro Hour Podcast, they briefly mentioned SDLPoP and popot.org/our community. Starts at 18:54.
https://soundcloud.com/the-retro-hour/c ... -hour-ep61
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

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

Post by Norbert »

Hm... I suggest changing
"To quick load/save, press F6/F9 in-game."
to
"To quick save/load, press F6/F9 in-game."

Then the before/after matches, plus saving is the logical action before loading.

This is actually my bad, since I originally suggested the currently used line.
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

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

Post by David »

Norbert wrote:Hm... I suggest changing
"To quick load/save, press F6/F9 in-game."
to
"To quick save/load, press F6/F9 in-game."

Then the before/after matches, plus saving is the logical action before loading.
Thanks, fixed: https://github.com/NagyD/SDLPoP/commit/ ... 92a139b3fd
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

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

Post by Falcury »

Made some changes to the timer-related code:
https://github.com/NagyD/SDLPoP/pull/146

The frame timings should now be more stable and the code became simpler. :)

I also added the possibility to draw overlays (e.g. the debug timer), with partial transparency and at an update frequency that is independent from the game's logic.

(Actually, being able to draw more frequently refreshed overlays was my initial reason for tweaking the timer code. In the end, I concluded that I should just pull the timer changes out as a PR for the main branch)
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

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

Post by Falcury »

I made an SDLPoP application bundle for macOS (built and tested on version 10.12.6).
GitHub: https://github.com/NagyD/SDLPoP/pull/149

If you are on macOS and want to change the game settings (SDLPoP.ini) for this app bundle, for now you need to right-click the bundle and choose 'Show package contents'. Then, SDLPoP.ini can be found under 'Contents/macOS/'. (The game's data files can also be found there.)
Attachments
SDLPoP_macOS.zip
(3.87 MiB) Downloaded 59 times
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

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

Post by Norbert »

I don't know enough about OS X to know what an application bundle is.
The ZIP files on popot.org only have Windows and Linux executables, maybe the executable from your package should be added?
Or would OS X also need lots of other DLL(-like) files for the game to run?
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

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

Post by Falcury »

Norbert wrote: November 28th, 2017, 8:56 pm I don't know enough about OS X to know what an application bundle is.
The ZIP files on popot.org only have Windows and Linux executables, maybe the executable from your package should be added?
Or would OS X also need lots of other DLL(-like) files for the game to run?
It's a normal directory, but one that (for users) appears/behaves as if it is a single file - basically, a self-contained package that users can simply double-click and launch. On Macs, for installing new software, it's a common pattern to download an application bundle from somewhere, drag that onto the desktop or into the Applications folder (anywhere, really) and then launch it from there.

This StackOverflow answer had some useful details for me:
https://stackoverflow.com/questions/159 ... app-bundle

The application bundle is usually supposed to have everything it needs inside of it.
But, now that you mention it... I think I skipped the step where you include the DLL-like files (.dylib I think it is). (Crap...) So, at this moment this bundle would probably only work if SDL2, SDL2_mixer and SDL2_image were first installed using the command-line. That kind of defeats the purpose :?

Maybe it's best to hold off on putting it on popot.org, until that's been ironed out...
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

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

Post by David »

Some recent posts that might interest you:
https://github.com/NagyD/SDLPoP/issues/151 -- level 1 shortcut
https://github.com/NagyD/SDLPoP/issues/ ... -355469287 -- "fuzzy" scaling
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

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

Post by Norbert »

Makes sense that you closed the shortcut report.
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

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

Post by Norbert »

Another fix that could be part of the use_fixes_and_enhancements bit is that merging with the shadow requires waiting for the music or flashing to end before the hidden tiles show up/work.
Falcury
Calif
Calif
Posts: 565
Joined: June 25th, 2009, 10:01 pm

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

Post by Falcury »

Norbert wrote: February 17th, 2018, 2:52 pm Another fix that could be part of the use_fixes_and_enhancements bit is that merging with the shadow requires waiting for the music or flashing to end before the hidden tiles show up/work.
Yeah, good idea, that has always annoyed me!

Edit: Here's the proposed fix:
https://github.com/NagyD/SDLPoP/pull/158
User avatar
Norbert
The Prince of Persia
The Prince of Persia
Posts: 5743
Joined: April 9th, 2009, 10:58 pm

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

Post by Norbert »

Falcury wrote: February 17th, 2018, 2:56 pmEdit: Here's the proposed fix:
https://github.com/NagyD/SDLPoP/pull/158
That's fast. :)
David
The Prince of Persia
The Prince of Persia
Posts: 2846
Joined: December 11th, 2008, 9:48 pm
Location: Hungary

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

Post by David »

Falcury wrote: February 17th, 2018, 2:56 pm Edit: Here's the proposed fix:
https://github.com/NagyD/SDLPoP/pull/158
I merged this and the other pull requests.
Norbert wrote: February 17th, 2018, 5:22 pm That's fast. :)
Funnily enough, the last post in the topic you linked to with "music" is also saying something similar. :)
User avatar
spaztron64
Efendi
Efendi
Posts: 14
Joined: February 29th, 2016, 12:13 am

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

Post by spaztron64 »

One neat feature to have would be multi-channel sampling (multiple sounds at once), unless that feature has already been implemented and I'm missing something.

What do you think?
Post Reply