Fractal Softworks Forum

Please login or register.

Login with username, password and session length
Advanced search  

Show Posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Topics - LazyWizard

Pages: [1] 2 3 ... 12
1
Modding / MOVED: [0.95a] WhichMod 1.1
« on: July 28, 2021, 04:32:17 PM »

3
Modding / MOVED: [0.95a] Controllable Domain Mothership
« on: April 10, 2021, 11:32:19 AM »

5
Modding / MOVED: [0.95a] The Asteroid ship pack 1.2a
« on: March 27, 2021, 05:06:51 PM »

6
The game seems to crash in 0.95a when mousing over a slider in a custom interaction dialog plugin. Here's the stack trace:

Quote
53593 [Thread-3] ERROR com.fs.starfarer.combat.CombatMain  - java.lang.NullPointerException
java.lang.NullPointerException
        at com.fs.starfarer.ui.newui.new$o.00000(Unknown Source)
        at com.fs.starfarer.ui.newui.new$1.createImpl(Unknown Source)
        at com.fs.starfarer.ui.impl.StandardTooltipV2Expandable.create(Unknown Source)
        at com.fs.starfarer.ui.impl.StandardTooltipV2Expandable.beforeShown(Unknown Source)
        at com.fs.starfarer.ui.Q.showTooltip(Unknown Source)
        at com.fs.starfarer.ui.ooOo.super.new(Unknown Source)
        at com.fs.starfarer.ui.ooOo.processInput(Unknown Source)
        at com.fs.starfarer.ui.Q.processInput(Unknown Source)
        at com.fs.starfarer.ui.donew.dispatchEventsToChildren(Unknown Source)
        at com.fs.starfarer.ui.donew.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.newui.new.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.Q.processInput(Unknown Source)
        at com.fs.starfarer.ui.donew.dispatchEventsToChildren(Unknown Source)
        at com.fs.starfarer.ui.donew.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.Oo0OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO OOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.newui.V.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.Q.processInput(Unknown Source)
        at com.fs.starfarer.ui.donew.dispatchEventsToChildren(Unknown Source)
        at com.fs.starfarer.ui.donew.processInputImpl(Unknown Source)
        at com.fs.starfarer.ui.Q.processInput(Unknown Source)
        at com.fs.starfarer.campaign.CampaignState.processInput(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.o00000(Unknown Source)
        at com.fs.starfarer.StarfarerLauncher$1.run(Unknown Source)
        at java.lang.Thread.run(Unknown Source)

The sliders haven't been changed since 0.9.1a, and are defined like this:
Code
                    // Console overlay font size
                    options.addSelector("Text Scaling Percentage", Selector.TEXT_SCALE, Color.WHITE, barWidth, 150f, 50, 150, ValueDisplayMode.VALUE,
                            "Scale displayed text by this percentage of the base font size.");
                    options.setSelectorValue(Selector.TEXT_SCALE, (int) (fontScale * 100));

                    // Console overlay font color
                    options.addSelector("Output Color (red)", Selector.COLOR_R, Color.RED, barWidth, 150f, 0f, 255f, ValueDisplayMode.X_OVER_Y_NO_SPACES,
                            "The red component of the overlay's text color.");
                    options.setSelectorValue(Selector.COLOR_R, red);
                    options.addSelector("Output Color (green)", Selector.COLOR_G, Color.GREEN, barWidth, 150f, 0f, 255f, ValueDisplayMode.X_OVER_Y_NO_SPACES,
                            "The blue component of the overlay's text color.");
                    options.setSelectorValue(Selector.COLOR_G, green);
                    options.addSelector("Output Color (blue)", Selector.COLOR_B, Color.BLUE, barWidth, 150f, 0f, 255f, ValueDisplayMode.X_OVER_Y_NO_SPACES,
                            "The green component of the overlay's text color.");
                    options.setSelectorValue(Selector.COLOR_B, blue);

                    options.addOption("Print current color", Option.TEST_COLOR, "Prints an example of the current color for easier comparisons.");
                    dialog.getVisualPanel().showCustomPanel(50f, 50f, new ColorDisplayPlugin());
                    optionSelected("Print current color", Option.TEST_COLOR); // Show the starting color

7
Modding / MOVED: [0.95a] Old Hyperion 0.1.1
« on: March 26, 2021, 10:48:20 AM »

10
Modding / MOVED: [0.9.1a] Idoneus Citadel Exiles
« on: December 07, 2020, 01:36:41 PM »

11
Modding / MOVED: [0.9.1a] Va11 Hall-A Portrait Pack
« on: March 02, 2020, 05:42:16 PM »

12
Modding / MOVED: [0.9.1a] Shadowy Broker (v0.2.7 - 2020/02/09)
« on: February 11, 2020, 08:10:23 AM »

14
I remember there being a similar problem in the past with other removeX methods being called by the removed object (since they'd be doing so during iteration of the list they're contained in). However, for some reason this exception occurs even if I offload the removal onto a separate EveryFrameScript:

Code
runcode if ($context.isCampaignAccessible())
{
$sector.addTransientScript(new EveryFrameScript()
{
private boolean isDone = false;
public void advance(float amount)
{
$sector.getListenerManager().removeListenerOfClass(org.lazywizard.console.ConsoleCampaignListener.class);
isDone = true;
$print("Console disabled in the campaign until the next reload.\n");
}
public boolean isDone() { return isDone; }
public boolean runWhilePaused() { return true; }
});
}

Quote
226895 [Thread-4] ERROR com.fs.starfarer.combat.CombatMain  - java.util.ConcurrentModificationException
java.util.ConcurrentModificationException
        at java.util.ArrayList$Itr.checkForComodification(ArrayList.java:909)
        at java.util.ArrayList$Itr.next(ArrayList.java:859)
        at com.fs.starfarer.campaign.ListenerManager.removeListenerOfClass(Unknown Source)
        at SC$1.advance(Unknown Source)
        at com.fs.starfarer.campaign.CampaignEngine.advance(Unknown Source)
        at com.fs.starfarer.campaign.CampaignState.advance(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$1.run(Unknown Source)
        at java.lang.Thread.run(Thread.java:748)

15
Modding / MOVED: [0.9.1a] Player Station Construction (v2.4.0)
« on: January 08, 2020, 06:36:59 AM »

Pages: [1] 2 3 ... 12