Scaleform Always Opens Untitled Project
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report
Hi guys,
I hope someone can help me with an issue i'm having getting a custom main menu into my game. I've created a simple menu with a start and quit menu using scaleform, and i've followed these tutorials about implementing it into my game:
https://www.youtube.com/watch?v=zWEm-Kdlekg
However i get the following logs when trying to test my game
Atlantic Square / Scaleform Studio: Error: Could not load project 'AtcSq_MainMenu.s2dproj'!
Atlantic Square / Scaleform Studio: Unable to load s2dproj!
Atlantic Square: Access violation (0xc0000005) in build 9eb7106118bddd9554fec541c319f8884fceb848
accessing address 0000000000000000 from 000007FEAAA8916C
Build identifier: `9eb7106118bddd9554fec541c319f8884fceb848`
Product version: `Release (1.4.728.0)`
Thread name: `main`
Callstack
----------------------------------------
0x40645154 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\foundation\error\callstack_win.cpp(286): stingray::callstack::exception_call_stack
0x4064579d d:\buildagent\work\77aa4c8074a56d3f\git\runtime\foundation\error\exception_handling_win.cpp(97): stingray::exceptions::exception_filter
0x40bc0f7e d:\buildagent\work\77aa4c8074a56d3f\git\runtime\main\windows\main.cpp(72): `safe_run'::`1'::filt$0
0x40b7e367 f:\dd\vctools\crt_bld\self_64_amd64\crt\prebuild\misc\amd64\chandler.c(170): __C_specific_handler
0x76e291ad RtlDecodePointer
0x76e18baf RtlUnwindEx
0x76e4db38 KiUserExceptionDispatcher
0xaaa8916c public: float __cdecl Scaleform::Matrix2x4<float>::GetRotation(void)const __ptr64
0xeadadcee lua_newstate
0xead6456d lua_pcall
0x402dfdd4 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\application\script\lua_environment.cpp(632): stingray::LuaEnvironment::call
0x402e0053 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\application\script\lua_environment.cpp(948): stingray::LuaEnvironment::call_global
0x4075c82a d:\buildagent\work\77aa4c8074a56d3f\git\runtime\game\game.cpp(382): `anonymous namespace'::MyGame::init
0x4017d003 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\application\application.cpp(2511): stingray::Application::finish_init
0x4017d883 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\application\application.cpp(2448): stingray::Application::init
0x4018376e d:\buildagent\work\77aa4c8074a56d3f\git\runtime\application\application.cpp(2837): stingray::Application::run
0x4001d070 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\main\common\actions.cpp(218): stingray::run_application
0x40001590 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\main\windows\main.cpp(53): run
0x40001609 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\main\windows\main.cpp(71): safe_run
0x400017e2 d:\buildagent\work\77aa4c8074a56d3f\git\runtime\main\windows\main.cpp(103): WinMain
0x40b7fca8 f:\dd\vctools\crt_bld\self_64_amd64\crt\src\crt0.c(238): __tmainCRTStartup
0x76cf59cd BaseThreadInitThunk
0x76e2b981 RtlUserThreadStart
System Information
----------------------------------------
--- CPU
CPU: Intel(R) Xeon(R) CPU E5-2680 0 @ 2.70GHz
Vendor: GenuineIntel
Logical processors: 16
Family: 0:6, Model: 2:13
Type: 0, Stepping: 7
Features: SSE SSE2 SSE3 SSSE3 SSE4.1 SSE4.2
Feature bits:
EBX: 00000100 00100000 00001000 00000000
ECX: 00011111 10111110 11100011 11111111
EDX: 10111111 11101011 11111011 11111111
--- OS
Windows version 6.1 build 7601, SP1.0
Windows 7, Service Pack 1
--- Graphics
Graphics card: NVIDIA GeForce GTX TITAN Black (DirectX 11.0)
--- Sound
No sound card detected.
--- Network
Network interface: Intel(R) 82579LM Gigabit Network Connection (IPv4, IPv6)
Network interface: Microsoft ISATAP Adapter #2 (IPv6)
Network interface: Microsoft Teredo Tunneling Adapter (IPv6)
--- Input
Input device: Mouse (18.1): Mouse
Input device: Keyboard (19.4): Keyboard
Lua Stack
----------------------------------------
[0] [C]: in function set_view_scale_mode
[1] script/lua/main_menu.lua:28: in function start
[2] script/lua/project.lua:36: in function on_level_load_pre_flow
[3] core/appkit/lua/simple_project.lua:136: in function load_level
[4] core/appkit/lua/simple_project.lua:190:in function <core/appkit/lua/simple_project.lua:154>
Lua Locals
----------------------------------------
[2] myObject = table: 0000000077CB3F80, MainMenu = table: 0000000077CB4EF0
[3] resource_name = content/levels/main_menu, level_name = nil, world = [World], config = table: 0000000077CB2490, extension_project = table: 0000000077CB14E0
[4] config = table: 0000000077CB2490, world = [World], world_wrapper = table: 0000000077CAB480, camera_unit = [Unit 'core/appkit/units/camera/camera'], standalone_init_level_name = content/levels/main_menu, level_resource_name = content/levels/main_menu
I'm sure everything in my boot and project lua code is pointing to the correct pathways, and it's like the game attempts to load the scaleform but then crashes.
Furthermore, one thing i've noticed that i think is connected to this issue is whenever i open a scaleform project from within stingray, scaleform doesn't open the project, but instead an untitled project and i then have to open the project from within scaleform.
This only happens from within my stingray project, whenever i open one of the template's scaleform files such as the character template, scaleform opens correctly.
I hope someone can help me with this problem, or point me in a direction.
Thanks!