Skip to content

davedevils/KartNChibi

Folders and files

NameName
Last commit message
Last commit date

Latest commit

ย 

History

8 Commits
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 
ย 

Repository files navigation

Kart N'Chibi

Educational License Status

Educational reverse engineering and game development project focused on understanding Kart N' Crasy / Chibi Kart architecture, network protocols, and file formats.


โš ๏ธ Educational Purpose Only

This project is for EDUCATIONAL and RESEARCH purposes ONLY.

By using this code, you acknowledge and agree that:

  • The author is NOT responsible for any misuse, damage, loss of data, or consequences
  • You must ensure compliance with all applicable laws and regulations
  • This does NOT endorse illegal activity or ToS violations
  • Use this code responsibly and ethically

This is a learning project about KnC/Chibi Kart game networking, reverse engineering, and MMO architecture


๐Ÿ“– About This Project

Kart N'Chibi is an educational project exploring MMO kart racing game architecture through reverse engineering. The project will includes:

  • ๐Ÿ”“ Full protocol documentation ( packets reverse-engineered)
  • ๐ŸŽฎ Server emulator (Login + Game servers)
  • ๐Ÿ’ป Custom client implementation
  • ๐Ÿ› ๏ธ Development tools (packet inspector, map viewer, UI editor, etc.)
  • ๐Ÿ“š Comprehensive documentation of the game's architecture

Why This Project?

This educational project aims to:

  1. Learn MMO game architecture and networking
  2. Understand game protocols through reverse engineering
  3. Document file formats and network communication
  4. Provide a learning resource for game development students

๐Ÿ“‚ Project Structure

๐Ÿ“ฆ Kart N'Chibi
โ”œโ”€โ”€ ๐Ÿ“ client/              # Custom client implementation
โ”‚   โ”œโ”€โ”€ app/                # Application entry point
โ”‚   โ”œโ”€โ”€ engine/             # Rendering, audio, input, UI
โ”‚   โ”œโ”€โ”€ game/               # Game logic (kart, items, tracks)
โ”‚   โ””โ”€โ”€ net/                # Network client
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ server/              # Server emulator
โ”‚   โ”œโ”€โ”€ gateway/            # Login server (auth, session)
โ”‚   โ”œโ”€โ”€ game/               # Game server (race simulation)
โ”‚   โ””โ”€โ”€ services/           # MMO services (profiles, inventory, shop)
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ engine/              # Core engine (NIF loader, renderer)
โ”œโ”€โ”€ ๐Ÿ“ shared/              # Shared library (networking, security)
โ”œโ”€โ”€ ๐Ÿ“ tools/               # Development tools
โ”‚   โ”œโ”€โ”€ packet_inspector/   # Network packet analyzer
โ”‚   โ”œโ”€โ”€ ui_editor/          # UI screen editor
โ”‚   โ”œโ”€โ”€ map_viewer/         # 3D map viewer
โ”‚   โ””โ”€โ”€ model_viewer/       # 3D model viewer
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ docs/                # Complete documentation
โ”‚   โ”œโ”€โ”€ protocol/           # Network protocol (192 packets)
โ”‚   โ”œโ”€โ”€ architecture/       # System design
โ”‚   โ”œโ”€โ”€ formats/            # File format specs
โ”‚   โ””โ”€โ”€ reverse/            # Reverse engineering guides
โ”‚
โ”œโ”€โ”€ ๐Ÿ“ data/                # Game assets
โ””โ”€โ”€ ๐Ÿ“ tests/               # Unit/integration tests

๐Ÿš€ Quick Start

Prerequisites

  • Windows (or Linux)
  • Visual Studio 2022 or 2019 (C++ Desktop Development)
  • CMake 3.15+
  • Git

Build

# Clone the repository
git clone https://github.com/davedevils/KartNChibi.git
cd KartNChibi

# Build everything (Release)
scripts\build.bat release

# Or build Debug
scripts\build.bat debug

Executables will be in release/ or debug/ folders.

Run

# Start the login server
cd release
gateway.exe

# In another terminal, start game server
game.exe

# Run the client
KartNChibi.exe

๐Ÿ“– Full build guide: BUILD.md


๐Ÿ“š Documentation

Document Description
๐Ÿ“– BUILD.md Complete build instructions
๐Ÿ“ก Protocol Documentation 192 packets reverse-engineered
๐Ÿ—๏ธ Architecture System design and structure
๐Ÿ“ฆ File Formats PAK, NIF, DDS, JSON formats
๐Ÿ” Reverse Engineering IDA/Ghidra guides
๐ŸŽจ UI System UI engine documentation

๐ŸŒŸ Highlights


๐Ÿ› ๏ธ Development Tools

All tools are available in release/ or debug/ after building:

Tool Description Usage
packet_inspector.exe Sniff and decode network packets Real-time protocol analysis
ui_editor.exe Edit UI screens (JSON-based) Design and test UI layouts
map_viewer.exe View 3D maps Explore track geometry
model_viewer.exe View 3D models (NIF format) Inspect character/kart models
dat_manager.exe Extract/pack PAK archives Manage game assets

๐Ÿค Contributing

Contributions are welcome! This project was made in free time for fun, so the code can be messy in places Even if i try use copilote for fix my doc and text for make it clean

Ways to Contribute

  • ๐Ÿ› Bug reports - Open an issue
  • ๐Ÿ“ Documentation - Improve docs or add examples
  • ๐Ÿ”ง Code cleanup - Pull requests are appreciated!
  • ๐ŸŽฎ Testing - Test with original client (DevClient)
  • ๐ŸŒ Translation - Help translate UI/docs

Pull Request Guidelines

  1. Keep changes focused and well-documented
  2. Test with official client to ensure protocol compatibility
  3. Follow existing code style
  4. Update documentation if needed
  5. Add unit tests for new features

๐Ÿ“– See: CONTRIBUTING.md (coming soon)


๐Ÿ“œ License

CC BY-NC-SA 4.0 with Additional Terms

This project is licensed under Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International with the following terms:

โœ… You CAN:

  • Use this code for learning and education
  • Modify and improve the code
  • Create derivative works
  • Host local servers for non-commercial use
  • Share your modifications under the same license

โŒ You CANNOT:

  • Use this code for commercial purposes without written permission
  • Sell this software or services based on it
  • Remove or modify copyright notices
  • Use the original game's assets without proper rights

๐Ÿ“‹ Attribution Required:

  • Give appropriate credit to the original author
  • Provide a link to this repository
  • Indicate if changes were made
  • Keep the same license for derivative works

Commercial Use

If you want to use this project for commercial purposes, contact the author for written permission

Game Assets

This repository does NOT contain any copyrighted game assets (textures, models, sounds). All assets must be legally obtained.

๐Ÿ“„ Full license text: LICENSE.md


โš–๏ธ Disclaimer

This project is an independent educational project focused on learning game development and reverse engineering techniques.

All research was performed on legally obtained software for educational purposes.


๐ŸŽฏ Current Status

โœ… Completed

  • Full protocol documentation (192 packets)
  • Login server (authentication, session management)
  • Game server (basic race simulation)
  • Client (connects to custom server)
  • NIF model loader (3D models)
  • UI system (JSON-based)
  • Packet inspector tool
  • Enterprise-grade project structure

๐Ÿ”„ In Progress

  • Complete race simulation (physics, items)
  • Anti-cheat system
  • Replay system
  • Load testing infrastructure
  • Admin web panel

๐Ÿ”œ Planned

  • Multiple platform support (Linux, Android)
  • Modern rendering backend (Vulkan/DirectX 12)
  • Improved networking (reliable UDP)
  • Comprehensive test suite

๐ŸŒŸ Acknowledgments

  • IDA Pro & Ghidra - Reverse engineering tools
  • Raylib - Graphics library
  • Original game developers - For creating an amazing game
  • Community of Chibi Kart Reboot - For keeping the memory alive - Discord

๐Ÿ’ฌ Community


๐Ÿ“Š Stats

Lines of Code Packets Documented Files


๐ŸŽ“ Learning Resources

Want to learn reverse engineering and game networking? Check out:


โญ Show Your Support

If you find this project useful for learning or nostalgia:

  • โญ Star this repository
  • ๐Ÿด Contribute at cleaning
  • ๐Ÿ“ข Share with others
  • ๐Ÿ’ฌ Come to Discord

Made with โค๏ธ for education and game preservation

Most tools were made in free time for fun, so code might be DIRTY - don't complain, just send a Pull Request if you want to clean it! =D


Last Updated: December 2025
Version: 0.0.2A
Status: Active Development

About

Tools & Stuff for Kart n Crazy / Chibi Kart

Resources

License

Contributing

Stars

Watchers

Forks

Releases

No releases published

Packages

 
 
 

Contributors