Scaleform Always Opens Untitled Project

Scaleform Always Opens Untitled Project

Anonymous
Not applicable
634 Views
5 Replies
Message 1 of 6

Scaleform Always Opens Untitled Project

Anonymous
Not applicable

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!

 

 

 

 

 

Reply
Reply
0 Likes
635 Views
5 Replies
Replies (5)
Message 2 of 6

__ben__
Alumni
Alumni

Following the tutorial and loading it in the project did not result in the same error you experienced. The error message references:

 

script/lua/main_menu.lua:28: in function start

 

Could you please post line 28 of main_menu.lua and the surrounding code?

 

Regards,

 

Ben

 

Reply
Reply
0 Likes
Message 3 of 6

Anonymous
Not applicable

Hi Ben, 

 

I've since solved the scaleform error messages and it works correctly in-game now, but i do have some more information regarding the untitled project which still persists. 

 

Whenever i open scaleform, it will always open a temp untitled project from my C drive. It will be the same if i open a scaleform project from within stingray or just start > scaleform studio. I will then have to file > open recent to get to the project i want. It's not really an issue, just troublesome more than anything, if i ever wanted to open a project from within stingray's asset browser really. 

Reply
Reply
0 Likes
Message 4 of 6

__ben__
Alumni
Alumni

Launching Scaleform Studio from Window --> Scaleform Studio in Stingray does not specify a project which is why Scaleform Studio starts out in a blank untitled project. To start Scaleform Studio in an existing project simply navigate to the UI files in Stingray's Asset Browser and double click on a Scaleform Studio project. 

Reply
Reply
0 Likes
Message 5 of 6

Anonymous
Not applicable

Hi Ben,

 

Yes that is exactly what i said i was doing, launching from within stingray's asset browser (double clicking the .sd2proj).

 

That then opens up a temp untitled project, which i then have to file > open recent to open the project i want.

 

Sorry if my post was misleading. Thanks for your help so far.

Reply
Reply
0 Likes
Message 6 of 6

__ben__
Alumni
Alumni

I was able to reproduce the issue and we have put in a request for a fix but cannot provide an ETA. It is being tracked as GAME-17116 internally should you wish to follow up. Thank you for reporting this issue!

Reply
Reply
0 Likes