Server informations in maniascript

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Server informations in maniascript

Post by spaii »

hi all !!

it would be nice if we can have a class like CServer with all informations about the server running the script.

for example CServer -> Login and CServer -> Name

Or perhaps these informations will be included in CMode ?

Thx a lot ;)
TomRiddle
Posts: 250
Joined: 14 Jul 2011, 16:16

Re: Server informations in maniascript

Post by TomRiddle »

Nice Idea to have them directly in the gamemode!

Alternatively you can send some data from a custom servercontroller plugin for foxcontrol or smart etc. and store it manually in the gamemode. I did the same to send records to a database and display them on the spawn-screen. I hope i can help you at least temporarly.

PS: The new XML and "ajax" features may help you too :D
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: Server informations in maniascript

Post by spaii »

Since there is CHttpRequest in maniascript, i start to develop "World Records" directly in the title pack. :yes:
But if i want records by server i have to access to server login directly in maniascript ;)

Thx for tips ;)
TomRiddle
Posts: 250
Joined: 14 Jul 2011, 16:16

Re: Server informations in maniascript

Post by TomRiddle »

nice idea good luck with it :D
User avatar
spaii
Posts: 1075
Joined: 19 Jun 2010, 00:04
Location: Rémy - France
Contact:

Re: Server informations in maniascript

Post by spaii »

Thx ;)

it's almost over but there is a bug or a limitation by Nadeo in CHttpRequest : http://forum.maniaplanet.com/viewtopic. ... 26&t=15490
User avatar
steeffeen
Translator
Translator
Posts: 2463
Joined: 14 Oct 2012, 16:22
Location: Germany

Re: Server informations in maniascript

Post by steeffeen »

ServerLogin will be added with the next update
http://forum.maniaplanet.com/viewtopic. ... 20#p167121
    Game Mode and Title Pack Creator, Developer, ShootMania-Player & more

    ManiaControl, FancyManiaLinks
    Post Reply

    Return to “ManiaScript”

    Who is online

    Users browsing this forum: No registered users and 2 guests