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: Anubis-class Cruiser (12/20/24)

Author Topic: Answered: How to edit weapon mount sizes on ships?  (Read 4129 times)

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Answered: How to edit weapon mount sizes on ships?
« on: September 27, 2020, 08:48:30 AM »

I enjoy playing the game and I love all the ships in it. Not to mention all the mod ships I also enjoy playing as. At this point in time I just want to mess around and mount any size weapon on any ship's weapon mount. I think it would be so funny to mount large weapons on a small frigate. I can see it now dozens of frigates with giant guns running around.

The problem I am running into is I have no idea how to edit the base-game's/mod's ship in order to change weapon mounts. Can someone help or point me in the right direction?
I tried to look it up but got nowhere or it didn't work.
« Last Edit: October 05, 2020, 03:19:34 PM by Stelarwand030 »
Logged

Apfelkuchenbemme

  • Ensign
  • *
  • Posts: 22
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #1 on: September 27, 2020, 10:22:59 AM »

I tried to look it up but got nowhere or it didn't work.

Where did you look at what did you try to change? As far as I would tell from a glance over the files in /Fractal Softworks/Starsector/starsector-core/data/hulls, the .ship files contain information to the weapon mounts. Values like OP or flux dissipation, speed etc. are in the ship_data.csv.

There are probably some tools over on the mod section of the forum to fiddle around with the .csv file more comfortably, but don't forget to change the slot size alongside the slot type:

I need a better CPU and didn't have more Tachyons on me



Obligatory reminder:
Backup these files before screwing around with 'em
You could of course try to add the stuff as a mod, I guess
[close]
Logged

Hiruma Kai

  • Admiral
  • *****
  • Posts: 910
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #2 on: September 27, 2020, 11:34:05 AM »

Specifically, you're looking for things in the Hull file like:

"mount": "HARDPOINT",
            "size": "LARGE",
            "type": "ENERGY"

or

            "mount": "TURRET",
            "size": "LARGE",
            "type": "ENERGY"

Valid options for size are: LARGE, MEDIUM, SMALL.
Valid types are: ENERGY, BALLISTIC, MISSILE, HYBRID, COMPOSITE, SYNERGY, UNIVERSAL
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #3 on: September 27, 2020, 03:39:15 PM »

I have done all that and nothing changed. Do I have to change the .Bak file too?

I am trying to change a ship mod. Do I have to change something else?
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4913
    • View Profile
    • GitHub profile
Re: How to edit weapon mount sizes on ships
« Reply #4 on: September 27, 2020, 05:31:15 PM »

Which mod are you modifying? Are you doing something like modifying base game files while also running a total conversion that replaces said files, like Archean Order?

(Also, what editor are you using that's creating .bak files, or were they already in the folder?)

If you're still having problems, post one of the files that you've edited.
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #5 on: September 28, 2020, 03:34:47 PM »

I am trying to modify Star wars 2020 .Specifically the ship Assertor. I have also tried to change Paragon and got no change.

All the mods i have for this try are:
  • Console commands
  • Graphicslib
  • Kadur Remnant
  • Lazylib
  • Magiclib
  • Seeker_uc
  • Star wars 2020
  • Transger all items
« Last Edit: September 28, 2020, 03:38:54 PM by Stelarwand030 »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4913
    • View Profile
    • GitHub profile
Re: How to edit weapon mount sizes on ships
« Reply #6 on: September 28, 2020, 06:32:46 PM »

I changed all the Assertor's medium mounts to larges and energies to ballistics, and it worked immediately:
Spoiler

[close]

Likewise with changing Acclamator's medium energy mounts to larges:
Spoiler

[close]
Post the file you modified.
« Last Edit: September 28, 2020, 06:36:32 PM by Histidine »
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #7 on: September 28, 2020, 07:43:53 PM »

I changed all the Assertor's medium mounts to larges and energies to ballistics, and it worked immediately:
Spoiler

[close]
Uh... Those are still Medium Energy weapons.


Likewise with changing Acclamator's medium energy mounts to larges:
Spoiler

[close]
How?

Here are the files:


[attachment deleted by admin]
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4913
    • View Profile
    • GitHub profile
Re: How to edit weapon mount sizes on ships
« Reply #8 on: September 28, 2020, 08:13:15 PM »

my face rn

As is clearly visible, the weapon mounts got changed from medium to large. This means you can now put a large weapon in them. The weapons defined by the variants aren't changed and will remain in place (even if you change the underlying mount type, meaning the variant could end up with something like a large missile weapon on a small energy mount), unless you also change the variant files.

Your changes worked, you just failed to notice and/or expected them to do something they don't.
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #9 on: September 28, 2020, 08:24:56 PM »

Your changes worked, you just failed to notice and/or expected them to do something they don't.
Well... why can't I put large weapons on the mount then? Even when I put a large weapon on a large weapon mount (paragon) and I hold ctrl(?) to put a bunch down it wont work for changed weapon mounts.
I also change all energy to ballistic and the mounts stayed energy.
I even tried a new game and still nothing.
« Last Edit: September 28, 2020, 08:46:42 PM by Stelarwand030 »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4913
    • View Profile
    • GitHub profile
Re: How to edit weapon mount sizes on ships
« Reply #10 on: September 28, 2020, 08:51:05 PM »

Works for me. Post screenshots or a video.
(The weapon multi-add key is Shift)

EDIT: No, you know what? I have no idea what you're doing, and I don't want to know.
Are you even editing files in the right place, or saving them in the right format?
« Last Edit: September 28, 2020, 08:58:57 PM by Histidine »
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #11 on: September 28, 2020, 09:08:06 PM »

Here is exactly what I do:
  • go to Fractal Softworks\Starsector\mods\Star Wars 2020\data\hulls
  • Open sw_asseror.ship in Notepad++(as a .txt file)
  • Edit weapon size/type
  • Click save file button
  • Exit all programs
  • Start Starsector game

That's what I do for all changes.

[attachment deleted by admin]
« Last Edit: September 28, 2020, 09:32:27 PM by Stelarwand030 »
Logged

Apfelkuchenbemme

  • Ensign
  • *
  • Posts: 22
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #12 on: September 29, 2020, 06:50:47 AM »

Spoiler
Here is exactly what I do:
  • go to Fractal Softworks\Starsector\mods\Star Wars 2020\data\hulls
  • Open sw_asseror.ship in Notepad++(as a .txt file)
  • Edit weapon size/type
  • Click save file button
  • Exit all programs
  • Start Starsector game
[close]

That's what I do for all changes.

I kinda dislike that you referr to the files as .txt files; if you saved it as a .txt file, the game wouldn't even load. However since your screenshot of Notepad++ clearly shows it's a .ship file, and not some additional .txt file sitting around in the \hulls folder, this should work.

No, not only "should" it work, it literally DOES work. I copied the content from your sw_assertor.txt file, pasted it into the sw_assertor.ship file under the path you have open in Notepad++, used the console to get an Assertor and yes, the mounts from the file worked. Even the mounts of the Assertor you can face in the battle simulation had changed and after I saved and exited the game, changed the mounts to ballistic and loaded that save, all mounts were ballistic.

However you never know what system the person on the other end has and after reapplying thermal paste fixed my frame rate issues, rather than allocating more RAM to the game as is often advised in threads about performance issues with mods, I'd say there's clearly something wrong on your end that we can't help you with without looking at your computer. Unless you're doing something completely "time to get more sleep!"-tier thing such as looking at the wrong ship, I'd say try a complete reinstall of the game and the mods you're running.

(however to be perfectly honest, I haven't tested it with all mods you're running ... but none of the other mods should interfere with the mounts on a ship from the Star Wars mod)
Logged

Stelarwand030

  • Lieutenant
  • **
  • Posts: 58
    • View Profile
Re: How to edit weapon mount sizes on ships
« Reply #13 on: September 30, 2020, 03:55:02 PM »

I got it working. I have no idea what was wrong but i uninstalled the game and reinstalled it. I also removed the .BAK files for the ships. I have no idea why it wasn't working before but it is working now. Thanks for all of your help @Histidine, @Apfelkuchenbemme, and @Hiruma Kai.

I would upload a better screenshot but I don't have an imgur account. So... thats what you get.

[attachment deleted by admin]
Logged