CustomizingStartup

From Wesnoth

Warning: these methods might cause data loss if used inappropriately. Follow these instructions at your own risk!

Instructions to increase the game's performance and reduce size

Using any or all of these options will allow you to start the game a little bit faster or save some HDD space
(using all of these results in ~420MiB->200MiB shrink as of v1.9):

  • If you're concerned about the render speed of the logo wipe-on (it takes some time, esp. on slower boxes), you can either disable logo animation in Wesnoth's advanced options or replace with 0-bye PNGs (files data/core/images/misc/logo.png & images/misc/logo.png),
  • To customize the main menu map, rename data/core/images/maps/mainmenu.jpg to some other name (e.g. _mainmenu.jpg) and copy a custom JPG file as mainmenu.jpg instead (so, to archieve performance gain, simply replace the original one with a 0-byte JPG to have no main menu background),
  • To disable tip-of-the-day display, replace the file data/hardwired/tips.cfg with
[tip][/tip]
  • Additionally, you may want to remove unused translations and l10n resources by hand to conserve disk space, a script below will leave only the default one (US English),
  • 'manual' folder contains off-line manual, not used ingame,
  • if you don't fancy to use East Asian fonts, remove fonts/wqy-zenhei.ttc (13MiB),
  • And lastly, for people who use only sound-effects but no music, you can erase all of the ogg files to save about 100MiB.

Scripts

The easiest way to reduce the size of the installation is to execute one of the scripts designed to do these tasks - you just have to make a new file in Wesnoth main directory with the name given and with content as follows and then execute it.

For Windows XP

  • cleanup.bat
@echo off
copy nul data\core\images\misc\logo.png
copy nul images\misc\logo.png
echo [tip][/tip] > data\hardwired\tips.cfg
del fonts\wqy-zenhei.ttc
rd /s /q data\core\images\help\l10n
rd /s /q data\core\images\maps\l10n
rd /s /q data\core\images\misc\l10n
rd /s /q images\misc\l10n
rd /s /q manual
rd /s /q translations
md translations
rd /s /q data\core\music
md data\core\music

For older Windows

  • cleanup.bat
@echo off
copy nul data\core\images\misc\logo.png
copy nul images\misc\logo.png
echo [tip][/tip] > data\hardwired\tips.cfg
del fonts\wqy-zenhei.ttc
deltree /y data\core\images\help\l10n
deltree /y data\core\images\maps\l10n
deltree /y data\core\images\misc\l10n
deltree /y images\misc\l10n 
deltree /y manual
deltree /y translations
md translations
deltree /y data\core\music
md data\core\music

For UNIX-based operating systems

  • cleanup.sh
#!/bin/sh
cp nul data/core/images/misc/logo.png
cp nul images/misc/logo.png
echo [tip][/tip] > data\hardwired\tips.cfg
rm fonts/wqy-zenhei.ttc
rm -rf images\misc\l10n
rm -rf data\core\images\help\l10n
rm -rf data\core\images\maps\l10n
rm -rf data\core\images\misc\l10n
rm -rf manual
rm -rf translations
mkdir translations
rm -rf data/core/music
mkdir data/core/music
This page was last modified on 10 February 2011, at 10:06.