Author |
Message |
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
How, oh how, do we make our missions invisible?
Us modders all know we can make our scenes invisible using: But how do we wipe our scripts from the new B24 scenario screen? Is there some sort of InScenario variable we need to know about?
|
Tue Dec 28, 2010 12:36 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: How, oh how, do we make our missions invisible?
Get an area that doesn't actually exist?
|
Tue Dec 28, 2010 12:40 am |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
Re: How, oh how, do we make our missions invisible?
But then it still shows up in scenario. I get what you mean, but it just shows up with no scenes to play with.
No, I want to make it totally unknown to the player that the script even exists.
|
Tue Dec 28, 2010 12:45 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: How, oh how, do we make our missions invisible?
Have another mission call said invisible mission.
|
Tue Dec 28, 2010 12:55 am |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
Re: How, oh how, do we make our missions invisible?
You'll have to elaborate further on that, I don't understand what you mean.
|
Tue Dec 28, 2010 12:58 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: How, oh how, do we make our missions invisible?
Err wait, nevermind that post. But what is this for?
|
Tue Dec 28, 2010 1:55 am |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
Re: How, oh how, do we make our missions invisible?
Converting unmapped lands to B24. It uses so many scripts the player isn't meant to see and they clutter the scenario window like nobody's business.
|
Tue Dec 28, 2010 1:59 am |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
Re: How, oh how, do we make our missions invisible?
Probably the latter. Also Unmapped lands wouldn't be able to switch between scenes if you did that.
|
Tue Dec 28, 2010 2:31 am |
|
|
mail2345
Joined: Tue Nov 06, 2007 6:58 am Posts: 2054
|
Re: How, oh how, do we make our missions invisible?
Solution A: Stuff all the scene scripts into different functions. Stuff these functions into one hellishly massive script file that reads the config, and decides which function to run. I assume that StartActivity can take a third argument of a scene.
Main issue besides ugliness is that besides the metascreen itself, you would have to hardcode areas.
|
Tue Dec 28, 2010 3:02 am |
|
|
Grif
REAL AMERICAN HERO
Joined: Sat Jan 27, 2007 10:25 pm Posts: 5655
|
Re: How, oh how, do we make our missions invisible?
from what I'm getting here...you need to be doing dofile, and you need to pull some startactivity shenanigans.
|
Tue Dec 28, 2010 3:58 am |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
Re: How, oh how, do we make our missions invisible?
Well, it looks like Unmapped Lands isn't going to work for B24 then.
|
Wed Dec 29, 2010 4:42 pm |
|
|
findude
Joined: Tue Dec 12, 2006 3:10 pm Posts: 495 Location: Uncertain quantum state
|
Re: How, oh how, do we make our missions invisible?
Use file IO to write more includes into the definition ini, will probably require a restart, but should work.
|
Wed Dec 29, 2010 5:41 pm |
|
|
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
Re: How, oh how, do we make our missions invisible?
What you could do is make all your scenes use the same activity. The StartActivity function for that activity will check SceneMan.Scene.PresetName to determine what the current scene is. From there, it loads the correct UpdateActivity and EndActivity functions by using dofile. It should work just fine.
|
Wed Dec 29, 2010 9:19 pm |
|
|
Roast Veg
Data Realms Elite
Joined: Tue May 25, 2010 8:27 pm Posts: 4521 Location: Constant motion
|
Re: How, oh how, do we make our missions invisible?
Ah-ha! Thank you TLB, you are a genius!
Further tinkering is required, it would seem.
|
Wed Dec 29, 2010 9:22 pm |
|
|
TheLastBanana
DRL Developer
Joined: Wed Dec 13, 2006 5:27 am Posts: 3138 Location: A little south and a lot west of Moscow
|
Re: How, oh how, do we make our missions invisible?
You might also want to define a separate function for starting the mission, which you can call in the mission starting code after replacing the functions using dofile. If you don't, then the start function for all the missions won't run.
|
Wed Dec 29, 2010 9:30 pm |
|
|
|