GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — GitHub - ShieldBattery/broodmap: A pure Rust library for parsing and extracting StarCraft 1 map files (scm/scx).

BranchesTags
Open more actions menu

Latest commit

 

History

122 Commits
122 Commits

Folders and files

NameName
Last commit message
Last commit date
.github
.github
 
 
broodmap-analysis
broodmap-analysis
 
 
broodmap-cli
broodmap-cli
 
 
broodmap-formats
broodmap-formats
 
 
broodmap-render
broodmap-render
 
 
broodmap-wasm
broodmap-wasm
 
 
broodmap
broodmap
 
 
docs
docs
 
 
fuzz
fuzz
 
 
.editorconfig
.editorconfig
 
 
.gitignore
.gitignore
 
 
AGENTS.md
AGENTS.md
 
 
CLAUDE.md
CLAUDE.md
 
 
Cargo.lock
Cargo.lock
 
 
Cargo.toml
Cargo.toml
 
 
LICENSE-APACHE
LICENSE-APACHE
 
 
LICENSE-MIT
LICENSE-MIT
 
 
README.md
README.md
 
 

Repository files navigation

broodmap

A pure Rust implementation of StarCraft 1 map parsing. This library works for both SCM and SCX files, and offers handling for the archive format (MPQ) as well as the internal scenario description (CHK).

Untrusted maps

The default ResourceLimits cap extracted files at 64 MiB and MPQ sector expansion at 500:1. Every decompression stage uses the original sector's actual byte length, including intermediate stages. A 4 KiB allowance preserves small sectors, and compatibility zero-padding also counts against the expansion limit. This is a per-sector policy, not a whole-upload ratio guarantee.

Callers can adjust max_mpq_compression_ratio through Mpq::from_bytes_with_limits or extract_chk_from_map_with_limits; usize::MAX disables only the ratio check. ResourceLimits::trusted() disables all parser limits and is only for trusted inputs. Network services should additionally bound upload sizes, concurrency, and processing time.

Terrain analysis experiment

broodmap-analysis resolves terrain flags, suggests resource-base locations, and computes routes around static map obstacles. The WASM demo shows overlays and compares ground and air distances between points or base candidates. See the design and limitations for the heuristics and path toward wall analysis.

WIP

This library is a work-in-progress, it is not yet complete or ready for use.

License

Licensed under either of

  • Apache License, Version 2.0 (LICENSE-APACHE or http://www.apache.org/licenses/LICENSE-2.0)
  • MIT license (LICENSE-MIT or http://opensource.org/licenses/MIT)

at your option.

Contribution

Unless you explicitly state otherwise, any contribution intentionally submitted for inclusion in the work by you, as defined in the Apache-2.0 license, shall be dual licensed as above, without any additional terms or conditions.

About

A pure Rust library for parsing and extracting StarCraft 1 map files (scm/scx).

Resources

Readme
Activity
Custom properties

Stars

7 stars

Watchers

3 watching

Forks

0 forks
Report repository

Releases

Sponsor this project

Packages

Used by

Contributors

Languages

You are visitor 01402775 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.