Add A column in ScoreTable

You can talk about ManiaScript for ManiaPlanet here

Moderator: English Moderator

Post Reply
User avatar
4lturbo
Posts: 106
Joined: 13 Jan 2011, 18:26

Add A column in ScoreTable

Post by 4lturbo »

Hi,
I want to add a new column in the Score table ( add best lap time)
I try with modifiy ScoresTables2.Script.txt , i add in CreateCol() in the switch the case LibST_TMBestLapTime, this work nice, but if there is an update it will be erased, so how to do this, within modify Score2Tables.Script.txt

------------------------------------------
Bonjour,
Je voudrais ajouter une colonne BestLap dans le tableau des scores.
J'ai essayé en modifiant ScoresTables2.Script.txt, j'ai ajouté dans CreateCol() dans le switch le cas LibST_TMBestLapTime cela marche tres bien, on recupere bien la colonne dans le jeu, par contre des qu'il va y avoir une mise a jour, la modification va etre effacée. Comment faire cet ajout sans modifier Score2Tables.Script.txt
(ou alors le mettre par defaut dedans a la nouvelle mise à jour)
CT*ImHoTep
ModLap Championship
Image
Le jour où l'on mettra les cons sur orbite, y en a qui n'ont pas fini de tourner ...
User avatar
Eole
Nadeo
Nadeo
Posts: 1265
Joined: 26 Apr 2011, 21:08

Re: Add A column in ScoreTable

Post by Eole »

One way to avoid this update problem would be to create your own game mode script extending from Laps. Then you can create and update a custom scorestable column in the mode script without altering the library.

I added a new default column "LibST_TMBestLapTime" that will display the best lap time of a player in the library. You'll get it with the next script update. In the meantime you can use this version of the library if you want :
https://github.com/maniaplanet/game-mod ... Script.txt
Contribute to the ManiaPlanet documentation on GitHub
A question about ManiaScript? Ask it here!
User avatar
4lturbo
Posts: 106
Joined: 13 Jan 2011, 18:26

Re: Add A column in ScoreTable

Post by 4lturbo »

ok
thank you to add it in ScoreTable2.Script
CT*ImHoTep
ModLap Championship
Image
Le jour où l'on mettra les cons sur orbite, y en a qui n'ont pas fini de tourner ...
Post Reply

Return to “ManiaScript”

Who is online

Users browsing this forum: No registered users and 3 guests