Page MenuHomeFeedback Tracker

Addon Builder: unhandled exception when attempting to build from commandline
Closed, ResolvedPublic

Description

When the new (black UI) Addon Builder is used from the commandline, it crashes with the following error:

Unhandled Exception: System.ArgumentException: empty or null addon prefix provided
Parameter name: addonPrefix

   at AddonBuilder.Tasks.PackTask..ctor(String FilebankExe, String packDir, String addonPrefix, String excludeListPath)
   at AddonBuilder.Builder..ctor(BuilderConfiguration cfg)
   at AddonBuilder.Startup.RunComandLineApp(BuilderCommandLine builderArgs)
   at AddonBuilder.Startup.Main(String[] args)

This prevents the use of batch scripts or any form of make system from being used with Addon Builder.

This issue is a regression and was not present in the non-black UI version of Addon Builder.

Details

Legacy ID
4275382526
Severity
None
Resolution
Fixed
Reproducibility
Always
Category
Modding
Steps To Reproduce

In the P: directory, create a folder named 'Input' and a folder named 'Output'.

Open a command prompt in P:

Run:
AddonBuilder.exe P:\Input P:\Output

Observe crash.

Attempting to force a prefix with -prefix= does not change the result.

Additional Information

Complete run log follows.

P:\>AddonBuilder.exe P:\Input P:\Output

[2014-05-29 12:43:48,542]: =====================================================

2014-05-29 12:43:48,542 [INFO] 1: AddonBuilder.Startup.Main - ==================

[2014-05-29 12:43:48,554]: WELCOME TO ADDON BUILDER
2014-05-29 12:43:48,554 [INFO] 1: AddonBuilder.Startup.Main - WELCOME TO ADDON B
UILDER

[2014-05-29 12:43:48,554]: =====================================================

2014-05-29 12:43:48,554 [INFO] 1: AddonBuilder.Startup.Main - ==================

2014-05-29 12:43:48,558 [DEBUG] 1: AddonBuilder.BuilderCommandLine.Parse - [arg0
]=P:\Input
2014-05-29 12:43:48,560 [DEBUG] 1: AddonBuilder.BuilderCommandLine.Parse - [arg1
]=P:\Output
2014-05-29 12:43:48,567 [DEBUG] 1: Steam.SteamHelper.Init - Steam init
Setting breakpad minidump AppID = 233800
Steam_SetMinidumpSteamID: Caching Steam ID: 76561197994125457 [API loaded no]
2014-05-29 12:43:48,683 [DEBUG] 1: Steam.SteamHelper.Init - Setting message hook

2014-05-29 12:43:48,683 [DEBUG] 1: Steam.SteamHelper.Init - Retrieving SteamApps
interface
2014-05-29 12:43:48,684 [DEBUG] 1: Steam.SteamHelper.Init - [Tool AppId]=233800
2014-05-29 12:43:48,684 [DEBUG] 1: Steam.SteamHelper.Init - Arma3Tools is instal
led
2014-05-29 12:43:48,685 [DEBUG] 1: Steam.SteamHelper.Init - [Arma3 Tools install
dir]=F:\Games\Steam\steamapps\common\Arma 3 Tools
2014-05-29 12:43:48,692 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Sou
rceDir]=P:\Input
2014-05-29 12:43:48,693 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Des
tDir]=P:\Output
2014-05-29 12:43:48,693 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Pro
ject]=P:\Input
2014-05-29 12:43:48,694 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Pac
kOnly]=False
2014-05-29 12:43:48,694 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Add
onPrefix]=
2014-05-29 12:43:48,694 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Tem
pDir]=C:\Users\Ryan\AppData\Local\Temp
2014-05-29 12:43:48,695 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Cle
arTemp]=False
2014-05-29 12:43:48,695 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Sig
natureFile]=
2014-05-29 12:43:48,695 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Bin
arizeExePath]=F:\Games\Steam\steamapps\common\Arma 3 Tools\Binarize\binarize.exe

2014-05-29 12:43:48,696 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Cfg
ConvertExePath]=F:\Games\Steam\steamapps\common\Arma 3 Tools\CfgConvert\CfgConve
rt.exe
2014-05-29 12:43:48,696 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Fil
ebankExePath]=F:\Games\Steam\steamapps\common\Arma 3 Tools\FileBank\FileBank.exe

2014-05-29 12:43:48,696 [DEBUG] 1: AddonBuilder.BuilderConfiguration.Dump - [Dss
ignfileExePath]=F:\Games\Steam\steamapps\common\Arma 3 Tools\DSSignFile\DSSignFi
le.exe
2014-05-29 12:43:48,697 [DEBUG] 1: AddonBuilder.Tasks.CfgConvertTask..ctor - [cf
gConvertExe]=F:\Games\Steam\steamapps\common\Arma 3 Tools\CfgConvert\CfgConvert.
exe
2014-05-29 12:43:48,698 [DEBUG] 1: AddonBuilder.Tasks.CfgConvertTask..ctor - [te
mpPath]=C:\Users\Ryan\AppData\Local\Temp
2014-05-29 12:43:48,698 [DEBUG] 1: AddonBuilder.Tasks.CfgConvertTask..ctor - [so
urcePath]=P:\Input
2014-05-29 12:43:48,698 [DEBUG] 1: AddonBuilder.Tasks.CfgConvertTask..ctor - [pr
ojectPath]=P:\Input
2014-05-29 12:43:48,699 [DEBUG] 1: AddonBuilder.Tasks.TaskHelper.CheckDir - [dir
]=P:\Input
2014-05-29 12:43:48,699 [DEBUG] 1: AddonBuilder.Tasks.TaskHelper.CheckDir - [dir
]=P:\Input
2014-05-29 12:43:48,700 [DEBUG] 1: AddonBuilder.Tasks.TaskHelper.CheckDir - [dir
]=C:\Users\Ryan\AppData\Local\Temp
2014-05-29 12:43:48,701 [DEBUG] 1: AddonBuilder.Tasks.TaskHelper.CheckDir - [dir
]=C:\Users\Ryan\AppData\Local\Temp
2014-05-29 12:43:48,701 [DEBUG] 1: AddonBuilder.Tasks.TaskHelper.CheckDir - [dir
]=F:\Games\Steam\steamapps\common\Arma 3 Tools\FileBank

Unhandled Exception: System.ArgumentException: empty or null addon prefix provid
ed
Parameter name: addonPrefix

at AddonBuilder.Tasks.PackTask..ctor(String FilebankExe, String packDir, Stri

ng addonPrefix, String excludeListPath)

at AddonBuilder.Builder..ctor(BuilderConfiguration cfg)
at AddonBuilder.Startup.RunComandLineApp(BuilderCommandLine builderArgs)
at AddonBuilder.Startup.Main(String[] args)

Event Timeline

Taosenai edited Steps To Reproduce. (Show Details)May 29 2014, 6:47 PM
Taosenai edited Additional Information. (Show Details)
Taosenai set Category to Modding.
Taosenai set Reproducibility to Always.
Taosenai set Severity to None.
Taosenai set Resolution to Fixed.
Taosenai set Legacy ID to 4275382526.May 7 2016, 6:40 PM
Taosenai edited a custom field.

issue should be solved. we're going to test it internally. thanks for your patience;)

Update: The June 3 update added new help to the command line. I can now successfully build in this way:

AddonBuilder.exe P:\Input P:\Output -project=P:

If -project is not specified, I have the same prefix Exception.

Thanks for the info. It should be fixed now.

MadDogX added a subscriber: MadDogX.May 7 2016, 6:40 PM

Mass closing tickets marked as resolved more than 1 month ago.

If the issue is in fact not resolved, please create a new ticket referencing this one and ask for it to be re-opened.