Adding a new era icon?

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
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Adding a new era icon?

Post by Sky_216 »

Well I've made a new icon for an era, set the addme script up like the 1.3 patchg docs say, and while the era name is changed, the icon is just a black square (which I'm assuming means. What do I have to do (and how) to actually get the icon ingame?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Adding a new icon???

Post by [RDH]Zerted »

Going off of memory, you need the game to load the icon. You do this by reading in a custom lvl file containing your icon. I don't remember if it is common.lvl or shell.lvl. The lvl data file should be loaded in the addme, similar to how the addme loads your map's core.lvl.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding a new icon???

Post by Maveritchell »

A quick note: The 1.3 patch's "change" parameter that you can apply in the addme can only be applied once, that is to say if you use a change parameter, it will overwrite any change parameters written in other mods. I have (I think) somewhere both what the change parameter of Dark Times and the change parameter of "Mandalorian Wars" use, if you are feeling generous enough to add them in to ensure maximum compatibility.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Adding a new icon???

Post by Sky_216 »

Maveritchell wrote:A quick note: The 1.3 patch's "change" parameter that you can apply in the addme can only be applied once, that is to say if you use a change parameter, it will overwrite any change parameters written in other mods. I have (I think) somewhere both what the change parameter of Dark Times and the change parameter of "Mandalorian Wars" use, if you are feeling generous enough to add them in to ensure maximum compatibility.
Definitely will (using DT era instead of GCW anyway). Could you PM the MW one to me?
User avatar
[RDH]Zerted
Gametoast Staff
Gametoast Staff
Posts: 2982
Joined: Sun Feb 26, 2006 7:36 am
Projects :: Bos Wars AI - a RTS game
Games I'm Playing :: SWBF2 and Bos Wars
xbox live or psn: No gamertag set
Location: USA
Contact:

Re: Adding a new icon???

Post by [RDH]Zerted »

Maveritchell wrote:...The 1.3 patch's "change" parameter that you can apply in the addme can only be applied once, that is to say if you use a change parameter, it will overwrite any change parameters written in other mods...
That is kind of the point. When you're looking at map A, you see its changed info. When you select map B, its new changed info overrides map A's info and you see B's custom eras.

I just tested it with two new maps and they both worked fine together. If you're having problems, post your addme.luas.
User avatar
Maveritchell
Jedi Admin
Jedi Admin
Posts: 7366
Joined: Mon Aug 21, 2006 11:03 pm

Re: Adding a new icon???

Post by Maveritchell »

[RDH]Zerted wrote:I just tested it with two new maps and they both worked fine together. If you're having problems, post your addme.luas.
I'll be happy to test it out myself; my supposition as posted above derived from seeing a mod of mine lose its "change"d parameters when I added another user's mod that also used "change"d parameters. I only have the one addme.
User avatar
Sky_216
Droid Pilot Assassin
Droid Pilot Assassin
Posts: 2086
Joined: Mon Feb 13, 2006 3:28 am
Projects :: No Mod project currently.
Games I'm Playing :: I have not listed any games yet
xbox live or psn: No gamertag set

Re: Adding a new icon???

Post by Sky_216 »

Well adding/removing "BDT" from addon didn't make a difference. Back to the original question for a second:

here's my req file that loads the icon:
Hidden/Spoiler:
ucft
{

REQN
{
"texture"
"iconld"
}

}
Load it in addme.lua (tried before and after maps). Still comes up black (with the right name). Is there a certain size that icons have to be? Or am I misssing something completely here?
Does the texture have to
Post Reply