Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Tue Oct 15, 2024 12:11 pm
All times are UTC + 0
MAPCLEAN - a script to add/remove/modify tags and sections in maps
Moderators: Community Tools Developpers
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Sat May 27, 2023 6:23 am    Post subject:  MAPCLEAN - a script to add/remove/modify tags and sections in maps Reply with quote  Mark this post and the followings unread

This script requires TCL runtimes, you can get it here: https://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai/downloads/activetcl-8612-for-windows

MAPCLEAN initially started out with the goal of removing the junk added to the maps by FA2, such as the countries, and was expanded to be able to modify tags as well. The modification and removal process is controlled by the contents of mapclean.cfg which has explanations for every section. It's probably worth mentioning the maps.log it generates will not have much information regarding operation, but will nonetheless indicate that it has completed cleaning the maps.

Unlike most of the other scripts, MAPCLEAN is run by dragging and dropping a map onto the batchfile, it's not picky about the file extension, but it is picky about whether the map is a mission map or multiplayer map. The ability to remove tags or sections can be useful if the map contains unsupported additional content, such as when converting a YR map to RA2, the ability to modify is probably most useful for fixing lighting.

Also rare to the scripts in this series, is the option to specify the .cfg file and log file names, as well as optionally changing the logging behaviour to one of appending instead of overwriting. So two copies of MAPCLEAN could co-exist, with their own batchfiles and cfg files, one for cleaning new multiplayer maps, and a less aggressive one for making slight changes to mission maps. By default it will not attempt to "clean" a mission map, as the rules defined in mapclean.cfg may interfere with the code required for missions to work. To change this behaviour, you will have to change the 'allowmissions' flag in mapclean.tcl.

There is an unstated secondary feature that I know has helped some people, in cases where the map sections are jumbled (or sorted) in a way that will crash the game, MAPCLEAN will write the sections back to the map in a perfectly safe order. This includes grouping all map scripting sections together for less jumping around when manually editing or debugging, though for any serious troubleshooting you should use MISTEST to scan the map.

Strictly speaking the mapclean.tcl doesn't normally have to be edited, as it doesn't read any inis or game files, but as mentioned above there are some settings that can be worth altering in specific cases.

Current version: 3.0b



mapclean3.rar
 Description:

Download
 Filename:  mapclean3.rar
 Filesize:  4.63 KB
 Downloaded:  16 Time(s)


_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Mon Jul 24, 2023 9:37 pm    Post subject: Reply with quote  Mark this post and the followings unread

MAPCLEAN 3.2...

Big update here.

First I worked on making a fix for invisible-to-FA2 infantry on the map, but this expanded to doing proper range checks on the infantry positions. The FA2 option of this feature reduces the valid infantry positions from 0,2,3,4 to 0,2,3, and can be toggled via a new setting in mapclean.cfg under [Options]. The FA2 limitation is made optional as other map editors don't have this bug, and in the future FA2sp might fix this.

After all the testing, this was followed up by a similar overlapped unit/aircraft check. This one is a little simpler in that it just removes whatever overlaps an earlier unit. The caveat here is that the overlap check stays within the unit class, so an infantry can still overlap with a vehicle or an aircraft, but a vehicle cannot overlap an aircraft, and they can all overlap buildings.

For a detailed analysis of the map before or after cleaning, I'll refer you to use the MISTEST script.



mapclean3.rar
 Description:

Download
 Filename:  mapclean3.rar
 Filesize:  5.34 KB
 Downloaded:  10 Time(s)


_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
G-E
Defense Minister


Joined: 09 Feb 2015

PostPosted: Wed Aug 09, 2023 12:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

MAPCLEAN 3.4a...

Another reasonably big update, this one adds two new sections to the .cfg that allows you to change the state and owner of placed units and buildings. The changes can be batched by object name or its current owner, so you can flip all civilian objects to Sleep or all the tech buildings to Neutral house.

Worth noting that the "Civilian" house is "Neutral" for the purposes of placed objects.

PS. If you have matching rules to change the owner of something, one by owner, the other by object name, the match by name will take precedence, ie. the specific rule overrides the broad rule.



mpc.jpg
 Description:
 Filesize:  200.21 KB
 Viewed:  1584 Time(s)

mpc.jpg



mapclean3.rar
 Description:

Download
 Filename:  mapclean3.rar
 Filesize:  6.22 KB
 Downloaded:  22 Time(s)


_________________
http://www.moddb.com/mods/scorched-earth-ra2-mod-with-smart-ai

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
Quick Reply
Username:


If you are visually impaired or cannot otherwise answer the challenges below please contact the Administrator for help.


Write only two of the following words separated by a sharp: Brotherhood, unity, peace! 

 
You can post new topics in this forum
You can reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum
You cannot attach files in this forum
You can download files in this forum


Powered by phpBB © phpBB Group

[ Time: 0.2444s ][ Queries: 14 (0.0098s) ][ Debug on ]