Giter Site home page Giter Site logo

siegeengineers / genie-rs Goto Github PK

View Code? Open in Web Editor NEW
18.0 5.0 8.0 14.17 MB

Rust libraries for reading/writing various Age of Empires I/II files.

Home Page: https://docs.rs/genie

License: GNU General Public License v3.0

Rust 100.00%
age-of-empires genie-engine drs scx

genie-rs's Introduction

genie-rs

docs.rs crates.io GitHub license MSRV

Rust libraries for reading/writing various Age of Empires I/II files.

Example Programs

# Extract scenario files from a campaign to the working directory.
cargo run --example extractcpx ~/path/to/campaign.cpx

# Show the scenario files in a campaign file.
cargo run --example extractcpx ~/path/to/campaign.cpx -l

# Convert an HD Edition (+expansions) scenario to WololoKingdoms.
cargo run --example convertscx ~/path/to/input.aoe2scenario ~/path/to/output.scx wk

# Display contents of a language file.
cargo run --example displaylang ~/path/to/input/language.dll dll
cargo run --example displaylang ~/path/to/input/language.ini ini
cargo run --example displaylang ~/path/to/input/key-value-strings.txt key-value

# Convert HD Edition key-value.txt language files to language.ini files for Voobly or aoc-language-ini
cargo run --example wolololang ~/path/to/input/key-value-strings.txt ~/path/to/output/language.ini

License

GPL-3.0

genie-rs's People

Contributors

dependabot-preview[bot] avatar dependabot[bot] avatar eridal avatar goto-bus-stop avatar rnestler avatar simonsan avatar the-eater avatar twestura avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

genie-rs's Issues

scx: Writing triggers

Apparently this isn't implemented yet! Pretty important for the scx conversion. It should basically do the inverse of TriggerSystem::from().

AoE2-DE aoe2record file format support

Is there any work underway to support the record game format from AoE 2 DE? When trying to open one I got the following output:

[crates/genie-scx/src/format.rs:181] victory_conquest = true
[crates/genie-scx/src/format.rs:187] _timeline_count = 0
[crates/genie-scx/src/format.rs:187] _timeline_available = 0
[crates/genie-scx/src/format.rs:187] _old_time = 0.0
Time(Time { time: 104, old_world_time: 0, unknown: 0 })
ViewLock(ViewLock { x: 30.0, y: 25.0, player: PlayerID(2) })
Time(Time { time: 104, old_world_time: 0, unknown: 0 })
ViewLock(ViewLock { x: 30.0, y: 25.0, player: PlayerID(2) })
Time(Time { time: 104, old_world_time: 0, unknown: 0 })
ViewLock(ViewLock { x: 30.0, y: 25.0, player: PlayerID(2) })
Time(Time { time: 104, old_world_time: 0, unknown: 0 })
ViewLock(ViewLock { x: 30.0, y: 25.0, player: PlayerID(2) })
Time(Time { time: 104, old_world_time: 0, unknown: 0 })
ViewLock(ViewLock { x: 30.0, y: 25.0, player: PlayerID(2) })
Time(Time { time: 104, old_world_time: 0, unknown: 0 })
ViewLock(ViewLock { x: 30.0, y: 25.0, player: PlayerID(2) })
Time(Time { time: 104, old_world_time: 0, unknown: 0 })
ViewLock(ViewLock { x: 30.0, y: 25.0, player: PlayerID(2) })
thread 'tests::aoe2_de_rec' panicked at 'unsupported command type 0x29', crates/genie-rec/src/actions.rs:1443:19

So I guess the file format is kind of support, just not all the commands?

dat/scx: use StringKey::Num for string IDs

After #7 merges, there will be a StringID type in genie_support. It should instead use StringKey::Num, so yuo can use the values you get from genie_scx and genie_dat with genie_lang directly.

Status

What’s the status of this crate?

lang: support DE-style key-value files

AoE DE appears to use a , instead of whitespace to separate key/value pairs.

1107,"Saving game..."
1108,"Waiting for other players...\nPlease wait while we establish your connection quality..."
1150,"Victory!"

Converted Rise of Rome scenario fails to load in The conquerors

I'm trying to convert a Rise of Rome scenario to a The Conquerors scenario. I've succesfully created a .scx file with genie-rs. When I tried to load the scenario in The Conquerors, it crashes. Trigger Studio is unable to load it. Agescx is unable to load it. So I'm kind of lost here. What could it be?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.