Detecting whether an era is available and removing[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

Detecting whether an era is available and removing[SOLVED]

Post by yuke5 »

Maveritchell wrote:You can also add extra scripting in your addme.lua that checks to see whether "The Dark Times" exists on the user's computer (preventing this era from showing up as an option to someone who doesn't have the mod installed), but that is covered in other topics. You would do well to look that up and learn, though.
I've run multiple searches and gone through promising faq topics, gone to the wiki and elsewhere. If any does know where the topic is that Mav mentions, I'd be very grateful. I want to learn how to do this to clean up my map; it has so many eras listed, the little box can't hold them all. Any help would be appreciated. Thanks in advance.
Last edited by yuke5 on Sun Mar 25, 2012 2:19 pm, edited 1 time in total.
Marth8880
Resistance Leader
Posts: 5042
Joined: Tue Feb 09, 2010 8:43 pm
Projects :: DI2 + Psychosis
Games I'm Playing :: Silent Hill 2
xbox live or psn: Marth8880
Location: Edinburgh, UK
Contact:

Re: Detecting whether an era is available and removing it.

Post by Marth8880 »

Well do you want those eras to be in your map? I take it you do not. Post your addme, please.
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: Detecting whether an era is available and removing it.

Post by yuke5 »

I'm sorry, I should've been more clear. If they aren't detected, I don't want them to be in my map. For example, when the BFX folder isn't in my addon folder, I don't want the BFX eras listed. I do NOT want to remove any eras permanently, I just don't want them to be select able is a player isn't compatible with them.
Gandalf
Private First Class
Posts: 87
Joined: Sun Jun 12, 2011 3:16 pm
Projects :: Tibrin-Island
Games I'm Playing :: Battlefront II
xbox live or psn: No gamertag set

Re: Detecting whether an era is available and removing it.

Post by Gandalf »

I think that this is the topic you are looking for.
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: Detecting whether an era is available and removing it.

Post by yuke5 »

Thank you! Was it in the FAQ?
Gandalf
Private First Class
Posts: 87
Joined: Sun Jun 12, 2011 3:16 pm
Projects :: Tibrin-Island
Games I'm Playing :: Battlefront II
xbox live or psn: No gamertag set

Re: Detecting whether an era is available and removing it.

Post by Gandalf »

I don't think it's in the FAQ. I found it by realizing I had read about it before, remembering which map it was talking about, finding out the author of the map, and searching every single post by that person in the Modding section. :lol:
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: Detecting whether an era is available and removing it.

Post by yuke5 »

Okay. Thanks a BUNCH! :D
Post Reply