Next generation modding platform for Chrono Trigger ( native Steam 2018 release support! )
CTNx is a new modding platform for Chrono Trigger. Inspired by FFNx aims at bringing the same set of functionalities in time.
CTNx today in a nutshell:
- Uses an easy, drag-n-drop installation experience, see How to Install
CTNx is developed by a core team, currently composed of:
- Julian Xhokaxhiu (TrueOdin, 🇪🇸 Spain)
We are always open for contributions via PRs, and in case you want to join the core team, feel free to approach us on Discord and we will evaluate on a case-by-case basis.
- /LARGEADDRESSAWARE support. Up to 3.5GB of RAM available for mods (this requires the 4GB Patch in your Chrono Trigger.exe).
- Native speedhack support (coming soon)
- Ambient effects layer (coming soon)
- Voice acting layer.
- Support for Hext patching files inside of the hext_patching_path
For a more in-depth documentation feel free to visit the docs/ folder.
If you're curious to know, CTNx makes use of:
- C++ code base
- Latest MSVC available on Visual Studio 2022 Community Edition
- vcpkg (dependency manager)
- CMake (make files)
- FFMpeg with H/W accelleration support
- VGMStream using FFMpeg as backend (with loop support!)
- tomlplusplus (configuration management)
- StackWalker (log file stack traces)
- SoLoud (audio engine used to playback audio, music or voice files)
- mimalloc (a compact general purpose allocator with excellent performance)
- plog (logging library)
- Detours (function replacement library)
- Cocos2d-x (game framework)
Available build profiles:
- x86-Release (default, the same used to release artifacts in this Github page)
- x86-RelWithDebInfo (used while developing to better debug some issues)
- x86-MinSizeRel
- x86-Debug (prefer it if you want to use a debugger attached to the game)
Once the project is built you can find the output in this path: .build/bin
Please note:
CTNx uses vcpkg as a package manager to resolve dependencies. Failing to follow these steps will result in build errors.
- Clone the vcpkg project in the root folder of your
C:
drive (git clone https://github.com/Microsoft/vcpkg.git
) - Go inside the
C:\vcpkg
folder and double clickbootstrap-vcpkg.bat
- Open a
cmd
window inC:\vcpkg
and run the following command:vcpkg integrate install
Please note:
This step will speed up your compilation times by avoiding the vcpkg dependencies rebuild.
- Make sure you have NuGet CLI installed.
- Create a Personal Access token ( classic ) with the
write:packages
permission. - Open a
cmd
window and run the following commands ( replaceYOUR_GITHUB_USERNAME
andYOUR_GITHUB_PAT
accordingly ):
$ nuget sources add -Name github -Source "https://nuget.pkg.github.com/tsunamods-codes/index.json" -Username YOUR_GITHUB_USERNAME -Password YOUR_GITHUB_PAT -StorePasswordInClearText
$ nuget setApiKey YOUR_GITHUB_PAT -Source "https://nuget.pkg.github.com/tsunamods-codes/index.json"
Please note:
By default Visual Studio will pick the x86-Release build configuration, but you can choose any other profile available.
- Download the the latest Visual Studio Community installer
- Run the installer and import this .vsconfig file in the installer to pick the components required to build this project
- Make sure you select the English Language pack in the language list before clicking Install
- Once installed, open this repository as a folder in Visual Studio
- Choose as preset in the status bar the one you desire
- Click the
Build
button
- REQUIRED! Follow up the steps to install Visual Studio, which will also install the MSVC toolchain
- Download and install the latest Visual Studio Code release
- Install the following extensions:
- Open this repository as a folder in Visual Studio Code
- Choose as preset in the status bar the one you desire
- Click the button on the status bar
Build
- REQUIRED! Follow up the steps to install Visual Studio, which will also install the MSVC toolchain
- REQUIRED! Have Neovim installed with clangd as LSP
- Install the extension
Clang Power Tools
in Visual Studio Community - Open the solution
CTNx.sln
under the.build
directory with Visual Studio Community (sln file is generated by the build process) - Right-click on CTNx solution (under the Solution Explorer) then click on Clang Power Tools -> Export Compilation Database
- Copy the
compile_commands.json
generated file into the root of the repository - Open Neovim and enjoy!
To build from the terminal (example with RelWithDebInfo):
- For dependency use:
cmake --preset RelWithDebInfo
- For building the project:
cmake --build --preset RelWithDebInfo
NOTICE: For the dependency step, make sure that PATH variable does not contain any UNIX command tools since vcpkg build process is based on UNIX tools.
Also on terminal it might not auto detect the kernel32_lib, so pass it with -DCMAKE_LIBRARY_PATH=%kernel32_lib%
(e.g. cmake --preset RelWithDebInfo -DCMAKE_LIBRARY_PATH="C:\Program Files (x86)\Windows Kits\10\Lib\10.0.22621.0\um\x86"
)
- REQUIRED! Install Python
- Install cmake-format and make sure the binary is available in your PATH environment variable
- OPTIONAL! Integrate it in your own IDE (eg. for Visual Studio Code use the relative extension)
CTNx offers multiple support channels, pick the one you prefer
- Tsunamods CTNx: https://discord.gg/Urq67Uz (remember to hit the relative reaction!)
This project could have not been a reality if those people would have not worked on Chrono Trigger with their deep passion and knowledge. CTNx makes use also of their work, and I will never be enough grateful to those people. The order is purely Alphabetical.
These people are:
- Biggs McWedge
- for various discoveries in the game engine code
- for the initial voice acting implementation and research
- Maciej Trębacz
- for various discoveries in the game engine code
CTNx is released under GPLv3 license. You can get a copy of the license here: COPYING.txt
If you paid for CTNx, remember to ask for a refund from the person who sold you a copy. Also make sure you get a copy of the source code (if it was provided as binary only).
If the person who gave you this copy refuses to give you the source code, report it here: https://www.gnu.org/licenses/gpl-violation.html
All rights belong to their respective owners.