Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Multilanguage support #1

Closed
Kurka200karatel opened this issue Feb 4, 2025 · 11 comments
Closed

Multilanguage support #1

Kurka200karatel opened this issue Feb 4, 2025 · 11 comments
Labels
bug Something isn't working enhancement New feature or request

Comments

@Kurka200karatel
Copy link

hi. I'm completely zero in programming and don't understand how to compile files through premake. could you please post more detailed instructions, or attach ready-to-run files so that i can play this build. I would be very grateful.

@xntrz
Copy link
Owner

xntrz commented Feb 5, 2025

Hi! Thank you for opening an issue, i'll try to explain build process more detailed below.
First of all if you really want to build and run it i have to warn you that you do this at your own risk due all external libs (rwsdk37, cri and so on) ships on the internet as pre-built version and there is no gurantee they are fully malisious-free so better do it at virtual machine.

More detailed build process:

  1. Installed retail copy of the PC game version with all needed assets files (TMNT.DAT, WaveData.BIN and so on)
  2. Installed MS Visual Studio with fully support c++11 (Visual Studio 2015 or higher)
  3. Installed MS DirectX 9.0 SDK with DXSDK_DIR environment variable is set (environment variable usually sets automatically at installing)
  4. Now you have to generate solution file ('.sln') for you Visual Studio version by premake5 - if you dont have it you can download pre-built tool here and unpack it to the root dir of this project (where premake5.lua script is located), then open command line here and type for example "premake5 vs2015" for Visual Studio 2015 or specify your installed version, you can see more here
  5. Now open solution file with Visual Studio that was generated at previous step in "build/vs2015" directory, select build configuration depending on your game region: NA or EU (how to know: see Game Region) and build it - it will build runnable executable for you and place it at "bin/Debug" or "bin/Release" depends on what build type you selected
  6. Now rename or delete original exe from retail game directory and place here our generated exe then run, or you can run it from the "bin/Debug" or "bin/Release" by opening command line in this dir and type "TMNT2.exe -afspath=%PATH% -wnd" without quotes, where is %PATH% - path to installed retail game dir, so complete example of this command will be "TMNT2.exe -afspath=C:/tmnt2eu -wnd" - this will run the game in windowed mode with specified game assets path
    Im sorry but attaching pre-built exe of this project is not possible right now due corrections are applied regullary and work still in progress - alot of enemies & bosses and some gimmicks are not completely ready or bugged.

If you have more questions you can write here.

@Kurka200karatel
Copy link
Author

Thank you for the more detailed instructions. it really helped and i almost got to the point of running the executable, but i am facing the error that is shown in the screenshot. i don't know what the problem could be. at first i thought it was directx 9. but i installed DXSDK_Jun10 (2010). Then i tried the debug and release build but the error reappeared. maybe you know what the problem is?

Image

@xntrz
Copy link
Owner

xntrz commented Feb 7, 2025

In current project state there is mistake with paths in sound loader module, so its unable to run if path is not specified through command line option. It was fixed but im still not commit major update with some implemented enemies to this project, i'll do this tommorow at evening.

There is solution if you want to do it right now - you need to run it from any other place through command line with args. So you need to open directory where you build exe, for example "bin/Debug" or "bin/Release" and open command line here then type "TMNT2.exe -afspath=C:/Program Files (x86)/KONAMI/TMNT -wnd" without quotes - it should run without error. Or there is second way - you can run exe directly from Visual Studio with command line arguments, you need to right click on the project "TMNT2" in solution explorer, then "properties" and make it like on screenshot below, then OK then press on green arrow to run or just press F5 or CTRL+F5:

Image

@xntrz
Copy link
Owner

xntrz commented Feb 7, 2025

Now i did commit for sound loder to run without all cmd line magic, please update project and rebuild to make it work

@Kurka200karatel
Copy link
Author

Yep. thanks a lot. it was interesting to read about mistakes in the build with the sound module loading. the way to run using command line really worked and the game started. then i tried downloading the latest build and everything started again. now the problem is that the game in both builds is not working correctly. many items in the debug menu are running, such as videos and so on, but when i try to run the game from the main menu or levels from the debug menu, the game crashes with this error. i still can't get into gameplay D:

Image

@xntrz
Copy link
Owner

xntrz commented Feb 7, 2025

That really interesting, because i didnt get any of this assertions at this place for EU game version even when placing preview assets. Can you somehow share the TMNT.DAT file by uploading it on some file hosting? Or link to where can i get that version? That seems this texture is missed in game assets files.

@Kurka200karatel
Copy link
Author

Yes. My version of the game is really EU, as the author of the image assured, he took it from the licensed German version of the game. here is the tmnt.dat file downloaded from my game folder. https://drive.google.com/file/d/1E7IVQfTPeyPgYPTmwa0dGdXSuM9fJMWH/view?usp=sharing

@xntrz
Copy link
Owner

xntrz commented Feb 7, 2025

Thank you! Yeah, i see the error. Now i remember that game have some differents for english, german, french, spanish and italian versions for game UI, so currently im working with eu-english version of the game so didn't expect that, that require some time to get the differents. Also can you upload as i guess german executable version that was in this image to find that diffs? I'll really appreciate it.

@Kurka200karatel
Copy link
Author

Kurka200karatel commented Feb 7, 2025

wow. didn't know that the pal version for each country had differences in the game image. honestly, I thought they were making one version of the game for the entire European region and just adding a language selection option.

tomorrow I'll try to find the UK version, if I understood correctly that you worked with it. then I'll try to run the build in it, if there are any more errors I'll let you know.

@xntrz
Copy link
Owner

xntrz commented Feb 7, 2025

Thanks you very much! I saw that with console versions that they are have differents for each region but didn't expect that for PC. On other version than eu-english they have differents only with UI for example on german versions as i saw there is "S+" rank instead "SS", subtitles for movies and so on. So now i can say this project works only with eu-english images, so better use it - UK version should match.

Its really hard to find other than EU english version for this game now. I'll save this image for the future multilang work but its will be done only at the end, currently all priority is goes to enemies & bosses, then gimmicks fixes are planned.

Also i'll note this thread and about currently multilanguage (un)support in README.

Repository owner deleted a comment from Kurka200karatel Feb 7, 2025
Repository owner deleted a comment from Kurka200karatel Feb 7, 2025
@xntrz xntrz changed the title i cant play this build :( Multilanguage support Feb 8, 2025
@xntrz xntrz added bug Something isn't working enhancement New feature or request labels Feb 8, 2025
@xntrz
Copy link
Owner

xntrz commented Feb 19, 2025

Im was wrong in discussion above. As far as i understand for PC there exists two game version its NA and EU, so im was used NA game version. Both of them have minor changes for UI and in source code aswell.

Support for Europe (En,Fr,De,Es,It) image was added.
All build instructions & premake5 scripts were updated. Now there is 4 build configs in visual studio: RELEASE/DEBUG for NA and for EU.

@xntrz xntrz closed this as completed Feb 19, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

2 participants