Jump to content
View in the app

A better way to browse. Learn more.

Forge Forums

A full-screen app on your home screen with push notifications, badges and more.

To install this app on iOS and iPadOS
  1. Tap the Share icon in Safari
  2. Scroll the menu and tap Add to Home Screen.
  3. Tap Add in the top-right corner.
To install this app on Android
  1. Tap the 3-dot menu (⋮) in the top-right corner of the browser.
  2. Tap Add to Home screen or Install app.
  3. Confirm by tapping Install.

Featured Replies

Posted

Hi

I made a mod using eclipse and every time I run my mod I get this error,

 

[Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state SERVER_STOPPED. Errors may have been discarded.
[Server thread/INFO] [FML]: The state engine was in incorrect state ERRORED and forced into state AVAILABLE. Errors may have been discarded.

 

I want to know what state engine is and what it does, every comment is appreciated.

 

The state engine controls the loading and running stages of the game (Constructing, PreInitialisation, Initialisation, PostInitialisation, ServerStarting, ServerStarted, ServerStopping, ServerStopped, Errored).

The lines you quoted are present in every crash report.

Edited by XFactHD

  • Author
Just now, XFactHD said:

The state engine controls the loading and running stages of the game (Constructing, PreInitialisation, Initialisation, PostInitialisation, ServerStarting, ServerStarted, ServerStopping, ServerStopped, Errored).

The lines you quoted are present in every crash report.

http://pastebin.com/HLwZqSpp

Something is null, line 609 of yoir crash report tells you where.

Edited by XFactHD

  • Author

D

Just now, XFactHD said:

Something is null, line 609 of yoir crash report tells you where.

Still crashing, here is the class where it crashes

 

package com.TheRPGAdventurer.items;

import com.TheRPGAdventurer.blocks.BlockDragonBreedEgg;
import com.TheRPGAdventurer.entity.breeds.EnumDragonBreed;
import net.minecraft.item.ItemBlock;
import net.minecraft.item.ItemStack;
import net.minecraft.util.text.translation.I18n;

public class ItemDragonBreedEgg extends ItemBlock {
    
    public static final ItemDragonBreedEgg INSTANCE = new ItemDragonBreedEgg();
    
    public ItemDragonBreedEgg() {
        super(BlockDragonBreedEgg.INSTANCE);
        setMaxDamage(0);
        setHasSubtypes(true);
    }

    @Override
    public int getMetadata(int metadata) {
        return metadata;
    }

    @Override
    public String getItemStackDisplayName(ItemStack stack) {
        EnumDragonBreed type = EnumDragonBreed.META_MAPPING.inverse().get(stack.getMetadata());
        String breedName = I18n.translateToLocal("entity.RealmOfTheDragons.RealmOfTheDragon." + type.getName() + ".name");
        return I18n.translateToLocalFormatted("item.dragonEgg.name", breedName);
    }
}
 

java.lang.NullPointerException
    at com.TheRPGAdventurer.items.ItemDragonBreedEgg.getItemStackDisplayName(ItemDragonBreedEgg.java:27)

Something in that method (at line 27 of the class) is null where it shouldn't be. Use printlns or step through with your debugger to find it.

  • Author
Just now, Jay Avery said:

java.lang.NullPointerException
    at com.TheRPGAdventurer.items.ItemDragonBreedEgg.getItemStackDisplayName(ItemDragonBreedEgg.java:27)

Something in that method (at line 27 of the class) is null where it shouldn't be. Use printlns or step through with your debugger to find it.

No worries already fixed it.

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
Unfortunately, your content contains terms that we do not allow. Please edit your content to remove the highlighted words below.
Reply to this topic...

Important Information

By using this site, you agree to our Terms of Use.

Configure browser push notifications

Chrome (Android)
  1. Tap the lock icon next to the address bar.
  2. Tap Permissions → Notifications.
  3. Adjust your preference.
Chrome (Desktop)
  1. Click the padlock icon in the address bar.
  2. Select Site settings.
  3. Find Notifications and adjust your preference.