Map Thumb Tool

Openplanet is an alternative scripting platform for the ManiaPlanet creative community.

Moderators: Miss, NADEO

User avatar
Miss
Posts: 2155
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Map Thumb Tool

Post by Miss »

Yesterday on the Openplanet Discord there was a request for a tool like this, so I figured I'd quickly write one.

Introducing Openplanet Map Thumb:
  • Export the thumbnail of any Maniaplanet map file.
  • Replace the thumbnail with any arbitrary image file.
  • Drag'n'drop an image file on the window to replace the thumbnail.
Download: https://openplanet.nl/files/14
Source code: https://github.com/openplanet-nl/map-thumb

Image

(I'll probably be making a lot more tools to add to a sort of Openplanet unified tool collection, if people are interested!)
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
User avatar
Florenzius
Translator
Translator
Posts: 2545
Joined: 27 Jul 2014, 20:31
Location: Germany
Contact:

Re: Map Thumb Tool

Post by Florenzius »

Amazing tool :thumbsup:

Looking forward for more openplanet tools
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
TMarc
Posts: 15441
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Map Thumb Tool

Post by TMarc »

Looks interesting :)
Small and convenient :thumbsup:

But... What about password protectet maps?
Nobody shall be allowed to exchange any others maps content, right?
Are there such or other usage restrictions?
User avatar
Miss
Posts: 2155
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: Map Thumb Tool

Post by Miss »

There are no password restrictions on this tool. Even if I knew how to check for a map password inside the file, it can be bypassed either way since the tool is open source. :P

Also, this tool doesn't change any other information about the map. Meaning it will keep the author name/login, map name, password lock, Uid, etc.
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
User avatar
TMarc
Posts: 15441
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Map Thumb Tool

Post by TMarc »

Ok.
But I would expect that also the thumbnail is kind of protected by a checksum.
So at least it could be checked that the mapfile content was modified unintentionally.

I would not like to see my own maps with a new thumb or preview image that has a server or team emblem only because someone is taking my maps for their own...
User avatar
Rots
Translator
Translator
Posts: 1165
Joined: 01 Sep 2010, 14:39
Location: España, Barcelona

Re: Map Thumb Tool

Post by Rots »

So simple and useful! :1010
Image
Image
Image
TrackMania Original brought me here... Here I am since 2006
tcq
Posts: 2718
Joined: 15 Jun 2010, 11:02

Re: Map Thumb Tool

Post by tcq »

TMarc wrote: 08 Jan 2018, 16:45I would not like to see my own maps with a new thumb or preview image that has a server or team emblem only because someone is taking my maps for their own...
Exactly this. Some people put a lot of effort into the correct positioning of the preview picture of a map to show some of its characteristics or the general mood of the map.
Just because it is possible to do things, not everything should be done that is doable.
User avatar
Electron
Posts: 799
Joined: 15 Jun 2010, 18:02
Contact:

Re: Map Thumb Tool

Post by Electron »

I had already written in the Openplanet Discord channel that I don't provide such a tool because it can be used for abuse.
I also don't want that someone can add tasteless or forbidden images to my maps and that these maps then can be downloaded from servers.

The tool should at least read out the login name from the Trackmania or Maniaplanet profile and allow the saving of a new thumbnail image only with own maps (e.g. like the tool ChallengeEdit does).

When editing, you could also make saving the image more efficiently. A 70 KB JFIF consumes 256 KB of memory in the map. 186 KB are filled with zeros...

Last but not least, this tool has nothing to do with Openplanet. This thread should therefore be moved one level up directly to General Tools. ;-)
Image
TM²: TrackMania Telemetry Monitor version 1.2.4
User avatar
Miss
Posts: 2155
Joined: 05 Jan 2016, 11:34
Location: The Netherlands
Contact:

Re: Map Thumb Tool

Post by Miss »

Like I said, it's a tough thing to verify since the tool is open source. (Even if it was not open source, a decompile is very quick.) :(

Ah, I know why it adds the 0x00's. Fixed on Github, thx for the report.

I decided to release it under the Openplanet name since it's an "internals" tool and that's basically what Openplanet is. People ask me for very different things all the time so why not add some branding to it..? :)

Anyway, if people think this tool shouldn't exist, I'll remove it. However, I personally don't expect much harm to be done with it at all, it's just a useful tool especially for the people using the Trackmania Maker titlepacks. Will see if I can poke Nadeo about this.
3080 RTX, Ryzen 3700X, 32GB RAM, Windows 11
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative ManiaPlanet & Turbo scripting platform! (Openplanet subforum)
I also stream and tweet.
User avatar
Electron
Posts: 799
Joined: 15 Jun 2010, 18:02
Contact:

Re: Map Thumb Tool

Post by Electron »

I have developed many of these small tools for Gbx files in the past. One of them was ReplayToChallenge, which could extract the Map from a given Replay file.
If you had overwritten your Map while building it or it was not readable anymore, you could still save your work with this tool. Some users were very grateful to me for that.
Under TrackMania Nations Forever such an extracted Map was still completely playable and could be loaded on a server. Some players didn't like that and attacked me because of that.
Therefore I am sensitized to similar tools. For example, I published my tool which extracts the Lightmaps from a Map, while the tool for extracting the embedded Items is not publicly available.
Post Reply

Return to “Openplanet”

Who is online

Users browsing this forum: No registered users and 1 guest