Page 1 of 1

[B1.3][Fixed] ManiaScript : CTmModeEvent::EType::Stunt

Posted: 09 Sep 2012, 22:43
by spaii
Hi, i currently develop a Stunt Mode in TM²

CTmModeEvent::EType::Stunt stop working after 60 seconds
StuntsScore not sending by EventPendings in TMGameMode and TMGameType after 60 secs of play.


Tested with :
- UiRaceChrono = CTmMode::ETmRaceChronoBehaviour::Hidden
- UiRaceChrono = CTmMode::ETmRaceChronoBehaviour::Normal
- UiRaceChrono = CTmMode::ETmRaceChronoBehaviour::CountDown

Can we set the value of UiRaceChrono when in CountDown mode ?
Because is always 60 secs ;)

Sorry for my poor english ;)

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 10:41
by w1lla
Did you try:

Code: Select all

if (Event.Type == CTmModeEvent::EType::Stunt) {

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 10:54
by spaii
yes, my code is ok :

if (Event.Type == CTmModeEvent::EType::Stunt)
{

PlayerUI.StatusMessage = "";

if (Event.StuntFigure == CTmModeEvent::EStuntFigure::RespawnPenalty) {
PlayerUI.StatusMessage ^= "$d00Respawn Penalty $w$o-" ^ Event.Points;
Event.Player.CurRace.StuntsScore -= Event.Points;
}
else
{
if (Event.Combo > 0) PlayerUI.StatusMessage ^= " $n$zX" ^ Event.Combo;
if (Event.IsStraight) PlayerUI.StatusMessage ^= " Straight";
if (Event.IsReverse) PlayerUI.StatusMessage ^= " Reverse";
if (Event.IsMasterJump) PlayerUI.StatusMessage ^= " Master Jump";

PlayerUI.StatusMessage ^= "" ^ TxtReplace(" " ^ Event.StuntFigure, "EStuntFigure::", "");
if(Event.Angle >0) PlayerUI.StatusMessage ^= " " ^ Event.Angle;
PlayerUI.StatusMessage ^= " $w$o" ^ Event.Points;

Event.Player.CurRace.StuntsScore += Event.Points;
}

PlayerUI.BigMessage = "" ^ Event.Player.CurRace.StuntsScore;
}


This code is ok, but after 60secs :
Event.Type == CTmModeEvent::EType::Stunt is always false and Event.StuntFigure didn't receive the figure....

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 11:02
by w1lla
Try to replace

Code: Select all

Event.Figure
for

Code: Select all

Event
.

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 11:08
by spaii
Sorry, but I've tested all the possibilities ;)

log(Event.Type) and log(Event) etc... , and same problem ;)

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 14:22
by kapsubm
check out that thread & maybe my testserver on Stunts:
http://forum.maniaplanet.com/viewtopic. ... 79&t=13670

the countdown is set static when not in maptype ... so 60 seconds if you cannot set the maptype stunts to more then 60 seconds.

maybe we can merge the projects.

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 15:52
by spaii
Thx, i see that, just release a title pack, you can download the title pack with manialink : GetStunters ;)

There is a lot of bugs, but editor work nice with validation time etc....

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 15:54
by spaii
You can set a TimeLimit in maptype with :

declare metadata Integer TimeLimit;
declare metadata Integer BestScore;

But problem is really from Nadeo ;)

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 15:55
by spaii
And yes, i see your script ;) it's nice :thumbsup:

Re: [B1.3] ManiaScript : CTmModeEvent::EType::Stunt not work

Posted: 11 Sep 2012, 15:56
by kapsubm
i downloaded allready your pack,
but many things work different in your pack .
Maptype is set as own maptype, so i cant use it for my scripts.

i didnt release a title pack before its working correctly, (to many bugs yet)

so far bug i ´ve discovered in our pack:
after respawn the scores are gone.
(just made a quick view on your server)

will check the timelimit thing in map.