Search found 155 matches
- 04 Jun 2018, 19:07
- Forum: ManiaScript
- Topic: [RadarMode] Starting a new mode for trackmania stadium but i have somes issues
- Replies: 2
- Views: 7284
Re: [RadarMode] Starting a new mode for trackmania stadium but i have somes issues
That sounds a lot like Nerpson's Doppler mode (viewtopic.php?f=527&t=30463). Maybe you can get some insight from his script. Not sure if there is a different link than https://thewinbutton.us/files/TM/Doppler.Script.txt which was the first working link I found.
- 30 Mar 2018, 10:37
- Forum: ManiaScript
- Topic: Play map that isn't in my title pack but is in Maps folder?
- Replies: 2
- Views: 5769
Re: Play map that isn't in my title pack but is in Maps folder?
So finally I built myself a little "map browser" to test your problem. While in edit-mode you actually only see the maps you are including in your TP, DataFileMgr.Map_GetGameList returns everything in Documents\ManiaPlanet\Maps\ (or whereever your MP lives) once you install your TP into a ...
- 09 Mar 2018, 20:43
- Forum: ManiaScript
- Topic: Scripted Choose map help
- Replies: 10
- Views: 9222
Re: Scripted Choose map help
Map_GetGameList returns a CTaskResult_MapList which has the array MapInfos... If your resulting object doesn't have anything like size or length , just look through the docs where you can go towards anything like array length from the data you have... DataFileMgr.Map_GetGameList(path, True).MapInfos...
- 18 Feb 2018, 12:46
- Forum: ManiaScript
- Topic: [EditorPlugin] VertexRenderer
- Replies: 4
- Views: 4936
Re: [EditorPlugin] VertexRenderer
With some stability adjustments it should now be possible to load objects like suzanne or the teapot with more than 6000 faces. https://cdn.discordapp.com/attachments/209098456386502658/414747192608292875/teddy.jpg The teddy has 3180 faces. Unfortunately for sitting it up you have to decrease the re...
- 17 Feb 2018, 20:24
- Forum: ManiaScript
- Topic: [FIXED] Syntax error with scoped statements
- Replies: 7
- Views: 6565
Re: Syntax error with scoped statements
It does, but just not as first statement in a block.
- 17 Feb 2018, 18:48
- Forum: ManiaScript
- Topic: [FIXED] Syntax error with scoped statements
- Replies: 7
- Views: 6565
Re: Syntax error with scoped statements
no, that doesn't work like in this example:
Code: Select all
***init***
***
log("init");
***
Void test() {
log("testfn");
{
{
^-- unexpected MANIASCRIPT_BRACKET_CURLY_OP
declare Foo = 3;
}
declare Bar = 4;
}
}
main() {
test();
log("test");
}
- 17 Feb 2018, 17:06
- Forum: ManiaScript
- Topic: [EditorPlugin] VertexRenderer
- Replies: 4
- Views: 4936
[EditorPlugin] VertexRenderer
[media]https://cdn.discordapp.com/attachments/209098456386502658/414408941510983692/rotating_pyramid.mp4[/media] Inspired by OpenGL rendering you define an "ArrayBuffer" with vertex and optionally data values, set how the values are interpreted as vertex or data[1] and then it get's passed...
- 17 Feb 2018, 13:20
- Forum: ManiaScript
- Topic: [FIXED] Syntax error with scoped statements
- Replies: 7
- Views: 6565
[FIXED] Syntax error with scoped statements
main() { {+++code+++} log("test"); } throws syntax error, unexpected MANIASCRIPT_BRACKET_CURLY_OP Putting a statement above (like move the log a line up) works. Without the braces it of course works as well. (It occured to me with labels but holds true for any code block) It happens with ...
- 12 Jan 2018, 09:16
- Forum: ManiaScript
- Topic: ManiaScript for Visual Studio Code
- Replies: 28
- Views: 12578
Re: ManiaScript for Visual Studio Code
No, it's from the time of the closed beta and used the MP3 API. (see commit dates https://github.com/MattMcFarland/maniascript-parser)
- 10 Dec 2017, 11:10
- Forum: ManiaScript
- Topic: is there a way to point CMlControl by Ident on a CMlPage ?
- Replies: 4
- Views: 2075
Re: is there a way to point CMlControl by Ident on a CMlPage ?
(You are not trying to use classes as index values but objects (= instances of classes).) Using objects as index values should work (as the array-key hashing probably already works on the idents). I can't reconstruct and don't understand your problem from what you are providing. As you probably are ...