Jump to content

Mod Missing Signatures


Ruarc88

Recommended Posts

Compiled my first mod for testing and Forge is crashing on startup. Crash report is incomplete (the report itself just says "... and 34 more" instead of actually including those lines). From my log file, crash seems to be happening after construction, but before pre-initialization. Erroring lines:

 

 

 

[20:53:25] [Client thread/DEBUG] [FML/]:    Valid Signatures:

[20:53:25] [Client thread/DEBUG] [FML/]: (e3c3d50c7c986df74c645c0ac54639741c90a557) FML (Forge Mod Loader 8.0.99.99) forge-1.9.4-12.17.0.1968.jar

[20:53:25] [Client thread/DEBUG] [FML/]: (e3c3d50c7c986df74c645c0ac54639741c90a557) Forge (Minecraft Forge 12.17.0.1968) forge-1.9.4-12.17.0.1968.jar

[20:53:25] [Client thread/DEBUG] [FML/]:  Missing Signatures:

[20:53:25] [Client thread/DEBUG] [FML/]: mcp (Minecraft Coder Pack 9.19) minecraft.jar

[20:53:25] [Client thread/DEBUG] [FML/]: mod_PlayerCollisionToggle (mod_PlayerCollisionToggle 0.0.4) mod_PlayerCollisionToggle-0.0.4.jar

 

 

 

Google only brings up Forge itself missing signatures for older versions and forum signature creators.... ???

 

The tutorials I worked through failed to tell me anything about these.

 

As far as I can tell, there's nothing critically different from my mod and the example mod that loads and runs no problem (other than what they do).

 

My code (just in case)

 

 

package ruarcraft.minecraft.playercollisiontoggle;

import net.minecraft.entity.Entity;
import net.minecraft.entity.player.EntityPlayer;
import net.minecraft.nbt.NBTTagCompound;
import net.minecraft.world.World;
import net.minecraft.util.math.MathHelper;
import net.minecraftforge.common.MinecraftForge;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.eventhandler.SubscribeEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;

@Mod(modid = PlayerCollisionToggle.MODID, version = PlayerCollisionToggle.VERSION)
public abstract class PlayerCollisionToggle extends Entity
{
public static final String MODID = "mod_PlayerCollisionToggle";
    public static final String VERSION = "0.0.4";
    
public PlayerCollisionToggle(World p_i1582_1_) {
	super(p_i1582_1_);
	// TODO Auto-generated constructor stub
}

    @EventHandler
    public void preInit(FMLPreInitializationEvent event)
    {
    	
    }
    
    @EventHandler
    public void init(FMLInitializationEvent event)
    {
        MinecraftForge.EVENT_BUS.register(this);
        System.out.println("COOLMODINIT");
    }
    
    @EventHandler
    public void postInit(FMLPostInitializationEvent event)
    {
    	
    }

@Override
public void func_70108_f(Entity entityIn)
{
	if (!this.func_184223_x(entityIn))
        {
            if (!entityIn.field_70145_X && !this.field_70145_X)
            {
                double d0 = entityIn.field_70165_t - this.field_70165_t;
                double d1 = entityIn.field_70161_v - this.field_70161_v;
                double d2 = MathHelper.func_76132_a(d0, d1);

                if (d2 >= 0.009999999776482582D)
                {
                    d2 = (double)MathHelper.func_76133_a(d2);
                    d0 = d0 / d2;
                    d1 = d1 / d2;
                    double d3 = 1.0D / d2;

                    if (d3 > 1.0D)
                    {
                        d3 = 1.0D;
                    }

                    d0 = d0 * d3;
                    d1 = d1 * d3;
                    d0 = d0 * 0.05000000074505806D;
                    d1 = d1 * 0.05000000074505806D;
                    d0 = d0 * (double)(1.0F - this.field_70144_Y);
                    d1 = d1 * (double)(1.0F - this.field_70144_Y);

                    //if (!this.func_184207_aI() && !(this instanceof EntityPlayer))
                    //{
                    //    this.func_70024_g(-d0, 0.0D, -d1);
                    //}

                    //if (!entityIn.func_184207_aI() && !(entityIn instanceof EntityPlayer))
                    //{
                    //    entityIn.func_70024_g(d0, 0.0D, d1);
                    //}
                    
                    System.out.println("APPLYENTITYCOLLISION_OVERRIDE");
                }
            }
        }
}

@Override
protected void func_70014_b(NBTTagCompound arg0) {
	// TODO Auto-generated method stub

}

@Override
protected void func_70037_a(NBTTagCompound arg0) {
	// TODO Auto-generated method stub

}

@Override
protected void func_70088_a() {
	// TODO Auto-generated method stub

}
}

 

 

 

The end goal being to disable the ability for entities to move the player.

Link to comment
Share on other sites

Crash report is incomplete (the report itself just says "... and 34 more" instead of actually including those lines).
Umm, that's a standard java thing it means that the error, and the cause of the error share the same stack at that frame. So no need to display it again because it'll be displayed in the cause stack trace.

From my log file, crash seems to be happening after construction, but before pre-initialization. Erroring lines:

 

 

 

[20:53:25] [Client thread/DEBUG] [FML/]:    Valid Signatures:

[20:53:25] [Client thread/DEBUG] [FML/]: (e3c3d50c7c986df74c645c0ac54639741c90a557) FML (Forge Mod Loader 8.0.99.99) forge-1.9.4-12.17.0.1968.jar

[20:53:25] [Client thread/DEBUG] [FML/]: (e3c3d50c7c986df74c645c0ac54639741c90a557) Forge (Minecraft Forge 12.17.0.1968) forge-1.9.4-12.17.0.1968.jar

[20:53:25] [Client thread/DEBUG] [FML/]:  Missing Signatures:

[20:53:25] [Client thread/DEBUG] [FML/]: mcp (Minecraft Coder Pack 9.19) minecraft.jar

[20:53:25] [Client thread/DEBUG] [FML/]: mod_PlayerCollisionToggle (mod_PlayerCollisionToggle 0.0.4) mod_PlayerCollisionToggle-0.0.4.jar

 

 

 

Google only brings up Forge itself missing signatures for older versions and forum signature creators.... ???

 

The tutorials I worked through failed to tell me anything about these.

Google jar signing. It's a method of signing the class files so that people can verify that they are from YOU and have not been modified by someone else.

As far as I can tell, there's nothing critically different from my mod and the example mod that loads and runs no problem (other than what they do).
There is a SHIT ton different seriously do you know basic java?

 

@Mod(modid = PlayerCollisionToggle.MODID, version = PlayerCollisionToggle.VERSION)
public abstract class PlayerCollisionToggle extends Entity
{

Your mod class is an entity what the hell!?!

 

The end goal being to disable the ability for entities to move the player.
You're not gunna be able to do this right now.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Umm, that's a standard java thing it means that the error, and the cause of the error share the same stack at that frame. So no need to display it again because it'll be displayed in the cause stack trace.

I've never seen a crash report end half-way through listing the system specs but ok then.

 

Google jar signing. It's a method of signing the class files so that people can verify that they are from YOU and have not been modified by someone else.

Thank you kindly

 

There is a SHIT ton different seriously do you know basic java?

I thought it was obvious I was referring to the bare necessities of a MC mod when I said "Other than what they do"

 

Your mod class is an entity what the hell!?!

Grants override access to the function applyEntityCollision (where the player actually gets pushed around by other entities)... at least that's what every override example I've seen leads me to believe. As I said, this is my first mod. If it doesn't work, I'll try something else but I need to be able to load the mod to test it.

 

You're not gunna be able to do this right now.

Out of all the functionality MC has seen through mods, you're telling me there's no way to do this right now. Nevermind the fact that the functionality was part of the game for more than 5 major releases before 1.9.

Link to comment
Share on other sites

extends Entity

 

Grants override access to the function applyEntityCollision... at least that's what every override example I've seen leads me to believe. As I said, this is my first mod. If it doesn't work, I'll try something else.

Link to comment
Share on other sites

That's not how subclasses and overrides work.

Not trying to be insulting but this is a obvious case where you need to go learn some of the basics of java {or any programming}

There are plenty of free resources such as MIT classes, Standord has some, and TONS of online tutorials.

Going to lock this as there isn't anything more we can do to help you besides advise that you learn a bit more.

I do Forge for free, however the servers to run it arn't free, so anything is appreciated.
Consider supporting the team on Patreon

Link to comment
Share on other sites

Guest
This topic is now closed to further replies.


×
×
  • Create New...

Important Information

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