Home   Help Search Login Register  

Author Topic: End dialogue  (Read 581 times)

0 Members and 1 Guest are viewing this topic.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
End dialogue
« on: 29 Aug 2004, 22:15:55 »
You know when you die you get that little cutscene?  (onPlayerKilled.sqs, I know about that.)     You know there is red writing at the top "You are dead" and a dialogue (End/Continue or whatever it is) at the bottom?      

Well where is all that stuff buried in the OFP files?  Can I get at it?    It's "called" by the enableEndDialogue command:  other than that it doesn't appear in the onPlayerKilled script.
Plenty of reviewed ArmA missions for you to play

Offline Artak

  • The old beanbag shaker
  • Former Staff
  • ****
  • You want to talk about it, yes?
    • OFP Team Finlanders
Re:End dialogue
« Reply #1 on: 29 Aug 2004, 22:49:13 »
Maybe you can find out something about this by depboing kegety's spectator script. It has a similar dialogue though it's not the one you're talking about. Just a long shot..
Not all is lost.

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:End dialogue
« Reply #2 on: 29 Aug 2004, 23:08:59 »
Don't know if it helps any Macguba but the 'You are dead' text is defined in the stringtable.csv.


Planck
I know a little about a lot, and a lot about a little.

Offline General Barron

  • Former Staff
  • ****
  • Semper Fi!
Re:End dialogue
« Reply #3 on: 29 Aug 2004, 23:12:06 »
I believe that dialog is defined in the game's core config. So you couldn't change it in your missions; you could only modify it via editing the config, like the ECP of FDF. If I remember correctly, I think Kegety's spectator script is just a regular dialog called in the onplayerkilled.sqs, and after you close that dialog, the normal enableEndDialogue command is issued.

So basically, you can still do some cool stuff after the player is killed thru dialogs and stuff, but I don't think you can change the end/continue dialog without changing the game config.
HANDSIGNALS COMMAND SYSTEM-- A realistic squad-control modification for OFP
kexp.org-- The best radio station in the world, right here at home! Listen to John Richards!

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:End dialogue
« Reply #4 on: 29 Aug 2004, 23:41:09 »
I don't want to change it, I just want to lift it out and use it in a different context.      I think it should be possible to replicate it (or at least create what I want) using dialogues but I've never investigated them so I was hoping I could just "copy and paste".    Otherwise I have to figure out what font it is, and the size, and the exact colour yadda yadda yadda.

The quoteable quotes in stringtable.csv are not going to be an issue.

I'll look into the spectator script, that might help.  Thanks all.
Plenty of reviewed ArmA missions for you to play

Offline Igor Drukov

  • Contributing Member
  • **
  • Conscientious Subjector
Re:End dialogue
« Reply #5 on: 30 Aug 2004, 14:02:57 »
This dialogue is defined in the resource.cpp.

It is the class called "RscDisplayMissionEnd".
You'll also have to take a look at classes "RscDisplayBackgroundStripesDark" and "RscDisplayBackgroundStripes".

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:End dialogue
« Reply #6 on: 30 Aug 2004, 20:21:09 »
Ah, good, thank you. :thumbsup:

Where is resource.cpp and how do I open it?   I'm not familiar with .cpp or .bin files.
Plenty of reviewed ArmA missions for you to play

Offline dmakatra

  • Members
  • *
  • Better known as Armsty
Re:End dialogue
« Reply #7 on: 30 Aug 2004, 20:33:07 »
.cpps can be opened with notepad. Don't know .bin.

:beat: *Gets Shot* :beat:

Offline Planck

  • Honoured
  • Former Staff
  • ****
  • I'm never wrong ....I'm just not always right !
Re:End dialogue
« Reply #8 on: 30 Aug 2004, 21:36:33 »
I have a copy of the resource.bin converted to .cpp.

I could possibly send it to you or you can get Binview and convert it yourself.

I think you will find Binview in the Pending list in the Editors Depot.


Planck
I know a little about a lot, and a lot about a little.

Offline macguba

  • Former Staff
  • ****
    • macguba's operation flashpoint page
Re:End dialogue
« Reply #9 on: 31 Aug 2004, 00:35:09 »
OK I've done it.

I used the forum search function which got me a thread which led me to Price TFA's OFP Manager Tool from the Ed Depot, which I used to open the resource.bin.   (The binview thing in Pending didn't seem to have a download attached.)   Thanks to Igor Drugov I knew what to look for.     Found it, decided that I didn't need a dialogue, just a titleRsc, and copied the relevant bits (font, etc.) from the resource.bin into my description.ext.    

Thanks all.     :wave:

I'll leave this open for a day or so in case anybody wants to make an erudite comment.
« Last Edit: 31 Aug 2004, 00:36:09 by macguba »
Plenty of reviewed ArmA missions for you to play