<?xml version="1.0" encoding="ISO-8859-1"?>

<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:content="http://purl.org/rss/1.0/modules/content/">
	<channel>
		<title>FSDeveloper Community - Tools programming</title>
		<link>http://www.fsdeveloper.com/forum/</link>
		<description>Use this forum to discuss anything related to creating tools for addon developers</description>
		<language>en</language>
		<lastBuildDate>Thu, 09 Sep 2010 00:18:59 GMT</lastBuildDate>
		<generator>vBulletin</generator>
		<ttl>60</ttl>
		<image>
			<url>http://www.fsdeveloper.com/forum/images/kirsch/misc/rss.jpg</url>
			<title>FSDeveloper Community - Tools programming</title>
			<link>http://www.fsdeveloper.com/forum/</link>
		</image>
		<item>
			<title><![CDATA[[FSX] Automatic add-to-scenery-library on install]]></title>
			<link>http://www.fsdeveloper.com/forum/showthread.php?t=20983&amp;goto=newpost</link>
			<pubDate>Wed, 11 Aug 2010 00:52:45 GMT</pubDate>
			<description><![CDATA[Back to this... I know it's been talked about here a few times, but here's a new thread. 
Since I've always used NSIS  (http://nsis.sourceforge.net/Developer_Center) to build installers, I've written a NSIS script which includes the choice to automatically add the scenery to the Scenery Library...]]></description>
			<content:encoded><![CDATA[<div>Back to this... I know it's been talked about here a few times, but here's a new thread.<br />
Since I've always used <a href="http://nsis.sourceforge.net/Developer_Center" target="_blank">NSIS </a> to build installers, I've written a NSIS script which includes the choice to automatically add the scenery to the Scenery Library after it is installed.<br />
<br />
However in this case, the installed scenery is landclass, so it needs to be shifted in priority so that it doesn't take priority over photo scenery. So at the moment, my script determines the priority (layer number) of Addon Scenery, and tucks my scenery after it. Slightly complicated in this case because there are 2 scenery folders to add.<br />
<br />
I did assume that most Scenery.cfg files would be nice and tidy, especially if most users made changes only through the Scenery Library within FSX, but testing has shown that there are a lot of messy cfg files out there, with gaps and layer numbers out of order.<br />
<br />
So what would you expect a tool like this to do? With a nice tidy cfg file, where area numbers = layer numbers, it simply inserts the new entries after Addon Scenery and renumbers everything after. <br />
<br />
But what should it do if it isn't so tidy? Should it 'repair' the cfg, i.e. renumber everything so that area=layer?<br />
<br />
Should it insert the new Areas after the Addon Scenery Area (given that it is really the Layer number which determines priority, and this is really what is being set in relation to Addon Scenery)?<br />
Should it add the new Areas to the end of the cfg file, and just tweak the Layer?<br />
<br />
What I really want to do is to make sure that I don't leave the Scenery.cfg messier than I found it, but then again I'd rather not do a complete 'repair'.<br />
<br />
And lastly, would this script be of use to anyone else once it's finished?</div>

]]></content:encoded>
			<category domain="http://www.fsdeveloper.com/forum/forumdisplay.php?f=79">Tools programming</category>
			<dc:creator>toprob</dc:creator>
			<guid isPermaLink="true">http://www.fsdeveloper.com/forum/showthread.php?t=20983</guid>
		</item>
	</channel>
</rss>
