Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

News:

Starsector 0.98a is out! (03/27/25)

Pages: 1 ... 55 56 [57] 58 59 ... 442

Author Topic: [0.98a] Nexerelin v0.12.0c "Abyssal Gaze" (update 2025-05-01)  (Read 3901301 times)

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #840 on: January 18, 2016, 04:10:17 AM »

Hey, I'm trying to add Corvus support to Bushi, Hiigarans and Kadur Theocracy, currently the game crashes with that option selected.

Could you provide a little help please ?

Error Log
Code
99099 [Thread-5] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
at com.fs.starfarer.campaign.save.CampaignGameManager.super(Unknown Source)
at com.fs.starfarer.title.TitleScreenState.dialogDismissed(Unknown Source)
at com.fs.starfarer.ui.M.dismiss(Unknown Source)
at com.fs.starfarer.ui.impl.int.dismiss(Unknown Source)
at com.fs.starfarer.campaign.save.O0oO.actionPerformed(Unknown Source)
at com.fs.starfarer.ui.interfacesuper.o00000(Unknown Source)
at com.fs.starfarer.ui.null.processInput(Unknown Source)
at com.fs.starfarer.ui.U.o00000(Unknown Source)
at com.fs.starfarer.BaseGameState.traverse(Unknown Source)
at com.fs.state.AppDriver.begin(Unknown Source)
at com.fs.starfarer.combat.CombatMain.main(Unknown Source)
at com.fs.starfarer.StarfarerLauncher$2.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
99441 [Thread-11] INFO  sound.oo0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO  - Creating streaming player for music with id [miscallenous_main_menu.ogg]
« Last Edit: January 18, 2016, 04:12:36 AM by DefiasOne »
Logged

Histidine

  • Admiral
  • *****
  • Posts: 5182
    • View Profile
    • GitHub profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #841 on: January 18, 2016, 06:00:41 AM »

It crashes with any of those mods, or even none of them?

If crashing with those mods, what were the changes you made in attempting to implement Corvus support? (IIRC it just needs the corvus_capitals.csv and corvus_spawnpoints.csv entries and the corvusCompatible json tag)
Logged

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #842 on: January 18, 2016, 06:35:05 AM »

It crashes with any of those mods, or even none of them?

If crashing with those mods, what were the changes you made in attempting to implement Corvus support? (IIRC it just needs the corvus_capitals.csv and corvus_spawnpoints.csv entries and the corvusCompatible json tag)

All of them crash, I've added the information to covrus_capitals.csv adn corvus_spawnpoints.csv as per the instructions on the main page.
Whats the covrusCompatible json?
Logged

Histidine

  • Admiral
  • *****
  • Posts: 5182
    • View Profile
    • GitHub profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #843 on: January 18, 2016, 07:02:01 AM »

Whats the covrusCompatible json?
Faction config json (the ones in data/config/exerelinFactionConfig)
Code
    "corvusCompatible":true,
Logged

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #844 on: January 19, 2016, 04:45:37 AM »

Whats the covrusCompatible json?
Faction config json (the ones in data/config/exerelinFactionConfig)
Code
    "corvusCompatible":true,

Added that option but it still crashes  :-\
Logged

DrakonST

  • Captain
  • ****
  • Posts: 341
  • Lizard-Wizard
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #845 on: January 19, 2016, 05:26:14 AM »

Whats the covrusCompatible json?
Faction config json (the ones in data/config/exerelinFactionConfig)
Code
    "corvusCompatible":true,

Added that option but it still crashes  :-\

I tried to work on it. I executed all steps described in FAQ and game simply ceased to be loaded (earlier it broke at creation of new game) and I came to a conclusion that the problem is connected with you mod. I don't know in what precisely a problem but I assume that it is connected by a absence of the folder "jars" and the file ***.jar there. In other fashions with support "Corvus mode" it is.

I believe that "Histidine'' it is necessary to know that mod Hiigaran Descendants/Bushi has other structure (probably older) and perhaps other way is required here.

P.S. As far as I noticed the file ***.jar represents script archive.
Logged
I a Russian. And i communicate with the help of Promt Translate. And I am a color-blind person.

Histidine

  • Admiral
  • *****
  • Posts: 5182
    • View Profile
    • GitHub profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #846 on: January 19, 2016, 07:05:21 AM »

Hmm, I should have mentioned the actual key part instead of assuming it was already done: the mod plugin detection for Nexerelin needs to be right. Check the OP and post your plugin code if it doesn't work.
Logged

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #847 on: January 19, 2016, 07:28:08 AM »

Hmm, I should have mentioned the actual key part instead of assuming it was already done: the mod plugin detection for Nexerelin needs to be right. Check the OP and post your plugin code if it doesn't work.

This is my init plugin code.

Code
private static void initHiigaranDescendants()
{
try
{                
                    Global.getSettings().getScriptClassLoader().loadClass("data.scripts.world.ExerelinGen");
}
catch (ClassNotFoundException ex)
{
new HiigaraGen().generate(Global.getSector());
}
}

@Override
public void onNewGame()
{
initHiigaranDescendants();
}

The code on the main page won't work, compile errors.
Logged

Histidine

  • Admiral
  • *****
  • Posts: 5182
    • View Profile
    • GitHub profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #848 on: January 19, 2016, 07:49:28 AM »

The mod plugin needs to check if Corvus mode is running and spawn the same star systems and such that it does if in vanilla. (I'm not sure it should actually crash if it doesn't, but this would explain it)

If the code in OP fails to compile, you're probably missing the required imports:
Code: java
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
(Your IDE should point out such issues automatically and provide automatic correction options)
Logged

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #849 on: January 19, 2016, 07:58:51 AM »

The mod plugin needs to check if Corvus mode is running and spawn the same star systems and such that it does if in vanilla. (I'm not sure it should actually crash if it doesn't, but this would explain it)

If the code in OP fails to compile, you're probably missing the required imports:
Code: java
import java.lang.reflect.InvocationTargetException;
import java.lang.reflect.Method;
(Your IDE should point out such issues automatically and provide automatic correction options)

I figured out that i was missing some imports but still no go.

Code
[data.scripts.world.HiiModPlugin]
java.lang.RuntimeException: Error compiling [data.scripts.world.HiiModPlugin]
at com.fs.starfarer.loading.scripts.ScriptStore$3.run(Unknown Source)
at java.lang.Thread.run(Unknown Source)
Caused by: java.lang.ClassNotFoundException: Parsing compilation unit 'data.scripts.world.HiiModPlugin'
at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:172)
at org.codehaus.janino.IClassLoader.loadIClass(IClassLoader.java:254)
at org.codehaus.janino.JavaSourceClassLoader.generateBytecodes(JavaSourceClassLoader.java:214)
at org.codehaus.janino.JavaSourceClassLoader.findClass(JavaSourceClassLoader.java:178)
at java.lang.ClassLoader.loadClass(Unknown Source)
at java.lang.ClassLoader.loadClass(Unknown Source)
... 2 more
Caused by: org.codehaus.commons.compiler.CompileException: File 'data/scripts/world/HiiModPlugin.java', Line 49, Column 51: Identifier expected instead of '|'
at org.codehaus.janino.Parser.compileException(Parser.java:3125)
at org.codehaus.janino.Parser.readIdentifier(Parser.java:2909)
at org.codehaus.janino.Parser.parseFormalParameter(Parser.java:1032)
at org.codehaus.janino.Parser.parseTryStatement(Parser.java:1538)
at org.codehaus.janino.Parser.parseStatement(Parser.java:1261)
at org.codehaus.janino.Parser.parseBlockStatement(Parser.java:1117)
at org.codehaus.janino.Parser.parseBlockStatements(Parser.java:1085)
at org.codehaus.janino.Parser.parseBlock(Parser.java:1072)
at org.codehaus.janino.Parser.parseTryStatement(Parser.java:1530)
at org.codehaus.janino.Parser.parseStatement(Parser.java:1261)
at org.codehaus.janino.Parser.parseBlockStatement(Parser.java:1117)
at org.codehaus.janino.Parser.parseBlockStatements(Parser.java:1085)
at org.codehaus.janino.Parser.parseMethodDeclarationRest(Parser.java:938)
at org.codehaus.janino.Parser.parseClassBodyDeclaration(Parser.java:565)
at org.codehaus.janino.Parser.parseClassBody(Parser.java:515)
at org.codehaus.janino.Parser.parseClassDeclarationRest(Parser.java:481)
at org.codehaus.janino.Parser.parsePackageMemberTypeDeclaration(Parser.java:269)
at org.codehaus.janino.Parser.parseCompilationUnit(Parser.java:168)
at org.codehaus.janino.JavaSourceIClassLoader.findCompilationUnit(JavaSourceIClassLoader.java:203)
at org.codehaus.janino.JavaSourceIClassLoader.findIClass(JavaSourceIClassLoader.java:146)
... 7 more

Code: java
private static void initHiigaranDescendants()
{
try
{                
                    //Global.getSettings().getScriptClassLoader().loadClass("data.scripts.world.ExerelinGen");
                    Class <?> def = Global.getSettings().getScriptClassLoader().loadClass("exerelin.campaign.SectorManager");
                    Method method;
                    try
                    {
                        method = def.getMethod("getCorvusMode");
                        Object result = method.invoke(def);
                        
                        if((boolean)result == true)
                        {
                            new HiigaraGen().generate(Global.getSector());
                        }
                        
                    }
                    catch (NoSuchMethodException | SecurityException | IllegalAccessException | IllegalArgumentException |  
                     InvocationTargetException ex) {  
                // check failed, do nothing  
                    }  
}
catch (ClassNotFoundException ex)
{
new HiigaraGen().generate(Global.getSector());
}
}

@Override
public void onNewGame()
{
initHiigaranDescendants();
}

Now the game will crash on load instead of crashing on New Game. My IDE says the code is ok, but starsector says its not  ???
« Last Edit: January 19, 2016, 08:13:38 AM by DefiasOne »
Logged

DrakonST

  • Captain
  • ****
  • Posts: 341
  • Lizard-Wizard
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #850 on: January 19, 2016, 08:16:24 AM »

Now the game will crash on load instead of crashing on New Game. My IDE says the code is ok, but starsector says its not  ???

Aaaaaand, you received that eror which was seen by me.  :-\
Logged
I a Russian. And i communicate with the help of Promt Translate. And I am a color-blind person.

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #851 on: January 19, 2016, 08:29:47 AM »

Fixed it.
Logged

Spoorthuzad

  • Captain
  • ****
  • Posts: 284
  • Looking right into your soul
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #852 on: January 19, 2016, 09:39:20 AM »

Logged

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #853 on: January 19, 2016, 09:54:05 AM »

Logged

DefiasOne

  • Commander
  • ***
  • Posts: 225
    • View Profile
Re: [0.7.1a] Nexerelin v0.7.2 (update 2016-01-01)
« Reply #854 on: January 19, 2016, 02:34:34 PM »

Can you update support for Hiigarans, Kadur and Bushi ? Or how can i include them in my mod without having to modify nexerelin files manually?
Logged
Pages: 1 ... 55 56 [57] 58 59 ... 442