Jump to content

Infinite Discoveries 0.9.9 (1.12.x)


Sushut

Recommended Posts

11 hours ago, Sushut said:

i'm not too familiar with linux, maybe once everything else is fleshed out i can try adding in linux support though

I can try creating a linux port based on the py script when I find time if you want.

Link to comment
Share on other sites

12 hours ago, Urbs said:

I think I have the same issue as you.

Someone has that exact issue and it was because they had the wrong folder in their ksp GameData, can you check that the mod's folder is called "ProcedualPlanets" and is not contained in any others?

Link to comment
Share on other sites

The mod works. I was just stupid.

I thought it also replaces the current system and I didn't scroll out enough at first.

After a lot of testing I finally had the idea to generate a second star and look for it and then I found the new star systems...

Link to comment
Share on other sites

I got the generator to run, deleted the generate system folder, and the game launched fine through to starting a new save.  Then it just sits on loading forever.  I'm happy to help with any more debug information if the KSP.log or other details from my test install are useful.

Edit:  during Kopernicus load after getting to the main menu, it throws these that may be a factor in the later errors loading the saved game:

WRN 10:39:44.923] Cannot find preset 'Default' for pqs 'TW-11528-B'
[LOG 10:39:44.923] [OD] ERROR: getting pixelFloatD with unloaded map ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds of path ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds, autoload = True
[LOG 10:39:44.958] [OD] ---> Map ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds enabling self. Path = ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds
[LOG 10:39:44.959] [Kopernicus] ShaderLoader: GetShader Kopernicus/Rings
[WRN 10:39:44.962] Cannot find preset 'Default' for pqs 'TW-11528-C'
[LOG 10:39:44.962] [OD] ERROR: getting pixelFloatD with unloaded map ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds of path ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds, autoload = True
[LOG 10:39:44.996] [OD] ---> Map ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds enabling self. Path = ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds
[LOG 10:39:44.996] [Kopernicus] ShaderLoader: GetShader Kopernicus/Rings
[WRN 10:39:44.999] Cannot find preset 'Default' for pqs 'TW-11528-C-1'
[LOG 10:39:44.999] [OD] ERROR: getting pixelFloatD with unloaded map ProcedualPlanets/Textures/PluginData/TW-11528-C-1_HGT.dds of path ProcedualPlanets/Textures/PluginData/TW-11528-C-1_HGT.dds, autoload = True


Then there are a few messages like this during the attempt to load the new save:

[LOG 09:31:57.263] Game State Saved to saves/pp-1sun/persistent
[LOG 09:31:57.270] [OD] <--- OnDemandStorage.DisableBodyCBMaps destroying TW-11528-C-1
[LOG 09:31:57.270] [OD] <--- OnDemandStorage.DisableBodyCBMaps destroying TW-11528-C
[LOG 09:31:57.270] [OD] <--- OnDemandStorage.DisableBodyCBMaps destroying TW-11528-B
[LOG 09:31:57.270] [UIMasterController]: HideUI
[ERR 09:31:57.272] Exception handling event onGameSceneLoadRequested in class PSystemSetup:System.NullReferenceException: Object reference not set to an instance of an object
  at Sun.SunlightEnabled (System.Boolean state) [0x00027] in <4b449f2841f84227adfaad3149c8fdba>:0
  at PSystemSetup.SetDisabled () [0x00044] in <4b449f2841f84227adfaad3149c8fdba>:0
  at PSystemSetup.OnSceneChange (GameScenes scene) [0x00075] in <4b449f2841f84227adfaad3149c8fdba>:0
  at EventData`1[T].Fire (T data) [0x000b0] in <4b449f2841f84227adfaad3149c8fdba>:0

[EXC 09:31:57.274] NullReferenceException: Object reference not set to an instance of an object
    Sun.SunlightEnabled (System.Boolean state) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    PSystemSetup.SetDisabled () (at <4b449f2841f84227adfaad3149c8fdba>:0)
    PSystemSetup.OnSceneChange (GameScenes scene) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    EventData`1[T].Fire (T data) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:LogException(Exception)
    EventData`1:Fire(GameScenes)
    HighLogic:SetLoadSceneEventsAndFlags(GameScenes, Boolean)
    HighLogic:LoadScene(GameScenes)
    Game:Start()
    MainMenu:CreateAndStartGame(String, Modes, GameScenes, EditorFacility)
    MainMenu:CreateAndStartGame(String, Modes)
    MainMenu:ConfirmNewGame()
    MainMenu:<CreateNewGameDialog>b__67_10()
    DialogGUIButton:OptionSelected()
    DialogGUIButton:<Create>b__23_1()
    UnityEngine.EventSystems.EventSystem:Update()

Edited by khyron42
additional details
Link to comment
Share on other sites

4 hours ago, khyron42 said:

I got the generator to run, deleted the generate system folder, and the game launched fine through to starting a new save.  Then it just sits on loading forever.  I'm happy to help with any more debug information if the KSP.log or other details from my test install are useful.

Edit:  during Kopernicus load after getting to the main menu, it throws these that may be a factor in the later errors loading the saved game:

WRN 10:39:44.923] Cannot find preset 'Default' for pqs 'TW-11528-B'
[LOG 10:39:44.923] [OD] ERROR: getting pixelFloatD with unloaded map ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds of path ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds, autoload = True
[LOG 10:39:44.958] [OD] ---> Map ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds enabling self. Path = ProcedualPlanets/Textures/PluginData/TW-11528-B_HGT.dds
[LOG 10:39:44.959] [Kopernicus] ShaderLoader: GetShader Kopernicus/Rings
[WRN 10:39:44.962] Cannot find preset 'Default' for pqs 'TW-11528-C'
[LOG 10:39:44.962] [OD] ERROR: getting pixelFloatD with unloaded map ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds of path ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds, autoload = True
[LOG 10:39:44.996] [OD] ---> Map ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds enabling self. Path = ProcedualPlanets/Textures/PluginData/TW-11528-C_HGT.dds
[LOG 10:39:44.996] [Kopernicus] ShaderLoader: GetShader Kopernicus/Rings
[WRN 10:39:44.999] Cannot find preset 'Default' for pqs 'TW-11528-C-1'
[LOG 10:39:44.999] [OD] ERROR: getting pixelFloatD with unloaded map ProcedualPlanets/Textures/PluginData/TW-11528-C-1_HGT.dds of path ProcedualPlanets/Textures/PluginData/TW-11528-C-1_HGT.dds, autoload = True


Then there are a few messages like this during the attempt to load the new save:

[LOG 09:31:57.263] Game State Saved to saves/pp-1sun/persistent
[LOG 09:31:57.270] [OD] <--- OnDemandStorage.DisableBodyCBMaps destroying TW-11528-C-1
[LOG 09:31:57.270] [OD] <--- OnDemandStorage.DisableBodyCBMaps destroying TW-11528-C
[LOG 09:31:57.270] [OD] <--- OnDemandStorage.DisableBodyCBMaps destroying TW-11528-B
[LOG 09:31:57.270] [UIMasterController]: HideUI
[ERR 09:31:57.272] Exception handling event onGameSceneLoadRequested in class PSystemSetup:System.NullReferenceException: Object reference not set to an instance of an object
  at Sun.SunlightEnabled (System.Boolean state) [0x00027] in <4b449f2841f84227adfaad3149c8fdba>:0
  at PSystemSetup.SetDisabled () [0x00044] in <4b449f2841f84227adfaad3149c8fdba>:0
  at PSystemSetup.OnSceneChange (GameScenes scene) [0x00075] in <4b449f2841f84227adfaad3149c8fdba>:0
  at EventData`1[T].Fire (T data) [0x000b0] in <4b449f2841f84227adfaad3149c8fdba>:0

[EXC 09:31:57.274] NullReferenceException: Object reference not set to an instance of an object
    Sun.SunlightEnabled (System.Boolean state) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    PSystemSetup.SetDisabled () (at <4b449f2841f84227adfaad3149c8fdba>:0)
    PSystemSetup.OnSceneChange (GameScenes scene) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    EventData`1[T].Fire (T data) (at <4b449f2841f84227adfaad3149c8fdba>:0)
    UnityEngine.DebugLogHandler:LogException(Exception, Object)
    ModuleManager.UnityLogHandle.InterceptLogHandler:LogException(Exception, Object)
    UnityEngine.Debug:LogException(Exception)
    EventData`1:Fire(GameScenes)
    HighLogic:SetLoadSceneEventsAndFlags(GameScenes, Boolean)
    HighLogic:LoadScene(GameScenes)
    Game:Start()
    MainMenu:CreateAndStartGame(String, Modes, GameScenes, EditorFacility)
    MainMenu:CreateAndStartGame(String, Modes)
    MainMenu:ConfirmNewGame()
    MainMenu:<CreateNewGameDialog>b__67_10()
    DialogGUIButton:OptionSelected()
    DialogGUIButton:<Create>b__23_1()
    UnityEngine.EventSystems.EventSystem:Update()

Someone has a similar issue and it was because they put the mod folder in the incorrect folder, are you certain that the mod's folder in GameData is called "ProcedualPlanets?"

The mod can't find the filepath to the texture if it's in a folder too many or too little, basically.

Link to comment
Share on other sites

1 hour ago, Sushut said:

Someone has a similar issue and it was because they put the mod folder in the incorrect folder, are you certain that the mod's folder in GameData is called "ProcedualPlanets?"

The mod can't find the filepath to the texture if it's in a folder too many or too little, basically.

The textures were generated in F:\Games\KSP\1.12.5-PP\GameData\ProcedualPlanets\Textures\PluginData, which looks like where they should be (relative to the gamedata folder for this install.)
 

Edited by khyron42
Link to comment
Share on other sites

i'm not really sure why your GameData folder is in another folder within the ksp directory, where did you install ksp from?

 

also, do other planet packs work fine?

whoops i forgot to quote your message

Edited by Sushut
Link to comment
Share on other sites

3 minutes ago, Urbs said:

How does having multiple star systems impact in-game performance?

Should I only add a few stars or can I generate a lot more?

well it really depends on the amount of ram you have, i'd say around 5 stars with a max of 10 planets and 2 moons would be a nice starting point

Link to comment
Share on other sites

6 hours ago, Sushut said:

i'm not really sure why your GameData folder is in another folder within the ksp directory, where did you install ksp from?

 

also, do other planet packs work fine?

whoops i forgot to quote your message

The KSP directory is the "top level" where I install my various versions.  Under that I've got multiple KSP installs - 12.2-RP-1, 12.5-nomods, 12.5-kopernicus-otherworlds, and now this one, 12.5-PP (A fresh install with only your mod and its dependencies installed.)  The ksp_64.exe and all of the folders for this install sit in that 12.5-PP directory, GameData under that has the folders for Kopernicus and ProcedualPlanets and Squad & the dependency items.

Your setup worked fine when I grabbed the latest 1.12.1-165 Kopernicus instead of the 1.12.1-139 version I'd gotten from CKAN recently.  Sorry for leading you down the rabbit hole - you could note that it requires that version or newer, but I think most people aren't silly enough to reuse an older version like I did.

Edited by khyron42
Link to comment
Share on other sites

1 hour ago, Serguei-K said:
I have all the required mods but when I load or create a new save the game loads endlessly can someone help me pls ?
 

Getting the log and upload it to somewhere (e.g dropdox, google drive) would be helpful

How to find log: https://gist.github.com/JonnyOThan/04c2074b56f78e56d115621effee30f9

 

Edited by ssd21345
Link to comment
Share on other sites

Hey, I haven't downloaded the mod yet, but was wondering : if I create a save with this mod and build bases, stations etc, will the planets and my ships disappear on reinstall? Or will my save file stay as is?
Because you said that reinstall would cause the star systems to be replaced

Thanks

Link to comment
Share on other sites

13 hours ago, ZeTechno said:

Hey, I haven't downloaded the mod yet, but was wondering : if I create a save with this mod and build bases, stations etc, will the planets and my ships disappear on reinstall? Or will my save file stay as is?
Because you said that reinstall would cause the star systems to be replaced

Thanks

as long as you still have the folder where the planets were generated then nothing should disappear

Link to comment
Share on other sites

3 hours ago, StuperMan said:

So I got the mod and generated a few systems, but when I try to load the game it only says "Loading part upgrades" and nothing gets loaded

 

you deleted the "GenerateSystem" folder?

Link to comment
Share on other sites

Can you fix a infinit loading into savegame becuase when i loaded into save game the loading thing kept spinning i waited half an hour installed it correctly too
i loaded the thing using multiples of 24 only 24 48 72. its seems its having a hard time loading large number of objects

Plz add support for astromners visuals plz

Edited by Connorray1234
Link to comment
Share on other sites

2 hours ago, Connorray1234 said:

Can you fix a infinit loading into savegame becuase when i loaded into save game the loading thing kept spinning i waited half an hour installed it correctly too
i loaded the thing using multiples of 24 only 24 48 72. its seems its having a hard time loading large number of objects

Plz add support for astromners visuals plz

make a new save

Link to comment
Share on other sites

On 3/11/2023 at 4:39 PM, Sushut said:

52741023449_5a619d2a03_b.jpg

Infinite Discoveries is a third party program that aims to create fully functional star systems with as little human input as possible!

A fully functional procedural star system generator!

 

Trailer: (someone please tell me how to centre videos)

  Reveal hidden contents

Currently features:

  Reveal hidden contents

(Sorta) realistic star colours

Planet texture generation

Scatterer and EVE support

 Rings!

Functional atmospheres

Ocean and oxygen generation depending on temperature

Planned features:

  Reveal hidden contents

Binary stars

"Galaxy mode," where all stars generate in low-inclination orbits around a central black hole.

More customization (minimum and maximum star size, an option to NOT convert maps to DDS, etc...)

More preset textures for the generator to use.

Better colouring for planets

...And many more that I forgot about but will eventually remember!

 

52740257202_b09115f7ec_b.jpg

DEPENDENCIES:

Kopernicus (https://github.com/Kopernicus/Kopernicus/releases)

ImageMagick (https://imagemagick.org/index.php)

 

How to install:

Simply put the folder named "ProcedualPlanets" contained in the zip file into your KSP GameData folder.

(Yes, I did make a typo when making the folder's name. I'm not fixing it.)

 

How to use:

Make sure you have ImageMagick (https://imagemagick.org/index.php) installed, as this mod requires it to convert PNG textures to DDS.

Run the shortcut inside the "ProcedualPlanets" folder, windows is guaranteed to cry about, just let it run.

Input the numbers it asks you to input (the amount of stars to generate, max amount of planets and moons...)

Let it run!

Once the planets generate, you HAVE TO delete the "GenerateSystem" folder due to the game freaking out over DLLs inside it.

Once you're done, start KSP! If you installed it correctly, it should work perfectly fine!

 

Okay, so you want to use this with more control... How to install this THE HARD WAY!

  Reveal hidden contents

Make sure you have the following prerequisites:

Visual Studio Code

ImageMagick

Python 3.whatever

Then install the following libraries via pip:

pip install pillow (https://pillow.readthedocs.io/en/stable/installation.html)

pip install wand

pip install colour

Install the actual program:

Find the main branch on github, and click the green "Code" button, then click "Download ZIP."

Put the ProcedualPlanets folder in your KSP GameData as you normally would.

Open the .py file in the "GenerateSystem" folder via Visual Studio Code.

Run the file in Visual Studio, I'm not really sure why it doesn't run outside it but that's how it works.

Use the program as usual.

 

52740256857_063573ba0b_b.jpg

LICENSE: MIT

GitHub:

https://github.com/Sushutt/Infinite-Discoveries/releases/tag/Infinite-Discoveries-0.9.5

SpaceDock:

https://spacedock.info/mod/3318/Infinite Discoveries

 

I havent tried it yet but i will soon!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...