npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

war3map

v0.1.1

Published

To translate between `war3map` and `json` formats for WarCraft III .w3x maps.

Downloads

18

Readme

Not finished yet, please wait until version >= 1.0.0.

Contributors Forks Stargazers Issues MIT License Language Build Status Coverage Status

Table of Contents

Overview

War3map is a module to convert between a Object representation of WarCraft III (.w3x) data and war3map format files.

TranslationExample

War3map is written in TypeScript, offering type safety and improved development experience.

Here's some places where you can use this library:

  • You need to decompile a map of Warcraft 3.
  • You want to write a map editor for Warcraft 3.
  • You want to optimize or encrypt your Warcraft 3 map.

Support

Support Files

| Type | Object → War | War → Object | File | | --- | :-: | :-: | --- | | Environment | check | check | war3map.w3e | | Units | check | check | war3mapUnits.doo | | Doodads | check | check | war3map.doo | | Regions | check | check | war3map.w3r | | Cameras | check | check | war3map.w3c | | Sounds(definitions)| check | check | war3map.w3s|

Object data files

| Type | Object → War | War → Object | File | | --- | :-----------: | :-: | ---- | | Units - Objects | check | check | war3map.w3u | | Items - Objects | check | check | war3map.w3t | | Abilities - Objects | check | check | war3map.w3a | | Destructables - Objects | check |check | war3map.w3b | | Doodads - Objects | check | check | war3map.w3d | | Upgrades - Objects | check | check | war3map.w3q | | Buffs - Objects | check | check | war3map.w3h |

Trigger files

| Type | Object → War | War → Object | File | | --- | :-: | :-: | --- | | LUA | check | check | war3map.lua | | JASS | check | check | war3map.j | | Strings | check | check | war3map.wts |

Map files

| Type | Object → War | War → Object | File | | --- | :-: | :-: | --- | | Info File | check | check | war3map.w3i | | Imported Files | check | check | war3map.imp | | Pathing | check | check | war3map.wpm | | Shadow map | check | check | war3map.shd |

Currently Not included

times Custom Text Trigger File (war3map.wct)
times Trigger Names File (war3map.wtg)
times Menu Minimap (war3map.mmp)
times Minimap Image (war3mapMap.blp)
times Minimap Image (war3mapMap.b00
times Minimap Image (war3mapMap.tga)
times Map Preview Image (war3mapPreview.tga)

Getting Started

Prerequisites

Installation

The easiest and fastest way is to use it as a library. Just simply type the followings:

  • npm
npm install war3map

Import

Create your .ts or .js file, and type as follows:

import * as war3map from "war3map";

To get more examples or usages for war3map, see Documentation.

Development

To get a local copy up and running follow these simple steps:

  1. Clone the repo
git clone https://github.com/invokerrrr/war3map.git
  1. Enter the correct directory
cd war3map
  1. Install NPM packages
npm install
  1. Run All Tests
npm test

Roadmap

See the open issues for a list of proposed features (and known issues).

Contributing

Contributions are what make the open source community such an amazing place to be learn, inspire, and create. Any contributions you make are greatly appreciated.

  1. Fork the Project
  2. Create your Feature Branch (git checkout -b feature/AmazingFeature)
  3. Commit your Changes (git commit -m 'Add some AmazingFeature')
  4. Push to the Branch (git push origin feature/AmazingFeature)
  5. Open a Pull Request

Your code should:

  • Run correctly (Run npm test without errors.)
  • Include tests (Write unit tests and run npm run test:coverage to cover most of your code.)
  • Be linted (Run npm run lint and follow the project's coding standards.)
  • Pass travis-ci (Pass in different environments.)

If your code is accepted into master, we will invite you to be a project member as soon.

License

Distributed under the MIT License. See LICENSE for more information.

Contact

Invoker Bot - [email protected]

Project Link: https://github.com/invokerrrr/war3map

Acknowledgements

  • This project refers a lot from WC3MapTranslator written by ChiefOfGxBxL. Our goal is same but offers different API, and plan more features.

  • We owe a lot of thanks to Chocobo on TheHelper for the detailed documentation of the files found in a .w3x archive. And another two tutorials are here (1) and here (2) and here (3).