Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Thu Apr 18, 2024 10:30 pm
All times are UTC + 0
Mystery of Theme.ini and side specific tracks.
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Astor
Cyborg Soldier


Joined: 01 Jan 2010
Location: Austria

PostPosted: Wed May 14, 2014 6:10 pm    Post subject:  Mystery of Theme.ini and side specific tracks. Reply with quote  Mark this post and the followings unread

I could finally find out how to make custom side specific soundtracks work for more than 2 playable factions.

This is what I did:

Code:
[VALVES1B]
Name=Valves G
Length=3.27
Scenario=1
Side=GDI

[DUSKHOUR]
Name=Dusk Hour N
Length=4.11
Scenario=1
Side=Nod

[FLURRY]
Name=Flurry C
Length=4.11
Scenario=1
Side=CAB

[MUTANTS]
Name=Mutants F
Length=4.11
Scenario=1
Side=FORG

[APPROACH]
Name=Approach G
Length=4.42
Scenario=1
Side=GDI

[GLOOM]
Name=Gloom N
Length=3.37
Scenario=1
Side=Nod


and this is how my [Sides] looks in rules.ini

Code:
[Sides]
GDI=GDI
Nod=Nod
CAB=CAB
FORG=FORG
Civilian=Neutral
Mutant=Special


Those tracks should be in the exact same order!

Example:

GDI
Nod
Cabal
Forgotten
GDI
Nod
Cabal
Forgotten
....

Wrong example:

GDI
GDI
GDI
Nod
Nod
...

and they where totally messed/mixed up by all factions. I just wanted to post this here, maybe it will be useful for anyone out there (but I don't think there are a lot of mods which use more factions).

At least I can now give each faction some nice fitting tracks Very Happy

PS: Sorry internet lagged and it got double posted, please delete the other one,

_________________


Back to top
View user's profile Send private message
Starkku
Cyborg Commando


Joined: 28 Dec 2007
Location: Finland

PostPosted: Wed May 14, 2014 6:30 pm    Post subject: Reply with quote  Mark this post and the followings unread

The tracks need to be listed in theme.ini (the [Themes] list at very least) based on the value of Side in the exact same order as the sides go in rules.ini [Sides] list. So for an example, tracks with Side=GDI come first, then Side=Nod and so on. You have to follow this, or you will encounter the issues already mentioned in your post.

Tracks without Side declared can be listed before, in-between or after the side-specific tracks, only the order of side-specific tracks matters.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Twitter Channel URL
E1 Elite
General


Joined: 28 May 2013

PostPosted: Thu May 15, 2014 7:42 am    Post subject: Reply with quote  Mark this post and the followings unread

Tested only for a few minutes, sharing the outcome:

- only per side initialization has to be ordered same as in rules.ini sides.
- can have more than one song for initialization
- after all needed sides are initialized, order need not be maintained.
- not from the last of the playable sides but missing a side in between causes problems

Valid example using Astor's sides:

; x is any different number
[Themes]
x=Song_Others1          ;for all-side songs, can be anywhere in the list
x=GDI_Song1          ; initializing side specific list as in rules.ini sides
x=Nod_Song1
x=Nod_Song2           ; can have more than one, listed together
x=Cabal_Song1
x=Forgotten_Song1
x=Cabal_Song2          ; from here on, it can be in any order
x=Nod_Song3
x=Forgotten_Song2
x=GDI_Song2

Can't miss GDI and initialize Nod first, that leads to problems. If only having side specific songs for
the first 3 playable sides, then it is not a problem to miss the 4th playable side.

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.1837s ][ Queries: 11 (0.0065s) ][ Debug on ]