Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Simulator Enhancements (03/13/24)

Pages: [1] 2

Author Topic: [0.9.1a] Lethargie's Editable patch generator (Now for ship too!)  (Read 6044 times)

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile

Lethargie's editable patch generator
A meta-mod which provides easy control over factions: portraits, colors, Ships, names, etc... for both players and mod makers

Hello, I'm proud to present something a bit different from the usual mod. This is an executable program that will generate a mod according to your choice! The editable part are quite limited right now but once this version has shown itself to be stable, I will be able to add tons of nice option.

The current version allow you to edit all the factions portraits, ships (frequency still pending), name and color in any way you want. You can also save your edit and share them in a way that do not requires others to have the same modlist

What is special about this?:
This is a meta-mod, a program that generate a customized mod for you. This can affect all mods that you currently have if you want. Any modification made by mod to the vanilla faction will be kept, but any and all faction (including mod-added) will have their Portraits/colors/name/etc.. affected.
Do not worry, no edit are made to the other mods and the resulting patch can be activated/deactivated just like any other mods.

Why would I want this?:
Look at the use case further in this post. If this calls to you, then the question is answered. If you do not see yet a use, but could see one if some features were added, feel free to say so. If you see absolutely no use ever, well so be it, you dont need to install all the mods everyone does.

Feel free to write your suggestion in this thread!

This is the download link:
Latest version 0_0_5_0

facultative:
A modification List to try!
It modify the look of the Hegemony and TriTachyon. Can be used on ongoing save, but you get full look with new save. Read Use case 5 for more info.

 Initial Setup
No matter what is your personal use case, you need to do the very quick and easy initial setup:
  • Download the  executable. (click on the link on this post)
  • Extract it somewhere. (remember, this is not a mod, its a tool that will make one)
  • Start EditorInterface.exe
  • Out of the 3 buttons, click on "Explore Starsector Directory"
Explore Starsector directory

This might seem like a big window, but there really isn't much to do here.
  • Click on select path to find the folder containing your starsector executable. It should be saved the next time you use the tool
  • Click on Explore Directory this will populate your mod list
  • Mod start activated/deactivated according to your current Starsector mod setting. If you make some change in mod activation and want to come back to that, click here
  • This is your mod list, depending on your use case you might want to skip some mod or activate some before you edit. Click on the checkbox to activate/skip any one
  • Mod description
  • Click on Directory setup complete to finish setup and go back to the main menu
[close]
That's it! you can now select any use case example to proceed
[close]
Final thing you need to do all the time
Once you have made the modifications you wanted according to your use case, you need to generate the actual mod file. This is really simple, you just need to click on Write mod to disk on the main menu.
Write Mod
[close]
  • Click on Select path to select the folder where all your file will be written. Right now this folder MUST BE EMPTY, this is to minimize risk of accident. If you forgot to empty it, and empty it while LEPG is running, click on cancel then come back on this page, it should register the changes
  • This button takes you back to the main menu
  • This is the list of the files that will be written to your new mod folder
  • click on WriteMod to write your mod to the disk. You should get a confirmation window once it succeed
  • Don't forget to activate your new mod when you start Starsector!
[close]

Use Case 1: Player that use portraits pack and/or player that use faction mod
You got a nice portraits pack like for example the excellent Interesting Portraits pack by Interestio, but you also use some nice faction mod like the ever good Legacy of Argneisis by Gwyvern. Alas, the faction added does not include any of the nice portraits from your pack. Or maybe some vanilla portraits clash with your sense of esthetic. Whatever the problem, now you can make any faction have the portraits YOU want.
  • Make the initial setup, make sure all the mod you will want in your playthrougth are activated
  • In the main menu, click on Edit portraits
Edit portraits


  • This is the list of all faction that will be in your game. Some might be weird, this is normal, some mod makes special factions that don't appear in game, do not worry about them. Click on any faction that you want to edit here. Those marked with a red or yellow Icon are those you have already modified
  • These are the parts of the faction that are editable/readable for now. Values are just single values that describe the faction. For edit you got a female portraits and male portraits tab. These should be self explanatory
  • This is the list of items present in the selected faction
  • This is the list of available items that can be added to the faction. They are grouped by source mod
  • These are the buttons that makes the work, you can add a portraits from those available, Remove or Clear all from the current faction and reset the items to the original list without your modification
  • This button takes you back to the main menu when you are done

In the linked image for example, I have added a portrait from the Interesting portrait pack to the female portraits of the Reparation Society faction of Legacy of Argneisis. I have done so by selecting the faction, selecting the portrait and clicking add. You can see by the red mark that I have also made modification to the Sindriat Diktat vanilla faction before this.
[close]
Once you are done, do the Final thing you need to do all the time and start a new game. Your modification only really takes effect on a new game. Generally, you should not add/remove mods during your playthrough. If you simply want to add a mod update that does not touch the faction files your patch modify, you should be fine. But I'm not responsible if it break something.

Example 2: Adding portraits for the player to select at the game start

This example show I have added an AI portrait from vanilla and a portrait from Legacy of Argneisis to the "your" faction. This allow me to select them for myself when I start a new game
[close]
[close]

Use Case 2: Players that want to change the colors of any faction in game
You use some nice faction mod like the ever good Legacy of Argneisis by Gwyvern. Alas, the colors clash with your sense of esthetic. Or maybe the colors are too similars, and you cant distinguish between the reparation society and Tri-tachyon. Lets fix this
  • Make the initial setup, make sure all the mod you will want in your playthrougth are activated
  • In the main menu, click on Edit portraits
  • Select faction on the left and select the Value tab
Edit Value


Modification are quite intuitive, click on a value and choose/write what you want. To close a color picker, just click again on the color. If you want to reset it, click on the reset icon in teal. You are given example of what the faction text and fleet will look like in game that are updated live.

Once you are done, do the Final thing you need to do all the time and start your game. If you only do those modification, you do not need a new savegame, its 100% safe as long as you don't have another mod editing these value (which is really rare and you will be warned by a "multiple value set" tag). Modmaker can always copy these value to your mod if you want them.
[close]
[close]

Use Case 3: Modmaker that makes portraits pack and want to add compatibility to other mods
You are for example Interestio and have a nice portraits pack(Interesting Portraits pack by Interestio). You have done all the vanilla faction, and would like players that use other faction pack to have some nice bonus. This is easy!
  • Make the initial setup, you want to activate your mod, and those you intent to extend compatibility to
  • In the main menu, click on Edit portraits
  • Follow the instructions from User case 1 but do not clear or Remove portraits from any mod. Only add from your mod (or vanilla I guess) to the mods you are adding compatibility to
  • Any faction that has a red icon next to it means you did something wrong, select it, and reset male and female portraits. Yellow is perfect
  • do the Final thing you need to do all the time. Do not start the game, rather copy the .faction files you have generated to your own portrait pack folder. After this you do not need the patch folder for anything
  • You are done!
[close]

Use case 4: Modmaker that makes faction and want a nice visual tool to edit portraits
You make a nice faction for your mod, like any good moder you know how to add portraits to your .faction files. But it is a bit of an annoying process, since you cant really see all the portraits you have added until you are in game. This tool can allow you to do it in a nicer way

Yo have 2 similar ways of doing it. You can create a .faction that has only the portraits field, and copy that in your own .faction file, or you can recreate your whole .faction file and replace the one in your folder. DO note that option 2 remove all comments you may have and might change the order of fields in your files (not bad for the game, but can mess with the readability).
  • Make the initial setup, you want to activate your mod only. Your mod needs an initial .faction file to start. In the future I plan on allowing you to create one, but not for now
  • In the main menu, click on Edit portraits
  • Follow the instructions from User case 1 for your faction. If you clear or Remove portraits from your mod, you will either have to replace your file, or find in the patch file the portraits section in order to paste it in your file
  • Any faction that has a red icon next to it means the patcher will write a copy of the whole file, yellow means you only get the portraits section
  • do the Final thing you need to do all the time. Do not start the game obviously, but rather integrate the modification to your mod
[close]

Use case 5: When you want to share your modifications
You have the ability to save/load the modification you made as a List of modification. This means if you change your modlist, you can load your modification list and they are applied automatically. If a modified faction do not currently exist, its modification are discarded, if a resource is not available, the related modification is discarded. You can even share your modification list with someone, in fact I share a small one I made right aside the download button. The save/load button is in the bottom/left of the Edit faction panel. To use a saved modification list, just follow the same step as use case 1, but instead of doing your own modification, Load those from your file. You can always add more modifications after.
[close]

 Technical: how does this work?
I need to write this  ;D
[close]
 Changelog
version 1_0_0_2
Initial proof of concept, oddly numbered

version 0_0_2_0
New interface, and actual use. Low version number since we are far from finished

version 0_0_3_0
Now we can edit color and names of all factions

version 0_0_4_0
We can save and load the list of modification

version 0_0_5_0
We can edit knownShip, priority ship and ship when importing
[close]

Special thanks for Histidine and Mesotronik for helping me iron out some problem of the editor. Thanks also to Gwyvern for allowing me to show his mod in the screenshots and to Interestio for his nice portrait pack.
« Last Edit: May 29, 2020, 12:18:15 PM by lethargie »
Logged

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator
« Reply #1 on: May 05, 2020, 08:44:35 AM »

First Update! Since no one reported any bugs, I have made a release with actual use. Read the updated main post to get some nice use case, some explanation and the latest download.

I'm really excited about this one, I use it on my own game ans it is quite fun.
Logged

wizardcain

  • Ensign
  • *
  • Posts: 11
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator
« Reply #2 on: May 05, 2020, 07:46:13 PM »

I can’t download, the site writes error 404
Logged

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator
« Reply #3 on: May 06, 2020, 10:03:34 AM »

that was weird, the link seems to be functional now. Sorry about that.

Edit: I am super dumb, I forgot to make the repository public. Its done now, it should work.
« Last Edit: May 06, 2020, 10:10:50 AM by lethargie »
Logged

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile

Now onto version 0_0_3_0.

I have added the value tab, which allow edit of any faction name and color!. So if you are colorblind you can fix that for factions (including your own)
Editing color is 100% safe and can be changed during your savegame.
Logged

cathar

  • Lieutenant
  • **
  • Posts: 55
  • ludd is bae
    • View Profile

Love this. I might have added a bit too many portrait packs lately, this should really help give factions a unified look back.

What are your goals for this in the future? Would be really cool to be able to more easily add/remove ships or weapons from a mod, for example, or switch out sprites.
Logged

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile

Yeah I should make a plan section, if only not to forget.

Next update should introduce the ability to save your modification as a serie of token that can be reapplied. So that way, if you change your modlist you can reapply all your modification before doing some more.

After that I'm definitely doing a tab for know hull. Most of the work is done, it will mostly be figuring out a pleasant interface.

Ultimately, I would like for every part of the faction file to be modifiable, so that a moder could literally create one from scratch.

Sprite switching is not something I think I can do right now. Sprite are intimately linked to the ship data.
Logged

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile

Now onto version 0_0_4_0.

We now have the ability to save/load modification list! I shared a simple one, making this both a mod and a tool.

Don't be afraid to share your own, the look of the sector is ours to edit.
Logged

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator (With load/save!)
« Reply #8 on: May 29, 2020, 12:15:26 PM »

Ship Update!

Tons of work now allow us to use the editor to edit the known ship list of any faction in the game! This is done exactly like portraits you just have to select another tag. Wanna make the Tritach use remnant drones? Add some ibb from ship/weapon pack to the persean league? (almost) Anything you want to do with ship list is now available in a nice visual tool. Be carefull with that power thought, if you remove all ship from a faction, they wont spawn fleet (obviously, but i'm just making sure)

On top of that, you can "shift click" to move ship to and fro. This QoL feature will be added to portraits soon.

Link is updated on the main post. I'm going to update use case when I get the courage to do it. Don't forget to share the fun sectors you have created with this tool.



next goals:
Add "shift click" to portrait
Allow modmaker to edit their mod rather then having to merge the patch back in their files.
Logged

captinjoehenry

  • Commander
  • ***
  • Posts: 100
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator (Now for ship too!)
« Reply #9 on: June 17, 2020, 06:45:31 PM »

Man this looks awesome!  Is there any chance this could edit stats of ships or fighters or weapons or such?  As I know I'd love to make all sorts of adjustments to fighters mostly and other things for my own enjoyment
Logged

lethargie

  • Commander
  • ***
  • Posts: 183
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator (Now for ship too!)
« Reply #10 on: June 22, 2020, 01:01:33 PM »

While this is possible, it is a bit outside the scope of the current project. Stats editing is probably better done by modifying the .csv that contains them. The project is on a bit of a hiatus right now. It was pointed out to me that the editor had a tendency to crash, while at the same time work found some way to keep me very busy. As soon as I get more coding time, I will be back trying to had error logging features to better debug unfortunate problems some people might have.
Logged

IonDragonX

  • Admiral
  • *****
  • Posts: 816
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator (Now for ship too!)
« Reply #11 on: November 18, 2020, 05:32:50 PM »

Great Job, Lethargie! This is a totally underappreciated project!
Logged

ShadowVoid

  • Ensign
  • *
  • Posts: 2
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator (Now for ship too!)
« Reply #12 on: April 03, 2021, 06:55:01 AM »

Hey, I've just downloaded this mod yesterday and I've been messing around with it in the hopes of customizing modded factions ships and blueprints, and I think I've managed to do it however since the game has been updated to 0.95 the mod created by using this program is recognized as 0.91 and doesn't work, the game won't even let me enable the mod and see if it crashes or not. So, is there any hope of you ever updating the program to make it work in 0.95?

Whatever the case thanks for making such an amazing tool I have been looking for something like this since I first discovered Starsector. 
Logged

DemonicSquid

  • Ensign
  • *
  • Posts: 13
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator (Now for ship too!)
« Reply #13 on: April 20, 2021, 01:36:56 PM »

Hey, I've just downloaded this mod yesterday and I've been messing around with it in the hopes of customizing modded factions ships and blueprints, and I think I've managed to do it however since the game has been updated to 0.95 the mod created by using this program is recognized as 0.91 and doesn't work, the game won't even let me enable the mod and see if it crashes or not. So, is there any hope of you ever updating the program to make it work in 0.95?

Whatever the case thanks for making such an amazing tool I have been looking for something like this since I first discovered Starsector.

In the root folder of your new mod, open modinfo.json in a text editor like Notepad++, change the contents of the game version field to 0.95a and you'll be golden.

Like this:

Code
"gameVersion":"0.95a"
Logged

pashatehnik228

  • Ensign
  • *
  • Posts: 1
    • View Profile
Re: [0.9.1a] Lethargie's Editable patch generator (Now for ship too!)
« Reply #14 on: April 23, 2022, 01:36:56 PM »

Whenever I start LEPG and explore directory, when i click on 'EDIT FACTION' the program just crashes. If I don't use 'Directory setup complete' and instead click on 'take me back' and then go into 'edit faction', the menu is empty and upon clicking 'add package' or 'add ship' the program crashes as well. Any idea why this happens? I'm on 0951 version and i've put the installation folder both in mods folder of starsector, the main game folder and outside the game folder. Also SSEDITOR just doesn't launch at all. I'm using windows 10 if that helps.
Logged
Pages: [1] 2