Jump to content

Recommended Posts

Posted

So i'm trying to setting up mcp with forge using the forge source installer but everytime i run it i get  this error:

================ Forge ModLoader Setup Start ===================
Checking MCP zip (may take time to download)
Downloaded mcp8.04.zip
Extracting MCP to '[NotNeeded]'
Setting up MCP
Patching commands.py
patching file commands.py
    Commands patch applied successfully
Copying FML conf
Creating Repackaged data
    Creating re-packaged srg
    Creating re-packaged exc
    Creating re-packaged MCP patches
Fixing MCP Workspace
Could not retrieve md5 for library scala-compiler-2.10.2.jar ( http://repo.maven
.apache.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2.ja
r.md5 )
Could not retrieve md5 for library lwjgl-2.9.0-sources.jar ( http://repo.maven.a
pache.org/maven2/org/lwjgl/lwjgl/lwjgl/2.9.0/lwjgl-2.9.0-sources.jar.md5 )
Could not retrieve md5 for library guava-14.0.jar ( http://repo.maven.apache.org
/maven2/com/google/guava/guava/14.0/guava-14.0.jar.md5 )
Could not retrieve md5 for library commons-lang3-3.1-sources.jar ( http://repo.m
aven.apache.org/maven2/org/apache/commons/commons-lang3/3.1/commons-lang3-3.1-so
urces.jar.md5 )
Could not retrieve md5 for library jinput-2.0.5.jar ( http://repo.maven.apache.o
rg/maven2/net/java/jinput/jinput/2.0.5/jinput-2.0.5.jar.md5 )
Could not retrieve md5 for library jutils-1.0.0-sources.jar ( http://repo.maven.
apache.org/maven2/net/java/jutils/jutils/1.0.0/jutils-1.0.0-sources.jar.md5 )
Downloading 42 libraries
    launchwrapper-1.3.jar Done
    Download of asm-debug-all-4.1.jar failed md5 check, deleting
    Failed to download asm-debug-all-4.1.jar from http://repo.maven.apache.org/m
aven2/org/ow2/asm/asm-debug-all/4.1/asm-debug-all-4.1.jar
    asm-debug-all-4.1-sources.jar Done
    scala-library-2.10.2.jar Done
    scala-library-2.10.2-sources.jar Done
    scala-compiler-2.10.2.jar Done
    Download of scala-compiler-2.10.2-sources.jar failed md5 check, deleting
    Failed to download scala-compiler-2.10.2-sources.jar from http://repo.maven.
apache.org/maven2/org/scala-lang/scala-compiler/2.10.2/scala-compiler-2.10.2-sou
rces.jar
    jopt-simple-4.5.jar Done
    jopt-simple-4.5-sources.jar Done
    lzma-0.0.1.jar Done
    codecjorbis-20101023.jar Done
    codecwav-20101023.jar Done
    libraryjavasound-20101123.jar Done
    librarylwjglopenal-20100824.jar Done
    soundsystem-20120107.jar Done
    lwjgl-2.9.0.jar Done
    lwjgl-2.9.0-sources.jar Done
    lwjgl_util-2.9.0.jar Done
    lwjgl_util-2.9.0-sources.jar Done
    argo-2.25_fixed.jar Done
    argo-2.25.jar Done
    argo-2.25-sources.jar Done
    Download of bcprov-jdk15on-1.47.jar failed md5 check, deleting
    Failed to download bcprov-jdk15on-1.47.jar from http://repo.maven.apache.org
/maven2/org/bouncycastle/bcprov-jdk15on/1.47/bcprov-jdk15on-1.47.jar
    bcprov-jdk15on-1.47-sources.jar Done
    guava-14.0.jar Done
    Download of guava-14.0-sources.jar failed md5 check, deleting
    Failed to download guava-14.0-sources.jar from http://repo.maven.apache.org/
maven2/com/google/guava/guava/14.0/guava-14.0-sources.jar
    commons-lang3-3.1.jar Done
    commons-lang3-3.1-sources.jar Done
    commons-io-2.4.jar Done
    Download of commons-io-2.4-sources.jar failed md5 check, deleting
    Failed to download commons-io-2.4-sources.jar from http://repo.maven.apache.
org/maven2/commons-io/commons-io/2.4/commons-io-2.4-sources.jar
    jinput-2.0.5.jar Done
    Download of jinput-2.0.5-sources.jar failed md5 check, deleting
    Failed to download jinput-2.0.5-sources.jar from http://repo.maven.apache.or
g/maven2/net/java/jinput/jinput/2.0.5/jinput-2.0.5-sources.jar
    jutils-1.0.0.jar Done
    jutils-1.0.0-sources.jar Done
    gson-2.2.2.jar Done
    gson-2.2.2-sources.jar Done
    lwjgl-platform-2.9.0-natives-windows.jar Done
        Extracting OpenAL32.dll
        Extracting OpenAL64.dll
        Extracting lwjgl.dll
        Extracting lwjgl64.dll
    lwjgl-platform-2.9.0-natives-osx.jar Done
        Extracting liblwjgl.jnilib
        Extracting openal.dylib
    lwjgl-platform-2.9.0-natives-linux.jar Done
        Extracting liblwjgl.so
        Extracting liblwjgl64.so
        Extracting libopenal.so
        Extracting libopenal64.so
    jinput-platform-2.0.5-natives-windows.jar Done
        Extracting jinput-dx8.dll
        Extracting jinput-dx8_64.dll
        Extracting jinput-raw.dll
        Extracting jinput-raw_64.dll
        Extracting jinput-wintab.dll
    jinput-platform-2.0.5-natives-osx.jar Done
        Extracting libjinput-osx.jnilib
    jinput-platform-2.0.5-natives-linux.jar Done
        Extracting libjinput-linux.so
        Extracting libjinput-linux64.so
Backing up client
Downloaded 1.6.2.jar
Backing up server
Downloaded minecraft_server.1.6.2.jar
Something failed verifying minecraft files, see log for details.
Decompile Exception: 1
Press any key to continue . . .

Posted

Something is screwing up your internet connection and not letting it download needed files.

For now, start off my making a folder called 'mcp_data' in the fml dir.

Then copy mcp\jars to that folder. {the eintire jars dir so you now have fml\mcp_data\jars}

 

Kill the mcp folder, and then try again.

The 'mcp_data' folder is the cache that FML looks for when setting up a completely clean work space.

So if you stick the jars in there it won't download stuff you already have.

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

Posted
  On 8/27/2013 at 5:32 PM, LexManos said:

Something is screwing up your internet connection and not letting it download needed files.

For now, start off my making a folder called 'mcp_data' in the fml dir.

Then copy mcp\jars to that folder. {the eintire jars dir so you now have fml\mcp_data\jars}

 

Kill the mcp folder, and then try again.

The 'mcp_data' folder is the cache that FML looks for when setting up a completely clean work space.

So if you stick the jars in there it won't download stuff you already have.

Do i also need to install fml in my minecraft jar?

 

Posted

No.. Why would you need to do that?

Seriously i can't beat this into people enough you NEVER NEVER NEVER NEVER NEVER need to TOUCH your minecraft.jar/minecraft_server.jar anymore.

 

But no, FML comes with Forge in both the src and binary distrabution. Thats why theres a folder called fml -.-

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

Posted
  On 8/27/2013 at 5:44 PM, LexManos said:

No.. Why would you need to do that?

Seriously i can't beat this into people enough you NEVER NEVER NEVER NEVER NEVER need to TOUCH your minecraft.jar/minecraft_server.jar anymore.

 

But no, FML comes with Forge in both the src and binary distrabution. Thats why theres a folder called fml -.-

Haha i'm sorry but i still got the same error

This is what my mcp_data/jars looks like it got assets and versions in.

Did i miss something...? I'm really sorry i thought it was easier back before 1.6 :S

I didn't got the minecraft_server in it because i'm making a singleplayer mod and it don't really think you'll need that if you're making a single player mod.

Posted

Yes you need the server when modding with Forge as we merge the client and server into one code base.

And you should also have the 'libraries' folder, the thing that you're having issue downloading.

 

Seriously though, The forge src setup has been automated for several months now. This is NOT an issue with our system

It's an issue with YOUR internet connection.

One that can be resolved by just having those libraries already downloaded like I told you but aparently you're not getting that.

Either way, I expect a small level of intelegence from people who use the src distribution, I have told you what needs to be done, this is the end of it.

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

Guest
This topic is now closed to further replies.

Announcements



  • Recently Browsing

    • No registered users viewing this page.
  • Posts

    • To prevent dependency errors, yes  
    • dynamictrees and dtneapolitan are the last mentioned mod - remove these
    • https://mclo.gs/9y5ciD2 anyone ever had this issue?  Internal exception illegal argument exception: unable to fit 3194354 into 3
    • Hi! I'm trying to add my custom models/textures renderer like this: public class PonyPlayerWrapperRenderer extends EntityRenderer<Player> { // wrapper class under my LivingEntityRenderer class implementation private final PonyPlayerRenderer innerRenderer; private final PonyPlayerRenderer innerSlimRenderer; public PonyPlayerWrapperRenderer(final EntityRendererProvider.Context context) { super(context); System.out.println("creating new PonyPlayerWrapperRenderer"); this.innerRenderer = new PonyPlayerRenderer(context, false); this.innerSlimRenderer = new PonyPlayerRenderer(context, true); } @Override public void render(final Player entity, final float yaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource bufferSource, final int packedLight) { System.out.println("PonyPlayerWrapperRenderer render: " + entity.toString()); if (entity instanceof AbstractClientPlayer clientPlayer) { if (clientPlayer.getModelName().contains("slim")) { innerSlimRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } else { innerRenderer.render(clientPlayer, yaw, partialTicks, poseStack, bufferSource, packedLight); } } } @Override public ResourceLocation getTextureLocation(final Player player) { System.out.println("PonyPlayerWrapperRenderer getTextureLocation"); if (player instanceof AbstractClientPlayer clientPlayer) { return clientPlayer.getSkinTextureLocation(); } System.out.println("player instanceof AbstractClientPlayer is false"); return getDefaultSkin(player.getUUID()); } } public class PonyPlayerRenderer extends LivingEntityRenderer<AbstractClientPlayer, PlayerModel<AbstractClientPlayer>> { private final PlayerModel<AbstractClientPlayer> earthModel; private final PlayerModel<AbstractClientPlayer> pegasusModel; private final PlayerModel<AbstractClientPlayer> unicornModel; public PonyPlayerRenderer(final EntityRendererProvider.Context context, final boolean slim) { super( context, slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)), 0.5f ); System.out.println("creating new PonyPlayerRenderer"); this.earthModel = slim ? new PonyModelSlim(context.bakeLayer(PonyModelSlim.LAYER_LOCATION)) : new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); this.pegasusModel = new PegasusModel(context.bakeLayer(PegasusModel.LAYER_LOCATION)); this.unicornModel = new UnicornModel(context.bakeLayer(UnicornModel.LAYER_LOCATION)); } @Override public void render(final AbstractClientPlayer player, final float entityYaw, final float partialTicks, final PoseStack poseStack, final MultiBufferSource buffer, final int packedLight) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); this.model = switch (race) { case PEGASUS -> pegasusModel; case UNICORN -> unicornModel; case EARTH -> earthModel; }; super.render(player, entityYaw, partialTicks, poseStack, buffer, packedLight); } @Override public ResourceLocation getTextureLocation(final AbstractClientPlayer player) { final PonyRace race = player.getCapability(PONY_DATA) .map(data -> ofNullable(data.getRace()).orElse(PonyRace.EARTH)) .orElse(PonyRace.EARTH); return switch (race) { case EARTH -> fromNamespaceAndPath(MODID, "textures/entity/earth_pony.png"); case PEGASUS -> fromNamespaceAndPath(MODID, "textures/entity/pegasus.png"); case UNICORN -> fromNamespaceAndPath(MODID, "textures/entity/unicorn.png"); }; } } @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { // mod bus render registration config @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onRegisterRenderers(final EntityRenderersEvent.RegisterRenderers event) { event.registerEntityRenderer(EntityType.PLAYER, PonyPlayerWrapperRenderer::new); System.out.println("onRegisterRenderers end"); } } Method onRegisterRenderers() is called and I can see it being logged. But when I enter the world, my PonyWrapperRenderer render() method doesn't ever seem to be called. I also tried to put my renderer to EntityRenderDispatcher's playerRenderers via reflection: @Mod.EventBusSubscriber(modid = MODID, bus = MOD, value = CLIENT) public class ClientRenderers { @SubscribeEvent public static void onRegisterLayerDefinitions(final EntityRenderersEvent.RegisterLayerDefinitions event) { event.registerLayerDefinition(PonyModel.LAYER_LOCATION, PonyModel::createBodyLayer); event.registerLayerDefinition(PonyModelSlim.LAYER_LOCATION, PonyModelSlim::createBodyLayer); event.registerLayerDefinition(PegasusModel.LAYER_LOCATION, PegasusModel::createBodyLayer); event.registerLayerDefinition(UnicornModel.LAYER_LOCATION, UnicornModel::createBodyLayer); event.registerLayerDefinition(InnerPonyArmorModel.LAYER_LOCATION, InnerPonyArmorModel::createBodyLayer); event.registerLayerDefinition(OuterPonyArmorModel.LAYER_LOCATION, OuterPonyArmorModel::createBodyLayer); } @SubscribeEvent public static void onClientSetup(final FMLClientSetupEvent event) { event.enqueueWork(() -> { try { final EntityRenderDispatcher dispatcher = Minecraft.getInstance().getEntityRenderDispatcher(); final Field renderersField = getEntityRenderDispatcherField("playerRenderers"); final Field itemInHandRenderer = getEntityRenderDispatcherField("itemInHandRenderer"); @SuppressWarnings("unchecked") final Map<String, EntityRenderer<? extends Player>> playerRenderers = (Map<String, EntityRenderer<? extends Player>>)renderersField.get(dispatcher); final PonyPlayerWrapperRenderer renderer = new PonyPlayerWrapperRenderer( new EntityRendererProvider.Context( dispatcher, Minecraft.getInstance().getItemRenderer(), Minecraft.getInstance().getBlockRenderer(), (ItemInHandRenderer)itemInHandRenderer.get(dispatcher), Minecraft.getInstance().getResourceManager(), Minecraft.getInstance().getEntityModels(), Minecraft.getInstance().font ) ); playerRenderers.put("default", renderer); playerRenderers.put("slim", renderer); System.out.println("Player renderers replaced"); } catch (final Exception e) { throw new RuntimeException("Failed to replace player renderers", e); } }); } private static Field getEntityRenderDispatcherField(final String fieldName) throws NoSuchFieldException { final Field field = EntityRenderDispatcher.class.getDeclaredField(fieldName); field.setAccessible(true); return field; } } But I receive the error before Minecraft Client appears (RuntimeException: Failed to replace player renderers - from ClientRenderers onClientSetup() method - and its cause below): java.lang.IllegalArgumentException: No model for layer anotherlittlepony:earth_pony#main at net.minecraft.client.model.geom.EntityModelSet.bakeLayer(EntityModelSet.java:18) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at net.minecraft.client.renderer.entity.EntityRendererProvider$Context.bakeLayer(EntityRendererProvider.java:69) ~[forge-1.20.1-47.4.0_mapped_official_1.20.1-recomp.jar:?] {re:classloading,pl:runtimedistcleaner:A} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerRenderer.<init>(PonyPlayerRenderer.java:32) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.pony.PonyPlayerWrapperRenderer.<init>(PonyPlayerWrapperRenderer.java:24) ~[main/:?] {re:classloading} at com.thuggeelya.anotherlittlepony.client.renderer.ClientRenderers.lambda$onClientSetup$0(ClientRenderers.java:79) ~[main/:?] {re:classloading} ... 33 more Problem appears when EntityRendererProvider context tries to bakeLayer with my model layer location: new PonyModel(context.bakeLayer(PonyModel.LAYER_LOCATION)); // PonyPlayerRenderer.java:32 public class PonyModel extends PlayerModel<AbstractClientPlayer> { // the model class itself public static final ModelLayerLocation LAYER_LOCATION = new ModelLayerLocation( ResourceLocation.fromNamespaceAndPath(MODID, "earth_pony"), "main" ); public PonyModel(final ModelPart root) { super(root, false); } public static LayerDefinition createBodyLayer() { // some CubeListBuilder stuff for model appearance } } Textures PNGs are placed at: resources/assets/[my mod id]/textures/entity. My forge version is 1.20.1. Would appreciate any help.
  • Topics

×
×
  • Create New...

Important Information

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