Data file hierarchy in different versions of Wesnoth

Discussion of all aspects of the game engine, including development of new and existing features.

Moderators: Forum Moderators, Developers

Post Reply
quartex
Developer
Posts: 2258
Joined: December 22nd, 2003, 4:17 am
Location: Boston, MA

Data file hierarchy in different versions of Wesnoth

Post by quartex » August 19th, 2004, 2:48 am

I used OS X, so in my version of Wesnoth, all the files are stored within the wesnoth application. I have a friend who's trying to learn about WML and making scenarios. He uses Windows and he is confused where the scenarios, units, campaigns and all the other data folder are. Looking at the windows version of my mac, I see that it is just a .exe file, there is no extra data files. So are all the files stored within the .exe somehow? How can he access them?

And I'm curious, how are all the wesnoth resources stored in the Linux version?

Dave
Founding Developer
Posts: 7066
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave » August 19th, 2004, 2:58 am

In Windows, you run the setup.exe and it will extract and install Wesnoth on your machine. By default it installs Wesnoth in C:\Program Files\Wesnoth

The data files are stored in C:\Program Files\Wesnoth\data

The user-data directoy is at C:\Program Files\Wesnoth\userdata

In Unix-like systems, the data files are stored in data/ under the installation directory. The user-data directory is at $HOME/.wesnoth

David
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming

quartex
Developer
Posts: 2258
Joined: December 22nd, 2003, 4:17 am
Location: Boston, MA

Post by quartex » August 19th, 2004, 3:16 am

Thanks Dave. In OS X this the file hierarchy for these folders:

Wesnoth app/resources/images/ all the images in the game
Wesnoth app/resources/sounds/ all the sounds
Wesnoth app/resources/music/ all the music
Wesnoth app/resources/data/units/ all the unit files
units
Wesnoth app/resources/data/maps/ all the ASCII maps
Wesnoth app/resources/data/scenarios/ official campaigns
Wesnoth app/resources/data/campaigns/ user-made scenarios

So if a windows user wanted to see the unit files, he'd look under

C:\Program Files\Wesnoth\data\units

and the image files are

C:\Program Files\Wesnoth\images

and the user-made campaigns are now under
C:\Program Files\Wesnoth\userdata
instead of
Wesnoth app/resources/data/campaign?

Dave
Founding Developer
Posts: 7066
Joined: August 17th, 2003, 5:07 am
Location: Seattle
Contact:

Post by Dave » August 19th, 2004, 11:48 am

Yes, all that is correct.
“At Gambling, the deadly sin is to mistake bad play for bad luck.” -- Ian Fleming

Post Reply