massimilianogoi on 31/3/2008 at 01:07
I'm finishing a brief mission, just to demonstrate to myself to be able reaching the end of something :joke: .
I would like to add some simple .bik video to the end or the succes of my mission, but when Garret was spyed by some guards, the video doesn't plays, and the mission doesn't end...
Here is the script I used:
Inline Image:
http://img100.imageshack.us/img100/8587/playingendmoviecj0.jpgWhy??
Flux on 31/3/2008 at 13:48
Ok, more experienced users will give you more detailed answer for sure but in your script I don't see anything that indicates to finish the final objective to end the mission.(set goal to kgs success).
Is this script linked to another script? (the t3gameover flag). Komag tutorial is very clear about this section, setting up objectives.
Also for scripts I usually try to light a light or just simply trigger a message to ensure the script works, before trying something complex like playing an video.
Did you put the script on the ai that sees the player?
Another note, your other post about string tags might have something to do with this.
massimilianogoi on 31/3/2008 at 21:15
Quote Posted by Flux
Also for scripts I usually try to light a light or just simply trigger a message to ensure the script works, before trying something complex like playing an video.
And what you do for this? Please, tell me the exact procedure, I'm not skilled with scripts :P
Flux on 1/4/2008 at 18:25
This is what I did;
The script:
""Condition
when LinkedAI(myself) sees the player
Action
Set(blighton) to (true) on linked objects of (triggerscript)""
I placed this scripts on some ai. Select ai and select triggerscript link and shift-click on some light. Add property blighton to this light and set it off. Before setting the light off, give it some unique color so that you'll be sure when it lights.
When the ai sees the player, light will turn on. The action in the script can be found under properties. It just sets the property of light from off to on. All of the properties of all objects can be found in here, under this param.
So this doesn't solve your problem but it makes sure that ai does something when he sees the player. I just use this simple method to make sure my desired condition is working so that I can concentrate on the action part.
Edit: I checked the same script with play bik file and it works.
Check this (
http://www.ttlg.com/forums/showthread.php?t=95020&highlight=video+files) thread for more information about playing bik files.
Play bik files as action didn't work for me but play bik file, allow interruptions worked.(this is better as people can skip it anyway) Also be careful about the param type of the movie, it is explained in the thread I just linked.
Finally, just checking the obvious. Your script shows some death.bik, did you put that file in videotextures folder?
massimilianogoi on 4/4/2008 at 01:05
Quote Posted by Flux
This is what I did;
The script:
""Condition
when LinkedAI(myself) sees the player
Action
Set(blighton) to (true) on linked objects of (triggerscript)""
I've already donethis then, with screen tinting instead lights.
And the screen becomes black, but the video doesn't start... :erg:
Unfortunately, I've already readed and followed that tutorial before asking here.
Quote Posted by Flux
Finally, just checking the obvious. Your script shows some death.bik, did you put that file in videotextures folder?
Yes, of course! :laff:
massimilianogoi on 4/4/2008 at 01:57
Quote Posted by Flux
This is what I did;
The script:
""Condition
when LinkedAI(myself) sees the player
Action
Set(blighton) to (true) on linked objects of (triggerscript)""
I have tried again this way:
Inline Image:
http://img516.imageshack.us/img516/3769/failedyd1.jpgThe lights turns off, but the video doesn't start! :(
Flux on 4/4/2008 at 07:59
I think you skipped this step.
Quote:
Click [String] and enter the filename of your movie. There's a trick to this, though. Let's say you made a movie with the filename yourmovie_engl_none_30.bik and put it in the VideoTextures folder like I advised you to earlier. Logically you'd put "yourmovie_engl_none_30.bik" (minus the quotation marks) as the string value, because that's the name of the file, right?
That isn't the way this works. Instead, the correct string value would be "yourmovie.bik", minus the quotes of course. If you forget to leave out "_engl_none_30" here, the video file won't play.
I have the exact same script and it plays the video fine. I think you are missing one important step as explained above in the thread I linked.
In my script instead of "final_cutscene_engl_none_30.bik", I typed "final_cutscene" only.
In your script I see "drepts_tale_engl_none_30.bik". It should be "drepts_tale" only
massimilianogoi on 4/4/2008 at 10:27
Yeah, success!! :D
You were right!!
You have to excuse me, but I'm not an English native, cuz sometime reading deep should be for me expensive...
Now I have another objective: the one of terminate the mission, in fail, after the video.. How can I do this?