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

Moderator: NADEO

Locked
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post 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 ;)
Last edited by spaii on 13 Nov 2012, 15:53, edited 1 time in total.
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

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

Post by w1lla »

Did you try:

Code: Select all

if (Event.Type == CTmModeEvent::EType::Stunt) {
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post 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....
User avatar
w1lla
Posts: 2287
Joined: 15 Jun 2010, 11:09
Location: Netherlands
Contact:

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

Post by w1lla »

Try to replace

Code: Select all

Event.Figure
for

Code: Select all

Event
.
TM² Info
SM Info
QM Info

OS: Windows 10 x64 Professional
MB: MSI 970A-G46
Processor: AMD FX-6300 3500 mHz
RAM Memory: 16 GB DDR3
Video: SAPPHIRE DUAL-X R9 280X 3GB GDDR5
KB: Logitech G510s
Mouse: Logitech G300s
Mode Creation
ManiaScript Docs
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post by spaii »

Sorry, but I've tested all the possibilities ;)

log(Event.Type) and log(Event) etc... , and same problem ;)
User avatar
kapsubm
Posts: 238
Joined: 16 Aug 2011, 23:38
Location: Vienna, Austria
Contact:

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

Post 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.
Join CSeSports Platform Server

[url=maniaplanet://:maniaplanet://#join=cs.esports@Platform@nadeolive]CS.eSportsPlatform 0-60K With Fox Control[/url]
[url=maniaplanet://:maniaplanet://#join=csesports2@SMStorm]CS.eSports SM Royal 0-60 k 40 players With Smart Servercontroller[/url]
[url=maniaplanet://:maniaplanet://#join=cs.esports1@TMCanyon]CS.eSports Stunts in Canyon with Smart Servercontroller[/url]
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post 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....
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post by spaii »

You can set a TimeLimit in maptype with :

declare metadata Integer TimeLimit;
declare metadata Integer BestScore;

But problem is really from Nadeo ;)
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

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

Post by spaii »

And yes, i see your script ;) it's nice :thumbsup:
User avatar
kapsubm
Posts: 238
Joined: 16 Aug 2011, 23:38
Location: Vienna, Austria
Contact:

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

Post 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.
Join CSeSports Platform Server

[url=maniaplanet://:maniaplanet://#join=cs.esports@Platform@nadeolive]CS.eSportsPlatform 0-60K With Fox Control[/url]
[url=maniaplanet://:maniaplanet://#join=csesports2@SMStorm]CS.eSports SM Royal 0-60 k 40 players With Smart Servercontroller[/url]
[url=maniaplanet://:maniaplanet://#join=cs.esports1@TMCanyon]CS.eSports Stunts in Canyon with Smart Servercontroller[/url]
Locked

Return to “Maniaplanet Reports”

Who is online

Users browsing this forum: No registered users and 1 guest