CEditorPlugin::SaveMap() - path is not striped

Moderators: w1lla, NADEO

Post Reply
User avatar
maxi031
Posts: 378
Joined: 17 Jul 2011, 00:55

CEditorPlugin::SaveMap() - path is not striped

Post by maxi031 »

I use CEditorPlugin::SaveMap() to save maps faster, it works great, but when i used it today on the map that has color codes in its name i get this very colorful prompt:

https://dl.dropboxusercontent.com/u/117 ... triped.jpg

Someone forgot to format Map path, should be easy fix :D
My specs:
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
User avatar
haenry
Halloween Mapper 2011
Posts: 1642
Joined: 15 Jun 2010, 12:18

Re: CEditorPlugin::SaveMap() - path is not striped

Post by haenry »

I think this is an issue with the plugin itself. Not with Maniaplanet.

btw, where did you get this plugin from? I'd like to try it out myself
A nice person is a better person!
Did you participate in a Monthly Track Contest yet?
My Maniaplanet maps!
User avatar
maxi031
Posts: 378
Joined: 17 Jul 2011, 00:55

Re: CEditorPlugin::SaveMap() - path is not striped

Post by maxi031 »

I made it some days ago, it is still in development.
https://dl.dropboxusercontent.com/u/117 ... Script.txt
You can use it but be warned it is not polished nor finished. :D

E key turns mixmaping on/off,
A key turns airmaping on/off,
T key zooms camera,
S saves the map, it saves it as unnamed if it was not normally saved before, else it overwrites old file version.
My specs:
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
User avatar
Florenzius
Translator
Translator
Posts: 2535
Joined: 27 Jul 2014, 20:31
Location: Germany
Contact:

Re: CEditorPlugin::SaveMap() - path is not striped

Post by Florenzius »

How to install?
Creative Director at UNBITN - 3D Modeler for Pursuit - ManiaPlanet Translator and Beta tester - Freelancer for Ubisoft Nadeo
___
MB - B550 AORUS ELITE
RAM - 32GB
CPU - AMD Ryzen 5 3600XT
GPU - Nvidia GeForce RTX 3070Ti
User avatar
maxi031
Posts: 378
Joined: 17 Jul 2011, 00:55

Re: CEditorPlugin::SaveMap() - path is not striped

Post by maxi031 »

Copy it to maniaDocs\Scripts\EditorPlugins\TrackMania and than restart the game.
My specs:
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
User avatar
haenry
Halloween Mapper 2011
Posts: 1642
Joined: 15 Jun 2010, 12:18

Re: CEditorPlugin::SaveMap() - path is not striped

Post by haenry »

Code: Select all

SaveMap(Map.MapInfo.Name, Map.MapInfo.Path);
This is what I needed. I made some first poor attempts at maniascript for this too, but I couldn't find out how to get the mapname and path.
Thanks!

And the mixmapping features is a great idea too :thumbsup:

And I realised, it IS actually a problem that nadeo could fix, but you can alternatively just put $z at the end of the map name ;)
A nice person is a better person!
Did you participate in a Monthly Track Contest yet?
My Maniaplanet maps!
User avatar
maxi031
Posts: 378
Joined: 17 Jul 2011, 00:55

Re: CEditorPlugin::SaveMap() - path is not striped

Post by maxi031 »

No problem :thumbsup:
You can go to http://www.uaseco.org/Maniascript/2015-06-16/ and find what functions/vars belong to what class/namespace.
My specs:
MOBO: MB AM3+ 970 Gigabyte GA-970A-DS3P
CPU: AM3+ AMD FX-8320E
GPU: Nvidia GeForce GTX750-Ti ASUS 2GB DDR5
RAM: DDR3 8GB 1866MHz Kingston HyperX
SSD: SATA3 120gb SanDisk
OS: Ubuntu 19.04
TY MICMO
Post Reply

Return to “Maniaplanet Reports”

Who is online

Users browsing this forum: No registered users and 2 guests