(CLOSED) Recompilation has failed

Started by Legomanisme on

Topic category: Help with MCreator software

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
(CLOSED) Recompilation has failed
Sat, 08/19/2017 - 13:28 (edited)

I've been getting this recompilation error lots and I don't know why. I was making a ruby mod when this started to pop up. I deleted them but i'm still getting this recompilation error. The "Mods that cause errors;" list is blank. 

 

Here's the gradle log: 

--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Etag download for http://files.minecraftforge.net/maven/de/oceanlabs/mcp/versions.json failed with code 400 Etag download for http://export.mcpbot.bspk.rs/versions.json failed with code 400 Etag download for http://files.minecraftforge.net/maven/net/minecraftforge/forge/json failed with code 400 warning: [options] bootstrap class path not set in conjunction with -source 1.6 C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:48: error: cannot find symbol mcreator_emeraldSword mcreator_9 = new mcreator_emeraldSword(); ^   symbol:   class mcreator_emeraldSword   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:49: error: cannot find symbol mcreator_emeraldArmor mcreator_10 = new mcreator_emeraldArmor(); ^   symbol:   class mcreator_emeraldArmor   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:50: error: cannot find symbol mcreator_emeraldAxe mcreator_11 = new mcreator_emeraldAxe(); ^   symbol:   class mcreator_emeraldAxe   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:51: error: cannot find symbol mcreator_emeraldPickaxe mcreator_12 = new mcreator_emeraldPickaxe(); ^   symbol:   class mcreator_emeraldPickaxe   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:52: error: cannot find symbol mcreator_emeraldShovel mcreator_13 = new mcreator_emeraldShovel(); ^   symbol:   class mcreator_emeraldShovel   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:53: error: cannot find symbol mcreator_emeraldHoe mcreator_14 = new mcreator_emeraldHoe(); ^   symbol:   class mcreator_emeraldHoe   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:54: error: cannot find symbol mcreator_ruby mcreator_15 = new mcreator_ruby(); ^   symbol:   class mcreator_ruby   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:55: error: cannot find symbol mcreator_rubyArmor mcreator_16 = new mcreator_rubyArmor(); ^   symbol:   class mcreator_rubyArmor   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:48: error: cannot find symbol mcreator_emeraldSword mcreator_9 = new mcreator_emeraldSword();                                       ^   symbol:   class mcreator_emeraldSword   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:49: error: cannot find symbol mcreator_emeraldArmor mcreator_10 = new mcreator_emeraldArmor();                                        ^   symbol:   class mcreator_emeraldArmor   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:50: error: cannot find symbol mcreator_emeraldAxe mcreator_11 = new mcreator_emeraldAxe();                                      ^   symbol:   class mcreator_emeraldAxe   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:51: error: cannot find symbol mcreator_emeraldPickaxe mcreator_12 = new mcreator_emeraldPickaxe();                                          ^   symbol:   class mcreator_emeraldPickaxe   location: class TestEnvironmentMod C:\Pylo\MCreator175\forge\build\sources\main\java\mod\mcreator\TestEnvironmentMod.java:52: error: cannot find symbol
Edited by Legomanisme on Sat, 08/19/2017 - 13:28
Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Check out this:
Fri, 08/18/2017 - 19:29

@#1 That didn't work. I made ruby ore and it popped up, so it might have something to do with the texture or something else.

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:RE:Check out this:
Fri, 08/18/2017 - 19:29

@#1.1 I mean I remade ruby ore

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I've tried installing it
Fri, 08/18/2017 - 19:40

I've tried installing it again, but the same error pops up. When I made the ruby ore, it was red instead of green, so i made something else and that came up green...

Joined Jun 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
error: cannot find symbol​
Fri, 08/18/2017 - 19:46

error: cannot find symbol​

​It keeps on saying that on the log. Do they have textures? Also:

Etag download for http://files.minecraftforge.net/maven/de/oceanlabs/mcp/versions.json failed with code 400 Etag download for http://export.mcpbot.bspk.rs/versions.json failed with code 400 Etag download for http://files.minecraftforge.net/maven/net/minecraftforge/forge/json failed with code 400 ​Don't know what that means. What does the full log say if you haven't fixed that yet.
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Can you show the code of some
Fri, 08/18/2017 - 20:07

Can you show the code of some of the problematic elements?

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Can you show the code of some
Fri, 08/18/2017 - 20:17

@#4

1. I don't know what a problemantic element is. I've only been using this for about 2 days 

2. Yeah they have textures. Maybe something to do with the "TestEnvironmentMod" which could be normal?

3. That wasn't the full log?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
I mean one of the elements
Fri, 08/18/2017 - 21:58

I mean one of the elements that are listened in the log, for example, mcreator_emeraldPickaxe is your element with name EmeraldPickaxe

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:I mean one of the elements
Fri, 08/18/2017 - 22:09

@#5 Ok

Here's Ruby Ore (It has a red box instead of green, and its also causing the pop-up)

----------------------------------------------------------------------------------------------------------------------------------

import net.minecraftforge.fml.relauncher.SideOnly; import net.minecraftforge.fml.relauncher.Side; import net.minecraftforge.fml.common.registry.GameRegistry; import net.minecraftforge.fml.common.event.FMLServerStartingEvent; import net.minecraftforge.fml.common.event.FMLPreInitializationEvent; import net.minecraftforge.fml.common.event.FMLInitializationEvent;   import net.minecraft.world.World; import net.minecraft.world.IBlockAccess; import net.minecraft.util.math.BlockPos; import net.minecraft.util.math.AxisAlignedBB; import net.minecraft.util.EnumFacing; import net.minecraft.util.BlockRenderLayer; import net.minecraft.item.ItemStack; import net.minecraft.item.ItemBlock; import net.minecraft.item.Item; import net.minecraft.creativetab.CreativeTabs; import net.minecraft.client.renderer.block.model.ModelResourceLocation; import net.minecraft.client.Minecraft; import net.minecraft.block.state.IBlockState; import net.minecraft.block.material.Material; import net.minecraft.block.SoundType; import net.minecraft.block.Block;   import java.util.Random;   public class mcreator_rubyOre {   public mcreator_rubyOre() { }   public static BlockRubyOre block;   public static Object instance;   public int addFuel(ItemStack fuel) { return 0; }   public void serverLoad(FMLServerStartingEvent event) { }   public void preInit(FMLPreInitializationEvent event) { block.setRegistryName("rubyore"); GameRegistry.register(block); GameRegistry.register(new ItemBlock(block).setRegistryName(block.getRegistryName())); }   public void registerRenderers() { }   public void load(FMLInitializationEvent event) { if (event.getSide() == Side.CLIENT) { Minecraft.getMinecraft().getRenderItem().getItemModelMesher() .register(Item.getItemFromBlock(block), 0, new ModelResourceLocation("testenvironmentmod:rubyore", "inventory")); } }   static {   block = (BlockRubyOre) (new BlockRubyOre().setHardness(3.25F).setResistance(10.0F).setLightLevel(0.0F).setUnlocalizedName("RubyOre") .setLightOpacity(0).setCreativeTab(CreativeTabs.BUILDING_BLOCKS)); block.setHarvestLevel("pickaxe", 3); }   public void generateSurface(World world, Random random, int chunkX, int chunkZ) { }   public void generateNether(World world, Random random, int chunkX, int chunkZ) { }   static class BlockRubyOre extends Block {   int a1 = 0, a2 = 0, a3 = 0, a4 = 0, a5 = 0, a6 = 0;   boolean red = false;   protected BlockRubyOre() { super(Material.ROCK);   setSoundType(SoundType.STONE);   }   @Override public void onBlockAdded(World world, BlockPos pos, IBlockState state) { int i = pos.getX(); int j = pos.getY(); int k = pos.getZ(); world.scheduleUpdate(new BlockPos(i, j, k), this, this.tickRate(world));   }   @Override public int getWeakPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) { return red ? 15 : 0; }   @Override public int getStrongPower(IBlockState blockState, IBlockAccess blockAccess, BlockPos pos, EnumFacing side) { return red ? 15 : 0; }   @SideOnly(Side.CLIENT) @Override public BlockRenderLayer getBlockLayer() { return BlockRenderLayer.SOLID; }   @Override public AxisAlignedBB getBoundingBox(IBlockState state, IBlockAccess source, BlockPos pos) { return new AxisAlignedBB(0.0D, 0.0D, 0.0D, 1.0D, 1.0D, 1.0D); }   @Override public int tickRate(World world) { return 10; }   @Override public int quantityDropped(Random par1Random) { return 1; }   @Override public Item getItemDropped(IBlockState state, Random par2Random, int par3) { return new ItemStack(mcreator_ruby.block).getItem(); } } }
Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
Okay, I do not know if this
Fri, 08/18/2017 - 22:20

Okay, I do not know if this will work, I mean it could work but who knows, but add to every element that you have listed in the console log to its code on the first line this: package mod.mcreator;

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Okay, I do not know if this
Fri, 08/18/2017 - 22:58

@#6 Like where it says 1?

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Okay, I do not know if this
Fri, 08/18/2017 - 23:02

@#6 Like where it says 1?

Joined Aug 2013
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
The very first line when you
Fri, 08/18/2017 - 23:07

The very first line when you open the code. At the most beginning of the code.

Joined Aug 2017
Points:

User statistics:

  • Modifications:
  • Forum topics:
  • Wiki pages:
  • MCreator plugins:
  • Comments:
RE:Okay, I do not know if this
Fri, 08/18/2017 - 23:35

@#6 Like where it says 1?