[Tilesathome] MaxTilesetComplexity
Ed Loach
ed at loach.me.uk
Wed Sep 24 13:43:20 BST 2008
spaetz:
> Sounds like a bad design of the windows GUI client then. Don't
> know who did that or why.
I would guess it is so that if any new settings appear in the
tilesathome.conf.windows, when an svn up gets that new version it
will automatically add them to the existing .conf file.
> I just use the setting in tilesAtHome.conf and it stays there
> as it is (on Linux).
Well, I've had a quick play and have broken tah.pl here so that I'm
getting a message saying I need to update my Subversion client, but
what I had tried to do was add
my $max_tileset_complexity = "20000000";
at the top of the code, and add
$configstr =~ s/MaxTilesetComplexity = 0/MaxTilesetComplexity =
$max_tileset_complexity/ if ($max_tileset_complexity > "");
in the code I quoted earlier, but it doesn't seem to have worked
yet. I'm debugging at present, and not knowing the syntax isn't
helping with that, though I'm learning (although I've never enjoyed
working out RegularExpressions these seem fairly obvious ones). I
think perhaps reverting my earlier tests using TortoiseSVN might
have messed things up. I might go for a reinstall...
> I don't think this is included in the stock t at h client SVN, is
> it?
I don't think so. It has an update button which does an svn up to
update the stock client. The Windows client is here:
http://sourceforge.net/projects/wintah/
The project contains tah.pl, tah.ico and tah-lite.nsi (as an NSIS
script to download everything else required, including the regular
t at h client). The .nsi helps build setuptah-light.exe which I suspect
is the file Windows users tend to download (as it is linked from the
wiki).
I can see that the code in start_tah is useful the very first time
that the client is run after installation, to set all the paths to
those that the user actually used for installation (or rather that
the NSI script did), rather than needing to set them all manually.
Ideally a flag would be set so this only runs on the first time, so
after that a user can tweak the settings themselves.
The windows client tends to assume that a user has none of the
required packages already installed, and gets ActivePerl plus a few
addon packages, svn, 7za, pngcrush, opting, pngnq, xmlstarlet,
inkscape. It then gets the t at h client using the svn downloaded
previously.
Ed
More information about the Tilesathome
mailing list