Search found 18 matches

by kastun
13 Sep 2015, 15:42
Forum: ManiaScript
Topic: Howto try/catch: CreateSound failed to complete
Replies: 1
Views: 861

Re: Howto try/catch: CreateSound failed to complete

You can check if the link exists before creating. See CHttpManager . My testing script (seems some bugs mentioned in the linked topic are fixed now): <?xml version="1.0" encoding="utf-8" standalone="yes" ?> <manialink version="1"> <script><!-- main() { declare...
by kastun
19 Jul 2015, 14:27
Forum: Maniaplanet Reports
Topic: [ManiaScript] ValueLineCount not working for maptype scripts
Replies: 1
Views: 1322

Re: [ManiaScript] ValueLineCount in maptype script

Just found out by testing again: The ValueLineCount gets only updated if you yield; . So as workaround simply yield before you get the ValueLineCount and you will not have a problem with -1 in maptype context. EDIT: This is only working if the label is visible! Regarding the edit of my last post: Al...
by kastun
05 Dec 2014, 19:39
Forum: Maniaplanet Reports
Topic: [ManiaScript] ValueLineCount not working for maptype scripts
Replies: 1
Views: 1322

[ManiaScript] ValueLineCount not working for maptype scripts

I discovered that MlLabel.ValueLineCount always returns -1 if the manialink is displayed in maptype context. \Documents\ManiaPlanet\Scripts\MapTypes\ShootMania\Test.Script.txt #RequireContext CSmMapType main() { ManialinkText = """ <manialink version="1"> <script><!-- main()...
by kastun
30 Nov 2014, 13:17
Forum: Maniaplanet Reports
Topic: [ML] <include> not working for maptype scripts
Replies: 5
Views: 1686

Re: [ML] <include> not working for maptype scripts

Thanks, this is working.

Just as reminder: The layer file has to contain the manialink tag (it is not working with the posted include.xml)
by kastun
22 Nov 2014, 17:05
Forum: Maniaplanet Reports
Topic: [ML] <include> not working for maptype scripts
Replies: 5
Views: 1686

[ML] <include> not working for maptype scripts

I discovered that the include tag does not work in manialinks used for a maptype script (tested only for shootmania), probably also for trackmania. \Documents\ManiaPlanet\Scripts\MapTypes\ShootMania\Test.Script.txt #RequireContext CSmMapType main() { ManialinkText = """ <manialink ver...
by kastun
01 Jun 2014, 10:25
Forum: Maniaplanet Reports
Topic: [Fixed][Maniascript] Interface library
Replies: 1
Views: 8944

[Fixed][Maniascript] Interface library

When removing a slide using the Interface.Script.txt library, e.g. Interface::RemoveSlide(2); I get the following error in the slider manialink script: [311, 102] Out of bounds access at [2] When removing slide 3 it is out of bounds at [3]. I want wo display some toplists with the slider from the In...
by kastun
04 Oct 2013, 13:36
Forum: ManiaScript
Topic: StartTestMapWithMode request
Replies: 1
Views: 603

StartTestMapWithMode request

I'm working on a mode and therefore also on a maptype. While working on the maptype I thought it would be nice to have a button to test with the mode directly, so you don't have to search for the correct one in the list. That was no problem: StartTestMapWithMode("ModeName"); But there is a...
by kastun
13 Aug 2013, 16:46
Forum: Maniaplanet Reports
Topic: [ManiaScript] TextLib::Compose result in chat
Replies: 2
Views: 1394

[ManiaScript] TextLib::Compose result in chat

I noticed something when using texts created with TextLib::Compose in the chat. UIManager.UIAll.StatusMessage = TextLib::Compose("%1 : %2 -", _("TextLibCompose test"), "Text"); UIManager.UIAll.SendChat(TextLib::Compose("%1 : %2 -", _("TextLibCompose test&...
by kastun
08 May 2013, 16:29
Forum: ManiaScript
Topic: OnPlayerLeaves?
Replies: 15
Views: 2255

Re: OnPlayerLeaves?

I have created an extended version some month ago: ModeBaseExtended.

With it you have the PlayerId, the Name and the Login of the left player available.
by kastun
23 Feb 2013, 17:55
Forum: Shootmania Storm Reports
Topic: [B3][Fixed] WarmUp library bug
Replies: 1
Views: 594

[B3][Fixed] WarmUp library bug

I noticed a mistake the WarmUp library.

OrderHasChanged() returns true even when there is no change in the order itself.
This happens when a player changes his Ready status.

Go to advanced search