View unanswered posts | View active topics It is currently Thu Dec 26, 2024 7:50 am



Reply to topic  [ 11 posts ] 
 Making your scenes appear in the Scenario menu 
Author Message
DRL Developer
DRL Developer
User avatar

Joined: Wed Dec 13, 2006 5:27 am
Posts: 3138
Location: A little south and a lot west of Moscow
Reply with quote
Post Making your scenes appear in the Scenario menu
As of B24, the Scenario Menu has replaced the Skirmish Menu and what used to be the Campaign screen. Only scenes that are compatible with the currently selected activity are shown. That's why a scene that you've just made doesn't show up in the menu on any activities.
The way the game determines if a scene is compatible with an activity is by scanning through the activity's Lua script and finding any calls to SceneMan:GetArea. It determines what area the script is looking for, then only shows scenes with those areas.
Areas can be placed using the Area editor without a hitch.

The default areas that ALL MAPS should have in order to be compatible with Vanilla content are as follows:
Code:
LZ Team 1
LZ Team 2
LZ Team 3
LZ Team 4
LZ All

LZ Team 1-4 are where the respective teams are allowed to land on the map.
LZ All is a special zone that defines the zone that anything can land in in certain activities. For instance, in One Man Army, the AI can land anywhere in LZ All, as the player can move throughout the entire map. LZ All is useful if, for instance, you've made a map with a large pit in it - you don't want the AI landing in there, so just don't include it in LZ All or any Team LZs, and you're good to go.

In the future, there will likely be BZ Team1-4, defining where teams are allowed to build their bunkers. If you're into forward-compatibility, go ahead and put those into your maps - they'll just harmlessly sit there until they're in use, as the game doesn't do anything with extra Areas.

Hope this helps a bit. Let me know if you have any other questions regarding scenes and activities in B24.


Thu Dec 16, 2010 7:08 am
Profile WWW
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
This is what I thought I needed to do to some of those pesky invisible scenes. Thanks, TLB.


Thu Dec 16, 2010 11:41 pm
Profile
User avatar

Joined: Wed Dec 15, 2010 11:28 pm
Posts: 27
Location: Behind you?!?!!!
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
So after creating a scene in the editor I just need to add those areas? Do I need all of them, or just the ones for the scenario I want?


Fri Dec 17, 2010 10:14 am
Profile
User avatar

Joined: Wed Jan 07, 2009 10:26 am
Posts: 4074
Location: That quaint little British colony down south
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
You should probably add all of them.


Fri Dec 17, 2010 10:57 am
Profile WWW

Joined: Tue Sep 29, 2009 5:15 pm
Posts: 15
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
I made a scene in the scene editor and added all areas, but it still doesn't show up in the scenario battle menu. Why?


Tue Jan 04, 2011 3:18 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
Check it has a position on the planet that isn't on top of some thing else. Try entering a random number to get it out in the open.


Tue Jan 04, 2011 3:24 pm
Profile

Joined: Tue Sep 29, 2009 5:15 pm
Posts: 15
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
Aha! That was the problem. So from now on, you have to do some .ini edition before you can play?

Thanks!


Tue Jan 04, 2011 3:27 pm
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
Well, the scene you edited it from had one position on the planet, but there's no option to change it in the in-game editor, so it's just inherited.


Tue Jan 04, 2011 3:29 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
I've created GAScripted activity without any areas defined on scene or obtained from script and CC offered me many available scenes to play it on instead of the single one for which it was designed and which is written in AddActivity. That means that Area matching is currently the ONLY method which CC uses to find a scene for an activity, even for scripted ones which specify their scenes explicitly, am I correct?


Mon Jan 10, 2011 6:12 am
Profile
Data Realms Elite
Data Realms Elite
User avatar

Joined: Tue May 25, 2010 8:27 pm
Posts: 4521
Location: Constant motion
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
It's the only way I've got round it so far.


Mon Jan 10, 2011 6:11 pm
Profile
DRL Developer
DRL Developer
User avatar

Joined: Thu Jun 11, 2009 2:34 pm
Posts: 966
Location: Moscow, Russia
Reply with quote
Post Re: Making your scenes appear in the Scenario menu
I guess there is some problem with zone scanning code, if I use --[[ ]]-- style comments at the beginning of my mission code it offers me all scenes available.


Sat Jan 15, 2011 12:35 am
Profile
Display posts from previous:  Sort by  
Reply to topic   [ 11 posts ] 

Who is online

Users browsing this forum: No registered users


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 post attachments in this forum

Search for:
Jump to:  
cron
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by STSoftware for PTF.
[ Time : 0.397s | 15 Queries | GZIP : Off ]