Aurora 4x

C# Aurora => C# Utilities => Topic started by: Remilian on May 19, 2021, 06:00:13 PM

Title: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: Remilian on May 19, 2021, 06:00:13 PM
This tool is primarily for roleplay, but includes some practical features as well. Currently it allows to:

All changes are done through database edits, so this tool does not qualify as a mod. Approved with Steve.
Any changes will affect only the database you choose to edit. The tool is not required to run after the changes have been made.
New versions of the tool will include mostly roleplaying stuff, but a few decent practical game-changing things as well.

Written using C# and uses the same libraries as Aurora. If you can run Aurora - you should be able to run this tool without any additional installations required.
Unless drastic changes happen, it should work with any version of the game. If changes do happen and the version becomes incompatible - the tool should safely refuse to make any changes to your database. I will most likely add some more future-proofing later.

The RAT is currently work-in-progress, but I put a decent amount of work into making sure your database will not get corrupted, including making a backup before every edit (can be disabled).
I would appreciate any feedback on the usage: usability, bugs, and especially if the tool refuses to work at all.

Usage:
Before using the tool, make sure that the game is closed! This tool works only with the database, but the game overwrites the data when saving. You will need to restart the game for changes to take effect anyways.

After making changes you want, press the "Commit changes" button. If you close the application without that, all changes made that session will be lost.

After opening the database, all present values for various features will be shown.
To change a value - double-click it. It is handled differently for every feature. For example, double-clicking values in Event Interruption table will just switch the Yes\No value, and double-clicking a Medal Condition value will open a new dialog box where you can change the specifics.
If new values can be added or deleted - appropriate buttons will be shown on the same page as the table.

All values are color-coded:
(Note: if values are white no matter what - make sure that file "RAT_CleanData.dat" is present in the same folder as the application)

Specific notes:

Downloads (pick one):
Download button is at the top-right (https://i.imgur.com/2Ks5Ot4.png) of the page.

(https://i.imgur.com/5MoEg1m.png)(https://imgur.com/z5VgSCb.jpg)
(https://i.imgur.com/iI2Bi1C.png)
(https://i.imgur.com/AeOfrGb.png)

Note:
As I mentioned before,  it should be safe for average user, but there are definitely some edge-cases. For example, deleting every value in the table might cause in-game problems.

Future plans:
Title: Re: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: Froggiest1982 on May 19, 2021, 06:06:59 PM
Thanks for this. I am really interested in the medals condition for my pack.

However, I assume this DB editor will be limited by the DB version or would potentially work with other iterations?

If not, I would recommend including the DB version you need to run to make it works. This will avoid problems if in the future it will not be updated.

Great work though, I wish I had the ability.
Title: Re: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: Remilian on May 19, 2021, 06:22:36 PM
Thanks for this. I am really interested in the medals condition for my pack.

However, I assume this DB editor will be limited by the DB version or would potentially work with other iterations?

If not, I would recommend including the DB version you need to run to make it works. This will avoid problems if in the future it will not be updated.

Great work though, I wish I had the ability.
Thanks.
As long as there are no changes affecting specific database record formats, it should work with any version of Aurora.
If some drastic changes do happen, I can quickly adjust the code. Later I will most likely move some of the logic into a config file that can be edited by users in the future if needed.
Title: Re: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: RougeNPS on May 19, 2021, 09:56:58 PM
li]Rename installations, their workers, and political statuses of your colonies. Indulge a bit more in roleplay, or do something wacky.

THANK YOU! YES! CUSTOM INSTALLATIONS FINALLY!

Not exactly with the full functionality i would like but its a step in the right direction.
Title: Re: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: serger on May 20, 2021, 02:06:29 AM
That's splendid!
Thank you and good luck with new versions!
Title: Re: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: skoormit on May 20, 2021, 07:22:20 AM
I love this.

Taking feature requests?


1) Setting to keep past X days of event logs, rather than deleting all of them.

2) Delete ship history logs. (These can also cause significant increase to game save times.)
Two settings:
A) As above, keep past X days.
B) Minimum history records to keep per fleet.
(In other words, delete only records older than X, and only after skipping the first Y records for each fleet.)

3) Build ship components with industry.
I choose a colony, a ship design, a desired number of ships, and select top or bottom of queue.
This feature inserts the industry-buildable components for that number of ships at the top or bottom of the industry queue of that colony.
The percentage of industry allocated to each component is balanced so that they all complete at the same time.
Bonus: Add an option to use or ignore colony stockpiles.
Note: I have a query that calculates the component cost percentages for each design. Message me if you'd like it.

Title: Re: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: Remilian on May 20, 2021, 08:08:21 AM
I love this.

Taking feature requests?


1) Setting to keep past X days of event logs, rather than deleting all of them.

2) Delete ship history logs. (These can also cause significant increase to game save times.)
Two settings:
A) As above, keep past X days.
B) Minimum history records to keep per fleet.
(In other words, delete only records older than X, and only after skipping the first Y records for each fleet.)

3) Build ship components with industry.
I choose a colony, a ship design, a desired number of ships, and select top or bottom of queue.
This feature inserts the industry-buildable components for that number of ships at the top or bottom of the industry queue of that colony.
The percentage of industry allocated to each component is balanced so that they all complete at the same time.
Bonus: Add an option to use or ignore colony stockpiles.
Note: I have a query that calculates the component cost percentages for each design. Message me if you'd like it.
Absolutely. This is version 0.1 after all.

1 and 2 definitely will be added. As for 3, maybe later.
Title: Re: Remilian's Aurora Tools: Custom Medal Conditions, Event Log, RP changes and more
Post by: Stryker on October 14, 2021, 11:17:30 AM
Is there a way to turn off civilian scrapped ships.  I don't see that option.