Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Pages: 1 [2]

Author Topic: Looking for a tutorial on how to create a new faction  (Read 901 times)

GemAye

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: Looking for a tutorial on how to create a new faction
« Reply #15 on: March 15, 2024, 05:34:10 AM »

Something like this?
Code
        SectorEntityToken station1 = my_system.addCustomEntity(
                "planet1_station1", //id
                "Stramentum Station Alpha", //display name
                "station_side05", //types are found in data/config/custom_entities.json
                "wreckers"
        );

This bit of code I got from this Wadestar's tutorials on YT.
Only he does it a bit different.
Code
import com.fs.starfarer.api.campaign.CustomCampaignEntityAPI;

        CustomCampaignEntityAPI station1 = my_system.addCustomEntity(
                "planet1_station1", //id
                "Stramentum Station Alpha", //display name
                "station_side05", //types are found in data/config/custom_entities.json
                "wreckers"
        );
Logged

BirdWanderer

  • Ensign
  • *
  • Posts: 24
    • View Profile
Re: Looking for a tutorial on how to create a new faction
« Reply #16 on: March 15, 2024, 08:23:31 AM »

Yeah, this this looks fine.
Logged
the the

GemAye

  • Ensign
  • *
  • Posts: 12
    • View Profile
Re: Looking for a tutorial on how to create a new faction
« Reply #17 on: March 23, 2024, 03:56:17 AM »

New question.

If I wanted to add a colony building from the Ind.Evo. mod, how do I do this?
I already figured out how to add that mod to External Libraries in IntelliJ but I'm running into a blockade when trying to use it with the addIndustry command.

For example:
Code
planet1_market.addIndustry(indevo.industries.privateer.industry.PrivateerBase);
The only hint I get is that an expression is expected.
Logged
Pages: 1 [2]