Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.97a is out! (02/02/24); New blog post: Planet Search Overhaul (07/13/24)

Author Topic: [0.97a] NiteLib v1.1.0 (03/21/2024)  (Read 2829 times)

Purple Nebula

  • Ensign
  • *
  • Posts: 30
  • General of The Nebula Brotherhood
    • View Profile
[0.97a] NiteLib v1.1.0 (03/21/2024)
« on: March 20, 2024, 09:51:54 PM »


For users: This utility / library mod is used in my mods and therefor required to be installed along with them.
Note: Currently there are no mods released yet that use this.
For modders: On the modding side of things, this mod has as use rather two simple goals, logical variables & fixing consistency.


All text below is aimed at modders and people interested in how this mod works.
For regular users, you only need to click the download button.


Explanation

The reason for making this was a personal need for consistency, and since I use it in my
own upcoming mod(s) I thought why not upload this one already as it so far won't receive
any updates soon unless I suddenly think of something new to add or someone else has
any suggestions of what I could add in the realm of data retrieval of string id's or other
variables that otherwise need to be manually put it.

Functions
This library adds 5 utility classes for mods & modders to use:

NebulaeTypes:
Contains the 3 nebula types, very straight forward.

PlanetTypes:
Seasoned modders may know that the game's own API also contains this class
in the form of "Planets.java". Same goes for "StarTypes". The reason for revamping
this class is due to for some reason nebulae and other things being present where
you wouldn't expect them. This basically fixes the illogical placement.

SpecialSystemEntityTypes:
This class contains "special stations" such as stellar mirrors & -shades, derelicts, and more.

StarTypes:
As mentioned before, same story as for the planets. However here for some reason
gas giants were put in with the star types. (You may notice yes getting used to
these illogical placements can also fix the issue, for me this just felt better.)

StationTypes:
This class contains all the regular station types, from defensive stations to the
other types such as mining stations, research stations, pirate stations etc.

Credits:

Fractal Softworks - For the original code and id's of the different entities to choose from.

                 
Requirements
Absolutely nothing, it's a lonesome utility mod :P





How To Use (Modders)

Wherever your code requires an identifying string
regarding Campaign Entities, you can use this library to quickly
insert the wanted string for the wanted station/entity.

Code Example:
PlanetAPI planet= system.addPlanet(
                "planetId",
                whatToSurround,
                "planetName",
                PlanetTypes.GAS_GIANT, // < This mod
                angle,
                radius,
                orbitRadius,
                orbitDays
);
[close]


NiteLib is licensed under a
Creative Commons Attribution-NonCommercial-ShareAlike 4.0 International License.
Any derivative work must also comply with Starsector's EULA
« Last Edit: December 01, 2024, 06:01:58 PM by Purple Nebula »
Logged
"We are brothers and sisters, all the same, all as one. This Brotherhood stands on group effort.
The more you bring to the table, the more you will be rewarded for your efforts.
Having said that, WHO'S READY TO RID THIS SECTOR OF THE HEGEMONY?!"

~ Nebula, TNB General

Purple Nebula

  • Ensign
  • *
  • Posts: 30
  • General of The Nebula Brotherhood
    • View Profile
Re: [0.97a] NiteLib v1.1.0 (03/21/2024)
« Reply #1 on: March 21, 2024, 11:07:33 AM »

Reserved
Logged
"We are brothers and sisters, all the same, all as one. This Brotherhood stands on group effort.
The more you bring to the table, the more you will be rewarded for your efforts.
Having said that, WHO'S READY TO RID THIS SECTOR OF THE HEGEMONY?!"

~ Nebula, TNB General

S

  • Ensign
  • *
  • Posts: 4
    • View Profile
Re: [0.97a] NiteLib v1.1.0 (03/21/2024)
« Reply #2 on: June 07, 2024, 08:35:26 AM »

Hope to see the fruition of this then,  Good luck and stay strong !
Logged

HotlineRooster

  • Ensign
  • *
  • Posts: 4
  • Also known as "Haan"
    • View Profile
Re: [0.97a] NiteLib v1.1.0 (03/21/2024)
« Reply #3 on: September 05, 2024, 09:09:31 AM »

I'm looking into dipping my feet into modding myself, by coincidence I arrived at your lib. Would you say it's useable for the current and possibly next iteration of Starsector?

If it helps for your motivation, we do share a nationality. :p
Logged

Purple Nebula

  • Ensign
  • *
  • Posts: 30
  • General of The Nebula Brotherhood
    • View Profile
Re: [0.97a] NiteLib v1.1.0 (03/21/2024)
« Reply #4 on: December 01, 2024, 06:04:57 PM »

I'm looking into dipping my feet into modding myself, by coincidence I arrived at your lib. Would you say it's useable for the current and possibly next iteration of Starsector?

If it helps for your motivation, we do share a nationality. :p
A felow Dutch person?! Didn't think I'd come across any to be honest, that's awesome! :P It definitely is useable for the current and most likely also the next iteration of Starsector, and elsewise I will be updating it down the line to make it working again if need be, which I doubt will be necessary as that would mean Alex changed the complete inner workings of Starsector's system generation which I doubt will happen ;D

I would love to talk about modding and maybe even work on something down the line
Logged
"We are brothers and sisters, all the same, all as one. This Brotherhood stands on group effort.
The more you bring to the table, the more you will be rewarded for your efforts.
Having said that, WHO'S READY TO RID THIS SECTOR OF THE HEGEMONY?!"

~ Nebula, TNB General

Purple Nebula

  • Ensign
  • *
  • Posts: 30
  • General of The Nebula Brotherhood
    • View Profile
Re: [0.97a] NiteLib v1.1.0 (03/21/2024)
« Reply #5 on: December 01, 2024, 06:05:43 PM »

Hope to see the fruition of this then,  Good luck and stay strong !
Thank you so much! ;D
Logged
"We are brothers and sisters, all the same, all as one. This Brotherhood stands on group effort.
The more you bring to the table, the more you will be rewarded for your efforts.
Having said that, WHO'S READY TO RID THIS SECTOR OF THE HEGEMONY?!"

~ Nebula, TNB General