Hello OTLanders,
I would like to present a tool I developed called RevSpell Converter.
The goal of this program is to automatically convert legacy XML/Lua spells into modern RevScript, in a safe and organized way.
The main difference is that it reads the existing spells.xml directly from your server and generates the correct RevScripts, without requiring manual rewriting.
Nekiro / TFS 1.4.2 / CUSTOM
I would like to present a tool I developed called RevSpell Converter.
The goal of this program is to automatically convert legacy XML/Lua spells into modern RevScript, in a safe and organized way.
The main difference is that it reads the existing spells.xml directly from your server and generates the correct RevScripts, without requiring manual rewriting.
What does
- Converts legacy XML spells into RevScript
- Preserves the original Lua code (combat, formulas, areas, effects)
- Generates only the correct spell wrapper
- Organizes files by type and group
- Applies IDs correctly, avoiding conflicts
Supported TFS versions
The converter includes a version selector and generates compatible code for:
- TFS 1.4.2 (1098)
- TFS 1.5 Milhtore Downgrade
- TFS 1.5 Nekiro Standard
- TFS 1.4.2 / 1.5 Custom (Downgrade / Nekiro)
Generated spell wrapper
Milhtore 1.5 Milhtore Downgrade
(single-line syntax – required by this distribution)
LUA:
function spell.onCastSpell(creature, variant) return combat:execute(creature, variant) end
Nekiro / TFS 1.4.2 / CUSTOM
LUA:
function spell.onCastSpell(creature, variant, isHotkey)
return combat:execute(creature, variant)
end
How to use (5 steps)
- Click Choose Folder and select the folder containing spells.xml
- Adjust the Base ID if needed (e.g. 100)
- Select the TFS version
- Click Convert
- Copy the generated files from converter/ to your server
Prerequisites
Before starting, make sure you have the following installed:
- Rust (Programming Language)
- Download: rustup.rs - The Rust toolchain installer (https://rustup.rs/)
- Use default installation options
- Visual Studio Build Tools (Windows C++ compiler)
- Required to build Rust dependencies
- Install Desktop development with C++
- WebView2
- Already installed on updated Windows 10/11
- Used by Tauri to render the UI
- Tauri CLI
XML:
cargo install tauri-cli Contributing
If you want to help improve the project, simply fork the repository, fix or add what is missing, and open a Pull Request.
Contributions are very welcome.
GitHub - Mateuzkl/RevSpell-Converter
Contribute to Mateuzkl/RevSpell-Converter development by creating an account on GitHub.github.com
onverter
- Rust (Programming Language)