Skip to content
This repository was archived by the owner on Mar 15, 2023. It is now read-only.

Commit 4b145a1

Browse files
authored
Merge pull request #2 from oganexon/develop
1.0.1
2 parents da9de33 + c176630 commit 4b145a1

File tree

8 files changed

+54
-39
lines changed

8 files changed

+54
-39
lines changed

README.md

Lines changed: 31 additions & 26 deletions
Original file line numberDiff line numberDiff line change
@@ -21,21 +21,26 @@
2121

2222
## Table of Contents
2323

24-
- [Installation](#installation)
25-
- [Usage](#usage)
26-
- [list](#list)
27-
- [tpll](#tpll)
28-
- [tpdms](#tpdms)
29-
- [draw](#draw)
30-
- [Find a railroad name](#find-a-railroad-name)
31-
- [Roadmap](#roadmap)
32-
- [Contributing](#contributing)
33-
- [License](#license)
34-
- [Contact](#contact)
35-
36-
37-
38-
## About The Project
24+
- [Table of Contents](#table-of-contents)
25+
- [✨ About The Project](#%e2%9c%a8-about-the-project)
26+
- [Built With](#built-with)
27+
- [Getting Started](#getting-started)
28+
- [Prerequisites](#prerequisites)
29+
- [📦 Installation](#%f0%9f%93%a6-installation)
30+
- [🚀 Usage](#%f0%9f%9a%80-usage)
31+
- [list](#list)
32+
- [tpll](#tpll)
33+
- [tpdms](#tpdms)
34+
- [draw](#draw)
35+
- [🔍 Find a railroad name](#%f0%9f%94%8d-find-a-railroad-name)
36+
- [📜 Roadmap](#%f0%9f%93%9c-roadmap)
37+
- [🏗️ Contributing](#%f0%9f%8f%97%ef%b8%8f-contributing)
38+
- [License](#license)
39+
- [Contact](#contact)
40+
41+
42+
43+
## ✨ About The Project
3944

4045
![Product Name Screen Shot](images/rails.png)
4146

@@ -50,14 +55,11 @@ This set of tools will allow you to enjoy a better experience on BTE and build t
5055
## Getting Started
5156

5257

53-
5458
### Prerequisites
5559

5660
You must have WorldEdit as a minimum but install the BTE modpack, it's preferable.
5761

58-
##
59-
60-
# Installation
62+
## 📦 Installation
6163

6264
1. Download the [Rhino Javacsript interpreter](https://developer.mozilla.org/en-US/docs/Mozilla/Projects/Rhino) for Java,
6365
which you can get from [here](https://github.com/mozilla/rhino/releases/download/Rhino1_7_12_Release/rhino-1.7.12.zip).
@@ -70,7 +72,7 @@ Open the zip file, go to `/lib` and move `rhino-1.7.12.jar` (or newer) to your `
7072

7173

7274

73-
## Usage
75+
## 🚀 Usage
7476

7577
```bash
7678
/cs <COMMAND> [ARGS]
@@ -85,6 +87,8 @@ These are WorldEdit scripts, if blocks are modified you have access to `//undo`.
8587

8688
Do you need another function? Request it [here](https://github.com/oganexon/BTE-tools/issues).
8789

90+
The first execution of a command will take longer than the others because the script has to be compiled.
91+
8892

8993

9094
### list
@@ -147,7 +151,7 @@ Setup :
147151
- Get a geoJSON file of valid tracings / OR
148152
- Choose one of the following links:
149153
- [Rails - bounding box](http://overpass-turbo.eu/s/TwW) (Select the desired region using the map)
150-
- [Rails - name](http://overpass-turbo.eu/s/TwY) (Replace with a specific railroad name) [(find a railroad name)](#find-a-railroad-name)
154+
- [Rails - name](http://overpass-turbo.eu/s/TwY) (Replace with a specific railroad name) [(find a railroad name)](#%f0%9f%94%8d-find-a-railroad-name)
151155
- Click `Run` > `Export` > `download/copy as GeoJSON`
152156
- Place the file in the `drawings` folder.
153157

@@ -160,7 +164,7 @@ Examples :
160164

161165

162166

163-
## Find a railroad name
167+
## 🔍 Find a railroad name
164168

165169
To find a railway name, right click near the rails and click on `Query features`
166170

@@ -176,21 +180,22 @@ And finally, get the name.
176180

177181

178182

179-
## Roadmap
183+
## 📜 Roadmap
180184

181185
See the [open issues](https://github.com/oganexon/BTE-tools/issues) for a list of proposed features (and known issues).
182186

183187

184188

185-
## Contributing
189+
## 🏗️ Contributing
186190

187191
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**.
188192

189193
1. Fork the Project
190194
2. Create your Feature Branch (`git checkout -b feature/AmazingFeature`)
191195
3. Commit your Changes (`git commit -m 'Add some AmazingFeature'`)
192-
4. Push to the Branch (`git push origin feature/AmazingFeature`)
193-
5. Open a Pull Request
196+
4. Make sure that `yarn build` and `yarn lint` do not generate errors
197+
5. Push to the Branch (`git push origin feature/AmazingFeature`)
198+
6. Open a Pull Request
194199

195200

196201

gulpfile.babel.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ const babel = require('gulp-babel')
33
const uglify = require('gulp-uglify')
44
const bro = require('gulp-bro')
55

6-
const files = ['tpll', 'tpdms', 'draw']
6+
const files = ['tpll', 'tpdms', 'draw', 'list', 'help']
77

88
exports.default = function () {
99
return src(`src/+(${files.join('|')}).js`)

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "bte-tools",
3-
"version": "1.0.0",
3+
"version": "1.0.1",
44
"description": "Awesome tools and scripts to enhance your experience on the Build The Earth project!",
55
"scripts": {
66
"lint": "standard src/**/* --fix",

src/draw.js

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,11 @@ importPackage(Packages.com.sk89q.worldedit)
77
importPackage(Packages.com.sk89q.worldedit.math)
88
importPackage(Packages.com.sk89q.worldedit.blocks)
99

10-
const usage = '/cs draw <file> <block> [options] \n' +
11-
' • §o/cs draw rails1 iron_block\n' +
12-
' • §o/cs draw file3 stone u\n' +
13-
'Options:\n' +
14-
' • §lu§r§c Draw a block above'
10+
const usage = `/cs draw <file> <block> [options]
11+
• §o/cs draw rails1 iron_block
12+
• §o/cs draw file3 stone u
13+
Options:
14+
• §lu§r§c Draw a block above`
1515

1616
context.checkArgs(2, 3, usage)
1717

src/help.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
require('./list')

src/list.js

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
/* global player */
2+
3+
const list = `Usage: /cs <COMMAND> [ARGS]
4+
• list : Lists all available commands.
5+
• tpll : Replaces the tpll command.
6+
• tpdms : Same as tpll but takes degrees minutes seconds (such as 47°35'6.32"N 6°53'50.06"E ).
7+
• draw : Traces any imported shape of an OpenStreetMap query - railroads, roads, etc.`
8+
9+
player.print(list)

src/tpdms.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const getProjection = require('./getProjection')
44
importPackage(Packages.com.sk89q.worldedit)
55
importPackage(Packages.com.sk89q.worldedit.math)
66

7-
const usage = '<latitude> <longitude> [altitude]\n' +
8-
' • §o/cs tpdms 47°35\'6.32"N 6°53\'50.06"E\n' +
9-
' • §o/cs tpdms 47°35\'6.32"N, 6°53\'50.06"E 370'
7+
const usage = `<latitude> <longitude> [altitude]
8+
• §o/cs tpdms 47°35'6.32"N 6°53'50.06"E
9+
• §o/cs tpdms 47°35'6.32"N, 6°53'50.06"E 370`
1010

1111
context.checkArgs(2, 3, usage)
1212

src/tpll.js

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,9 @@ const getProjection = require('./getProjection')
44
importPackage(Packages.com.sk89q.worldedit)
55
importPackage(Packages.com.sk89q.worldedit.math)
66

7-
const usage = '<latitude> <longitude> [altitude]\n' +
8-
' • §o/cs tpll 47.58523 6.89725\n' +
9-
' • §o/cs tpll 47.58523, 6.89725 370'
7+
const usage = `<latitude> <longitude> [altitude]
8+
• §o/cs tpll 47.58523 6.89725
9+
• §o/cs tpll 47.58523, 6.89725 370`
1010

1111
context.checkArgs(2, 3, usage)
1212

0 commit comments

Comments
 (0)