Export Package
Posts: 13
Posts: 59
Posts: 18
Posts: 3421 | Subs: 11
Try removing the .sga file you are trying to create, e.g.
C:\Users\YOURNAME\Documents\My Games\Company of Heroes 2\mods\scenarios\mymap.sga
If you are unable to remove it, World Builder won't be able to access it either.
1. Close ALL World Builder sessions
2. Try removing the .sga archive of your map. If you are able to remove it, continue to step 3. Otherwise go back to step 1.
3. Launch World Builder and load your map
4. Run "Export package" again.
Posts: 18
The .sga file was not created at all because of the error.
Doing all this does not work. Would it be possible something on the map was not correct ? As a map Creator on coh1, i used to do it. So i do not understand what happen.
Posts: 3421 | Subs: 11
What is the exact path to your map files?
Does path Company of Heroes 2\mods\scenarios exist in your My Games Folder?
Posts: 18
Posts: 3421 | Subs: 11
Posts: 18
Posts: 3421 | Subs: 11
Open notepad and paste in following content:
set buildfile="C:\Users\YOURNAME\Documents\My Games\Company of Heroes 2\PackageBuildFile.txt"
set sgafile="C:\Users\YOURNAME\Documents\My Games\Company of Heroes 2\mods\scenarios\YOURMAP.sga"
set rootpath="C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2"
Archive.exe -c %buildfile% -a %sgafile% -r %rootpath%
pause
Make sure:
- buildfile matches your system
- sgafile matches your system
- rootpath matches your system
After necessary edits save this as buildmap.bat to your CoH2 installation folder.
Take a loot at your PackageBuildFile.txt which is located in my games/Company of Heroes 2/ (this file is generated by World Builder) it should look something like this:
Code
Archive name="YOURMAPNAME" blocksize="262144"
TOCStart name="YOURMAPNAME" alias="Data" relativeroot=""
FileSettingsStart defverification="none" defcompression="stream_compress"
Override wildcard=".*\.(info|options|scar)$" minsize="-1" maxsize="-1" vt="crc_blocks" ct="buffer_compress"
Override wildcard=".*\.(scenariomarker|sgb)$" minsize="-1" maxsize="-1" vt="crc_blocks" ct=""
FileSettingsEnd
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME.sgb
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME.scenariomarker
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME.info
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME.options
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME_ID.scar
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME_lao.dds
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME_tdm.dds
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME_loading_background.tga
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME_mm.tga
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME_mm_low.tga
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YOURMAPNAME\YOURMAPNAME_mm_preview.tga
TOCEnd
If it does look like that, run the buildmap.bat you created earlier by double clicking it.
A new SGA archive should appear in My Games/Company of Heroes 2/mods/scenarios/
Posts: 18
Posts: 18
I have it when i Use the worldbuilder, but not with my .bat
And this is the exacts paths. and all with administrator rights
So I know now the process stops to work at the moment it should create the sga file.
Posts: 18
Archive name="RiverCity" blocksize="262144"
TOCStart name="RiverCity" alias="Data" relativeroot=""
FileSettingsStart defverification="none" defcompression="stream_compress"
Override wildcard=".*\.(info|options|scar)$" minsize="-1" maxsize="-1" vt="crc_blocks" ct="buffer_compress"
Override wildcard=".*\.(scenariomarker|sgb)$" minsize="-1" maxsize="-1" vt="crc_blocks" ct=""
FileSettingsEnd
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity.sgb
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity.scenariomarker
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity.info
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity.options
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity_ID.scar
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity_lao.dds
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity_tdm.dds
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity_loading_background.tga
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity_mm.tga
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity_mm_low.tga
C:\Program Files\Steam\SteamApps\common\Company of Heroes 2\CoH2\Data\Scenarios\mp\RiverCity_mm_preview.tga
TOCEnd
Posts: 3421 | Subs: 11
Extract this to your desktop
- Run CoH2SGAPacker.exe
- Click the button next to "Path to Archive.exe" and browse to CoH2 installation folder and open Archive.exe
- Click the button next to "Input directory" for creating SGA Archive and browse to your map folder, eg.
C:\Program Files (x86)\Steam\steamapps\common\Company of Heroes 2\CoH2\Data\scenarios\mp\YourMap
- Set Archive name to what ever you want
- Leave alias as it is
- Click the button next to "Output path for creating SGA Archive" and browse to My Games/Company of Heroes 2/mods/scenarios/ and save it a name of your choise, e.g. 2p_mymap.sga
- Click "Create Archive"
- Check if the SGA archive is now existing in My Games/Company of Heroes2/mods/scenarios
Example usage:
You can also save your map SGA Packing settings as .sgaproj. Click File -> Save Project as and save it where ever you want to. The program will load last project automatically at launch. You can also manually load the project.
Posts: 18
Furthermore, I tried to create sga with the friend's computer, and my sgb was successfully changed in sga package.
So it comes from my computer.
Hope your soft could be THE solution
thanks a lot. I will be back
Posts: 18
If you may link again.
Posts: 3421 | Subs: 11
Posts: 3421 | Subs: 11
Posts: 18
Posts: 357
Livestreams
150 | |||||
15 | |||||
7 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.831222.789+37
- 2.611220.735+5
- 3.35057.860+15
- 4.1110614.644+11
- 5.276108.719+27
- 6.306114.729+2
- 7.918405.694+2
- 8.262137.657+3
- 9.722440.621+4
- 10.1041674.607-2
Replay highlight
- cblanco ★
- 보드카 중대
- VonManteuffel
- Heartless Jäger
Board Info
6 posts in the last week
34 posts in the last month
Welcome our newest member, Xclusive
Most online: 2043 users on 29 Oct 2023, 01:04 AM