Camera script examples?

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
Serpwidgets
Posts: 60
Joined: 25 Oct 2011, 02:11
Location: Wisconsin
Contact:

Camera script examples?

Post by Serpwidgets »

Are there any camera script examples? I'd like to insert an effect in a clip (such as an image or text) on a multilap track and I want it to be randomized each time so it's not the same thing every time. It should be only a few lines of code that I could write in 5 minutes, but it's not like there's any useful documentation out there that says what contexts contain which functions.
Serpwidgets
Posts: 60
Joined: 25 Oct 2011, 02:11
Location: Wisconsin
Contact:

Re: Camera script examples?

Post by Serpwidgets »

Ok here is what I am trying to do for an example. The intention was to put an image on the screen just to see if it would work.

Code: Select all

#RequireContext CGameCtnMediaBlockCameraEffectScript
#Include "MathLib" as MathLib

declare CGameCtnMediaBlockImage x;
x.TrackImage ="http://serpwidgets.com/tm2/mapimg/nukemapcar.png";
x.ImagePosX=(MathLib::Rnd()*2)-1;
x.ImagePosY=(MathLib::Rnd()*2)-1;
x.ImageDepth=0.5;
x.ImageRot=MathLib::Rnd()*6.28;
x.ImageScaleX =1;
x.ImageScaleY =1;
x.ImageOpacity=0.5;
It tells me the member or variable (TrackImage, ImgPosX, etc etc which are all listed in the "documentation" (and I use that term out of generosity)) does not exist. Presumably Nadeo has made these functions inaccessible to users.

WTF. What was the point of telling us about all these methods and properties that we can't use?
svens
Posts: 97
Joined: 15 Jun 2010, 11:06
Location: Bern, CH
Contact:

Re: Camera script examples?

Post by svens »

Serpwidgets wrote:WTF. What was the point of telling us about all these methods and properties that we can't use?
For the record, the list of all classes was made by a player (_arc) and isn't related to Nadeo. The only official "documentation" available is this post: http://forum.maniaplanet.com/viewtopic.php?f=279&t=1672.
In this topic, I will explain only the script syntax, which is common to all the different scripts. The various script contexts will be exposed in other threads.
Of course those "other threads" don't exist. Nadeo never provides proper documentation for anything.

There's an updated list here: http://pastebin.com/dd4hZdRU which has all inaccessible mehtods marked with a '*'.
Serpwidgets
Posts: 60
Joined: 25 Oct 2011, 02:11
Location: Wisconsin
Contact:

Re: Camera script examples?

Post by Serpwidgets »

svens wrote:
Serpwidgets wrote:WTF. What was the point of telling us about all these methods and properties that we can't use?
For the record, the list of all classes was made by a player (_arc) and isn't related to Nadeo. The only official "documentation" available is this post: http://forum.maniaplanet.com/viewtopic.php?f=279&t=1672.
In this topic, I will explain only the script syntax, which is common to all the different scripts. The various script contexts will be exposed in other threads.
Of course those "other threads" don't exist. Nadeo never provides proper documentation for anything.

There's an updated list here: http://pastebin.com/dd4hZdRU which has all inaccessible mehtods marked with a '*'.
That's too bad, they're sitting on a potential gold mine of free content. I hope they're not stupid enough to cripple shootmania in this way, because while they might get away with it for a racing game, they won't stand a chance with FPS games if it can't be heavily edited.
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 3 guests