OFPEC Forum

Editors Depot - Mission Editing and Scripting => OFP - Editing/Scripting General => Topic started by: Killzone on 13 Jan 2006, 00:10:35

Title: Help please
Post by: Killzone on 13 Jan 2006, 00:10:35
Can someone point me in the right direction to learning how to change the text that comes up right before a mission starts. I notice a lot of people have there own text there.  I am talking about the screen that is all black and says: "Get Ready" along with the date.  

Thanks
Title: Re:Help please
Post by: Killzone on 13 Jan 2006, 00:15:00
Forget it. I figured it out. I was having problems but just figured it out so YEA FOR ME!!!
Title: Re:Help please
Post by: yankme on 13 Jan 2006, 00:26:33
thats a good ? i beleive its defaut "Get Ready" i dont know if theres a tut on that but you need Microsoft Excel to do it. now if you putting sound in you file all you have to do is add to more strings,
line A put STRM_IntroText ,then in line B put heres johny
next line STRM_MissionText   then put in B 11:00hours ,,sorry i can exsplain it any better but i could send you a file and you would see. but it will look like this

 
Quote
    A                             B
[1]LANGUAGE    English   
[2]STRM_IntroText   Somewhere in the desert   
[3]STRM_MissionText   Resuce One   
Title: Re:Help please
Post by: nominesine on 13 Jan 2006, 00:50:26
Well, even if Killzone has solved the problem Yankme's entry needs clarification. It's not that complicated.

The headlines for intros, missions and outros are set in the description.ext. Open the description in notepad or similar program. Add these two lines at the top of the document:

Code: [Select]
onloadintro="your text here"
onloadmission="your text here"

What's written between the quotes in onloadintro will be shown BEFORE the intro loads, but also BEFORE any otro (win or lose).

What's written between the quotes in onloadmission will be shown AFTER any intro, but BEFORE the briefing screen pops up.

The excell document Yank is refering too is simply a string table. Inside his mission there still has to be a description.ext file that says

Code: [Select]
onloadintro="STRM_missionText"
onloadmission="STRM_missionText"

Otherwise his example will not work.

EDIT: By leaving the space between the quotes blank, you will not have anything but time and date, no "Get Ready", no nothing. The time and date will always be shown, though. Afaik there's no way to remove them.
Title: Re:Help please
Post by: yankme on 13 Jan 2006, 00:54:48
you right nominesine lol i took the long road home  ;)
theres know A++ or C++ here , ive learned more from tareing things apart
Title: Re:Help please
Post by: Planck on 13 Jan 2006, 01:07:38
Nawww, you don't need excel for the stringtable.......just use notepad.


Planck
Title: Re:Help please
Post by: Pilot on 13 Jan 2006, 01:36:22
...how?

-Pilot
Title: Re:Help please
Post by: Planck on 13 Jan 2006, 01:45:57
Right click the stringtable and choose Open With.......

Find notepad in the list ........and away you go

Alternately use the Send to menu feature to send it to notepad.......you need to have a shortcut to notepad in the SendTo folder in the Windows folder.


Planck
Title: Re:Help please
Post by: Pilot on 13 Jan 2006, 01:52:21
...oh, so simple. :P

Thanks. :)

-Pilot
Title: Re:Help please
Post by: Triggerhappy on 13 Jan 2006, 02:54:19
sure you can open one in notepad, but can you make one from scratch with it?
Title: Re:Help please
Post by: Pilot on 13 Jan 2006, 03:00:27
Sure, just right click-New-Text Document, and name it stringtable.csv

-Pilot
Title: Re:Help please
Post by: The-Architect on 13 Jan 2006, 04:39:26
You guys really seem to be overcomplicating this. Granted stringtable text is more readily maniulated if you want different fonts but surely all this guy needs is the,

onloadintro = " "

and

onloadmission = " "

commands that go in the description.ext.

Forgive me if I misunderstood his question.
Title: Re:Help please
Post by: nominesine on 13 Jan 2006, 06:42:13
surely all this guy needs is the onloadintro and onloadmission that go in the description.ext.

As I said a couple of hours ago... but no one seems to listen to me any more *sigh*
Title: Re:Help please
Post by: Killzone on 13 Jan 2006, 07:25:48
Wow!!   I really appreciate all the replies. I also use notepad for everything it just so much easier in my opinion.

Hey maybe you can help me with another problem that is probably simple but I just cant find how to solve it. I have been practicing with cut scenes and learning how to script cameras and such from all the great tuts on this site. Well anyway I have a cut scene at the begining of a mission that plays music is there a way I can stop this music a script? After the cutscene the music continues which I dont want. I checked the comref but its tough when you dont know what your looking for


Thanks people  ;D
Title: Re:Help please
Post by: Durbs on 13 Jan 2006, 07:40:19
u tried fademusic?

1 fademusic 0

 :D

Title: Re:Help please
Post by: nominesine on 13 Jan 2006, 14:27:03
the above example will fade the music volume to 0 (that's what the second number means) in 1 minute (the meaning of the first number)
Title: Re:Help please
Post by: Pilot on 13 Jan 2006, 21:07:43
Uh, I believe that is in seconds, not minutes.

-Pilot
Title: Re:Help please
Post by: Durbs on 14 Jan 2006, 04:39:07
yes it's seconds.
 :D
Title: Re:Help please
Post by: Killzone on 14 Jan 2006, 21:57:23
Yea it was making me angry  >:( because it kept cutting out sooo fast but then I realized it was in seconds not minutes. It does what I wanted so thanks again  ;D