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 Wed Apr 24, 2024 9:10 am
All times are UTC + 0
TAGLIST - a script to check validity of tags within rules.ini
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: Fri May 26, 2023 7:15 am    Post subject:  TAGLIST - a script to check validity of tags within rules.ini
Subject description: (supports TS/FS/RA2/YR explicitly, and has extended cfg for addons like Ares)
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

The vanilla games come included with several capitalization errors like "Maxdebris" and other tags, but it is all too easy to make such a typo when modifying rules.ini for a mod. This script is meant to catch such mistakes and record anytihng it finds to a log file.

The scope of the script's checking is however limited to the unit classes, buildings and warheads. As these are the longest code blocks typically, that's where the majority of mistakes will be, and in a few cases where tags were incorrectly placed in one when it should be in the other, such as the BurstDelayX= tags. The secondary utility of this script is to ensure the code being used in rules.ini matches the game being played, so that FS tags aren't employed when the target game is TS, or similarly that YR code isn't used in a RA2 mod.

As with all such scripts the taglist.tcl has to be edited, with some basic settings defined, most importantly being which .cfg file is loaded, and where the rules.ini exists.

In the future this could be expanded to encapsulate more object classes, and maybe even art.ini tags, but there are no plans at the moment to do so.

Current version: 1.3c



tags.jpg
 Description:
 Filesize:  30 KB
 Viewed:  1160 Time(s)

tags.jpg



taglist.rar
 Description:

Download
 Filename:  taglist.rar
 Filesize:  13.22 KB
 Downloaded:  14 Time(s)


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

Back to top
View user's profile Send private message
wow4ik81
Vehicle Drone


Joined: 30 Nov 2023
Location: Germany

PostPosted: Mon Mar 04, 2024 6:10 pm    Post subject: Reply with quote  Mark this post and the followings unread

very good, will there also be a tool for the art.ini file?

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


Joined: 09 Feb 2015

PostPosted: Fri Mar 08, 2024 5:44 am    Post subject: Reply with quote  Mark this post and the followings unread

No, and honestly there's not much to art.ini that can hide mistakes the same way...

_________________
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.2044s ][ Queries: 14 (0.0097s) ][ Debug on ]