Search found 141 matches

by Akruzen
October 9th, 2022, 5:52 pm
Forum: SDLPoP
Topic: New Mod Doubts
Replies: 48
Views: 20342

Re: New Mod Doubts

You could delete or rename the DAT files (except LEVELS.DAT) from the mods folder. Thanks for your reply David, that did work. Alternatively, you can edit data/music/names.txt, add an <ID>=<name> line for a sound effect, then put a <name>.ogg file into the same folder. The sound IDs are in src/type...
by Akruzen
October 8th, 2022, 12:22 pm
Forum: SDLPoP
Topic: New Mod Doubts
Replies: 48
Views: 20342

Re: New Mod Doubts

Also, it seems I can have either have custom graphics, or custom level map. How can I achieve both? Currently, to use my custom level file, I edit the levels using apoplexy editor and put the game in mods folder of SDLPoP. However, when I mention use of mods folder in SDLPoP.ini file, the game uses ...
by Akruzen
October 7th, 2022, 2:28 pm
Forum: SDLPoP
Topic: New Mod Doubts
Replies: 48
Views: 20342

Re: New Mod Doubts

Hi, I am trying to compile the game using CLion, however, I am getting an error saying that SDL.h and SDL_image.h not found. I am not familiar with CLion, so these are just guesses: Did you install SDL2 to where CLion would search it? Also, look into types.h and try to compile with either set of #i...
by Akruzen
September 27th, 2022, 8:23 pm
Forum: SDLPoP
Topic: New Mod Doubts
Replies: 48
Views: 20342

Re: New Mod Doubts

Hi, I am trying to compile the game using CLion, however, I am getting an error saying that SDL.h and SDL_image.h not found. But if I compile the same project using Dev C++, it compiles and runs successfully. I had followed the steps David mentioned in ReadMe file of SDLPoP for Dev C++. How to run P...
by Akruzen
September 24th, 2022, 7:47 am
Forum: SDLPoP
Topic: New Mod Doubts
Replies: 48
Views: 20342

Re: New Mod Doubts

Hi everyone, It has been a long time since I last posted. I was thinking of trying something "ambitious" this time, since during my last mod, The Mahatraja's Palace I have learned many new things about SDLPoP source code. However, in this mod I will need some visual changes in some of the ...
by Akruzen
March 16th, 2022, 7:40 pm
Forum: SDLPoP
Topic: Local Co-Op/PvP
Replies: 1
Views: 3062

Local Co-Op/PvP

Hi everyone, I have been trying to implement local PvP or Co-Op in Prince of Persia. It's still in development with many known bugs, but the basic prototype is ready. Let me know your views :) Attachments: SDLPoP zip file. Instructions: Press Ctrl to draw sword. Guard Movements: A, D to move. W to b...
by Akruzen
March 6th, 2022, 8:48 am
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

The code you suggested solved the problem. I have added it to the file and I have also fixed the key_states warning as you suggested. Created a pull request. I have merged it. https://github.com/NagyD/SDLPoP/pull/271#event-6189679501 EDIT: Moved the posts into a new topic. Thank You David. Should t...
by Akruzen
February 28th, 2022, 12:49 pm
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

"key_states[SDL_KEYDOWN]" is the problem. key_states[] should only be indexed by a scancode, but SDL_KEYDOWN is not a scancode but an event type. Instead of this: if (key_states[SDL_SCANCODE_F6] != key_states[SDL_KEYDOWN]) { write this: if (key_states[SDL_SCANCODE_F6] != 0) { or this: if ...
by Akruzen
February 6th, 2022, 7:26 am
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

I don't get such a warning, and I don't get a crash either. Which statement gets marked with the warning? I get warnings here , here , here , here and here . The warning is: [Warning] array subscript is above array bounds [-Warray-bounds] It would be better to display the message again where you wr...
by Akruzen
January 31st, 2022, 7:42 am
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

You can use key_states[SDL_SCANCODE_ something ] to detect if a given key is pressed. Thanks David, I used this and uploaded it here . However I am facing some issues: 1. The code generates warning that array subscript is above array bounds . The code works fine with all the features when pressed &...
by Akruzen
January 24th, 2022, 8:05 pm
Forum: Prince of Persia 1 for DOS
Topic: Auto Draw Sword
Replies: 2
Views: 3659

Auto Draw Sword

A "bug" in Prince of Persia where the kid decides whether or not to draw sword automatically depending on if you press shift somewhere else or not. P.S. This is independent of which level you are in. If you manually sheathe your sword and don't leave the screen, the prince will not draw th...
by Akruzen
January 18th, 2022, 6:09 am
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

For now, I have stuck to the "Press NumKeys to select slots" version of multiple quicksaves. You can check that out here.
by Akruzen
January 11th, 2022, 2:23 pm
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

If you're up for implementing this but have difficulty doing so, it's probably relatively easy for David. (Or maybe Falcury, dmitry, atrue. Personally, I don't know the SDLPoP code well enough.) I am almost done implementing the latest solution which we discussed. The only problem is I am not able ...
by Akruzen
January 11th, 2022, 6:04 am
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

Yes. I think we're close to a good solution. A slight modification of your suggestion should work. The key (no pun intended), I think, is to keep track of the F6 and F9 key states ourselves. That is, not just if F6 or F9 are currently down, but whether or not numeric 1-9 have been pressed since the...
by Akruzen
January 10th, 2022, 1:29 pm
Forum: SDLPoP
Topic: Multiple quicksaves
Replies: 28
Views: 9796

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

Single keys without modifiers are 'valuable', 'expensive', 'high profile'. Instinctively, I feel a better solution must be available than giving up an arbitrary number of non-modified numeric keys just for quick saving/loading. Yeah, that is a kind of downside to my solution. Actually, maybe we cou...