mirror of
https://github.com/louis-e/arnis.git
synced 2026-01-05 12:48:08 -05:00
Compare commits
2 Commits
benchmark-
...
python-leg
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
21659c66e0 | ||
|
|
b35b4f83ff |
45
.github/workflows/build-linux.yml
vendored
45
.github/workflows/build-linux.yml
vendored
@@ -1,45 +0,0 @@
|
|||||||
name: Build and Release for Linux
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [created] # Triggers only when a release is created
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-release:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.10'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
|
|
||||||
- name: Create Executable
|
|
||||||
uses: Martin005/pyinstaller-action@v1.2.0
|
|
||||||
with:
|
|
||||||
python_ver: '3.10'
|
|
||||||
spec: 'pyinst-compile.spec'
|
|
||||||
requirements: 'requirements.txt'
|
|
||||||
upload_exe_with_name: 'arnis'
|
|
||||||
options: '--onefile --name arnis'
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: make build
|
|
||||||
|
|
||||||
- name: Upload Release Asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: ./dist/arnis
|
|
||||||
asset_name: arnis
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
45
.github/workflows/build-windows.yml
vendored
45
.github/workflows/build-windows.yml
vendored
@@ -1,45 +0,0 @@
|
|||||||
name: Build and Release for Windows
|
|
||||||
|
|
||||||
on:
|
|
||||||
release:
|
|
||||||
types: [created] # Triggers only when a release is created
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build-and-release:
|
|
||||||
runs-on: windows-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- name: Checkout code
|
|
||||||
uses: actions/checkout@v3
|
|
||||||
|
|
||||||
- name: Set up Python
|
|
||||||
uses: actions/setup-python@v4
|
|
||||||
with:
|
|
||||||
python-version: '3.10'
|
|
||||||
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install -r requirements.txt
|
|
||||||
|
|
||||||
- name: Create Executable
|
|
||||||
uses: Martin005/pyinstaller-action@v1.2.0
|
|
||||||
with:
|
|
||||||
python_ver: '3.10'
|
|
||||||
spec: 'pyinst-compile.spec'
|
|
||||||
requirements: 'requirements.txt'
|
|
||||||
upload_exe_with_name: 'arnis.exe'
|
|
||||||
options: '--onefile --name arnis'
|
|
||||||
|
|
||||||
- name: Build
|
|
||||||
run: make build
|
|
||||||
|
|
||||||
- name: Upload Release Asset
|
|
||||||
uses: actions/upload-release-asset@v1
|
|
||||||
env:
|
|
||||||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
|
|
||||||
with:
|
|
||||||
upload_url: ${{ github.event.release.upload_url }}
|
|
||||||
asset_path: ./dist/arnis.exe
|
|
||||||
asset_name: arnis.exe
|
|
||||||
asset_content_type: application/octet-stream
|
|
||||||
32
.github/workflows/python-app.yml
vendored
32
.github/workflows/python-app.yml
vendored
@@ -1,32 +0,0 @@
|
|||||||
# This workflow will install Python dependencies, run tests and lint with a single version of Python
|
|
||||||
# For more information see: https://help.github.com/actions/language-and-framework-guides/using-python-with-github-actions
|
|
||||||
# Reduced subset of file from https://github.com/actions/starter-workflows/blob/main/ci/python-app.yml
|
|
||||||
|
|
||||||
name: Python application
|
|
||||||
|
|
||||||
on: [push, pull_request]
|
|
||||||
|
|
||||||
jobs:
|
|
||||||
build:
|
|
||||||
runs-on: ubuntu-latest
|
|
||||||
|
|
||||||
steps:
|
|
||||||
- uses: actions/checkout@v3
|
|
||||||
- name: Set up Python 3.10
|
|
||||||
uses: actions/setup-python@v3
|
|
||||||
with:
|
|
||||||
python-version: '3.10'
|
|
||||||
- name: Install dependencies
|
|
||||||
run: |
|
|
||||||
python -m pip install --upgrade pip
|
|
||||||
pip install flake8 pytest black
|
|
||||||
if [ -f requirements.txt ]; then pip install -r requirements.txt; fi
|
|
||||||
- name: Check the black styling
|
|
||||||
run: |
|
|
||||||
make style-check
|
|
||||||
- name: Lint with flake8
|
|
||||||
run: |
|
|
||||||
make lint
|
|
||||||
- name: Run unit tests
|
|
||||||
run: |
|
|
||||||
python -m pytest
|
|
||||||
15
README.md
15
README.md
@@ -1,18 +1,19 @@
|
|||||||
<p align="center">
|
<p align="center">
|
||||||
<img width="456" height="125" src="https://github.com/louis-e/arnis/blob/main/gitassets/logo.png?raw=true">
|
<img width="456" height="125" src="https://github.com/louis-e/arnis/blob/python-legacy/gitassets/logo.png?raw=true">
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
# Arnis [](https://github.com/louis-e/arnis/actions/workflows/python-app.yml)
|
# Arnis - Python Legacy Branch
|
||||||
This open source project generates any chosen location from the real world in Minecraft, allowing users to explore and build in a virtual world that mirrors the real one.
|
This open source project generates any chosen location from the real world in Minecraft, allowing users to explore and build in a virtual world that mirrors the real one.<br><br>
|
||||||
|
This branch stores the old Python legacy version (v1.x), which was now replaced by the [Rust port](https://github.com/louis-e/arnis).
|
||||||
<br><br>
|
<br><br>
|
||||||
⇒ [Where did you find this project?](https://6okq6xh5jt4.typeform.com/to/rSjZaB41)
|
⇒ [Where did you find this project?](https://6okq6xh5jt4.typeform.com/to/rSjZaB41)
|
||||||
<br>
|
<br>
|
||||||
## :desktop_computer: Example
|
## :desktop_computer: Example
|
||||||

|

|
||||||

|

|
||||||
|
|
||||||
## :floppy_disk: How it works
|
## :floppy_disk: How it works
|
||||||

|

|
||||||
|
|
||||||
The raw data obtained from the API *[(see FAQ)](#question-faq)* includes each element (buildings, walls, fountains, farmlands, etc.) with its respective corner coordinates (nodes) and descriptive tags. When you run the script, the following steps are performed automatically to generate a Minecraft world:
|
The raw data obtained from the API *[(see FAQ)](#question-faq)* includes each element (buildings, walls, fountains, farmlands, etc.) with its respective corner coordinates (nodes) and descriptive tags. When you run the script, the following steps are performed automatically to generate a Minecraft world:
|
||||||
|
|
||||||
@@ -30,7 +31,7 @@ The raw data obtained from the API *[(see FAQ)](#question-faq)* includes each el
|
|||||||
```python3 arnis.py --bbox="min_lng,min_lat,max_lng,max_lat" --path="C:/Users/username/AppData/Roaming/.minecraft/saves/worldname"```
|
```python3 arnis.py --bbox="min_lng,min_lat,max_lng,max_lat" --path="C:/Users/username/AppData/Roaming/.minecraft/saves/worldname"```
|
||||||
|
|
||||||
Use http://bboxfinder.com/ to draw a rectangle of your wanted area. Then copy the four box coordinates as shown below and use them as the input for the --bbox parameter.
|
Use http://bboxfinder.com/ to draw a rectangle of your wanted area. Then copy the four box coordinates as shown below and use them as the input for the --bbox parameter.
|
||||||

|

|
||||||
The world will always be generated starting from the coordinates 0 0 0.
|
The world will always be generated starting from the coordinates 0 0 0.
|
||||||
|
|
||||||
Manually generate a new Minecraft world (preferably a flat world) before running the script.
|
Manually generate a new Minecraft world (preferably a flat world) before running the script.
|
||||||
|
|||||||
Reference in New Issue
Block a user