-
Notifications
You must be signed in to change notification settings - Fork 556
Added Batch for Windows Extraction (for easier of use) #3267
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Open
TheSCREWEDSoftware
wants to merge
2
commits into
vmangos:development
Choose a base branch
from
TheSCREWEDSoftware:extractor_batch
base: development
Could not load branches
Branch not found: {{ refName }}
Loading
Could not load tags
Nothing to show
Loading
Are you sure you want to change the base?
Some commits from the old base branch may be removed from the timeline,
and old review comments may become outdated.
+100
−0
Open
Changes from all commits
Commits
Show all changes
2 commits
Select commit
Hold shift + click to select a range
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,99 @@ | ||
| @echo off | ||
| :: Vanilla MaNGOS (vmangos) maps, vmaps, mmaps extractor | ||
| :: --------------------------------------------- | ||
| echo ............................................... | ||
| echo Vanilla MaNGOS (vmangos) maps, vmaps, mmaps extractor | ||
| echo ............................................... | ||
| echo PRESS 1, 2, 3 OR 4 to select your task, or 5 to EXIT. | ||
| echo ............................................... | ||
| echo. | ||
| echo WARNING! when extracting the vmaps extractor will | ||
| echo output the text below, it's intended and not an error: | ||
| echo .......................................... | ||
| echo Extracting World\Wmo\Band\Final_Stage.wmo | ||
| echo No such file. | ||
| echo Couldn't open RootWmo!!! | ||
| echo Done! | ||
| echo .......................................... | ||
| echo. | ||
| echo Press 1, 2, 3 or 4 to start extracting or 5 to exit. | ||
| echo 1 - Extract base files ^(NEEDED^) and cameras. | ||
| echo 2 - Extract vmaps ^(needs maps to be extracted before you run this^) ^(OPTIONAL, highly recommended^) | ||
| echo 3 - Extract mmaps ^(needs vmaps to be extracted before you run this, may take hours^) ^(OPTIONAL, highly recommended^) | ||
| echo 4 - Extract all ^(may take hours^) | ||
| echo 5 - EXIT | ||
| echo. | ||
| set /p choice="Type 1, 2, 3, 4 or 5 then press ENTER: " | ||
|
|
||
| if "%choice%"=="1" goto extract_base | ||
| if "%choice%"=="2" goto extract_vmaps | ||
| if "%choice%"=="3" goto extract_mmaps | ||
| if "%choice%"=="4" goto extract_all | ||
| if "%choice%"=="5" goto end | ||
| echo Invalid choice. Exiting. | ||
| goto end | ||
|
|
||
| :extract_base | ||
| if exist MapExtractor.exe ( | ||
| echo Extracting maps and cameras... | ||
| MapExtractor.exe | ||
| ) else ( | ||
| echo MapExtractor.exe not found! | ||
| ) | ||
| goto end | ||
|
|
||
| :extract_vmaps | ||
| if exist VMapExtractor.exe ( | ||
| echo Extracting vmaps... | ||
| VMapExtractor.exe | ||
| ) else ( | ||
| echo VMapExtractor.exe not found! | ||
| ) | ||
| if exist VMapAssembler.exe ( | ||
| echo Assembling vmaps... | ||
| VMapAssembler.exe | ||
| ) else ( | ||
| echo VMapAssembler.exe not found! | ||
| ) | ||
| goto end | ||
|
|
||
| :extract_mmaps | ||
| if exist MoveMapGenerator.exe ( | ||
| echo Extracting mmaps... | ||
| MoveMapGenerator.exe | ||
| ) else ( | ||
| echo MoveMapGenerator.exe not found! | ||
| ) | ||
| goto end | ||
|
|
||
| :extract_all | ||
| if exist MapExtractor.exe ( | ||
| echo Extracting maps and cameras... | ||
| MapExtractor.exe | ||
| ) else ( | ||
| echo MapExtractor.exe not found! | ||
| ) | ||
| if exist VMapExtractor.exe ( | ||
| echo Extracting vmaps... | ||
| VMapExtractor.exe | ||
| ) else ( | ||
| echo VMapExtractor.exe not found! | ||
| ) | ||
| if exist VMapAssembler.exe ( | ||
| echo Assembling vmaps... | ||
| VMapAssembler.exe | ||
| ) else ( | ||
| echo VMapAssembler.exe not found! | ||
| ) | ||
| if exist MoveMapGenerator.exe ( | ||
| echo Extracting mmaps... | ||
| MoveMapGenerator.exe | ||
| ) else ( | ||
| echo MoveMapGenerator.exe not found! | ||
| ) | ||
| goto end | ||
|
|
||
| :end | ||
| echo. | ||
| echo Extraction process complete. Press any key to exit. | ||
| pause | ||
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might want to pass
--configInputPathand--offMeshInputhere. E.g.:(the files should be in
${BIN_DIR}/Extractorsby default iirc, so the same directory as the extractor executables)There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I can add an input to ask the files within the same directoy otherwise by default mmaps generator already uses them by default
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Ah, right, I forgot because I install thise files to custom locations. 😄
Don't think it's necessary to prompt the user then.