The path for most files is relative to the game directory, so it looks like data/[etc]. If you need to specify the path for those files then you can give it as [mymod]/data/[etc]. The path for some files is relative to the main data folder so, for example, the path might look like banners/[etc]. If you need to specify the path for file like that you can do it like this:
../[mymod]/data/banners/[etc]
The ".." tells the game to go up one level, to the main game folder, then look in the mod folder, and so on.
Here's the descr_standards.txt file from XGM for example:
Code:
;
; this file describes the appearance of the strategy map banners
;
file_scale 0.185f
file_army_banner data/banners/strat_flag.cas ; can't have spaces
file_scale 1.0f
file_navy_banner data/banners/navy_banner.cas
banner_star 0, 0.67969, 0.19141, 0.86719
banner_button 0.19922, 0.67969, 0.38281, 0.86719
banner_flag 0.58813, 0.01, 0.99, 0.99
banner_sail 0.01, 0.01, 0.42, 0.41
factions
symbols banners/symbols1.tga
symbols ../xgm/data/banners/symbols2.tga
symbols banners/symbols3.tga
symbols banners/symbols4.tga
symbols banners/symbols5.tga
rebels_factions
symbols banners/symbols6.tga
symbols banners/symbols7.tga
symbols banners/symbols8.tga
Bookmarks