Page 1 of 1

How to disable maniascript from server?

Posted: 21 Oct 2011, 17:41
by xGEKKOx
Hi Nadeo,

can you add the possibility to disable maniascript of a track from the server?
It happen a mega mistake when maniascript in tracks overwrite script server side.
Can be useful:

Code: Select all

<maniascript>false</maniascript>
Thx.

Re: How to disable maniascript from server?

Posted: 21 Oct 2011, 17:46
by TomRiddle
yes i understand your problem but i think it would be better if you can run more maniascript-instances than one (also in one manialink-xml)

Re: How to disable maniascript from server?

Posted: 21 Oct 2011, 20:10
by Slig
TomRiddle wrote:yes i understand your problem but i think it would be better if you can run more maniascript-instances than one (also in one manialink-xml)
The nearly only maniascript test that i have done so far was to send 2 maniascript within 2 <manialink> (sent separately and with different id), and it seemed to work, so i guess that it is possible.

@gekko: by server maniascript you mean maniascript sent to client in manialink ? or real server maniascript ??? in first case, you send it/them within a <maniascript> with an id > 0 ?

Re: How to disable maniascript from server?

Posted: 22 Oct 2011, 12:22
by xGEKKOx
Hi Slig, thx to help me...i mean manialink from server to client...
Well you know i have the uploader on tps, and i seen someone uploaded a track with scripts inside.
When this track come, the UI go completely off and some strange things appear, ahaha, like it was another controller.
I know script inside the track can be useful, but if those scripts override the server side controller (tps/fast/or other) is not good.
So imho a server (dedicated_cfg) option to enable override or not can be welcome.

Re: How to disable maniascript from server?

Posted: 22 Oct 2011, 12:30
by TomRiddle
Slig wrote:
TomRiddle wrote:yes i understand your problem but i think it would be better if you can run more maniascript-instances than one (also in one manialink-xml)
The nearly only maniascript test that i have done so far was to send 2 maniascript within 2 <manialink> (sent separately and with different id), and it seemed to work, so i guess that it is possible.
oh maybe on server, i ment the "browser-manialinks" you cant send more than one manialink tag there, and
<manialink>
<script><!-- .... --></script>
<script><!-- .... --></script>
</manialink>

does not work as far as i know. it would be perferct for plugins or so....