Map Thumb Tool

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

Moderators: Miss, NADEO

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

Map Thumb Tool

Post by Miss » 08 Jan 2018, 10:48

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!)
1070 GTX, i7 4790k, 16GB RAM, Windows 10
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative Maniaplanet & Turbo scripting platform! (Openplanet subforum)
I also stream on Twitch and tweet on Twitter.

User avatar
Florenzius
Translator
Translator
Posts: 2339
Joined: 27 Jul 2014, 20:31
Location: Germany » Saxony » Chemnitz
Contact:

Re: Map Thumb Tool

Post by Florenzius » 08 Jan 2018, 14:20

Amazing tool :thumbsup:

Looking forward for more openplanet tools
Hardware specs:
MB: MB AM3+ 970 Gigabyte GA-970A-DS3P
RAM: 16GB DDR3
CPU: AMD FX-8320E Enlight-Core
GPU: Nvidia GeForce GTX 960
OS: Windows 10 Pro

User avatar
TMarc
Posts: 14548
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Map Thumb Tool

Post by TMarc » 08 Jan 2018, 14:45

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?
maniaplanet forum global moderator

Link list with FAQ, Support, Wiki, Tutorials, Community activities, and much more.

System specs: Intel i7-970 12GB RAM, nVidia GTX 970, Creative SB X-Fi, 2xSSD

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

Re: Map Thumb Tool

Post by Miss » 08 Jan 2018, 16:04

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.
1070 GTX, i7 4790k, 16GB RAM, Windows 10
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative Maniaplanet & Turbo scripting platform! (Openplanet subforum)
I also stream on Twitch and tweet on Twitter.

User avatar
TMarc
Posts: 14548
Joined: 05 Apr 2011, 19:10
Location: Europe
Contact:

Re: Map Thumb Tool

Post by TMarc » 08 Jan 2018, 16:45

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...
maniaplanet forum global moderator

Link list with FAQ, Support, Wiki, Tutorials, Community activities, and much more.

System specs: Intel i7-970 12GB RAM, nVidia GTX 970, Creative SB X-Fi, 2xSSD

User avatar
Rots
Translator
Translator
Posts: 1159
Joined: 01 Sep 2010, 14:39
Location: España, Barcelona

Re: Map Thumb Tool

Post by Rots » 09 Jan 2018, 12:17

So simple and useful! :1010
Image
Image
Image
TrackMania Original brought me here... Here I am since 2006

tcq
Posts: 2706
Joined: 15 Jun 2010, 11:02

Re: Map Thumb Tool

Post by tcq » 10 Jan 2018, 08:53

TMarc wrote:
08 Jan 2018, 16:45
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...
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: 725
Joined: 15 Jun 2010, 18:02
Contact:

Re: Map Thumb Tool

Post by Electron » 10 Jan 2018, 21:01

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

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

Re: Map Thumb Tool

Post by Miss » 10 Jan 2018, 22:06

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.
1070 GTX, i7 4790k, 16GB RAM, Windows 10
Forum moderator, opinions are my own. :thx:
Check out Image openplanet, the alternative Maniaplanet & Turbo scripting platform! (Openplanet subforum)
I also stream on Twitch and tweet on Twitter.

User avatar
Electron
Posts: 725
Joined: 15 Jun 2010, 18:02
Contact:

Re: Map Thumb Tool

Post by Electron » 10 Jan 2018, 23:14

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