Logo

[Help] The error reporting interface has crashed. (At the moment of use Def.GraphDisplay)

Register Log In Back To Forums

Post #1 · Posted at 2015-01-12 08:15:44pm 9.2 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
Reg. 2012-09-13

"ITG, The Best Dance Machine!"
Well th title say it by itself... I was trying to create the Actor GraphDisplay via lua using Def.GraphDisplay, at the moment to ScreenEvaluation been load the game crashes showing this error:

http://fc00.deviantart.net/fs70/f/2015/012/9/1/untitled_by_ov3rhell3xoduz-d8dndug.png

Idk why, maybe the LUA code is wrong but it doesnt show me nothing, just that the error reporting interface has crashed and the Stepmania shut down... Any idea why this happens??

PD: The LUA Code is this one:

Quote
return Def.ActorFrame{
InitCommand=cmd(Center);
Def.GraphDisplay{
InitCommand=cmd(Load,"GraphDisplay";zoom,1);
BodyWidth=421;
BodyHeight=64;
};
};

Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #2 · Posted at 2015-01-12 10:51:27pm 9.2 years ago

Offline dbk2
dbk2 Avatar Member
332 Posts
Not Set
Reg. 2012-04-30


Last updated: 2015-01-12 10:51pm
Hmm. I don't know much about the GraphDisplay actors, but I used them in the Simply Love port with:

Some lua on ScreenEvaluation
Some metrics


GraphDisplay actors only have two unique methods, Load() and Set()

Load() takes one argument, the name of the Metrics group with its BodyWidth and BodyHeight properties.
Set() takes two arguments, StageStats and PlayerStageStats. Again, see the relevant Lua in Simply Love.

Post #3 · Posted at 2015-01-15 11:18:50pm 9.2 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
Reg. 2012-09-13

"ITG, The Best Dance Machine!"

Last updated: 2015-01-15 11:21pm
Quote: dbk2
Hmm. I don't know much about the GraphDisplay actors, but I used them in the Simply Love port with:

Some lua on ScreenEvaluation
Some metrics


GraphDisplay actors only have two unique methods, Load() and Set()

Load() takes one argument, the name of the Metrics group with its BodyWidth and BodyHeight properties.
Set() takes two arguments, StageStats and PlayerStageStats. Again, see the relevant Lua in Simply Love.

doing that now it show me, Invalid Parameters and the game crashes:

Quote
local t = Def.ActorFrame{};

t[#t+1] = Def.GraphDisplay{
InitCommand=cmd(Center),
BeginCommand=function(self)
self:Load("GraphDisplay")

local playerStageStats = STATSMAN:GetCurStageStats():GetPlayerStageStats(pn)
local stageStats = STATSMAN:GetCurStageStats()
self: Set(stageStats, playerStageStats)
end
}

return t

I still not understand how this works...

EDIT: I forgot to change pn for a PLAYER NUMBER, now finally works Big Grin
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #4 · Posted at 2015-01-16 12:25:46am 9.2 years ago

Offline Kyzentun
Kyzentun Avatar Member
3,209 Posts
United States
Reg. 2008-02-20

"I'm honestly pissed off."
Quote: Th3_Ov3rHell_3XoduZ
EDIT: I forgot to change pn for a PLAYER NUMBER, now finally works Big Grin
When you said that, it clicked in my head and I realized that Stepmania wasn't checking whether the stats were nil before trying to read them. Next build will give you an error message instead of crashing.
silenttype01: Kyzentun is never harsh. He says it how it is.

GENERATION 24: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.

Post #5 · Posted at 2015-01-16 12:31:30am 9.2 years ago

Offline Th3_Ov3rHell_3XoduZ
Th3_Ov3rHell_3XoduZ Avatar Member
313 Posts
Chile
Reg. 2012-09-13

"ITG, The Best Dance Machine!"
Quote: Kyzentun
Quote: Th3_Ov3rHell_3XoduZ
EDIT: I forgot to change pn for a PLAYER NUMBER, now finally works Big Grin
When you said that, it clicked in my head and I realized that Stepmania wasn't checking whether the stats were nil before trying to read them. Next build will give you an error message instead of crashing.

That would be amazing!
Quote: Released Themes for SM5 Beta 3
Quote: Released Themes for SM5 Beta 4 & 5.0.7
Quote: Simfles Packs Released

Post #6 · Posted at 2015-01-16 12:43:56am 9.2 years ago

Offline Kyzentun
Kyzentun Avatar Member
3,209 Posts
United States
Reg. 2008-02-20

"I'm honestly pissed off."
Quote: Th3_Ov3rHell_3XoduZ
Quote: Kyzentun
Quote: Th3_Ov3rHell_3XoduZ
EDIT: I forgot to change pn for a PLAYER NUMBER, now finally works Big Grin
When you said that, it clicked in my head and I realized that Stepmania wasn't checking whether the stats were nil before trying to read them. Next build will give you an error message instead of crashing.

That would be amazing!
Finding things like that and fixing them to give you an error you can hopefully understand instead of crashing is a large part of what I've been doing since I added the error reporting system in July.
silenttype01: Kyzentun is never harsh. He says it how it is.

GENERATION 24: The first time you see this, copy it into your sig on any forum and add 1 to the generation. Social experiment.
Register Log In Back To Forums

0 User(s) Viewing This Thread (Past 15 Minutes)

©2006-2024 Zenius -I- vanisher.com -5th style- IIPrivacy Policy
Web Server: 3% · Database: 4% · Server Time: 2024-04-18 09:00:12
This page took 0.007 seconds to execute.
Theme: starlight · Language: englishuk
Reset Theme & Language