Oni Central Forum

A forum for the Oni community

You are not logged in.

#1 03/26/13 07:03

breech
Member
Registered: 03/26/13

Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

I've almost completed a mod that gives the Deadly Brain a voice. The only problem is, the cut scene continues through the new audio and game play resumes.

here is the level logic:

	sound_dialog_play brain07final
	sleep 200 

I've tried using different sleep values and "sound_dialog_play_block pause" but they made no difference.
Anyone know how to achieve this?

Last edited by breech (03/26/13 07:03)

Offline

#2 03/26/13 09:03

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

Code gets executed right after the *start* of sound_dialog_play.
If the brain talks for 900 frames then the sleep should be 1100 frames (900+200) for correct timing.
(Of course this works only if you didn't separated (forked) cutscene and that new dialog.)

Block is used when a dialog follows another dialog, e.g.

sound_dialog_play c00_01_66shinatama
sound_dialog_play_block c00_01_67shinatama
sound_dialog_play_block c00_01_68shinatama

Offline

#3 03/27/13 04:03

breech
Member
Registered: 03/26/13

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

Extending the sleep has no effect. The problem im having is that the (longer) sound continues playing but the subtitles are only shown briefly. I guess I want to extend the subtitle time.
It would be nice to be able to click through the subtitles too. any ideas on that?

Here's the full code:


# BRAIN ROUND 1
func void brain_round_1(string ai_name)
{
    ai2_allpassive 1
    turret_deactivate 20
    input 0
    begin_cutscene jello
    #sound_music_start atm_cl11 0.75
    sound_ambient_start deadlybrain_sound 1.0
    sleep 60
    cm_interpolate brain_off_1b 0
    sleep 30
    cm_interpolate brain_off_1a 800
    sleep 5
    trig_show 202
    trig_show 204
    trig_speed 202 .2
    trig_speed 204 .2
    trig_hide 2023
    trig_hide 2013
    cinematic_start (SHINtalking, 180, 180, 16, 3, 20, true)
    sound_dialog_play c00_01_106Shinatama
    sound_dialog_play_block pause
    sound_dialog_play c00_01_107Shinatama
    sound_dialog_play_block pause
    sleep 30
    sound_dialog_play c00_01_108Shinatama
    sound_dialog_play_block pause
    cinematic_stop(SHINtalking, 16, 20)
    cm_interpolate_block brain_closeup 0
    sleep 30
    sound_dialog_play brain07final
    sleep 200
    sound_music_stop atm_cl11
    cm_reset
    end_cutscene
    input 1
    sleep 90
    ai2_allpassive 0
    save_point_4
    console_reset 21
    console_reset 22
    console_reset 23
    console_reset 24
}

Last edited by breech (03/27/13 05:03)

Offline

#4 03/27/13 07:03

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

"Extending the sleep has no effect." Maybe you are editing the original bsl file and not the one in edition?

I don't think that subtitle time can be increased or decreased: there's no time argument for "sound_dialog_play" like for "message".
It seems that a subtitle is shown as long as its corresponding sound plays, so there shouldn't be a problem.

Information on subtitles can be found here: http://wiki.oni2.net/OBD_talk:SUBT
(That wiki page should be probably moved to a non-talk page so it can be found more easily.)

If you want I can test your new SNDD file.

Last edited by paradox-01 (03/27/13 07:03)

Offline

#5 04/01/13 05:04

breech
Member
Registered: 03/26/13

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

Yes, I might get you to test it thanks. Is there PM's on this board? I cant seem to find any option..

Offline

#6 04/01/13 05:04

paradox-01
Member
From: Germany
Registered: 01/14/07

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

While logged-in you can click on a User's name and then click on Send email.

Offline

#7 04/01/13 11:04

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

I probably should have spoken up sooner, just to mention that I have the same issue on my Mac.  Cutscene subtitles only appear briefly.  If I had to make a wild guess, I'd say that the higher frame rate of the game on modern computers might be to blame.  Are you on a Mac, by any chance, breech?


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

#8 04/01/13 12:04

TOCS
Member
From: Denmark
Registered: 04/04/07

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

Iritscen wrote:

I probably should have spoken up sooner, just to mention that I have the same issue on my Mac.  Cutscene subtitles only appear briefly.  If I had to make a wild guess, I'd say that the higher frame rate of the game on modern computers might be to blame.  Are you on a Mac, by any chance, breech?

Then enable VSYNC. And if you don't like the increased input lag that comes with it, run it with RivaTuner, and cap the frame rate at 59. That way you'll have smooth gameplay with no flickering on the screen, and heavily (if not non-existent) decreased input lag.

Offline

#9 04/01/13 12:04

Iritscen
Moderator
From: NC, USA
Registered: 10/22/07

Re: Mod: Deadly Brain #1 Voice - 90% complete. Need help with cutscene

Yes, I was intending to try turning on vsync, and just haven't remembered to do it yet.


Check out the Anniversary Edition Seven at ae.oni2.net!

Offline

Board footer

Powered by FluxBB