Custom Galactic conquest pains

In this forum you will find and post information regarding the modding of Star Wars Battlefront 2. DO NOT POST MOD IDEAS/REQUESTS.

Moderator: Moderators

Post Reply
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Custom Galactic conquest pains

Post by Fiodis »

I've been fooling around with custom Galactic Conquests, and I've been unable to do some things. I'm not sure if a few are possible, even, but I'm certain some of them are.

-- Change the planet/side/anything name.
How do I make custom localizations for a GC? It seems like a simple thing but I've failed at doing it.

-- Make or break connections between planets and stars after loading - is this possible?

-- In a similar vein, add or delete planets and stars after loading. Is that possible, too?

Thanks for the help. :)
User avatar
SW_elite
Filthy Thief
Filthy Thief
Posts: 507
Joined: Sat Jan 02, 2010 6:43 pm
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set
Location: Australia!!!

Re: Custom Galactic conquest pains

Post by SW_elite »

You can easily change the names for planets with the localize tool, so is it just the path your not sure about?
User avatar
Fiodis
Master of the Force
Master of the Force
Posts: 4145
Joined: Wed Nov 12, 2008 9:27 pm
Projects :: Rannoch + Tientia + Tools Programming

Re: Custom Galactic conquest pains

Post by Fiodis »

Well, some things you can't change through the localize tool, like era/mode names or descriptions. I was wondering if GC things also fell into that category, and if they don't, yes, I'm wondering about the path.
Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

Re: Custom Galactic conquest pains

Post by Jaspo »

Well, this is a bump, but only because it didn't get answered, and I have the same questions and a few more, and I know that Mav (for one) now has the answers for (some of) them.

In addition to knowing how to correctly localize gc (I can't seem to change a thing...readdatafile core.lvl from the folder DOW...currently my test map...changed/added localizations for DOW, saved, munged, checked munged core.lvl for additions, they were present, but nothing changed ingame) I was also wondering if there are any editable files for setting up the names (such as "cor" and "star04", not localizations), number, and locations of the planets and stars (in other words, where's the file for the galaxy map, or is it hard coded?) As a hack I found that stars can be converted to planets, but then of course there's no planet model with them, leading to another question: how would I add planet models and such?

I hear rumors that the galaxy is actually a map (meaning that planets can be placed or moved in zeroedit?) and gc mode is actually started with the campaign script...I have yet to look into it.
Deviss
Master of the Force
Master of the Force
Posts: 3772
Joined: Tue Aug 12, 2008 7:59 pm
Projects :: Clone Wars Extended
Games I'm Playing :: BF2

Re: Custom Galactic conquest pains

Post by Deviss »

Jaspo wrote:I know that Mav (for one) now has the answers for (some of) them.
yes he has, but he like keep his work only for hisself, dislike share, i could help you about fiodis question of how set custom side in selection screen, but about add/modify planets i discovered they are entities, because hex editing GC from him i discover lines about getentitymatrix etc where he add new planets, i didnt find more about that :(
Jaspo
Command Sergeant Major
Command Sergeant Major
Posts: 282
Joined: Sun Mar 01, 2009 4:34 am
Projects :: AotC DoW+++Boonta Eve Classic
Games I'm Playing :: WoT MBWBVC Robocraft
xbox live or psn: No gamertag set
Contact:

Re: Custom Galactic conquest pains

Post by Jaspo »

Mav helped me out quite a bit. As for localizations, you have to create new planet entities in freeform_init and then make new localization keys for the names of those entities. The entity names need to be subbed into all the various tables in freeform_init and freeform_start.
New planet entities are created in this general manner:
CreateEntity(GetEntityClass("geo"), GetEntityMatrix("star04"), "abc");
where geo is the desired planet model, star04 is the desired location in the galaxy, and abc is the new entity.
if you want the planet to have a system model as well, repeat this step but with "_system" added to the end of "geo" and "abc".
The stock planets can also be replaced with different ones in a similar manner (then it would be GetEntityMatrix("geo"), for example, instead) and stock planets can even be relocated, though I think it's necessary to create placeholder entities to do it.
Post Reply