Skip to content

Commit fa4161d

Browse files
committed
Small changes
1 parent 1f9265b commit fa4161d

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

README.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77

88
This program converts `.BSP` files from Quake3 levels, and converts them to Call of Duty 4's `.MAP` format. These files can be opened and edited using Call of Duty 4's level editor Radiant. This program also creates a `.GDT` file which stores all of the materials used in the level, as well as any properties those materials may have. The `.BAT` file generated by this program allows the user to compile the materials much faster than trying to do it manually. The purpose of this program is mainly to speed up the process of porting Quake3 levels to Call of Duty 4.
99

10-
![](https://i.imgur.com/RkDPYn9.png)
10+
![](https://i.imgur.com/GKptkni.png)
1111

1212
## Instructions
1313
1. Place Q3 ``.BSP`` in the ``bsp`` folder.

src/__main__.py

+4-3
Original file line numberDiff line numberDiff line change
@@ -8,13 +8,13 @@
88

99
PRINT_Q3BSP_Q3MAP = """
1010
#####################################
11-
Q3BSP => Q3MAP
11+
Q3BSP => Q3MAP
1212
#####################################
1313
"""
1414

1515
PRINT_Q3MAP_COD4MAP = """
1616
#####################################
17-
Q3MAP => COD4MAP
17+
Q3MAP => COD4MAP
1818
#####################################
1919
"""
2020

@@ -48,7 +48,7 @@ def cod4map2(filepath: str):
4848
Convert a Q3 MAP to a CoD4 MAP.
4949
"""
5050
with open(filepath, "r+", encoding="utf8") as map_file:
51-
print(f"\nConverting {filepath}")
51+
print(f"Converting {Path(filepath).stem}")
5252
content = map_file.read().replace(
5353
"// Generated by Q3Map2 (ydnar) -convert -format map", ""
5454
)
@@ -67,6 +67,7 @@ def cod4map2(filepath: str):
6767
map_file.truncate()
6868
print(">> Generate GDT & Batch")
6969
make_gdt(filepath)
70+
print()
7071

7172

7273
def make_gdt(filepath: str):

0 commit comments

Comments
 (0)