Skip to content

Commit c7c1e6c

Browse files
committed
Fixed bug where the progress wasn't being reset after each conversion. Added Legacy Mod Converter program screenshot to the README.
1 parent 48f3583 commit c7c1e6c

File tree

3 files changed

+7
-2
lines changed

3 files changed

+7
-2
lines changed

README.md

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,12 @@ This project automates ***most*** of the conversion work required to convert the
66
![project-icon](cclmc-icon.png)
77

88
## Getting started
9-
Download the [Legacy Mod Converter](http://www.mediafire.com/file/qnzyy2f4shoi6mc/Legacy_Mod_Converter.exe/file) program. Create a new folder and put your legacy mods that you want to convert in it. Run the Legacy Mod Converter program.
9+
Download the [***Legacy Mod Converter***](http://www.mediafire.com/file/b2qdhe55b1ggy73/Legacy_Mod_Converter.exe/file) program. Create a new folder and put your legacy mods that you want to convert in it. Run the Legacy Mod Converter program.
1010

1111
If you get a "`Microsoft Defender SmartScreen prevented an unrecognized app from starting. Running this app might put your PC at risk.`" popup message when trying to run the program just press `More info` -> `Run anyway`. It may take a very long time for the program to appear, which is an issue with Windows' Antimalware Service Executable. We're looking into how we can fix both of these issues.
1212

13+
![Legacy mod converter program screenshot](cclmc-program-screenshot.png)
14+
1315
## Disclaimer
1416
This program will do most of the conversion work for you, but some conversion steps are too hard to automate, so it's likely that `CCCP` will still crash or print errors in the console. If this happens you'll have to manually fix these issues in the legacy mod folder. If you want to properly fix these errors then you should download this repository and follow the instructions below so you can add your own conversion cases to `conversion_rules.py`.
1517

cclmc-program-screenshot.png

11.6 KB
Loading

convert.py

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99

1010

1111
def main():
12-
global total_progress
12+
global progress, total_progress
1313

1414
time_start = time.time()
1515

@@ -28,6 +28,9 @@ def main():
2828
if config.sg.user_settings_get_entry("output_zips"):
2929
create_zips()
3030

31+
progress = 0
32+
total_progress = 0
33+
3134
elapsed = math.floor(time.time() - time_start)
3235
if config.sg.user_settings_get_entry("play_finish_sound"):
3336
winsound.MessageBeep()

0 commit comments

Comments
 (0)