Game Development Community

[BUG] Defining a new level does not update commonConfig.xml

by Pedro Vicente · in Torque Game Builder · 12/12/2011 (10:03 pm) · 0 replies

Defining a new level in the TGB Editor other than the default name "untitled.t2d" is not updated in the commonConfig.xml.

Example:

project.t2dProj

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<TorqueProject>
   <Type>T2DProject</Type>
   <Version>v1.7.5</Version>
   <MinVersion>v1.1.4</MinVersion>
   <Creator>Torque Game Builder</Creator>
   <LastLevel>game/data/levels/level_01.t2d</LastLevel>
</TorqueProject>

commonConfig.xml

<?xml version="1.0" encoding="utf-8" standalone="yes" ?>
<TorqueGameConfiguration>
   <Company>Independent</Company>
   <GameName>UntitledGame</GameName>
   <Resolution>800 600 32</Resolution>
   <FullScreen>false</FullScreen>
   <CommonVer>114</CommonVer>
   <ConsoleKey>tilde</ConsoleKey>
   <ScreenShotKey>ctrl p</ScreenShotKey>
   <FullscreenKey>alt enter</FullscreenKey>
   <UsesNetwork>0</UsesNetwork>
   <UsesAudio>1</UsesAudio>
   <DefaultScene>~/data/levels/untitled.t2d</DefaultScene>
</TorqueGameConfiguration>