Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Script Help "AddEffectVoice" blackbox
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#1
"AddEffectVoice" blackbox

Hey there. I'm struggling with a very annoying problem, namely every time I enter an area that's supposed to start sort - of dialogue thing (using AddEffectVoice function here) my game just freezes, and shows a blackbox. (The level loads up normally without any problems)

Here is how I start the script:

PHP Code: (Select All)
void OnStart()
{

AddEntityCollideCallback("Player""RichardsTalk_1""RichardsDialogue"true1);



PHP Code: (Select All)
void RichardsDialogue(string &in asParentstring &in asChildint alState)
{

    
AddEffectVoice("placeholder""""Voices""CH02L03_Richards01"true"Area_Focus"510);
    
AddEffectVoice("placeholder""""Voices""CH02L03_Richards02"true"Area_Focus"510);
    
AddEffectVoice("placeholder""""Voices""CH02L03_Richards03"true"Area_Focus"510);
    
AddEffectVoice("placeholder""""Voices""CH02L03_Richards04"true"Area_Focus"510);
    
AddEffectVoice("placeholder""""Voices""CH02L03_Richards05"true"Area_Focus"510);
    
SetEffectVoiceOverCallback("addquest");
    
}

void addquest()
{
   
    
AddQuest("Quest_Orb""DestroyOrb");
   


The category name matches with the .lang file, as well as the entries, and area. The voice that will be played is not recorded yet, so i'm using a placeholder, as you can see. I tried numerous ways to fix it, and none helped. What's more, if I delete the "AddEffectVoice" from the function, it will work just fine once i enter the area.

The log seems to be empty about that blackbox as well.

Spoiler below!
Version 1.31

-------- THE HPL ENGINE LOG ------------
Creating Engine Modules
--------------------------------------------------------
Creating graphics module
Creating system module
Creating resource module
Creating input module
Creating sound module
Creating physics module
Creating ai module
Creating gui module
Creating generate module
Creating haptic module
Creating scene module
--------------------------------------------------------

Initializing Resources Module
--------------------------------------------------------
Creating loader handlers
Creating resource managers
Adding loaders to handlers
--------------------------------------------------------

Initializing Graphics Module
--------------------------------------------------------
Init lowlevel graphics: 1600x900 disp:0 bpp:32 fs:0 ms:0 gpufmt:2 cap:'- Obsessed by Cruelty - Loading...' pos:(-1x-1)
Setting video mode: 1600 x 900 - 32 bpp
Init Glew...OK
Setting up OpenGL
  Vendor: ATI Technologies Inc.
  Renderer: AMD Radeon HD 7800 Series
  Version: 4.4.13283 Compatibility Profile Context 14.501.1003.0
  Max texture image units: 32
  Max texture coord units: 16
  Max user clip planes: 8
  Two sided stencil: 1
  Vertex Buffer Object: 1
  Anisotropic filtering: 1
  Max Anisotropic degree: 16
  Multisampling: 1
  Texture compression: 1
  Texture compression S3TC: 1
  Auto generate MipMaps: 1
  Render to texture: 1
  Max draw buffers: 8
  Max color render targets: 8
  Packed depth-stencil: 1
  Texture float: 1
  GLSL Version: 4.40
  ShaderModel 2: 1
  ShaderModel 3: 0
  ShaderModel 4: 1
  OGL ATIFragmentShader: 1
Setting up G-Bugger: type: 0 texturenum: 3
Adding engine materials
Initializing DevIL
  Vendor String: Abysmal Software
  Version String: Developer's Image Library (DevIL) 1.6.8pre Aug 12 2006
  Version Number: 168
  ***** WARNING *****
  Expecting IL version 178 and found version 168
  Cube Maps may not load correctly in this version and will not render correctly in game
  Please use the included version of libIL and not a custom build if you have issues
  ***** WARNING *****
Adding engine post effects
--------------------------------------------------------

Initializing Sound Module
--------------------------------------------------------
Initializing OpenAL
  Available OpenAL devices:
   0. Generic Software on Głośniki (Realtek High Definition Audio)(OpenAL default)
   1. Generic Software on Realtek Digital Output (Realtek High Definition Audio)
  Trying to open device 'Generic Software on Głośniki (Realtek High Definition Audio)'... Success!
  Number of mono sources: 32
  Streaming setup: 4 Buffers x 262144 bytes each
--------------------------------------------------------

Initializing Game Module
--------------------------------------------------------
Adding engine updates
Initializing script functions
--------------------------------------------------------

User Initialization
--------------------------------------------------------
ERROR: Couldn't create font 'font_default.fnt'
--------------------------------------------------------

Game Running
--------------------------------------------------------
ERROR: Couldn't texture 'game_loading_catacombs.jpg'
ERROR: Couldn't texture 'game_loading_catacombs.jpg'
ERROR: Couldn't texture 'game_loading_catacombs.jpg'
WARNING: Could not find language file entry 'Custom Map'
WARNING: Could not find language file entry 'Custom Map'
WARNING: Could not find language file entry 'InvertGamepadLook'
WARNING: Could not find language file entry 'InvertGamepadLookTip'
WARNING: Could not find language file entry 'GamepadLookSensitivity'
WARNING: Could not find language file entry 'GamepadLookSensitivityTip'
WARNING: Could not find language file entry 'Lean'
WARNING: Could not find language file entry 'Custom Map'
-------- Loading map 'menu_bg.map' ---------
ERROR: Could not open binary file 'E:/STEAAAAM/SteamApps/common/Amnesia The Dark Descent/ObsessedByCruelty/main_menu/menu_bg.map_cache'
ERROR: Could not map cache file 'E:/STEAAAAM/SteamApps/common/Amnesia The Dark Descent/ObsessedByCruelty/main_menu/menu_bg.map'.ERROR: Couldn't find 0-face '../../../../../_pos_x', for cubemap '../../../../../' in path: '../../../../../'
    MeshEntity Loading: 0 ms
    Primitive Loading: 114 ms
    Decal Loading: 0 ms
    Object Combining: 0 ms
    Compilation: 0 ms
    Combining: 30 ms
     Sorting: 30 ms
     Meshes: 0 ms
     Bodies: 0 ms
  Static Objects: 144 ms
  Entities: 0 ms
  Compilation: 0 ms
  Total: 148 ms
  Meshes created: 2
  Bodies created: 2
-------- Loading complete ---------
Setting profile: 'New Player' Path: 'C:\Users\Home\Documents/Amnesia/Obsessed by Cruelty/New Player/'
WARNING: Could not find language file entry 'Custom Map'
WARNING: Could not find language file entry 'Custom Map'
WARNING: Could not find language file entry 'InvertGamepadLook'
WARNING: Could not find language file entry 'InvertGamepadLookTip'
WARNING: Could not find language file entry 'GamepadLookSensitivity'
WARNING: Could not find language file entry 'GamepadLookSensitivityTip'
WARNING: Could not find language file entry 'Lean'
WARNING: Could not find language file entry 'Custom Map'
ERROR: Couldn't create script 'ObsessedByCruelty/maps/ch02/global.hps'
ERROR: Global script 'ObsessedByCruelty/maps/ch02/global.hps' could not be created!
-------- Loading map '04_vault.map' ---------
ERROR: Could not open binary file 'E:/STEAAAAM/SteamApps/common/Amnesia The Dark Descent/ObsessedByCruelty/maps/ch02/04_vault.map_cache'
ERROR: Could not map cache file 'E:/STEAAAAM/SteamApps/common/Amnesia The Dark Descent/ObsessedByCruelty/maps/ch02/04_vault.map'.ERROR: Couldn't find 0-face '../../../../../_pos_x', for cubemap '../../../../../' in path: '../../../../../'
ERROR: Sampler aDiffuseMap does not exist, could not bind it to unit 0
ERROR: Sampler aDiffuseMap does not exist, could not bind it to unit 0
    MeshEntity Loading: 1469 ms
    Primitive Loading: 374 ms
    Decal Loading: 67 ms
    Object Combining: 0 ms
    Compilation: 44 ms
    Combining: 764 ms
     Sorting: 223 ms
     Meshes: 16 ms
     Bodies: 525 ms
  Static Objects: 2721 ms
WARNING: Could not find child with unique ID 1 to attach to entity 'safety_normal_vert_1_Body_1' in 'entities/door/safety_normal_vert/safety_normal_vert_valve.ent'
ERROR: Sampler aDiffuseMap does not exist, could not bind it to unit 0
ERROR: Sampler aDiffuseMap does not exist, could not bind it to unit 0
  Entities: 1783 ms
  Compilation: 13 ms
  Total: 4536 ms
  Meshes created: 69
  Bodies created: 32
-------- Loading complete ---------
ERROR: Sampler aGoboMap does not exist, could not bind it to unit 5
ERROR: Sampler aGoboMap does not exist, could not bind it to unit 5
ERROR: Sampler aGoboMap does not exist, could not bind it to unit 5
ERROR: Sampler aGoboMap does not exist, could not bind it to unit 5

(This post was last modified: 07-08-2015, 12:58 AM by Slanderous.)
07-08-2015, 12:53 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#2
RE: "AddEffectVoice" blackbox

If you make the lines into comments, will it still crash?

If you change "placeholder" into an actuall .ogg file will it still crash?

What if "SetEffectVoiceOverCallback" was made into a comment?

Trying is the first step to success.
07-08-2015, 01:30 AM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#3
RE: "AddEffectVoice" blackbox

(07-08-2015, 01:30 AM)FlawlessHappiness Wrote: If you make the lines into comments, will it still crash?

If you change "placeholder" into an actuall .ogg file will it still crash?

What if "SetEffectVoiceOverCallback" was made into a comment?

If I make all the lines as comments, including "SetEffectVoiceOverCallback" it will not crash, I tried that earlier.

Yes, it still crashes if I add the ".ogg" extension.
07-08-2015, 01:35 AM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#4
RE: "AddEffectVoice" blackbox

(07-08-2015, 01:35 AM)Lazzer Wrote: Yes, it still crashes if I add the ".ogg" extension.

I meant giving it an ACTUAL file. An audio file. Not just saying the name of it. Have a file in your custom story named "placeholder.ogg" or something.

Trying is the first step to success.
07-08-2015, 02:37 AM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#5
RE: "AddEffectVoice" blackbox

(07-08-2015, 02:37 AM)FlawlessHappiness Wrote:
(07-08-2015, 01:35 AM)Lazzer Wrote: Yes, it still crashes if I add the ".ogg" extension.

I meant giving it an ACTUAL file. An audio file. Not just saying the name of it. Have a file in your custom story named "placeholder.ogg" or something.

That's what I have - I took one of the whispers from insanity, and made it into a "custom" sound that should work as a placeholder.

Also, just to state that clear - it's not a custom story, it's a full conversion.
07-08-2015, 01:11 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#6
RE: "AddEffectVoice" blackbox

What if all are comments, except for SetEffectVoiceOverCallback?

Trying is the first step to success.
07-08-2015, 02:23 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#7
RE: "AddEffectVoice" blackbox

(07-08-2015, 02:23 PM)FlawlessHappiness Wrote: What if all are comments, except for SetEffectVoiceOverCallback?

It does not crash if I set everything as a comment, except for "SetEffectVoiceOverCallback".
07-08-2015, 03:00 PM
Find
FlawlessHappiness Offline
Posting Freak

Posts: 3,980
Threads: 145
Joined: Mar 2012
Reputation: 171
#8
RE: "AddEffectVoice" blackbox

Great!
Just had to be sure that it was the Voices that created the crash...

No idea then. It does seem weird. Do you have other voices that work?

Trying is the first step to success.
07-08-2015, 04:34 PM
Find
Slanderous Offline
Posting Freak

Posts: 1,606
Threads: 78
Joined: Dec 2012
Reputation: 63
#9
RE: "AddEffectVoice" blackbox

(07-08-2015, 04:34 PM)FlawlessHappiness Wrote: Great!
Just had to be sure that it was the Voices that created the crash...

No idea then. It does seem weird. Do you have other voices that work?

No. I only tried to make this dialogue. Perhaps it's something wrong with the full conversion itself?
07-08-2015, 04:41 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#10
RE: "AddEffectVoice" blackbox

Take one line from the original game, one AddEffectVoice call, try it in your mod and if it works fine, start changing the values one by one to what you want until you find the error.

07-08-2015, 05:55 PM
Find




Users browsing this thread: 1 Guest(s)