Jump to content
Sign in to follow this  
Kydoimos

Debriefing - What Gives?

Recommended Posts

Hi all - having a lot of trouble with the debriefing screen. I've read quite a few of the other threads and it seems I'm doing it right. But I must be missing something, because I can't even get the description text up on the debriefing screen, let alone the background picture. Here's what I got in the description.ext:

class Win1
{
 title = "Mission Complete";
 subtitle = "";
 description = "Why is there no text here?";
 backgroundPicture = "";
 picture = "b_inf";
 pictureColor[] = {0.0,0.3,0.6,1};
};
};

And I'm calling it with:

[font=Courier New]"Win1" call BIS_fnc_endMission;[/font]

Thanks to anyone who can help on this one! I'm stumped!

---------- Post added at 23:56 ---------- Previous post was at 23:54 ----------

Oh - so I've discovered the backgroundpicture should be picturebackground. But what about the description?

Edited by Kydoimos

Share this post


Link to post
Share on other sites

Yeah man, it's crazy; I tried that, and still not working! I'll have to have another look tomorrow. Is your example working on the Dev Branch?

---------- Post added at 00:41 ---------- Previous post was at 00:19 ----------

Does it matter whereabouts in the description.ext the CfgDebriefing goes?

Share this post


Link to post
Share on other sites

Here is a template mission pbo for stable branch - not running dev.

It doesn't matter where you put cfgBriefing.

It shows how to use BIS_fnc_endMission but has much more - briefing, loadscreens, overview, tasks, video, establishing shot so you can do whole mission presentation.

https://dl.dropboxusercontent.com/u/37698503/BIS_fnc_endMission.Stratis.pbo

Share this post


Link to post
Share on other sites

You have Win1 placed in description.ext root, it should be within CfgDebriefing class:

class CfgDebriefing
{
class Win1
{
	...
};
};

Share this post


Link to post
Share on other sites

Ok, thanks man, I'll try that. Do you think it could be a problem with Dev Branch? I'll have a fiddle with it and see what happens. Thanks ever so for your help!

---------- Post added at 10:03 ---------- Previous post was at 10:01 ----------

Hi Moricky, sorry, I didn't make it clear in my first post - it is in the CfgDebriefing class! It was below another entry for 'class Lose1' - I just copied and pasted - so missed out the root! But yeah - that would've explained it. Still having trouble though!

---------- Post added at 10:05 ---------- Previous post was at 10:03 ----------

So, this is what I have:

class CfgDebriefing

{

class win1

{

title = "Mission Completed";

subtitle = "Excellent Job!";

description = "You were successfully successful!";

pictureBackground = "";

picture = "b_inf";

pictureColor[] = {0.13,0.41,0.87,1};

};

Share this post


Link to post
Share on other sites

When trying your code locally, everything works fine. Is it possible you might be editing wrong description.ext? Check if your CfgDebriefing shows up in config viewer under missionConfigFile root.

Share this post


Link to post
Share on other sites

I'll check it out Moricky and get back to you - thanks, but everything else in the description.ext works! Sounds, identities, etc. - very strange.

Share this post


Link to post
Share on other sites

Hey! Got it working! Don't hate me, but all it was was that I had an extra }; between my lose1 and my win1 classes. Sorry to waste everyone's time. Major thanks to all of you who looked into it for me. I do appreciate it!

Share this post


Link to post
Share on other sites
Hey! Got it working! Don't hate me, but all it was was that I had an extra }; between my lose1 and my win1 classes. Sorry to waste everyone's time. Major thanks to all of you who looked into it for me. I do appreciate it!

hey mate, not sure if you know this already but here is a free tool which helps me a lot when I get malfunctions or errors with my editing.

notepad++ -> http://notepad-plus-plus.org/

normal when you doing something wrong in your scripting the game will give you an error box read it and look at the bottom of that box it will state what error you have and what is missing, and on the very end of the error it will say which exact line the error is occurring on.

edit your file with notepad++ and it will give you the line numbers in the file so you can go strait to were the problem is, saved me a bunch of times a lot ;-)

best of regards

Share this post


Link to post
Share on other sites

LiquitHQ - very, very helpful - thanks so much matey! :p I feel like such an idiot when I make oversights like the above!

Share this post


Link to post
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
Sign in to follow this  

×