Updated Eternity game configurations with the ones provided by printz.

Internal: renamed several build batch files, updated relevant info in the documentation.
This commit is contained in:
MaxED 2016-12-28 14:32:16 +03:00
parent 659250e805
commit 9f4e700c56
7 changed files with 1067 additions and 4187 deletions

View file

@ -959,7 +959,7 @@ udmf
104
{
title = "Ceiling Crush And Raise Dist";
title = "Ceiling Crush And Raise Silent Dist";
id = "Ceiling_CrushAndRaiseSilentDist";
arg0
@ -971,6 +971,7 @@ udmf
arg1
{
title = "Lip";
default = 8;
}
arg2
@ -978,13 +979,51 @@ udmf
title = "Movement Speed";
type = 11;
enum = "plat_speeds";
default = 16;
default = 32;
}
arg3
{
title = "Crush Damage";
default = 100;
default = 10;
}
arg4
{
title = "Crush Mode";
type = 11;
enum = "crush_mode";
}
}
168
{
title = "Ceiling Crush And Raise Dist";
id = "Ceiling_CrushAndRaiseDist";
arg0
{
title = "Sector Tag";
type = 13;
}
arg1
{
title = "Lip";
default = 8;
}
arg2
{
title = "Movement Speed";
type = 11;
enum = "plat_speeds";
default = 32;
}
arg3
{
title = "Crush Damage";
default = 10;
}
arg4
@ -1868,6 +1907,38 @@ udmf
title = "Script Argument 4";
}
}
85
{
title = "Script Locked Execute (Door message)";
id = "ACS_LockedExecuteDoor";
arg0
{
title = "Script Number";
}
arg1
{
title = "Map Number";
}
arg2
{
title = "Script Argument 1";
}
arg3
{
title = "Script Argument 2";
}
arg4
{
title = "Key Number";
type = 11;
enum = "keys";
}
}
226
{
title = "Script Execute Always";
@ -2168,7 +2239,7 @@ udmf
57
{
title = "Sector Set Portal";
title = "Sector Set Portal (only for compatibility)";
id = "Sector_SetPortal";
requiresactivation = false;
@ -2522,6 +2593,62 @@ udmf
}
}
portal
{
title = "Portal";
300
{
title = "Portal Define";
id = "Portal_Define";
requiresactivation = false;
arg0
{
title = "Portal id";
type = 0;
}
arg1
{
title = "Type";
type = 11;
enum
{
0 = "Plane";
1 = "Horizon";
2 = "Skybox";
3 = "Anchor";
4 = "Two-way Anchor";
5 = "Linked";
}
}
arg2
{
title = "Anchor line id";
type = 15;
}
arg3
{
title = "Z parameter";
type = 0;
}
arg4
{
title = "Flipped anchor";
type = 3;
}
}
301
{
title = "Line Quick Portal";
id = "Line_QuickPortal";
requiresactivation = false;
arg0
{
title = "Non-interactive";
type = 3;
}
}
}
elevator
{
title = "Elevator";

File diff suppressed because it is too large Load diff

View file

@ -1,5 +1,15 @@
monsters
{
color = 12; // Light Red
arrow = 1;
title = "Monsters";
width = 20;
sort = 1;
height = 56;
hangs = 0;
blocking = 1;
error = 2;
888
{
title = "Dog";
@ -8,8 +18,531 @@ monsters
width = 12;
height = 28;
}
889
{
title = "Nightmare Spectre";
sprite = "SARGF1";
class = "Spectre";
width = 30;
}
890
{
title = "PSX Spectre";
sprite = "SARGF1";
class = "Spectre";
width = 30;
}
6304
{
title = "Former Human copy";
sprite = "POSSA2A8";
class = "ZombieMan";
}
6009
{
title = "Former Sergeant copy";
sprite = "SPOSA2A8";
class = "ShotgunGuy";
}
6301
{
title = "Imp copy";
sprite = "TROOA2A8";
class = "DoomImp";
}
6302
{
title = "Demon copy";
width = 30;
sprite = "SARGA2A8";
class = "Demon";
}
6058
{
title = "Spectre copy";
renderstyle = "translucent";
alpha = 0.25f;
width = 30;
sprite = "SARGF1";
class = "Spectre";
}
6306
{
title = "Lost Soul copy";
width = 16;
sprite = "SKULA8A2";
class = "LostSoul";
}
6305
{
title = "Cacodemon copy";
width = 31;
sprite = "HEADA2A8";
class = "Cacodemon";
}
6303
{
title = "Baron of Hell copy";
width = 24;
sprite = "BOSSA2A8";
height = 64;
class = "BaronOfHell";
}
6016
{
title = "Cyberdemon copy";
width = 40;
sprite = "CYBRA2";
height = 110;
class = "Cyberdemon";
}
6007
{
title = "Spider Mastermind copy";
width = 128;
sprite = "SPIDG2G8";
height = 100;
class = "SpiderMastermind";
}
6065
{
title = "Chaingunner copy";
sprite = "CPOSA2";
class = "ChaingunGuy";
}
6069
{
title = "Hell Knight copy";
width = 24;
sprite = "BOS2A2C8";
height = 64;
class = "HellKnight";
}
6068
{
title = "Arachnotron copy";
width = 64;
sprite = "BSPIA2A8";
height = 64;
class = "Arachnotron";
}
6071
{
title = "Pain Elemental copy";
width = 31;
sprite = "PAINA2A8";
class = "PainElemental";
}
6066
{
title = "Revenant copy";
sprite = "SKELA2D8";
class = "Revenant";
}
6067
{
title = "Mancubus copy";
width = 48;
sprite = "FATTC2C8";
height = 64;
class = "Fatso";
}
6064
{
title = "Archvile copy";
sprite = "VILEA2D8";
class = "Archvile";
}
6084
{
title = "Wolfenstein SS copy";
sprite = "SSWVA2";
class = "WolfensteinSS";
}
6072
{
title = "Commander Keen copy";
width = 16;
sprite = "KEENA0";
height = 72;
hangs = 1;
class = "CommanderKeen";
}
6088
{
title = "Icon of Sin copy";
width = 16;
sprite = "BBRNA0";
height = 16;
class = "BossBrain";
}
6089
{
title = "Monsters Spawner copy";
sprite = "BOSFB0";
locksprite = true;
height = 32;
class = "BossEye";
}
6087
{
title = "Monsters Target copy";
sprite = "internal:Target";
height = 32;
class = "BossTarget";
}
}
weapons
{
color = 14; // Yellow
arrow = 0;
title = "Weapons";
width = 20;
sort = 1;
height = 25;
hangs = 0;
blocking = 0;
6205
{
title = "Chainsaw copy";
sprite = "CSAWA0";
class = "Chainsaw";
}
6201
{
title = "Shotgun copy";
sprite = "SHOTA0";
class = "Shotgun";
}
6202
{
title = "Chaingun copy";
sprite = "MGUNA0";
class = "Chaingun";
}
6203
{
title = "Rocket launcher copy";
sprite = "LAUNA0";
class = "RocketLauncher";
}
6204
{
title = "Plasma gun copy";
sprite = "PLASA0";
class = "PlasmaRifle";
}
6206
{
title = "BFG9000 copy";
sprite = "BFUGA0";
height = 30;
class = "BFG9000";
}
6082
{
title = "Super Shotgun copy";
sprite = "SGN2A0";
class = "SuperShotgun";
}
}
ammunition
{
color = 6; // Brown
arrow = 0;
title = "Ammunition";
width = 20;
sort = 1;
height = 16;
blocking = 0;
hangs = 0;
6207
{
title = "Ammo clip copy";
sprite = "CLIPA0";
class = "Clip";
}
6208
{
title = "Shotgun shells copy";
sprite = "SHELA0";
class = "Shell";
}
6210
{
title = "Rocket copy";
sprite = "ROCKA0";
height = 25;
class = "RocketAmmo";
}
6247
{
title = "Cell charge copy";
sprite = "CELLA0";
class = "Cell";
}
6248
{
title = "Box of Ammo copy";
sprite = "AMMOA0";
class = "ClipBox";
}
6249
{
title = "Box of Shells copy";
sprite = "SBOXA0";
class = "ShellBox";
}
6246
{
title = "Box of Rockets copy";
sprite = "BROKA0";
height = 25;
class = "RocketBox";
}
6017
{
title = "Cell charge pack copy";
sprite = "CELPA0";
height = 25;
class = "CellPack";
}
6008
{
title = "Backpack copy";
sprite = "BPAKA0";
class = "Backpack";
}
}
health
{
color = 1; // Blue
arrow = 0;
title = "Health and Armor";
width = 20;
sort = 1;
height = 16;
hangs = 0;
blocking = 0;
6211
{
title = "Stimpack copy";
sprite = "STIMA0";
class = "Stimpack";
}
6212
{
title = "Medikit copy";
sprite = "MEDIA0";
height = 25;
class = "Medikit";
}
6214
{
title = "Health bonus copy";
sprite = "BON1A0";
class = "HealthBonus";
}
6215
{
title = "Armor bonus copy";
sprite = "BON2A0";
class = "ArmorBonus";
}
6218
{
title = "Green armor copy";
sprite = "ARM1A0";
class = "GreenArmor";
}
6219
{
title = "Blue armor copy";
sprite = "ARM2A0";
class = "BlueArmor";
}
}
powerups
{
color = 9; // Light Blue
arrow = 0;
title = "Powerups";
width = 20;
sort = 1;
height = 16;
hangs = 0;
blocking = 0;
6213
{
title = "Soulsphere copy";
sprite = "SOULA0";
height = 45;
class = "Soulsphere";
}
6222
{
title = "Invulnerability copy";
sprite = "PINVA0";
height = 30;
class = "InvulnerabilitySphere";
}
6223
{
title = "Berserk copy";
sprite = "PSTRA0";
class = "Berserk";
}
6224
{
title = "Invisibility copy";
sprite = "PINSA0";
height = 45;
class = "BlurSphere";
}
6225
{
title = "Radiation suit copy";
sprite = "SUITA0";
height = 60;
class = "RadSuit";
}
6226
{
title = "Computer map copy";
sprite = "PMAPA0";
height = 35;
class = "Allmap";
}
6245
{
title = "Lite Amplification goggles copy";
sprite = "PVISA0";
class = "Infrared";
}
6083
{
title = "Megasphere copy";
sprite = "MEGAA0";
height = 40;
class = "Megasphere";
}
}
keys
{
color = 13; // Light Magenta
arrow = 0;
title = "Keys";
width = 20;
sort = 1;
height = 16;
hangs = 0;
blocking = 0;
6005
{
title = "Blue keycard copy";
sprite = "BKEYA0";
class = "BlueCard";
}
6040
{
title = "Blue skullkey copy";
sprite = "BSKUB0";
class = "BlueSkull";
}
6013
{
title = "Red keycard copy";
sprite = "RKEYA0";
class = "RedCard";
}
6038
{
title = "Red skullkey copy";
sprite = "RSKUB0";
class = "RedSkull";
}
6006
{
title = "Yellow keycard copy";
sprite = "YKEYA0";
class = "YellowCard";
}
6039
{
title = "Yellow skullkey copy";
sprite = "YSKUB0";
class = "YellowSkull";
}
}
eternity
{
color = 8; // Grey
@ -45,6 +578,14 @@ eternity
{
title = "ExtraData thing";
}
5005
{
title = "Error Marker";
}
5008
{
title = "Aardgpl";
}
5006
{
title = "Skybox camera";
@ -93,7 +634,7 @@ eternity
{
title = "Particle fountain white";
}
9300t
9300
{
title = "Polyobject anchor";
class = "EEPolyObjAnchor";
@ -121,4 +662,4 @@ eternity
{
title = "Ambience param";
}
}
}

View file

@ -1,29 +1,29 @@
@ECHO OFF
ECHO.
ECHO Compiling HTML Help file...
ECHO.
IF EXIST "Build\Refmanual.chm" DEL /F /Q "Build\Refmanual.chm" > NUL
"c:\Program Files (x86)\HTML Help Workshop\hhc" Help\Refmanual.hhp
IF %ERRORLEVEL% NEQ 1 GOTO ERRORFAIL
IF NOT EXIST "Build\Refmanual.chm" GOTO FILEFAIL
ECHO.
ECHO. BUILD DONE !
ECHO.
GOTO LEAVE
:ERRORFAIL
ECHO.
ECHO. BUILD FAILED (Tool returned error)
ECHO.
PAUSE > NUL
GOTO LEAVE
:FILEFAIL
ECHO.
ECHO. BUILD FAILED (Output file was not built)
ECHO.
PAUSE > NUL
GOTO LEAVE
@ECHO OFF
ECHO.
ECHO Compiling HTML Help file...
ECHO.
IF EXIST "Build\Refmanual.chm" DEL /F /Q "Build\Refmanual.chm" > NUL
"c:\Program Files (x86)\HTML Help Workshop\hhc" Help\Refmanual.hhp
IF %ERRORLEVEL% NEQ 1 GOTO ERRORFAIL
IF NOT EXIST "Build\Refmanual.chm" GOTO FILEFAIL
ECHO.
ECHO. BUILD DONE !
ECHO.
GOTO LEAVE
:ERRORFAIL
ECHO.
ECHO. BUILD FAILED (Tool returned error)
ECHO.
PAUSE > NUL
GOTO LEAVE
:FILEFAIL
ECHO.
ECHO. BUILD FAILED (Output file was not built)
ECHO.
PAUSE > NUL
GOTO LEAVE
:LEAVE

View file

@ -51,10 +51,10 @@
GZDB source comes with several batch files, which can be used to automatically compile and package the editor. Before launching a batch file for the first time, make sure to open it and check that variables holding software paths point to the right directories. These variables are always located near the top of the file, after the info block.
<ul>
<li><strong>Clean Rebuild.bat</strong> - removes project cache files, then compiles it in Release mode.<br />Requires Visual C# Express Edition / Visual Studio.</li><br />
<li><strong>CompileHelp.bat</strong> - compiles &quot;Build\Refmanual.chm&quot;. Help source files are located in the &quot;Help&quot; directory.<br />Requires Microsoft HTML Help compiler.</li><br />
<li><strong>MakeRelease.bat</strong> - removes project cache files, sets project version number to match the latest SVN revision, compiles the project in Release mode, generates &quot;Build\Changelog.txt&quot;, compiles &quot;Build\Refmanual.chm&quot;, creates an installer and places it in the &quot;Release&quot; folder.<br />
<li><strong>Compile Help.bat</strong> - compiles &quot;Build\Refmanual.chm&quot;. Help source files are located in the &quot;Help&quot; directory.<br />Requires Microsoft HTML Help compiler.</li><br />
<li><strong>Make Release.bat</strong> - removes project cache files, sets project version number to match the latest SVN revision, compiles the project in Release mode, generates &quot;Build\Changelog.txt&quot;, compiles &quot;Build\Refmanual.chm&quot;, creates an installer and places it in the &quot;Release&quot; folder.<br />
Requires Git command-line client, Visual C# Express Edition / Visual Studio, Microsoft HTML Help compiler and Inno Setup 5.</li><br />
<li><strong>MakeGITRelease.bat</strong> - removes project cache files, sets project version number to match the number of commits in the master branch, compiles the project in Release mode, generates &quot;Build\Changelog.txt&quot;, compiles &quot;Build\Refmanual.chm&quot;, packs the build into 7-zip archive and places it in the &quot;GIT_Build&quot; folder.<br />
<li><strong>Make GIT Build.bat</strong> - removes project cache files, sets project version number to match the number of commits in the master branch, compiles the project in Release mode, generates &quot;Build\Changelog.txt&quot;, compiles &quot;Build\Refmanual.chm&quot;, packs the build into 7-zip archive and places it in the &quot;GIT_Build&quot; folder.<br />
Requires Git command-line client, Visual C# Express Edition / Visual Studio, Microsoft HTML Help compiler and 7-zip archiver.</li>
</ul>
</div>

View file

@ -1,215 +1,215 @@
@ECHO OFF
ECHO.
ECHO. This build script requires the following software to be installed:
ECHO. - Git command-line client
ECHO. - Microsoft Visual Studio 2008 or newer
ECHO. - Microsoft HTML Help compiler
ECHO. - Inno Setup 5
ECHO.
ECHO. You have to commit your work before using this script.
ECHO. Results will be in the 'Release' directory. Anything currently in
ECHO. the 'Release' directory may be overwritten.
ECHO.
ECHO.
SET STUDIODIR=c:\Program Files (x86)\Microsoft Visual Studio 9.0
SET HHWDIR=c:\Program Files (x86)\HTML Help Workshop
SET ISSDIR=c:\Program Files (x86)\Inno Setup 5
CALL "%STUDIODIR%\Common7\Tools\vsvars32.bat"
MKDIR "Release"
git checkout "Source\Core\Properties\AssemblyInfo.cs" > NUL
git checkout "Source\Plugins\BuilderModes\Properties\AssemblyInfo.cs" > NUL
ECHO.
ECHO Writing GIT log file...
ECHO.
IF EXIST "Release\Changelog.xml" DEL /F /Q "Release\Changelog.xml" > NUL
(
echo [OB]?xml version="1.0" encoding="UTF-8"?[CB]
echo [OB]log[CB]
git log master --since=2012-04-17 --pretty=format:"[OB]logentry commit=\"%%h\"[CB]%%n[OB]author[CB]%%an[OB]/author[CB]%%n[OB]date[CB]%%aI[OB]/date[CB]%%n[OB]msg[CB]%%B[OB]/msg[CB]%%n[OB]/logentry[CB]"
echo [OB]/log[CB]
) >"Release\Changelog.xml"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Release\Changelog.xml" GOTO FILEFAIL
ECHO.
ECHO Compiling HTML Help file...
ECHO.
IF EXIST "Build\Refmanual.chm" DEL /F /Q "Build\Refmanual.chm" > NUL
"%HHWDIR%\hhc" Help\Refmanual.hhp
IF %ERRORLEVEL% NEQ 1 GOTO ERRORFAIL
IF NOT EXIST "Build\Refmanual.chm" GOTO FILEFAIL
ECHO.
ECHO Looking up current repository revision numbers...
ECHO.
IF EXIST "setenv.bat" DEL /F /Q "setenv.bat" > NUL
VersionFromGIT.exe "Source\Core\Properties\AssemblyInfo.cs" "Source\Plugins\BuilderModes\Properties\AssemblyInfo.cs" -O "setenv.bat"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "setenv.bat" GOTO FILEFAIL
CALL "setenv.bat"
DEL /F /Q "setenv.bat"
ECHO.
ECHO Compiling GZDoom Builder core...
ECHO.
IF EXIST "Build\Builder.exe" DEL /F /Q "Build\Builder.exe" > NUL
IF EXIST "Source\Core\obj" RD /S /Q "Source\Core\obj"
msbuild "Source\Core\Builder.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Builder.exe" GOTO FILEFAIL
ECHO.
ECHO Compiling Automap Mode plugin...
ECHO.
IF EXIST "Build\Plugins\AutomapMode.dll" DEL /F /Q "Build\Plugins\AutomapMode.dll" > NUL
IF EXIST "Source\Plugins\AutomapMode\obj" RD /S /Q "Source\Plugins\AutomapMode\obj"
msbuild "Source\Plugins\AutomapMode\AutomapMode.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\AutomapMode.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Builder Effects plugin...
ECHO.
IF EXIST "Build\Plugins\BuilderEffects.dll" DEL /F /Q "Build\Plugins\BuilderEffects.dll" > NUL
IF EXIST "Source\Plugins\BuilderEffects\obj" RD /S /Q "Source\Plugins\BuilderEffects\obj"
msbuild "Source\Plugins\BuilderEffects\BuilderEffects.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\BuilderEffects.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Builder Modes plugin...
ECHO.
IF EXIST "Build\Plugins\BuilderModes.dll" DEL /F /Q "Build\Plugins\BuilderModes.dll" > NUL
IF EXIST "Source\Plugins\BuilderModes\obj" RD /S /Q "Source\Plugins\BuilderModes\obj"
msbuild "Source\Plugins\BuilderModes\BuilderModes.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\BuilderModes.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Color Picker plugin...
ECHO.
IF EXIST "Build\Plugins\ColorPicker.dll" DEL /F /Q "Build\Plugins\ColorPicker.dll" > NUL
IF EXIST "Source\Plugins\ColorPicker\obj" RD /S /Q "Source\Plugins\ColorPicker\obj"
msbuild "Source\Plugins\ColorPicker\ColorPicker.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\ColorPicker.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Comments Panel plugin...
ECHO.
IF EXIST "Build\Plugins\CommentsPanel.dll" DEL /F /Q "Build\Plugins\CommentsPanel.dll" > NUL
IF EXIST "Source\Plugins\CommentsPanel\obj" RD /S /Q "Source\Plugins\CommentsPanel\obj"
msbuild "Source\Plugins\CommentsPanel\CommentsPanel.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\CommentsPanel.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Nodes Viewer plugin...
ECHO.
IF EXIST "Build\Plugins\NodesViewer.dll" DEL /F /Q "Build\Plugins\NodesViewer.dll" > NUL
IF EXIST "Source\Plugins\NodesViewer\obj" RD /S /Q "Source\Plugins\NodesViewer\obj"
msbuild "Source\Plugins\NodesViewer\NodesViewer.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\NodesViewer.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Sound Propagation Mode plugin...
ECHO.
IF EXIST "Build\Plugins\SoundPropagationMode.dll" DEL /F /Q "Build\Plugins\SoundPropagationMode.dll" > NUL
IF EXIST "Source\Plugins\SoundPropagationMode\obj" RD /S /Q "Source\Plugins\SoundPropagationMode\obj"
msbuild "Source\Plugins\SoundPropagationMode\SoundPropagation.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\SoundPropagationMode.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Stair Sector Builder plugin...
ECHO.
IF EXIST "Build\Plugins\StairSectorBuilder.dll" DEL /F /Q "Build\Plugins\StairSectorBuilder.dll" > NUL
IF EXIST "Source\Plugins\StairSectorBuilder\obj" RD /S /Q "Source\Plugins\StairSectorBuilder\obj"
msbuild "Source\Plugins\StairSectorBuilder\StairSectorBuilder.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\StairSectorBuilder.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Tag Explorer plugin...
ECHO.
IF EXIST "Build\Plugins\TagExplorer.dll" DEL /F /Q "Build\Plugins\TagExplorer.dll" > NUL
IF EXIST "Source\Plugins\TagExplorer\obj" RD /S /Q "Source\Plugins\TagExplorer\obj"
msbuild "Source\Plugins\TagExplorer\TagExplorer.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\TagExplorer.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Tag Range plugin...
ECHO.
IF EXIST "Build\Plugins\TagRange.dll" DEL /F /Q "Build\Plugins\TagRange.dll" > NUL
IF EXIST "Source\Plugins\TagRange\obj" RD /S /Q "Source\Plugins\TagRange\obj"
msbuild "Source\Plugins\TagRange\TagRange.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\TagRange.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Visplane Explorer plugin...
ECHO.
IF EXIST "Build\Plugins\VisplaneExplorer.dll" DEL /F /Q "Build\Plugins\VisplaneExplorer.dll" > NUL
IF EXIST "Source\Plugins\VisplaneExplorer\obj" RD /S /Q "Source\Plugins\VisplaneExplorer\obj"
msbuild "Source\Plugins\VisplaneExplorer\VisplaneExplorer.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\VisplaneExplorer.dll" GOTO FILEFAIL
ECHO.
ECHO Creating changelog...
ECHO.
ChangelogMaker.exe "Release\Changelog.xml" "Build" "m-x-d>MaxED" %REVISIONNUMBER%
IF %ERRORLEVEL% NEQ 0 GOTO LOGFAIL
ECHO.
ECHO Building Setup Installer...
ECHO.
IF EXIST "Release\*.exe" DEL /F /Q "Release\*.exe" > NUL
"%ISSDIR%\iscc.exe" "Setup\gzbuilder_setup.iss"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Release\GZDoom Builder Setup.exe" GOTO FILEFAIL
REN "Release\GZDoom Builder Setup.exe" "GZDoom Builder R%REVISIONNUMBER% Setup.exe"
git checkout "Source\Core\Properties\AssemblyInfo.cs" > NUL
git checkout "Source\Plugins\BuilderModes\Properties\AssemblyInfo.cs" > NUL
ECHO.
ECHO. BUILD DONE !
ECHO.
ECHO. Revision: %REVISIONNUMBER%
ECHO.
PAUSE > NUL
GOTO LEAVE
:ERRORFAIL
ECHO.
ECHO. BUILD FAILED (Tool returned error %ERRORLEVEL%)
ECHO.
PAUSE > NUL
GOTO LEAVE
:FILEFAIL
ECHO.
ECHO. BUILD FAILED (Output file was not built)
ECHO.
PAUSE > NUL
GOTO LEAVE
:LOGFAIL
ECHO.
ECHO. CHANGELOG GENERATION FAILED (Tool returned error %ERRORLEVEL%)
ECHO.
PAUSE > NUL
GOTO LEAVE
:LEAVE
@ECHO OFF
ECHO.
ECHO. This build script requires the following software to be installed:
ECHO. - Git command-line client
ECHO. - Microsoft Visual Studio 2008 or newer
ECHO. - Microsoft HTML Help compiler
ECHO. - Inno Setup 5
ECHO.
ECHO. You have to commit your work before using this script.
ECHO. Results will be in the 'Release' directory. Anything currently in
ECHO. the 'Release' directory may be overwritten.
ECHO.
ECHO.
SET STUDIODIR=c:\Program Files (x86)\Microsoft Visual Studio 9.0
SET HHWDIR=c:\Program Files (x86)\HTML Help Workshop
SET ISSDIR=c:\Program Files (x86)\Inno Setup 5
CALL "%STUDIODIR%\Common7\Tools\vsvars32.bat"
MKDIR "Release"
git checkout "Source\Core\Properties\AssemblyInfo.cs" > NUL
git checkout "Source\Plugins\BuilderModes\Properties\AssemblyInfo.cs" > NUL
ECHO.
ECHO Writing GIT log file...
ECHO.
IF EXIST "Release\Changelog.xml" DEL /F /Q "Release\Changelog.xml" > NUL
(
echo [OB]?xml version="1.0" encoding="UTF-8"?[CB]
echo [OB]log[CB]
git log master --since=2012-04-17 --pretty=format:"[OB]logentry commit=\"%%h\"[CB]%%n[OB]author[CB]%%an[OB]/author[CB]%%n[OB]date[CB]%%aI[OB]/date[CB]%%n[OB]msg[CB]%%B[OB]/msg[CB]%%n[OB]/logentry[CB]"
echo [OB]/log[CB]
) >"Release\Changelog.xml"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Release\Changelog.xml" GOTO FILEFAIL
ECHO.
ECHO Compiling HTML Help file...
ECHO.
IF EXIST "Build\Refmanual.chm" DEL /F /Q "Build\Refmanual.chm" > NUL
"%HHWDIR%\hhc" Help\Refmanual.hhp
IF %ERRORLEVEL% NEQ 1 GOTO ERRORFAIL
IF NOT EXIST "Build\Refmanual.chm" GOTO FILEFAIL
ECHO.
ECHO Looking up current repository revision numbers...
ECHO.
IF EXIST "setenv.bat" DEL /F /Q "setenv.bat" > NUL
VersionFromGIT.exe "Source\Core\Properties\AssemblyInfo.cs" "Source\Plugins\BuilderModes\Properties\AssemblyInfo.cs" -O "setenv.bat"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "setenv.bat" GOTO FILEFAIL
CALL "setenv.bat"
DEL /F /Q "setenv.bat"
ECHO.
ECHO Compiling GZDoom Builder core...
ECHO.
IF EXIST "Build\Builder.exe" DEL /F /Q "Build\Builder.exe" > NUL
IF EXIST "Source\Core\obj" RD /S /Q "Source\Core\obj"
msbuild "Source\Core\Builder.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Builder.exe" GOTO FILEFAIL
ECHO.
ECHO Compiling Automap Mode plugin...
ECHO.
IF EXIST "Build\Plugins\AutomapMode.dll" DEL /F /Q "Build\Plugins\AutomapMode.dll" > NUL
IF EXIST "Source\Plugins\AutomapMode\obj" RD /S /Q "Source\Plugins\AutomapMode\obj"
msbuild "Source\Plugins\AutomapMode\AutomapMode.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\AutomapMode.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Builder Effects plugin...
ECHO.
IF EXIST "Build\Plugins\BuilderEffects.dll" DEL /F /Q "Build\Plugins\BuilderEffects.dll" > NUL
IF EXIST "Source\Plugins\BuilderEffects\obj" RD /S /Q "Source\Plugins\BuilderEffects\obj"
msbuild "Source\Plugins\BuilderEffects\BuilderEffects.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\BuilderEffects.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Builder Modes plugin...
ECHO.
IF EXIST "Build\Plugins\BuilderModes.dll" DEL /F /Q "Build\Plugins\BuilderModes.dll" > NUL
IF EXIST "Source\Plugins\BuilderModes\obj" RD /S /Q "Source\Plugins\BuilderModes\obj"
msbuild "Source\Plugins\BuilderModes\BuilderModes.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\BuilderModes.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Color Picker plugin...
ECHO.
IF EXIST "Build\Plugins\ColorPicker.dll" DEL /F /Q "Build\Plugins\ColorPicker.dll" > NUL
IF EXIST "Source\Plugins\ColorPicker\obj" RD /S /Q "Source\Plugins\ColorPicker\obj"
msbuild "Source\Plugins\ColorPicker\ColorPicker.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\ColorPicker.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Comments Panel plugin...
ECHO.
IF EXIST "Build\Plugins\CommentsPanel.dll" DEL /F /Q "Build\Plugins\CommentsPanel.dll" > NUL
IF EXIST "Source\Plugins\CommentsPanel\obj" RD /S /Q "Source\Plugins\CommentsPanel\obj"
msbuild "Source\Plugins\CommentsPanel\CommentsPanel.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\CommentsPanel.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Nodes Viewer plugin...
ECHO.
IF EXIST "Build\Plugins\NodesViewer.dll" DEL /F /Q "Build\Plugins\NodesViewer.dll" > NUL
IF EXIST "Source\Plugins\NodesViewer\obj" RD /S /Q "Source\Plugins\NodesViewer\obj"
msbuild "Source\Plugins\NodesViewer\NodesViewer.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\NodesViewer.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Sound Propagation Mode plugin...
ECHO.
IF EXIST "Build\Plugins\SoundPropagationMode.dll" DEL /F /Q "Build\Plugins\SoundPropagationMode.dll" > NUL
IF EXIST "Source\Plugins\SoundPropagationMode\obj" RD /S /Q "Source\Plugins\SoundPropagationMode\obj"
msbuild "Source\Plugins\SoundPropagationMode\SoundPropagation.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\SoundPropagationMode.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Stair Sector Builder plugin...
ECHO.
IF EXIST "Build\Plugins\StairSectorBuilder.dll" DEL /F /Q "Build\Plugins\StairSectorBuilder.dll" > NUL
IF EXIST "Source\Plugins\StairSectorBuilder\obj" RD /S /Q "Source\Plugins\StairSectorBuilder\obj"
msbuild "Source\Plugins\StairSectorBuilder\StairSectorBuilder.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\StairSectorBuilder.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Tag Explorer plugin...
ECHO.
IF EXIST "Build\Plugins\TagExplorer.dll" DEL /F /Q "Build\Plugins\TagExplorer.dll" > NUL
IF EXIST "Source\Plugins\TagExplorer\obj" RD /S /Q "Source\Plugins\TagExplorer\obj"
msbuild "Source\Plugins\TagExplorer\TagExplorer.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\TagExplorer.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Tag Range plugin...
ECHO.
IF EXIST "Build\Plugins\TagRange.dll" DEL /F /Q "Build\Plugins\TagRange.dll" > NUL
IF EXIST "Source\Plugins\TagRange\obj" RD /S /Q "Source\Plugins\TagRange\obj"
msbuild "Source\Plugins\TagRange\TagRange.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\TagRange.dll" GOTO FILEFAIL
ECHO.
ECHO Compiling Visplane Explorer plugin...
ECHO.
IF EXIST "Build\Plugins\VisplaneExplorer.dll" DEL /F /Q "Build\Plugins\VisplaneExplorer.dll" > NUL
IF EXIST "Source\Plugins\VisplaneExplorer\obj" RD /S /Q "Source\Plugins\VisplaneExplorer\obj"
msbuild "Source\Plugins\VisplaneExplorer\VisplaneExplorer.csproj" /t:Rebuild /p:Configuration=Release /p:Platform=x86 /v:minimal
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Build\Plugins\VisplaneExplorer.dll" GOTO FILEFAIL
ECHO.
ECHO Creating changelog...
ECHO.
ChangelogMaker.exe "Release\Changelog.xml" "Build" "m-x-d>MaxED" %REVISIONNUMBER%
IF %ERRORLEVEL% NEQ 0 GOTO LOGFAIL
ECHO.
ECHO Building Setup Installer...
ECHO.
IF EXIST "Release\*.exe" DEL /F /Q "Release\*.exe" > NUL
"%ISSDIR%\iscc.exe" "Setup\gzbuilder_setup.iss"
IF %ERRORLEVEL% NEQ 0 GOTO ERRORFAIL
IF NOT EXIST "Release\GZDoom Builder Setup.exe" GOTO FILEFAIL
REN "Release\GZDoom Builder Setup.exe" "GZDoom Builder R%REVISIONNUMBER% Setup.exe"
git checkout "Source\Core\Properties\AssemblyInfo.cs" > NUL
git checkout "Source\Plugins\BuilderModes\Properties\AssemblyInfo.cs" > NUL
ECHO.
ECHO. BUILD DONE !
ECHO.
ECHO. Revision: %REVISIONNUMBER%
ECHO.
PAUSE > NUL
GOTO LEAVE
:ERRORFAIL
ECHO.
ECHO. BUILD FAILED (Tool returned error %ERRORLEVEL%)
ECHO.
PAUSE > NUL
GOTO LEAVE
:FILEFAIL
ECHO.
ECHO. BUILD FAILED (Output file was not built)
ECHO.
PAUSE > NUL
GOTO LEAVE
:LOGFAIL
ECHO.
ECHO. CHANGELOG GENERATION FAILED (Tool returned error %ERRORLEVEL%)
ECHO.
PAUSE > NUL
GOTO LEAVE
:LEAVE