Page 5 of 9
Re: [ManiaScript] List of known bugs and Suggestions
Posted: 28 Jun 2013, 18:27
by steeffeen
Kyb wrote:If we can forbid the Armor regain with the attribute"Player.ArmorReplenishGain", it would be nice too.
well as ArmorReplenishGain replenishes armor all the time i would rather say ArmorGain should be used for that because i didn't get the point of ArmorGain yet, it only replenishes armor if the current armor is != x*100 (partly regenerated)
anyways, you can reach your desired functionality with only one line of code
Code: Select all
if (Player.Armor % 100 == 0) Player.Armor = (Player.Armor / 100) * 100;
(not tested ^.^)
regarding your code about
Events when players regenerate their armor (with 1-8-3 and 1-8-4 blocks).
i would rather suggest using key-value-coding instead of arrays
Code: Select all
declare OldArmor for Player = 200;
if (Player.Armor % 100 != 0 && Player.Armor > OldArmor) SendMessage();
OldArmor = Player.Armor;
(not tested either ^.^)
//Edit: just for the records, the suggested code doesn't work

see the following post for the reason
Re: [ManiaScript] List of known bugs and Suggestions
Posted: 28 Jun 2013, 22:34
by Kyb
It doesn't work because when we regain Armor with 1-8-3 and 1-8-4 blocks, Armor stay at the same value during the loading, and earn 100 at the end of the loading.
Re: [ManiaScript] List of known bugs and Suggestions
Posted: 28 Jun 2013, 22:45
by steeffeen
Kyb wrote:It doesn't work because when we regain Armor with 1-8-3 and 1-8-4 blocks, Armor stay at the same value during the loading, and earn 100 at the end of the loading.
i see
sorry ^^
Re: [ManiaScript] List of known bugs and Suggestions
Posted: 03 Jul 2013, 13:43
by steeffeen
HttpRequests in Manialink script work fine now
just built an auto refresh for my shoutbox
(i would have posted it in the respective thread but it's locked because it has been moved into the Closed Beta Reports section

)
Re: [ManiaScript] List of known bugs and Suggestions
Posted: 03 Jul 2013, 18:29
by steeffeen
i would like to request access to the uuid of the current map in game modes
maybe the class CMapInfo could get an additional attribute for that
also the file name would be helpful, there is already the file location (Path)
i need that to precisely identify the current map without any server controller

Re: [ManiaScript] List of known bugs and Suggestions
Posted: 14 Jul 2013, 11:11
by steeffeen
we have seen quite some issues with the skipping of intros since the 2.1 update which also introduced
Code: Select all
CUIConfig::UISequence_CanSkipIntroMT
i've noticed that setting this value true (default is false) fixes the whole problem
anyways, as the normal behaviour is that players scan skip the intro i think that the default value should be True
Re: [ManiaScript] List of known bugs and Suggestions
Posted: 15 Jul 2013, 18:31
by spaii
Suggestions :
1. Chat
In CUIConfig, we can send a text to chat with : SendChat(Text Text);
It could be nice if we could read text from chat via ManiaScript
2.Ladder ranking at podium
Possibility to disable ladder ranking in top of match ranking at podium via ManiaScript :
http://puu.sh/3Dyzo.jpg
Maybe we can already, but not found how...
Thx

Re: [ManiaScript] List of known bugs and Suggestions
Posted: 03 Aug 2013, 19:11
by steeffeen
this is kind of part of custom class declaration in maniascript..
it would be great to be able to create object (not items^^) via maniascript
an example would be:
Code: Select all
declare Event = new CSmModeEvent();
Event.Type = CSmModeEvent::EType::OnArmorEmpty;
Event.Victim = Players[0];
PassOn(Event);
in case i want to eliminate a specific player because of my game mode rules

Re: [ManiaScript] List of known bugs and Suggestions
Posted: 04 Aug 2013, 15:44
by spaii
steeffeen wrote:i would like to request access to the uuid of the current map in game modes
maybe the class CMapInfo could get an additional attribute for that
also the file name would be helpful, there is already the file location (Path)
i need that to precisely identify the current map without any server controller

I think you had already found

, but maybe this can help.
CMap class :
Map.Id gives uuid of map
Re: [ManiaScript] List of known bugs and Suggestions
Posted: 04 Aug 2013, 16:06
by steeffeen
spaii wrote:I think you had already found

, but maybe this can help.
CMap class :
Map.Id gives uuid of map
SICK!
the ident type is sooo dirty xD
thanks man
