Export Package
![avatar of vova82004](/images/no_av.png)
Posts: 13
![avatar of Skajellafetty](/uploads/avatar/8114.jpg?updated=1380655987)
Posts: 59
![avatar of cestpasfaux](/images/no_av.png)
Posts: 18
![avatar of Janne252](/images/avatars/april14_07.png?updated=1398148404)
![Admin Black Badge](/images/badges/badge_ADMIN.png)
![Patrion 1](/images/badges/crowdfunding/patron_1.png)
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.
![avatar of cestpasfaux](/images/no_av.png)
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.
![avatar of Janne252](/images/avatars/april14_07.png?updated=1398148404)
![Admin Black Badge](/images/badges/badge_ADMIN.png)
![Patrion 1](/images/badges/crowdfunding/patron_1.png)
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?
![avatar of cestpasfaux](/images/no_av.png)
Posts: 18
![avatar of Janne252](/images/avatars/april14_07.png?updated=1398148404)
![Admin Black Badge](/images/badges/badge_ADMIN.png)
![Patrion 1](/images/badges/crowdfunding/patron_1.png)
Posts: 3421 | Subs: 11
![avatar of cestpasfaux](/images/no_av.png)
Posts: 18
![:) :)](/images/Smileys/smile.gif)
![avatar of Janne252](/images/avatars/april14_07.png?updated=1398148404)
![Admin Black Badge](/images/badges/badge_ADMIN.png)
![Patrion 1](/images/badges/crowdfunding/patron_1.png)
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/
![avatar of cestpasfaux](/images/no_av.png)
Posts: 18
![avatar of cestpasfaux](/images/no_av.png)
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.
![avatar of cestpasfaux](/images/no_av.png)
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
![avatar of Janne252](/images/avatars/april14_07.png?updated=1398148404)
![Admin Black Badge](/images/badges/badge_ADMIN.png)
![Patrion 1](/images/badges/crowdfunding/patron_1.png)
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:
![](https://dl.dropboxusercontent.com/u/49227828/images/coh2_sgacreator_01.png)
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.
![avatar of cestpasfaux](/images/no_av.png)
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
![avatar of cestpasfaux](/images/no_av.png)
Posts: 18
![:) :)](/images/Smileys/smile.gif)
If you may link again.
![avatar of Janne252](/images/avatars/april14_07.png?updated=1398148404)
![Admin Black Badge](/images/badges/badge_ADMIN.png)
![Patrion 1](/images/badges/crowdfunding/patron_1.png)
Posts: 3421 | Subs: 11
![avatar of Janne252](/images/avatars/april14_07.png?updated=1398148404)
![Admin Black Badge](/images/badges/badge_ADMIN.png)
![Patrion 1](/images/badges/crowdfunding/patron_1.png)
Posts: 3421 | Subs: 11
![avatar of cestpasfaux](/images/no_av.png)
Posts: 18
![:( :(](/images/Smileys/sad.gif)
![avatar of Srinidhalaya](/uploads/avatar/8556.jpg?updated=1383261345)
Posts: 357
![down](/images/buttons/down_arrow.png)
Livestreams
![]() |
![]() |
![]() |
87 | ||
![]() |
![]() |
![]() |
12 | ||
![]() |
![]() |
![]() |
12 | ||
![]() |
![]() |
![]() |
4 | ||
![]() |
![]() |
![]() |
3 | ||
![]() |
![]() |
![]() |
2 | ||
![]() |
![]() |
![]() |
1 |
Ladders Top 10
-
#Steam AliasWL%Streak
- 1.41662.870+14
- 2.659233.739+2
- 3.299158.654+3
- 4.286110.722-2
- 5.309114.730+5
- 6.12243.739-1
- 7.193100.659+3
- 8.10829.788+9
- 9.370283.567+3
- 10.1171650.643+2
Replay highlight
-
cblanco ★
-
보드카 중대
-
VonManteuffel
-
Heartless Jäger
![Einhoven Country](/images/maps/4p_enhoven_country.jpg)
![Honor](/images/buttons/HONOR_icon.png)
![Download](/images/buttons/DOWNLOAD_icon.png)
Board Info
19 posts in the last week
45 posts in the last month
Welcome our newest member, Wnukowskit
Most online: 2043 users on 29 Oct 2023, 01:04 AM