Page 4 of 9

Re: [ManiaScript] Living list of known bugs

Posted: 22 May 2013, 11:16
by steeffeen
Gugli wrote:Also, if I were you, I would keep track of bugs I announced I solved until you confirm it's OK in you use cases. Just in case they're not solved completely or that introduced another bug or something.
hm yeah, you're right ^.^

Re: [ManiaScript] Living list of known bugs

Posted: 22 May 2013, 14:22
by spaii
steeffeen wrote:
Gugli wrote:Also, if I were you, I would keep track of bugs I announced I solved until you confirm it's OK in you use cases. Just in case they're not solved completely or that introduced another bug or something.
hm yeah, you're right ^.^
Héhé, ok ;) :)

Edit: just opened ManiaPlanet, thx a lot for update :thumbsup: :thx:

Re: [ManiaScript] Living list of known bugs

Posted: 22 May 2013, 19:36
by m4rcel
Gugli wrote:- HttpRequest should work for ML scripts too
Nope. I tested it with the code from my bug report, and it still hangs in an infinite loop of "Status 0", as it was from the beginning.
Gugli wrote:- Overloading of functions will raise an error
And it immediately crashed my Tetris Manialink. Why? Because I had by mistake a wrongly named function, with the same signature like another one. So with your bugfix, you forced me to fix my bug in Tetris which must have been there for months :D
Gugli wrote:The error wrongly raised when using "declare for as" should not appear any more
Confirmed, there is no compiler error anymore.



@ steeffen:

I can confirm that the following bugs have been fixed:
  • Wrong compiler error on Key-Value-Coding - Link
  • [ML] CMlScript::OpenLink() uses wrong encoding - Link, Link
  • Overloading of functions with identical signature - Link

Re: [ManiaScript] Living list of known bugs

Posted: 22 May 2013, 21:13
by steeffeen
m4rcel wrote:And it immediately crashed my Tetris Manialink. Why? Because I had by mistake a wrongly named function, with the same signature like another one. So with your bugfix, you forced me to fix my bug in Tetris which must have been there for months :D
:lol:
m4rcel wrote:@ steeffen:
I can confirm that the following bugs have been fixed:
  • Wrong compiler error on Key-Value-Coding - Link
  • [ML] CMlScript::OpenLink() uses wrong encoding - Link, Link
  • Overloading of functions with identical signature - Link
thanks for the message, i've updated the thread! :thumbsup:

Re: [ManiaScript] Living list of known bugs

Posted: 24 May 2013, 11:00
by Gugli
The Http request issue should *really* be fixed in next update. Don't know when it'll be though.
Sorry about that...

EDIT : Also, "[SM] Bots cause CrashToDesktop when using ForcedTarget " should be ok now, but I think Kak0 is working on other bot related crashes.

Re: [ManiaScript] Living list of known bugs

Posted: 24 May 2013, 19:53
by TMarc
just for info, one seems to be this here: http://forum.maniaplanet.com/viewtopic. ... 63#p167411

Re: [ManiaScript] Living list of known bugs

Posted: 05 Jun 2013, 17:00
by m4rcel
I have a suggestion for ManiaScript in ManiaLinks: Make <audio> and <video> controllable through ManiaScript, i.e. be able to start/stop the music/video. There already is a CMlMediaplayer (or so) class, but it does not add new features to the basic CMlControl class, making this class currently useless. Would be nice to have the CMlMediaPlayer with some nic efeatures ^^

Re: [ManiaScript] Living list of known bugs

Posted: 05 Jun 2013, 17:10
by steeffeen
oh you're right, that would be great! :)
for example currently i have to pass a manialink with a timestamp each time i want to play a specific sound
=> added to the list :D

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 19 Jun 2013, 20:38
by Kyb
Suggestion 1 : [SM] Alowed to set different AmmoGain for each Weapon when using SetPlayerReloadAllWeapons(Player, True).

I'm actually working on a mode with weapon switch, and would be much easier to balance with different AmmoGain for each weapon.

Suggestion 2 : [SM] Implemente Events when players regenerate their armor (with 1-8-3 and 1-8-4 blocks).

Still on my mode, I implemented a limit for heal but is not optimized (this funcion is call every Play Loop) :

Code: Select all

Void HealMangement(){
	foreach (Player in Players) {
		if(Player.Armor > 0 && G_OldArmor.existskey(Player.Id)){
			declare playerid = Player.Id;
			if(Player.Armor > G_OldArmor[playerid]){
				if (G_PlayerNbHealUse[playerid] >= C_NbHealMax){
					Player.Armor = G_OldArmor[playerid];
					Message::SendBigMessage(Player, "You can't regain more armor.", 3000, 1);
				}
				else {
					G_PlayerNbHealUse[playerid] += 1;
					if(G_PlayerNbHealUse[playerid] >= C_NbHealMax){
						Message::SendBigMessage(Player, "You can't regain more armor.", 3000, 1);
					}
				}
			}
			G_OldArmor[playerid] = Player.Armor;
		}
	}
}

Re: [ManiaScript] List of known bugs and Suggestions

Posted: 28 Jun 2013, 16:16
by Kyb
If we can forbid the Armor regain with the attribute"Player.ArmorReplenishGain", it would be nice too.