Getting a campaign icon to show up ingame [Solved]

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
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Getting a campaign icon to show up ingame [Solved]

Post by yuke5 »

How can you make an icon of your choosing show up for the drop down menu. I'm think I'm getting the hang of campaign scripting except I can't a campaign icon to show up ingame. Doesn't the 1.3 patch support that? I guess I just don't have a clue. How can I get my MAPc_c LUA to line up with an icon?

P.S. I've tried adding MAPc_c to the addme LUA. And I added a downloadable content line. I've also made a conquest layer in zeroeditor and made it uncommon, but I might have screwed that but up. What exactly should I do in zero editor? Is there anything else I should do?

P.P.S. The map munges without a problem. It actually came across a couple "message severity = 3" errors with the c_c script, but I fixed them and remunged.

EDIT: Forget it. I'll just create a capture the flag layer. If I figure it out I'll post it for any modders out there who want to figure it out. Once I get the hang of mission scripting, I'll make a tut. I just have no idea how the icon business works.
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: Getting a campaign icon to show up ingame

Post by [RDH]Zerted »

What ingame drop down menu are you referring to?

You shouldn't have to do anything with ZeroEdit.
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Re: Getting a campaign icon to show up ingame

Post by yuke5 »

Oh, what I'm talking about is the menu you pull up in instant action. I'm trying to figure out how to add a campaign icon to a map's gamemodes. I've created a script for it and added it to the map's addme script, and I've worked out all the kinks, but icon of any sort pops up.
CressAlbane
Master Bounty Hunter
Master Bounty Hunter
Posts: 1519
Joined: Fri Dec 18, 2009 8:02 am
Projects :: CTF Arenas
Games I'm Playing :: Steam- cressalbane2
Location: ¿uoıʇɐɔoן ʎɯ sıɥʇ sı

Re: Getting a campaign icon to show up ingame

Post by CressAlbane »

THIS should help out.
6) Go to your 'mission'.req file (in the 'common' folder in your map) and edit the script files it says. It should have something along the lines of 'XXXc_con', 'XXXg_con' (where XXX is your maps three letter id). Add the name of the script you modified. So if you added era 'a' to mygeeto conquest, add 'myg1a_con' to your mission req.
7) You'll need to add a req file for that mode to your data_XXX/Common/mission folder. This contains the req files for all stock scripts. Say we added a script called 'myg1a_con.' Copy the 'myg1g_con', rename it 'myg1a_con', open it, change the line 'myg1g_con' to 'myg1a_con'.
8) Change your addme lua. RED51 explains how to do it in this link.....http://www.gametoast.com/forums/viewtop ... 94#p281994
User avatar
yuke5
Field Commander
Field Commander
Posts: 945
Joined: Wed Jun 29, 2011 10:42 pm
Games I'm Playing :: SWBF2 TF2 RC KOTOR
xbox live or psn: My steam is yuke5.
Location: Vermont

Re: Getting a campaign icon to show up ingame

Post by yuke5 »

I did the addme bit, but I didn't to the req bit, thanks a lot! :D
Post Reply