Jump to content

Recommended Posts

Posted

HI ,

I have a problem with forge updater : https://mcforge.readthedocs.io/en/latest/gettingstarted/autoupdate/ .

 

I have everything as said in the documentations but it does not work.

 

My update.json : http://archydium.zenserv.fr/minecraft/update/update.json

ArchyMod.java (Main class)

package fr.darkprod.archymod;

import fr.darkprod.archymod.commands.CommandArchydium1;
import fr.darkprod.archymod.commands.CommandArchydium2;
import fr.darkprod.archymod.fuel.IFuelHandlerArchydium;
import fr.darkprod.archymod.gen.GenOres;
import fr.darkprod.archymod.gui.GuiHandler;
import fr.darkprod.archymod.handlers.ArchydiumSoundHandler;
import fr.darkprod.archymod.init.ModBlocks;
import fr.darkprod.archymod.init.ModItems;
import fr.darkprod.archymod.init.ModRecipies;
import fr.darkprod.archymod.proxy.CommonProxy;
import fr.darkprod.archymod.tiles.TileInventoryFurnace;
import net.minecraft.client.renderer.BlockModelRenderer;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.init.Blocks;
import net.minecraft.item.Item;
import net.minecraft.item.ItemStack;
import net.minecraftforge.fml.common.Loader;
import net.minecraftforge.fml.common.Mod;
import net.minecraftforge.fml.common.Mod.CustomProperty;
import net.minecraftforge.fml.common.Mod.EventHandler;
import net.minecraftforge.fml.common.ModClassLoader;
import net.minecraftforge.fml.common.SidedProxy;
import net.minecraftforge.fml.common.event.FMLInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPostInitializationEvent;
import net.minecraftforge.fml.common.event.FMLPreInitializationEvent;
import net.minecraftforge.fml.common.event.FMLServerStartingEvent;
import net.minecraftforge.fml.common.network.NetworkRegistry;
import net.minecraftforge.fml.common.registry.GameRegistry;
import net.minecraftforge.fml.relauncher.Side;
import net.minecraftforge.fml.relauncher.SideOnly;
import net.minecraftforge.oredict.OreDictionary;

@Mod(modid = References.MOD_ID, name = References.MOD_NAME, version = References.VERSION, acceptedMinecraftVersions = "[1.10,1.10.2]" , updateJSON = References.updateJSON)

public class ArchyMod {
	@SidedProxy(clientSide = References.CLIENT_PROXY, serverSide = References.SERVER_PROXY)
	public static CommonProxy proxy;

	@Mod.Instance(References.MOD_ID)
	public static ArchyMod instance;
	
	public static final int GUI_BACKPACK = 0;
	public static final int GUI_FURNACE = 1;
	

	public static CreativeTabs ArchyMod = new CreativeTabs("ArchyMod") {

		@SideOnly(Side.CLIENT)
		public Item getTabIconItem() {
			return ModItems.ArchydiumIngot;
		}
		
		
	};
	
	@Mod.EventHandler
	public void serverLoad(FMLServerStartingEvent e) {
		e.registerServerCommand(new CommandArchydium1());
		//e.registerServerCommand(new CommandArchydium2());
	}
	
	@Mod.EventHandler
	public void preInit(FMLPreInitializationEvent e)
	{
		proxy.preInit();
		ModItems.init();
		ModItems.register();
		ModBlocks.init();
		GameRegistry.registerFuelHandler(new IFuelHandlerArchydium());
	}

	@Mod.EventHandler
	public void init(FMLInitializationEvent e)
	{
		proxy.init();
		
		GameRegistry.registerTileEntity(TileInventoryFurnace.class, "TileArchydiumFurnace");
		NetworkRegistry.INSTANCE.registerGuiHandler(instance, new GuiHandler());
		ArchydiumSoundHandler.init();
		GameRegistry.registerWorldGenerator(new GenOres(), 0);
		OreDictionary.registerOre("oreArchydium", ModBlocks.oreArchydium);
		OreDictionary.registerOre("oreArpaz", ModBlocks.ArpazOre);
		OreDictionary.registerOre("oreArzot", ModBlocks.ArzotOre);
		OreDictionary.registerOre("blockBush", ModBlocks.ArchyBush);
		ModRecipies.init();
		
	}

	@Mod.EventHandler
	public void postInit(FMLPostInitializationEvent e)
	{
		proxy.postInit();
	}
}

References class : 

package fr.darkprod.archymod;

import com.mojang.realmsclient.gui.ChatFormatting;

public class References {
	public static final String MOD_ID = "archydium";
	public static final String MOD_NAME = "Archydium Mod";
	public static final String VERSION = "1.0";
	public static final String CLIENT_PROXY = "fr.darkprod.archymod.proxy.ClientProxy";
	public static final String SERVER_PROXY = "fr.darkprod.archymod.proxy.ServerProxy";
	public static final String HoldShift = ChatFormatting.GREEN + "Hold" + ChatFormatting.RESET + ChatFormatting.BLUE + ChatFormatting.ITALIC +" <Shift>" + ChatFormatting.RESET + ChatFormatting.GREEN + " To Open" + ChatFormatting.RESET;
	public static final String updateJSON = "http://archydium.zenserv.fr/minecraft/update/update.json";
}

Help me please

Posted

Despite the page name in the url it is not an updater, it is an update checker, mods with updates available are marked with emeralds in the mods list and a message is logged in console.

Does this answer your question?

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

What does it say in the console during launch? It should be prefaced with forge.VersionCheck

This is my Forum Signature, I am currently attempting to transform it into a small guide for fixing easier issues using spoiler blocks to keep things tidy.

 

As the most common issue I feel I should put this outside the main bulk:

The only official source for Forge is https://files.minecraftforge.net, and the only site I trust for getting mods is CurseForge.

If you use any site other than these, please take a look at the StopModReposts project and install their browser extension, I would also advise running a virus scan.

 

For players asking for assistance with Forge please expand the spoiler below and read the appropriate section(s) in its/their entirety.

  Reveal hidden contents

 

Posted

This is why you should always post and read your log files.

Your server is returning 403 for that url when using a java client.

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

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.