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 Fri Apr 19, 2024 5:23 am
All times are UTC + 0
A self-made rules.ini editor, GUI
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [3 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
colt
Civilian


Joined: 05 Mar 2022

PostPosted: Sat Mar 05, 2022 12:15 am    Post subject:  A self-made rules.ini editor, GUI
Subject description: Any test, review, comments and suggestions are welcome
Reply with quote  Mark this post and the followings unread

Hi,

I am rookie to this forum and RA2 mod. But thanks to your great forum and information, I created a self-made RA2 rules.ini editor on my github:

https://github.com/coltlv1994/RulesChanged

Well, currently it could read and save RA2 rule file, rules.ini; I do have plan to extend its support on RA2:YR in the future.

I know that not everyone is interested into looking at codes and that's OK. I will briefly explain what the program does:

1. Read from existing rules.ini file;

2. For [InfantryTypes], [VehicleTypes], [AircraftTypes], [BuildingTypes], [SuperWeaponTypes] and[Warheads], the six fields with list like "1=AMCV", I will put them into a list and read every attributes from [AMCV], [NAPOWR], etc.

3. For [OverlayTypes]. [Countries], [SmudgeTypes], [Aminations], [VoxelAmims], [Particles], [ParticleSystems], [AIGenerals] and [VariableNames], they and their subfields will be put into a separate list, nothing changes to these lines.

4. All other fields like [General], [105mm] will be treated as the subfields in [Building/Vehicle/Aircraft/etc.Types].

5. Write the data back; first write lines in step 3, then lines in step 2, then lines in step 4.

Some improvement in my mind:
1. Better looking GUI. It is ugly now.
2. Sort out projectiles and weapons.
3. Extend support to RA2:YR.

Thanks! I do hope my work could save some time for your mod works.

How to use it:
1. Download from github. The executable files are in Examples/RulesChanged_x86.zip
2. It supports any 32/64-bit Windows 7 SP1 and newer OS; but you may want to download .NET Desktop Runtime from MS: https://dotnet.microsoft.com/en-us/download/dotnet/6.0
3. If you don't want to download the runtime, you can try RulesChanged_x86_runtimeincluded.zip, the executable file is called RulesChangedWPFNET.exe

Back to top
View user's profile Send private message
Kerbiter
Cyborg Soldier


Joined: 05 Jun 2018

PostPosted: Fri Mar 11, 2022 2:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

Does it support arbitrary INI tags or do you have a way to describe new tags somehow without recompiling the program? if not - you really should consider implementing that, considering that Phobos is very much not dead.

_________________

Using MagicaVoxel to create voxel models :: Phobos YR Engine Extension

[img]https://raster.shields.io/endpoint.svg?url=https%3A%2F%2Fshieldsio-patreon.vercel.app%2Fapi%3Fusername%3Dkerbiter%26type%3Dpledges&style=flat[/img]

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


Joined: 09 Feb 2015

PostPosted: Fri Mar 11, 2022 5:02 pm    Post subject: Reply with quote  Mark this post and the followings unread

Aside from the additional YR tags, I think the only structural difference is the General and AudioVisual sections were kinda smashed together in YR. Some of what was in AudioVisual is now in General.

I don't quite understand the purpose of the tool however? What does it provide over directly editing the rules.ini besides maybe undo?

_________________
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
You cannot post new topics in this forum
You cannot 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.1855s ][ Queries: 11 (0.0070s) ][ Debug on ]