Difference between revisions of "IGNFileFormat"
From The Battle for Wesnoth Wiki
(Blargh, made it look nicer) |
(→How does this works?: Updated to 1.10, fixed grammar, changed format to allow easier copy & paste) |
||
Line 15: | Line 15: | ||
* put a _server.ign next into the campaign directory (new style) | * put a _server.ign next into the campaign directory (new style) | ||
− | === How does this | + | === How does this work? === |
− | If there is no file, the default filter is : | + | If there is no file, the default filter as of Wesnoth 1.10 is: |
− | |||
− | |||
− | |||
− | |||
− | |||
− | If there is an .ign file the filter is the content of the file | + | .* |
− | Each file | + | .*/ |
+ | __MACOSX | ||
+ | #*# | ||
+ | *~ | ||
+ | *-bak | ||
+ | *.swp | ||
+ | *.pbl | ||
+ | *.ign | ||
+ | _info.cfg | ||
+ | *.exe | ||
+ | *.bat | ||
+ | *.cmd | ||
+ | *.com | ||
+ | *.scr | ||
+ | *.sh | ||
+ | *.js | ||
+ | *.vbs | ||
+ | *o | ||
+ | Thumbs.db | ||
+ | *.wesnoth | ||
+ | *.project | ||
+ | |||
+ | If there is an .ign file the filter is the content of the file. Each file or directory matching any entry of the .ign file will not be uploaded to the add-ons server. | ||
[[Category:Create]] | [[Category:Create]] |
Revision as of 20:45, 8 August 2012
Contents
.ign files
What is an .ign file?
When you upload an addon, some files/directory are ignored and not uploaded. If you want to configure more closely which files/directories should be ignored, you need an .ign file.
What goes into an .ign file?
The file format is one entry per line.
- * and ? wildcards are supported (? mean any character, * mean any number of any character)
- Directories are identified by a trailing /
Where do I put the .ign file?
2 Solutions :
- put campaignname.ign next to the campaignname.pbl and campaignname.cfg (old style)
- put a _server.ign next into the campaign directory (new style)
How does this work?
If there is no file, the default filter as of Wesnoth 1.10 is:
.* .*/ __MACOSX #*# *~ *-bak *.swp *.pbl *.ign _info.cfg *.exe *.bat *.cmd *.com *.scr *.sh *.js *.vbs *o Thumbs.db *.wesnoth *.project
If there is an .ign file the filter is the content of the file. Each file or directory matching any entry of the .ign file will not be uploaded to the add-ons server.