Skip to content

Next generation modding platform for Chrono Trigger ( native Steam 2018 release support! )

License

Notifications You must be signed in to change notification settings

julianxhokaxhiu/CTNx

Repository files navigation

License Overall Downloads Latest Stable Downloads Latest Canary Downloads GitHub Actions Workflow Status


Temporary logo until final one is ready. Made with DALL-E 3

CTNx

Next generation modding platform for Chrono Trigger ( native Steam 2018 release support! )

Introduction

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

The Team

CTNx is developed by a core team, currently composed of:

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.

Features

As a user

  • /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.

As a modder

Documentation

For a more in-depth documentation feel free to visit the docs/ folder.

Tech Stack

If you're curious to know, CTNx makes use of:

How to build

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

Preparation

Please note:

CTNx uses vcpkg as a package manager to resolve dependencies. Failing to follow these steps will result in build errors.

  1. Clone the vcpkg project in the root folder of your C: drive (git clone https://github.com/Microsoft/vcpkg.git)
  2. Go inside the C:\vcpkg folder and double click bootstrap-vcpkg.bat
  3. Open a cmd window in C:\vcpkg and run the following command: vcpkg integrate install

NuGet

Please note:

This step will speed up your compilation times by avoiding the vcpkg dependencies rebuild.

  1. Make sure you have NuGet CLI installed.
  2. Create a Personal Access token ( classic ) with the write:packages permission.
  3. Open a cmd window and run the following commands ( replace YOUR_GITHUB_USERNAME and YOUR_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"

Visual Studio

Please note:

By default Visual Studio will pick the x86-Release build configuration, but you can choose any other profile available.

  1. Download the the latest Visual Studio Community installer
  2. Run the installer and import this .vsconfig file in the installer to pick the components required to build this project
  3. Make sure you select the English Language pack in the language list before clicking Install
  4. Once installed, open this repository as a folder in Visual Studio
  5. Choose as preset in the status bar the one you desire
  6. Click the Build button

Visual Studio Code

  1. REQUIRED! Follow up the steps to install Visual Studio, which will also install the MSVC toolchain
  2. Download and install the latest Visual Studio Code release
  3. Install the following extensions:
  4. Open this repository as a folder in Visual Studio Code
  5. Choose as preset in the status bar the one you desire
  6. Click the button on the status bar Build

Neovim with clangd (optional)

  1. REQUIRED! Follow up the steps to install Visual Studio, which will also install the MSVC toolchain
  2. REQUIRED! Have Neovim installed with clangd as LSP
  3. Install the extension Clang Power Tools in Visual Studio Community
  4. Open the solution CTNx.sln under the .build directory with Visual Studio Community (sln file is generated by the build process)
  5. Right-click on CTNx solution (under the Solution Explorer) then click on Clang Power Tools -> Export Compilation Database
  6. Copy the compile_commands.json generated file into the root of the repository
  7. 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")

Auto-Formatting

CMake Files

  1. REQUIRED! Install Python
  2. Install cmake-format and make sure the binary is available in your PATH environment variable
  3. OPTIONAL! Integrate it in your own IDE (eg. for Visual Studio Code use the relative extension)

Support

CTNx offers multiple support channels, pick the one you prefer

Discord

Github

Credits

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

License

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.