Skip to content

Commit 1f9265b

Browse files
committed
Updated source
1 parent 49b11c4 commit 1f9265b

17 files changed

+391
-370
lines changed

.github/FUNDING.yml

+1-1
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
github: Iswenzz
1+
github: Iswenzz

.github/workflows/application.yml

+43
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
name: Application
2+
3+
on:
4+
push:
5+
branches: [master]
6+
pull_request:
7+
branches: [master]
8+
9+
jobs:
10+
build:
11+
runs-on: ubuntu-latest
12+
steps:
13+
- name: Checkout
14+
uses: actions/checkout@v2
15+
16+
- name: Build
17+
run: |
18+
python -m pip install -r requirements.txt
19+
pyinstaller --onefile --name q3cod4bsp src/__main__.py
20+
21+
lint:
22+
runs-on: ubuntu-latest
23+
needs: [build]
24+
steps:
25+
- name: Checkout
26+
uses: actions/checkout@v2
27+
28+
- name: Tests
29+
run: |
30+
python -m pip install -r requirements.txt
31+
pylint src
32+
33+
tests:
34+
runs-on: ubuntu-latest
35+
needs: [build]
36+
steps:
37+
- name: Checkout
38+
uses: actions/checkout@v2
39+
40+
- name: Tests
41+
run: |
42+
python -m pip install -r requirements.txt
43+
pytest --cov src

.gitignore

+11-28
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,11 @@
1-
2-
bsp/
3-
4-
out/
5-
6-
__pycache__/
7-
8-
_pycache_/
9-
10-
*.pyc
11-
12-
*.spec
13-
14-
dist/
15-
16-
build/
17-
18-
19-
20-
.vscode/
21-
22-
.coverage
23-
24-
converter/tests/
25-
26-
COVERAGE.sh
27-
28-
coverage.xml
1+
.vs
2+
.vscode
3+
.pytest_cache
4+
.coverage
5+
__pycache__
6+
coverage
7+
out
8+
build
9+
dist
10+
11+
*.spec

.pylintrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
[MESSAGES CONTROL]
2+
enable=all
3+
disable=missing-docstring

Q3-to-CoD4-Map-Converter.pyproj

-52
This file was deleted.

README.md

+10-11
Original file line numberDiff line numberDiff line change
@@ -10,26 +10,25 @@ This program converts `.BSP` files from Quake3 levels, and converts them to Call
1010
![](https://i.imgur.com/RkDPYn9.png)
1111

1212
## Instructions
13-
1. Place every Q3 .BSP in the "BSP" folder.
14-
2. Run converter.exe
15-
3. Collect the new .MAP, .GDT, and .BAT files in the "out" folder.
13+
1. Place Q3 ``.BSP`` in the ``bsp`` folder.
14+
2. Run q3cod4bsp.exe.
15+
3. Move the generated files from the ``out`` folder to the ``CoD4 SDK``.
1616

17-
If you have the CoD4 compile tools SDK (Radiant etc..) place the files:
17+
```t
1818
.MAP in "CoD4/map_source"
1919
.GDT in "CoD4/source_data"
2020
.BAT in "CoD4/bin"
21-
22-
All of the map textures (and default quake3 textures) must be in
23-
"CoD4/texture_assets/quake3" (create the quake3 folder)
21+
```
22+
*The map textures and the default quake3 textures must be in:*
23+
``CoD4/texture_assets/quake3``
2424

2525
## Pre-Requisites
26-
1. [Python 3.6+](https://www.python.org/)
27-
2. **Optional** [Visual Studio](https://visualstudio.microsoft.com/)
26+
1. [Python](https://www.python.org/)
2827

29-
### [Download](https://github.com/Iswenzz/Q3-to-CoD4-Map-Converter/releases)
28+
### [Download](https://github.com/Iswenzz/Q3COD4BSP/releases)
3029

3130
## Contributors:
3231
***Note:*** If you would like to contribute to this repository, feel free to send a pull request, and I will review your code. Also feel free to post about any problems that may arise in the issues section of the repository.
3332

34-
<!-- Phelix github? -->
33+
<a href="https://github.com/Scobalula"><img src="https://avatars2.githubusercontent.com/u/12156105?s=460&v=4" height=64 style="border-radius: 50%"></a>
3534
<a href="https://github.com/DavidMRyan"><img src="https://avatars2.githubusercontent.com/u/39206040?s=460&v=4" height=64 style="border-radius: 50%"></a>

appveyor.yml

-10
This file was deleted.

0 commit comments

Comments
 (0)