Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  


Starsector 0.95a is out! (03/26/21); Blog post: Skill Changes, Part 2 (07/15/21)

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Messages - Kelaris

Pages: [1]
Mods / Re: [0.95a] Console Commands v2021.04.10
« on: June 30, 2021, 06:36:03 AM »
I don't know of a way to add d-mods to existing ships, but you can use this to add a new d-modded ship to your fleet and then manually scuttle the old one you want to replace. Just change the "kite_Hull" to "whatever_you_want_Hull" and the 5 to how many d-mods you want.

runcode FleetMemberAPI ship = Global.getFactory().createFleetMember(FleetMemberType.SHIP, "kite_Hull"); com.fs.starfarer.api.impl.campaign.DModManager.addDMods(ship, false, 5, MathUtils.getRandom()); Global.getSector().getPlayerFleet().getFleetData().addFleetMember(ship);

Where would I start looking if I wanted to change the quantity/variety of different weapons, fighters, and ships available at markets?

I've been poking at things in com.fs.starfarer.api.impl.campaign.submarkets (BaseSubmarketplugin, BlackMarketPlugin, MilitarySubmarketPlugin, and OpenMarketPlugin) without successfully changing anything, as far as I can tell. I'm not sure if I'm digging in the wrong place, or if I've made some mistake in packaging my mod. First time messing with Starsector modding and I'm a complete novice with java, so any mishap is possible.

Pages: [1]