Jump to content

What is state engine in FML?


TheRPGAdventurer

Recommended Posts

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.

 
Link to comment
Share on other sites

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
  • Like 1
Link to comment
Share on other sites

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);
    }
}
 

Link to comment
Share on other sites

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.

Link to comment
Share on other sites

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.

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

×   Pasted as rich text.   Restore formatting

  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.

Announcements



×
×
  • Create New...

Important Information

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