SDLPoP; David's open-source port of PoP
Re: SDLPoP; David's open-source port of PoP (pre-release)
1.How can I save my history of move at apoplexy like this video by ArmyFly?
1:50 - 1:58 restart at same place - 2:04 etc... how I can do it?
https://www.youtube.com/watch?v=Q14Mr5v6uY4
2. Save button CTRL + G works, but load button CTRL + L dont work... why?
1:50 - 1:58 restart at same place - 2:04 etc... how I can do it?
https://www.youtube.com/watch?v=Q14Mr5v6uY4
2. Save button CTRL + G works, but load button CTRL + L dont work... why?
Re: SDLPoP; David's open-source port of PoP (pre-release)
In SDLPoP, press F6 to save the current position and F9 to load it.yaqxsw wrote: 1.How can I save my history of move at apoplexy like this video by ArmyFly?
This should display QUICKSAVE/QUICKLOAD at the bottom, but I don't see that in the video.
The video was uploaded on 2015 July 9, but only experimental versions of SDLPoP could do quicksave at that time...
(SDLPoP_v1.14d_experimental.zip, SDLPoP_v1.15RC.zip and SDLPoP_v1.15RC2.zip)
Ctrl+L works only in the intro, just as in the original game.yaqxsw wrote: 2. Save button CTRL + G works, but load button CTRL + L dont work... why?
Re: SDLPoP; David's open-source port of PoP (pre-release)
I did it. Thanks!The video was uploaded on 2015 July 9, but only experimental versions of SDLPoP could do quicksave at that time...
(SDLPoP_v1.14d_experimental.zip, SDLPoP_v1.15RC.zip and SDLPoP_v1.15RC2.zip)
A question, is possible take away this display QUICKSAVE/QUICKLOAD at SDLPoP_v1.16? If yes, how?

- SuavePrince
- The Prince of Persia
- Posts: 1092
- Joined: January 26th, 2015, 6:21 pm
Re: SDLPoP; David's open-source port of PoP (pre-release)
First:i see armfly use many slots,maybe he is a programmer,i ask tell me how do it thats,but don tell me.yaqxsw wrote:1.How can I save my history of move at apoplexy like this video by ArmyFly?
1:50 - 1:58 restart at same place - 2:04 etc... how I can do it?

second:in sdlpop.you cant do it all tricks.i try with the last updated of sdlpop,and i cant some trick...so,dont work for me...
Re: SDLPoP; David's open-source port of PoP (pre-release)
yaqxsw wrote: A question, is possible take away this display QUICKSAVE/QUICKLOAD at SDLPoP_v1.16? If yes, how?![]()
Then maybe he didn't use SDLPoP at all.SuavePrince wrote: First:i see armfly use many slots,maybe he is a programmer,i ask tell me how do it thats,but don tell me.![]()
There are unofficial versions of DOSBox that can save/load states, up to 10 slots.
For example: http://ykhwong.x-y.net/
Open SDLPoP.ini, and change use_fixes_and_enhancements to false.SuavePrince wrote: second:in sdlpop.you cant do it all tricks.i try with the last updated of sdlpop,and i cant some trick...so,dont work for me...
- SuavePrince
- The Prince of Persia
- Posts: 1092
- Joined: January 26th, 2015, 6:21 pm
Re: SDLPoP; David's open-source port of PoP (pre-release)
Wow WORKING PERFECT.... THANXS DAVIDDavid wrote:Open SDLPoP.ini, and change use_fixes_and_enhancements to false.

Re: SDLPoP; David's open-source port of PoP (pre-release)
Yes, the problem wasn't the drawing interface, but the way it read the PLV format (previously extracted with PR, which compiled perfectly). I don't remember if PR for mac on intel uses big or little endian numbers; before that, the last time I'd compiled PR for mac was on a PowerPC.David wrote:That's strange, since both SDLPoP and Apoplexy use SDL...
Anyways, the PLV was read wrongly but it wasn't a big/little endian problem but I think a struct pack problem. I didn't want to keep working on that because I could create a whole level editor for SDLPoP that supports more than 24 rooms just by changing a #define, and that was my initial goal.
The level editor is working, some details are missing, but most of the job is done. I've sent you a pull request.
-
- Efendi
- Posts: 13
- Joined: January 23rd, 2016, 11:08 pm
Re: SDLPoP; David's open-source port of PoP (pre-release)
Hello, quick question: I compiled it myself on OSX, everything great so far, but I reached Level 4 I had the impression the colors for the blocks at the bottom where a bit off. Some googling/screenshots confirmed this: http://imgur.com/HZP3pRw
Any idea what my prince drank?
Any idea what my prince drank?

Re: SDLPoP; David's open-source port of PoP (pre-release)
Did you take this screenshot? What's your OSX version? did you use ports or brew? Does this happen with the latest version on the git repository? It works for me really fine in 10.9.5.
-
- Efendi
- Posts: 13
- Joined: January 23rd, 2016, 11:08 pm
Re: SDLPoP; David's open-source port of PoP (pre-release)
Hello! Sorry to be not specific at all, just wanted to get a bearing if this came up (obvisouly not!). The details:
- my screenshot
- OSX 10.11.2
- I tried using homebrew and macports, both yielded the same result (I made sure that I completely removed brew stuff prior testing with macports)
- it's the latest git version, cloned yesterday and pulled and tested again before I wrote this post ( commit a7c746ceef5f1bed4d698684bd2750a44b97fcb2 )
Thanks!
- my screenshot
- OSX 10.11.2
- I tried using homebrew and macports, both yielded the same result (I made sure that I completely removed brew stuff prior testing with macports)
- it's the latest git version, cloned yesterday and pulled and tested again before I wrote this post ( commit a7c746ceef5f1bed4d698684bd2750a44b97fcb2 )
Thanks!
Re: SDLPoP; David's open-source port of PoP (pre-release)
David found the cause of the bug earlier:
viewtopic.php?f=69&t=3512&start=180#p16388
It occurs due to a workaround that we needed in order to circumvent a bug in SDL 2.0.3. The bug should have been fixed in 2.0.4 (I suppose we should upgrade to the new version, and take out the workaround?)
Apparently that bug does not occur in the version of SDL2 that you have, so the workaround actually causes the problem.
To fix it for now, find these two places in seg009.c:
https://github.com/NagyD/SDLPoP/blob/ma ... 09.c#L2187
https://github.com/NagyD/SDLPoP/blob/ma ... 09.c#L2637
This is the relevant code at those two locations:
Note that the order of the arguments is reversed (b, g, r instead of r, g, b)
To fix, swap b with r.
viewtopic.php?f=69&t=3512&start=180#p16388
It occurs due to a workaround that we needed in order to circumvent a bug in SDL 2.0.3. The bug should have been fixed in 2.0.4 (I suppose we should upgrade to the new version, and take out the workaround?)
Apparently that bug does not occur in the version of SDL2 that you have, so the workaround actually causes the problem.
To fix it for now, find these two places in seg009.c:
https://github.com/NagyD/SDLPoP/blob/ma ... 09.c#L2187
https://github.com/NagyD/SDLPoP/blob/ma ... 09.c#L2637
This is the relevant code at those two locations:
Code: Select all
// @Hack: byte order (rgb) is reversed (otherwise the color is wrong) - why doesn't this work as expected?
// This is a bug in SDL2: https://bugzilla.libsdl.org/show_bug.cgi?id=2986
uint32_t rgb_color = SDL_MapRGB(onscreen_surface_->format, palette_color.b<<2, palette_color.g<<2, palette_color.r<<2);
To fix, swap b with r.
-
- Efendi
- Posts: 13
- Joined: January 23rd, 2016, 11:08 pm
Re: SDLPoP; David's open-source port of PoP (pre-release)
Can confirm, looks correct once I reverted the hack. Awesome!
I checked, and yes, it's SDL 2.0.4 I'm using via Homebrew.
I checked, and yes, it's SDL 2.0.4 I'm using via Homebrew.
-
- Efendi
- Posts: 13
- Joined: January 23rd, 2016, 11:08 pm
Re: SDLPoP; David's open-source port of PoP (pre-release)
As I played through, I noticed a graphical glitch on Level 12 where the other self picks up the sword: http://imgur.com/a/dSqrF . I went through this thread but couldn't find anything related.
Upon arrival at the bottom half, it looks as it is.
Once entered from the right, it almost always was graphically glitches with, interestingly, changing appearances on different tries.
But it was not a gameplay issue. The other self always appeared as expected and then the glitch immediately went away.
Upon arrival at the bottom half, it looks as it is.
Once entered from the right, it almost always was graphically glitches with, interestingly, changing appearances on different tries.
But it was not a gameplay issue. The other self always appeared as expected and then the glitch immediately went away.
Re: SDLPoP; David's open-source port of PoP (pre-release)
I took out the workaround: https://github.com/NagyD/SDLPoP/commit/ ... 772d4911b6
But... I guess it is related to the fake tiles.
The sword animates its modifier, and a floor with a certain modifier can appear as floor or empty space.
I tried it now, but I didn't see any glitch.DarkPrince wrote: As I played through, I noticed a graphical glitch on Level 12 where the other self picks up the sword: http://imgur.com/a/dSqrF .
But... I guess it is related to the fake tiles.
The sword animates its modifier, and a floor with a certain modifier can appear as floor or empty space.
Re: SDLPoP; David's open-source port of PoP (pre-release)
Interesting, that would be the "fake tiles" at work... But I cannot seem to reproduce this...
If you add this code, below this line in seg002.c (https://github.com/NagyD/SDLPoP/blob/ma ... 002.c#L428):Does that fix it?
If you add this code, below this line in seg002.c (https://github.com/NagyD/SDLPoP/blob/ma ... 002.c#L428):
Code: Select all
curr_room_modif[curr_tilepos] = 0;