Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: mod testing  (Read 4016 times)

Cordacc

  • Commander
  • ***
  • Posts: 114
    • View Profile
mod testing
« on: April 12, 2012, 05:34:50 PM »

Yep, so I just finished myship(.ship,.variant,ship_data,and.png), how can I test it out in game?

As you might be able to tell I am new at this and still learning.
« Last Edit: April 12, 2012, 05:50:47 PM by Cordacc »
Logged

craftomega

  • Captain
  • ****
  • Posts: 301
    • View Profile
Re: mod testing, and community mod tutorials idea
« Reply #1 on: April 12, 2012, 05:38:12 PM »

Well what you could do is download a mod like Omega's Minimash.

Then go into scripts/world/corvus/corvus.java

From there pick a station and add

      cargo.addMothballedShip(FleetMemberType.SHIP, "shipid_Hull", null);

Then when you start a new game you should be able to buy it.


Or you can do the same thing but install your mod directly into the game directory and also add it to the corvus.java found in \Fractal Softworks\Starfarer\starfarer-core\data\scripts\world\corvus\corvus.java
« Last Edit: April 12, 2012, 05:41:35 PM by craftomega »
Logged

Psiyon

  • Admiral
  • *****
  • Posts: 772
  • Trippy
    • View Profile
Re: mod testing, and community mod tutorials idea
« Reply #2 on: April 12, 2012, 05:49:44 PM »

Personally, for quick testing purposes, I find it easier to have a custom mission and just add the ship I want to test as the flagship. I'd suggest making a copy of the Coral Nebula mission, and replacing the Astral carrier with your custom ship.
Logged

Cordacc

  • Commander
  • ***
  • Posts: 114
    • View Profile
Re: mod testing
« Reply #3 on: April 12, 2012, 05:55:35 PM »

is there a way to edit the ship into my save?
Logged

CrashToDesktop

  • Admiral
  • *****
  • Posts: 3876
  • Quartermaster
    • View Profile
Re: mod testing
« Reply #4 on: April 12, 2012, 06:26:17 PM »

is there a way to edit the ship into my save?
Yea.  Open up for save and go to the nearest station, e.g. the Hegemony Station.  Look at the name of they type of ship you're going to replace, and remember it.  Then, go to your save file and search for the station you just visited.  Once you find it, search for the name you remembered, and when you find the name, there should be a ship ID near it.  Replace that with your ship ID and you're done!
Logged
Quote from: Trylobot
I am officially an epoch.
Quote from: Thaago
Note: please sacrifice your goats responsibly, look up the proper pronunciation of Alex's name. We wouldn't want some other project receiving mystic power.

Cordacc

  • Commander
  • ***
  • Posts: 114
    • View Profile
Re: mod testing
« Reply #5 on: April 12, 2012, 06:34:37 PM »

yeah there is a campaign and campaign.bak whats the difference
Logged

CrashToDesktop

  • Admiral
  • *****
  • Posts: 3876
  • Quartermaster
    • View Profile
Re: mod testing
« Reply #6 on: April 12, 2012, 06:38:52 PM »

yeah there is a campaign and campaign.bak whats the difference
Campaign.bak is a backup of the campaign, in case the original fails.  I think that's right at least.
Logged
Quote from: Trylobot
I am officially an epoch.
Quote from: Thaago
Note: please sacrifice your goats responsibly, look up the proper pronunciation of Alex's name. We wouldn't want some other project receiving mystic power.