AlisterT / openjazz

OpenJazz
GNU General Public License v2.0
275 stars 49 forks source link

Character running speed setting in OpenJazz? #113

Open PrinzPersia opened 2 months ago

PrinzPersia commented 2 months ago

Hello. I'm using OpenJazz "openjazz-windows-mingw-x86_64" on Windows. However, it seems to me that the Jazz character runs a bit slower than in the original DOS game. I wanted to ask if there is a setting option to make Jazz run a bit faster, or is the running speed in OpenJazz just as fast?

PrinzPersia commented 2 months ago

Hello? Can someone respond here?

synchronleuchter commented 2 months ago

There is no setting that I found. If you compile your own executable, see this place in jj1levelplayer.h:

image

You can statically change your speeds etc. there. If you want to write a setting, I'd start with setupmenu.cpp, maybe even drop a PR 😁

PrinzPersia commented 2 months ago

There is no setting that I found. If you compile your own executable, see this place in jj1levelplayer.h:

image

You can statically change your speeds etc. there. If you want to write a setting, I'd start with setupmenu.cpp, maybe even drop a PR 😁

Ok. But compiling it myself has never worked for me. I managed to get OpenJazz as an .sln project in the build folder, but unfortunately, I get an error: Severity Code Description Project File Line Suppression State Details Error C1083 Cannot open include file: 'unistd.h': No such file or directory OpenJazz C:\Users\PrinzPersia\Downloads\openjazz-master\openjazz-master\src\io\file.cpp 33 Error C1083 Cannot open include file: 'unistd.h': No such file or directory OpenJazz C:\Users\PrinzPersia\Downloads\openjazz-master\openjazz-master\src\io\log.cpp 26 Because I would like to compile it on Windows. Do you know how to do that?

synchronleuchter commented 1 month ago

If you're using .sln files, it seems like you're talking about Visual Studio, which I don't have. I don't routinely set up C++ projects either, so I asked ChatGPT to help me out with VSCode. I did find a solution, but it's probably suboptimal because it involves changing the CMakeLists.txt.

I think the main steps were:

But I have no access to Visual Studio. I had good experience asking ChatGPT with this setup, though. Maybe it can help you, too!