Script problem - Printable Version +- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum) +-- Forum: SOMA (https://www.frictionalgames.com/forum/forum-55.html) +--- Forum: User created content (https://www.frictionalgames.com/forum/forum-79.html) +---- Forum: Development (https://www.frictionalgames.com/forum/forum-82.html) +---- Thread: Script problem (/thread-31427.html) |
Script problem - Nanatsumi - 10-24-2015 What's wrong in here? //////////////////////////// // Run first time starting map void OnStart() { Music_PlayExt("01_04_airlock", false, 1.0f, 1.0f, 9.0f, 0.0f, eMusicPrio_MinorEvent, true); Player_FadeRollTo(0.2, 1, 0.1); Player_SetFlashlightDisabled(true); } SOMA says that don't have "matching signatures" RE: Script problem - WALP - 10-24-2015 try adding these 2 below the other helpers that are included at the top of the script: #include "helper_player.hps" #include "custom_depth/helper_custom_depth_audio.hps" RE: Script problem - Nanatsumi - 10-24-2015 (10-24-2015, 11:04 AM)WALP Wrote: try adding these 2 below the other helpers that are included at the top of the script: I trying everything, but nothing helps RE: Script problem - WALP - 10-24-2015 that does not make a whole lot of sense, could I get the exact error you are getting, the full text? RE: Script problem - Nanatsumi - 10-24-2015 (10-24-2015, 11:25 AM)WALP Wrote: that does not make a whole lot of sense, could I get the exact error you are getting, the full text? Version 1.00 -------- THE HPL ENGINE LOG ------------ Creating Engine Modules -------------------------------------------------------- Creating job manager with 1 threads and 1024 jobs 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 Creating script module Creating lipsync module -------------------------------------------------------- Initializing Resources Module -------------------------------------------------------- Creating loader handlers Creating resource managers Adding loaders to handlers -------------------------------------------------------- Initializing Graphics Module -------------------------------------------------------- Init lowlevel graphics: 1366x768 bpp:32 rr: 30 fs:0 ms:0 driver: 0 cap:'Erika Loading...' pos-1x-1) Available drivers: (0) - 'windows' (1) - 'dummy' Creating window: (-1,-1) 1366 x 768 - 32 bpp flags: 3 Setting display mode: 1366 x 768 - 32 bpp 30 hz Init Glew...OK Setting up OpenGL Vendor: ATI Technologies Inc. Renderer: AMD Radeon HD 6480G Version: 4.3.12618 Compatibility Profile Context 13.251.9001.1001 Max texture image units: 16 Max texture coord units: 16 Max texture buffer size: 268435456 Max texture array slices: 2048 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 Texture compression 3DC: 1 Texture sRGB: 1 Geometry Instancing: 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.30 ShaderModel 2: 1 ShaderModel 3: 1 ShaderModel 4: 1 Max vertex uniforms: 16384 Max fragment uniforms: 16384 OGL ATIFragmentShader: 1 Tesselation: 1 MultiBindTex: 0 Initializing DevIL Vendor String: Abysmal Software Version String: Developer's Image Library (DevIL) 1.7.8 Version Number: 178 Adding engine materials Adding engine post effects -------------------------------------------------------- Initializing Sound Module -------------------------------------------------------- Initializing FMOD. -------------------------------------------------------- Initializing Game Module -------------------------------------------------------- Adding engine updates -------------------------------------------------------- User Initialization -------------------------------------------------------- -------------------------------------------------------- Game Running -------------------------------------------------------- Loading keybinds - file version:0 New default keybindings detected - trashing old keybindings. Loading keybinds - file version:5 Failed parsing of XML document C:/Program Files/SOMA/maps/_e3/_e3_main_menu/_e3_main_menu.voice: file not found Failed parsing of XML document C:/Program Files/SOMA/maps/_e3/_e3_main_menu/_e3_main_menu.lang: file not found Failed parsing of XML document maps/_e3/_e3_main_menu/global_voice.voice: file not found Failed parsing of XML document maps/_e3/_e3_main_menu/global_voice.lang: file not found ERROR: Skipping map specific voice file 'maps/_e3/_e3_main_menu/_e3_main_menu.voice', not found! -------------- SAVE THREAD INIT ----------------- -------------- SAVE THREAD COMPLETED ----------------- Failed parsing of XML document maps/_e3/_e3_main_menu/global_voice.voice: file not found Failed parsing of XML document maps/_e3/_e3_main_menu/global_voice.lang: file not found ERROR: Changing map to 'SOMA_NEW_ADVENTURE_1.hpm' while streaming map '_e3_01_02'. Stream will be closed ERROR: Could not open binary file 'C:/Program Files/SOMA/mods/E3/maps/SOMA_NEW_ADVENTURE_1.map_cache' ERROR: Couldn't build script 'C:/Program Files/SOMA/mods/E3/maps/SOMA_NEW_ADVENTURE_1.hps'! ------- SCRIPT OUTPUT BEGIN -------------------------- SOMA_NEW_ADVENTURE_1.hps (44, 2) : INFO : Compiling void cScrMap::OnStart() SOMA_NEW_ADVENTURE_1.hps (47, 6) : ERR : No matching signatures to 'Player_FadeRollTo(const double, const int, const double)' SOMA_NEW_ADVENTURE_1.hps (48, 6) : ERR : No matching signatures to 'Player_SetFlashlightDisabled(const bool)' helper_audio.hps (908, 1) : INFO : Compiling void Voice_ClearQueued() helper_audio.hps (913, 15) : WARN : Signed/Unsigned mismatch helper_audio.hps (1682, 1) : INFO : Compiling void Dialog_StartConversation_PosBased(const tString&in, const tString&in, const tString&in, const tString&in = "", float = 0.5f, cVector3f = cVector3f_Zero) helper_audio.hps (1708, 48) : WARN : The operand is implicitly converted to handle in order to compare them helper_imgui.hps (1922, 1) : INFO : Compiling void GetFontWordWrapRows(const cImGuiFont&in, float, const tString&in, float, tWString[]&out) helper_imgui.hps (1, 1) : WARN : Argument cannot be assigned. Output will be discarded. helper_imgui.hps (1930, 1) : INFO : Compiling void GetFontWordWrapRowsW(const cImGuiFont&in, float, const tWString&in, float, tWString[]&out) helper_imgui.hps (1, 1) : WARN : Argument cannot be assigned. Output will be discarded. helper_ai.hps (172, 1) : INFO : Compiling void Agent_SetAutoDisableWhenOutOfSightActive(const tString&in, bool, float) helper_ai.hps (182, 16) : WARN : Signed/Unsigned mismatch helper_ai.hps (197, 1) : INFO : Compiling void Agent_SetAutoDisableCallback(const tString&in, const tString&in) helper_ai.hps (207, 16) : WARN : Signed/Unsigned mismatch ------- SCRIPT OUTPUT END ---------------------------- FATAL ERROR: Could not load script file 'maps/_e3/_e3_main_menu/SOMA_NEW_ADVENTURE_1.hps'! SOMA_NEW_ADVENTURE_1.hps (47, 6) : ERR : No matching signatures to 'Player_FadeRollTo(const double, const int, const double)' SOMA_NEW_ADVENTURE_1.hps (48, 6) : ERR : No matching signatures to 'Player_SetFlashlightDisabled(const bool)' RE: Script problem - WALP - 10-24-2015 Based on that log, it seems it cannot recognize the Player functions, which only work if you include helper_player.hps, so my fix should have worked. Can I see your entire script? maybe you did not include it correctly? |