The following warnings occurred:
Warning [2] count(): Parameter must be an array or an object that implements Countable - Line: 906 - File: showthread.php PHP 7.2.24-0ubuntu0.18.04.17 (Linux)
File Line Function
/showthread.php 906 errorHandler->error



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


Messages In This Thread
"AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 12:53 AM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 01:35 AM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 01:11 PM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 03:00 PM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 04:41 PM
RE: "AddEffectVoice" blackbox - by Daemian - 07-08-2015, 05:55 PM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 06:23 PM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 09:11 PM
RE: "AddEffectVoice" blackbox - by Daemian - 07-08-2015, 09:14 PM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-08-2015, 09:50 PM
RE: "AddEffectVoice" blackbox - by DnALANGE - 07-08-2015, 11:46 PM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-09-2015, 01:22 AM
RE: "AddEffectVoice" blackbox - by Slanderous - 07-11-2015, 08:12 PM



Users browsing this thread: 1 Guest(s)