|
Post by danilolc on Sept 30, 2017 20:27:16 GMT -5
Hello everyone, at the past days I've working in the Pekka Kana 2 source code, and the fist thing I wanted to do was to port it to run 100% in modern systems using SDL2. As I said before I've created a fork in Samuli's GitHub repository as you can see here. After some changes and bug fixes in the code, the game can work well in Widows and Linux system now. I've compiled a Windows version and put it in this download link, it was tested just in my system, so if you see something strange please contact me. Also, SDL2 is a cross platform library, so with some small changes it can run perfectly in systems like Android, iOS, etc. And if you have good ideas for the game, please say me that I will try to add this in the source. Also, you can commit or fork the git repository with something that you think is interesting.
|
|
|
Post by Worm on Sept 30, 2017 21:44:05 GMT -5
I tested it, and it works great, the only problem is that the game is too smoothy(smoothness is good but if it is too strong the game gets slow). Very nice job! But what you did with it, i don't really get it. You just used an engine to load it? I will give a better look tomorrow when i have more time, because now it is time to bed. And, i want to share with you our discord server, so we can talk more about those things with other people. Have a nice day and bye! Discord server: discord.gg/94XSgyHWeird how there are 6 different italian languages in the language loader XD
|
|
|
Post by lordxernom on Oct 1, 2017 10:01:55 GMT -5
Dude, this remake works flawlessly on my PC, you just ported game to modern OS, so we aren't forced to use DxWnd program. You sir deserve a medal or even more! I have also one question - is this remake will support different music files like .ogg, .mp3 for levels? Or it'll just be Tracker Module support like in original? I'm really hyped for stuff from this!
|
|
|
Post by xyard on Oct 1, 2017 11:55:28 GMT -5
Dude, this remake works flawlessly on my PC, you just ported game to modern OS, so we aren't forced to use DxWnd program. You sir deserve a medal or even more! I have also one question - is this remake will support different music files like .ogg, .mp3 for levels? Or it'll just be Tracker Module support like in original? I'm really hyped for stuff from this! I think TEO has told you already earlier about the mp3 and pk2 not working together.
|
|
|
Post by danilolc on Oct 1, 2017 12:16:02 GMT -5
Dude, this remake works flawlessly on my PC, you just ported game to modern OS, so we aren't forced to use DxWnd program. You sir deserve a medal or even more! I have also one question - is this remake will support different music files like .ogg, .mp3 for levels? Or it'll just be Tracker Module support like in original? I'm really hyped for stuff from this! Yes, it can support different music files. Since it is the game's source code, almost everything is possible. It just need some little changes on code.
|
|
|
Post by Rajdh on Oct 1, 2017 13:15:57 GMT -5
I will definitely check it out! I have some questions. Did you try to repair bugs like, lets say, sprites colliding only by their center or hill tiles moving you up high? I hope not, because there are levels where gameplay is based on this exploit. __ EDIT: The problem/bug that SHOULD be fixed is 50-level limit for episode. Then Wolf Island and Joined forces wouldn't need to be split into parts.
|
|
|
Post by lordxernom on Oct 1, 2017 14:10:24 GMT -5
That's awesome! Also I need to mention few minor issues I have with this remake - mouse sensitivity in PK2 is too fast, I'll be happy if it would be slower a little. Also Tracker music doesn't loop properly, because there's a short silence before loop (second or less, but still it's kinda jarring). And it would be nice if after changing screen size into full screen the game didn't reset that setting into windowed mode. Otherwise, great job! Can't wait for some progress of this!
|
|
|
Post by danilolc on Oct 1, 2017 20:52:31 GMT -5
I will definitely check it out! I have some questions. Did you try to repair bugs like, lets say, sprites colliding only by their center or hill tiles moving you up high? I hope not, because there are levels where gameplay is based on this exploit. __ EDIT: The problem/bug that SHOULD be fixed is 50-level limit for episode. Then Wolf Island and Joined forces wouldn't need to be split into parts. No, when I was coding I took care to don't affect the gameplay. I've fixed some graphical bugs like when a movable block disappear when it is on the screen border. Wow, there is a episode with more than 50 levels!? At the pk2.cpp there is a integer with this definition: const int EPISODI_MAX_JAKSOJA = 50; This probably means "Max episode files", and I think just changing this value will solve the problem.
|
|
|
Post by lordxernom on Oct 2, 2017 7:55:47 GMT -5
I've found another bug - when player uses gift, the entire screen is full of large blue pixels during pressing button for using gift items, it's not ruining gameplay, but looks kinda jarring comparing to original.
|
|
|
Post by danilolc on Oct 2, 2017 15:24:46 GMT -5
I've found another bug - when player uses gift, the entire screen is full of large blue pixels during pressing button for using gift items, it's not ruining gameplay, but looks kinda jarring comparing to original. Strange, this bug doesn't happen with me. Can you take a screen shot to show what happen? Also, I set the "EPISODI_MAX_JAKSOJA" to 100, I think it is a very large number to episode. Some time I will test if it work with a large episode.
|
|
|
Post by lordxernom on Oct 2, 2017 16:41:30 GMT -5
So this bug looks like this: I use Windows 7 Ultimate 32-bit, 4 GB RAM etc. btw.
|
|
|
Post by danilolc on Oct 2, 2017 17:25:05 GMT -5
Hey, are you playing in the "dev" mode? This is not a bug, is a tool made by Janne Kivilahti on the original game to examine the blocks around each sprite. You probably are using the "B" key to use gifts. There is some tools in this mode, like Pekka Kana flying with Shift, unlock keys with "L", etc. Also you can choose the locked levels on map. Your system is using the "dev" argument to open the game, you need to remove it.
|
|
|
Post by lordxernom on Oct 2, 2017 20:49:10 GMT -5
Oh, I didn't knew it! I'm so excited, I need to learn more about dev mode! Yes, I have B button for gift, but in original PK2 version I didn't had that unlocked, so this is new for me. This game keeps me surprising me after 12 years of playing.
|
|
|
Post by xyard on Oct 3, 2017 5:10:36 GMT -5
I downloaded it. No installation required. Fine. I launch the game. FPS is smooth, a big difference between my buggy dxwnd pk2 and it. The game works like the original. All I can say is success. At first the 640x480 resolution was a bit shock but since my screen is 1920x1080 of course the game runs small. Also after searching graphics I found you have added fullscreen mode. But how about the other pk2 resolutions that are 800x600 and 1024x768? Does this version support them?
Also, I'm still pretty suspicious of mp3 files in pk2.
|
|
|
Post by lordxernom on Oct 3, 2017 7:06:06 GMT -5
If mp3 format is not right, .ogg format can be used too (or other). I could finally have some usage from my musical compositions for the sake of using them in my levels. I don't think it's a bad idea. For me it would be a good evolution.
|
|