Greetings,
I finally got some time to work on Stop Gap Measures.
I want to implement two star systems to add some new markets for Luddic and Neutral factions. I first want to add only uninhabited system before adding complication with market and tags.
So far there is two files which are ok:
-starmap.json
-the file describing orbital features located in data\scripts\world\systems
and there is no more error popping when starting the game. However the system does not appear when I create a new game. From what I understand, I need to add several other files to make the game generate the system, and this is were I've trouble:
The first file is "mod_info.json" which need to call for another file "FilgapModPlugin". So far so good...
Spoiler
{
"id":"StopGapMeasures",
"name":"Stop Gap Measures",
"author":"MajorTheRed",
"version":"v 0.1",
"description":"Pack of ships to flesh in vanilla campaign",
"gameVersion":"0.8.1a",
"modPlugin":"data.scripts.FilgapModPlugin",
}
... but this file is more difficult. I don't know if the two last sentences are OK...
Spoiler
package data.scripts;
import com.fs.starfarer.api.BaseModPlugin;
import com.fs.starfarer.api.Global;
import data.scripts.world.FilgapGen;
public class FilgapModPlugin extends BaseModPlugin
{
private static void initFilgap()
{
new FilgapGen().generate(Global.getSector());
}
}
and finally FilgapGen.java in data\scripts\world:
Spoiler
package data.scripts.world;
import com.fs.starfarer.api.campaign.SectorAPI;
import data.scripts.world.systems.Byzas;
public class FilgapGen {
public void generate(SectorAPI sector) {
(new Byzas()).generate(sector);
}
}
I think I'm doing something wrong in the last two files, but I don't know what... Any ideas?
In any case, many thanks for the support from the community, this is really great to be able to ask for so much help on this forum.