Sign in to follow this  
Followers 0
Phoenix4646

How to create mods for 0 A.D.?

10 posts in this topic

Hi there,

I've been trying to mod the game by creating a new folder in the mods folder (where you find the 'public' folder as well) and calling it gen. In that folder I put the audio/music folder and changed the main menu and hellenic peace tracks, then I created a new shortcut from pyrogenenis.exe and added -mod=gen. But when I start it, nothing has changed, all the tracks are the same. What did I do wrong? Do I have to change anything else?

Share this post


Link to post
Share on other sites

They are exactly the same, to test it I put all the files from the game into that new folder and renamed it to public (calling it 'internal' also worked), and then it worked. I could hear all the tracks I changed. But why does it only work when I replace the files?

03/02/2012 : Does no-one have an idea?

Edited by Phoenix4646

Share this post


Link to post
Share on other sites

I'm still looking for the problem, I can't seem to find it. Can nobody help me?

Share this post


Link to post
Share on other sites

I thought I'd reply to your question even though I don't really have an answer for you. The changes you are making will not change the music - I have replicated what you are doing and I can confirm it does not work.

What you could try instead, is change the MAIN_MENU_TRACK in the music.js file which is here:

binaries/data/mods/public/gui/common/music.js

So place a duplicate of that file (and folder structure) into your mod folder, and change the track references there.

Share this post


Link to post
Share on other sites

Okay, I've tried out what you told me, but it didn't work. However, creating a new civ and using added tracks for them is no problem. Replacing files that are already in the game (e.g. music files or scripts, like music.js) doesn't seem to work.

Share this post


Link to post
Share on other sites

Hmmm, looks like additive mods work right now then, and not mods that replace anything. Sorry for the confusion.

Share this post


Link to post
Share on other sites

If only additive mods are working that it sounds like the load order is wrong. I don't think we have any way of defining it yet though.

Share this post


Link to post
Share on other sites

Hm, whatever, I'm sure you guys get to 'fix' this anytime :)

But while I'm at it, where are the unit files located at?

EDIT:: @Quantumstate: Yeah, I thought the same. Yet it is still odd that it even didn't work when I renamed the folder ^^

Edited by Phoenix4646

Share this post


Link to post
Share on other sites

Hm, whatever, I'm sure you guys get to 'fix' this anytime :)

But while I'm at it, where are the unit files located at?

EDIT:: @Quantumstate: Yeah, I thought the same. Yet it is still odd that it even didn't work when I renamed the folder ^^

The data files describing the units are in simulation/templates, they use an inheritance system. There are also data files which describe the 3D models in art/actors/.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!


Register a new account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0