Post #1 · Posté à 2015-01-12 08:15:44pm il y a 9.6 années
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Messages | |
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:
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:
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;
};
};
InitCommand=cmd(Center);
Def.GraphDisplay{
InitCommand=cmd(Load,"GraphDisplay";zoom,1);
BodyWidth=421;
BodyHeight=64;
};
};
Post #2 · Posté à 2015-01-12 10:51:27pm il y a 9.6 années
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.
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 · Posté à 2015-01-15 11:18:50pm il y a 9.6 années
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Messages | |
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.
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
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
Post #4 · Posté à 2015-01-16 12:25:46am il y a 9.6 années
Kyzentun | |
---|---|
Member | |
3,209 Messages | |
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
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.Post #5 · Posté à 2015-01-16 12:31:30am il y a 9.6 années
Th3_Ov3rHell_3XoduZ | |
---|---|
Member | |
313 Messages | |
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
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!
Post #6 · Posté à 2015-01-16 12:43:56am il y a 9.6 années
Kyzentun | |
---|---|
Member | |
3,209 Messages | |
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
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!