Fractal Softworks Forum

Please login or register.

Login with username, password and session length

Author Topic: How should the mod folder structure look like?  (Read 1350 times)

Sapling

  • Ensign
  • *
  • Posts: 39
    • View Profile
How should the mod folder structure look like?
« on: May 06, 2017, 11:42:57 AM »

If I want to make something simple, and edit... a skill for example, which is located in the api/imp/campaign/skills, how do I load it?
I could not find anything that quickly explains how this works.

I tried making a mods\mymod\data\characters\skills\scripts\ShipDesign.java (Since this is the edited file)
but it does not seem to work.

Any suggestions?
Logged

Histidine

  • Admiral
  • *****
  • Posts: 4690
    • View Profile
    • GitHub profile
Re: How should the mod folder structure look like?
« Reply #1 on: May 06, 2017, 06:47:58 PM »

Your mod also needs a copy of data/characters/skills/ship_design.skill, edited so the script tags point to your Java class instead of the vanilla one.
(Vanilla classes can't be replaced directly as a rule, instead references to them should be replaced with references to mod code)
Logged