Skip to content
This repository was archived by the owner on Aug 12, 2025. It is now read-only.

Commit 8ba3b44

Browse files
committed
2 parents 825c552 + a393b41 commit 8ba3b44

File tree

5 files changed

+26
-4
lines changed

5 files changed

+26
-4
lines changed

README.MD

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -76,6 +76,20 @@ Inside `config.ini` file the info is organized inside keys. GUI settings are pla
7676
- `iwad` = Relative path of DOOM2 iwad. Default is: `./doom2/DOOM2.WAD`
7777
- `ml_path` = Relative path of all the wads. Default is `./master/wads`
7878

79+
### Adding more maps and the rejected levels:
80+
You can easily add any other map you want or even add the [rejected levels](https://doomwiki.org/wiki/Master_Levels_for_Doom_II#Rejected_levels) to the list by editing the `_internal/src/ml_info.json` file and add your levels there:
81+
```json
82+
{
83+
"WAD": "WADNAME.WAD",
84+
"Name": "Title of the wad fil",
85+
"Author": "It is obvious",
86+
"PC": 1, #PC slot, where you need to warp to make the auto warp work
87+
"PSX": null, # Irrelevant
88+
"Xbox": 14, # Irrelevant
89+
"PSN": 20 # PSN slot. Makes this in order.
90+
}
91+
```
92+
7993

8094
### Building
8195
Building is a mess right now because of some differences between OS and Textual not been detected by default on my system. A work is on the way to fix this.

build.bat

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Rem Maybe you need to run this on PS: Set-ExecutionPolicy Unrestricted -Scope Process
22
Rem #pyright: reportUndefinedVariable=false at the top of any python file will ignore imports
33

4-
pyinstaller src/main.py -y -D --add-data src/ml_info.json:src --add-data src/css/mlauncher.tcss:css -n MLauncher --paths=E:\Users\sbritorodr\Documentos\GitHub\mlauncher-cli\pyenv\Lib\site-packages
4+
pyinstaller src/main.py -y -D --add-data src/ml_info.json:src --add-data src/css/mlauncher.tcss:css -n MLauncher --paths=E:\Users\drhyperion\Documentos\GitHub\mlauncher-cli\pyenv\Lib\site-packages
55

66
copy README.MD dist\MLauncher\README.MD
77
copy COPYING dist\MLauncher\COPYING

src/globals.py

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ def SETTINGS_CREATE(settings_path):
6464
'SOURCEPORT': './dsda-doom/dsda-doom.exe',
6565
'IWAD': './doom2/DOOM2.WAD',
6666
'ML_PATH': './master/wads',
67+
'FILES': '',
6768
'SELECTED_MAP': 'ATTACK.WAD',
6869
'FILES': '',
6970
'SKILL': 4,
@@ -104,6 +105,7 @@ class GlobalVars:
104105
# For persistence when saving the game
105106
SOURCEPORT = config.get('GAME', 'SOURCEPORT')
106107
IWAD = config.get('GAME', 'IWAD')
108+
FILES = config.get('GAME', 'FILES')
107109
ML_PATH = config.get('GAME', 'ML_PATH')
108110
FILES = config.get('GAME', 'FILES')
109111
SELECTED_MAP = config.get('GAME', 'SELECTED_MAP')

src/main.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -101,7 +101,7 @@ def on_button_pressed(self, event: Button.Pressed) -> None:
101101
if event.button.id == 'launchButton':
102102
if GlobalVars.SELECTED_MAP:
103103
master_wad = f"{GlobalVars.ML_PATH}/{GlobalVars.SELECTED_MAP}"
104-
g_launch.game(GlobalVars.SOURCEPORT, GlobalVars.IWAD, master_wad)
104+
g_launch.game(GlobalVars.SOURCEPORT, GlobalVars.IWAD, f"{master_wad} {GlobalVars.FILES}")
105105
config.set('GAME', 'SELECTED_MAP', GlobalVars.SELECTED_MAP)
106106
config.set('GAME', 'SKILL', str(GlobalVars.SKILL))
107107
#config.set('GAME', 'WARP', WARP)

src/s_game.py

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,14 @@ def compose(self) -> ComposeResult:
2020
Input(value=GlobalVars.SOURCEPORT, id='source-port-input'),
2121
Label('iWad selector: '),
2222
Input(value=GlobalVars.IWAD, id='iwad-input'),
23+
Label('Other files: '),
24+
Input(value=GlobalVars.FILES, id='file-input'),
2325
id='game-dialog-options',
2426
classes='dialog-options'
2527
),
2628
Label("Paste the path here. You can edit them on the \
27-
config.ini file too."),
29+
config.ini file too. Add more than 1 file between commas ('') and \
30+
separated by an space."),
2831
id='game-dialog',
2932
classes='dialogGrid'
3033
)
@@ -39,5 +42,8 @@ def on_input_submitted(self, event: Input.Submitted) -> None:
3942
case 'iwad-input':
4043
GlobalVars.IWAD = event.input.value
4144
config.set('GAME', 'IWAD', str(event.input.value))
45+
case 'file-input':
46+
GlobalVars.FILES = event.input.value
47+
config.set('GAME', 'FILES', str(event.input.value))
4248
with open(SETTINGS_PATH, 'w') as configfile:
43-
config.write(configfile)
49+
config.write(configfile)

0 commit comments

Comments
 (0)