Check out our latest project ✨ OpenChapter.io: free ebooks the way its meant to be πŸ“–

Prologot

An asset by Lecrapouille
The page banner background of a mountain and forest
Prologot hero image

Quick Information

0 ratings
Prologot icon image
Lecrapouille
Prologot

Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.

Supported Engine Version
4.5
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
1 day ago
Git URL
Issue URL

README License: MIT README Godot 4.2+ README SWI-Prolog README Version

Prologot

Prologot Logo

Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.

  • SWI-Prolog integration via GDExtension.
  • Interactive Prolog console in the Godot editor.
  • Query execution with variable bindings.
  • Dynamic fact assertion and retraction.
  • Consult Prolog files or code strings.
  • Knowledge base management.
  • Type conversion between Prolog terms and Godot Variants.

You can see Use Cases for basic examples and quick start guide.


Documentation

  • Getting Started: Follow the Installation Guide to set everything up. The quick way to compile:
# Install dependencies (Linux example)
sudo apt-get install swi-prolog swi-prolog-nox pkg-config
pip install scons

# Clone and build
git clone https://github.com/yourusername/Prologot.git
cd Prologot
make GODOT_CPP=4.5 all
make run-demo
  • Experiment in the Editor: After playing with the demos, fire up the Editor Console in Godot. It's like having a Prolog REPL right in your editor - perfect for tinkering and testing ideas. Once you've convinced yourself that Prolog is actually useful (we know, it's a hard sell), grab the hello_world_prologot.gd template and start building. Don't forget to check the API Reference when you need the details.

  • For Prolog Veterans: If you're already fluent in Prolog and wondering why we renamed everything, check out the Mapping between Prologot and traditional Prolog names. We promise it's not just to confuse you.


Project Structure

Prologot/
β”œβ”€β”€ src/                          # C++ source files
β”‚   β”œβ”€β”€ Prologot.hpp              # Main class header
β”‚   β”œβ”€β”€ Prologot.cpp              # Main class implementation
β”‚   β”œβ”€β”€ register_types.h          # GDExtension registration header
β”‚   └── register_types.cpp        # GDExtension registration
β”œβ”€β”€ tests/                        # Unit tests
β”œβ”€β”€ addons/prologot/              # Godot plugin
β”‚   β”œβ”€β”€ plugin.cfg                # Plugin configuration
β”‚   β”œβ”€β”€ plugin.gd                 # Plugin entry point
β”‚   β”œβ”€β”€ prologot_dock.gd          # Editor dock UI
β”‚   └── prologot_singleton.gd     # Global autoload singleton
β”œβ”€β”€ demos/                        # Demo projects
β”‚   └── showcases/                # Interactive demo project
β”‚       β”œβ”€β”€ examples/             # Prolog example files (.pl)
β”‚       β”œβ”€β”€ prologot-demos.gd     # Main demo script (UI and logic)
β”‚       └── prologot-demos.tscn   # Scene file (UI layout)
β”œβ”€β”€ doc/                          # Documentation
β”‚   └── hello_world_prologot.gd   # Hello World example
β”œβ”€β”€ bin/                          # Compiled libraries (after build)
β”œβ”€β”€ prologot.gdextension          # Extension configuration (after build)
β”œβ”€β”€ godot-cpp-*/                  # Godot C++ bindings (git cloned automatically by SConstruct)
β”œβ”€β”€ SConstruct                    # SCons build system (handles everything: setup, compile, generate .gdextension)
└── Makefile                      # Convenience commands to SCons

License

This project is licensed under the MIT License - see the LICENSE file for details.

This project used AI to generate code.

Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.

Reviews

0 ratings

Your Rating

Headline must be at least 3 characters but not more than 50
Review must be at least 5 characters but not more than 500
Please sign in to add a review

Quick Information

0 ratings
Prologot icon image
Lecrapouille
Prologot

Prologot is a GDExtension that integrates SWI-Prolog into Godot 4, enabling logic programming in your games. Use Prolog for AI decision-making, dialogue systems, rule engines, pathfinding, and more.

Supported Engine Version
4.5
Version String
0.1.0
License Version
MIT
Support Level
community
Modified Date
1 day ago
Git URL
Issue URL

Open Source

Released under the AGPLv3 license

Plug and Play

Browse assets directly from Godot

Community Driven

Created by developers for developers