How to create a Venus in GalactiCraft3?

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
Good day.
Trying to create and Venus have any questions.
1) What to write in the main class of the planet (where the registration of the planet) to the red line with the name of the planet became green?
2) How to make a landing on the planet?

My code general class:
Code:
package blessentumble.venus;



import java.io.File;

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry;
import micdoodle8.mods.galacticraft.api.galaxies.CelestialBody;
import micdoodle8.mods.galacticraft.api.galaxies.CelestialBody.ScalableDistance;
import micdoodle8.mods.galacticraft.api.galaxies.GalaxyRegistry;
import micdoodle8.mods.galacticraft.api.galaxies.Moon;
import micdoodle8.mods.galacticraft.api.galaxies.Planet;
import micdoodle8.mods.galacticraft.api.world.IAtmosphericGas;
import micdoodle8.mods.galacticraft.core.GalacticraftCore;
import micdoodle8.mods.galacticraft.core.blocks.GCBlocks;
import micdoodle8.mods.galacticraft.core.util.CreativeTabGC;
import micdoodle8.mods.galacticraft.planets.mars.MarsModule;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import blessentumble.CreativeTabsBlesse;
import blessentumble.venus.blocks.TutorialBlocks;
import blessentumble.venus.dimension.VenusWorldProvider;
import blessentumble.venus.handler.SkyProviderHandlerMP;
import blessentumble.venus.items.TutorialItems;
import blessentumble.venus.proxy.CommonProxy;
import blessentumble.venus.util.VenusConfig;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;



@Mod(
modid = "venusaddon",
version = "0.0.1",
dependencies = "required-after:GalacticraftCore",
name = "GalacticraftTutorialMod"
)

public class Venus

{

public static final String MODID = "venusaddon";

public static final String VERSION = "0.0.1";

public static final String NAME = "Venus Moon";

public static Planet venus;



@Instance(value = MODID)

public static Venus instance;



@SidedProxy(clientSide="blessentumble.venus.proxy.ClientProxy", serverSide="blessentumble.venus.proxy.CommonProxy")

public static CommonProxy proxy;



@EventHandler

public void preInit(FMLPreInitializationEvent event) {

new ConfigManagerVenus(new File(event.getModConfigurationDirectory(), "Galacticraft/venus.conf"));
TutorialBlocks.initialize();
TutorialItems.initItems();
FMLCommonHandler.instance().bus().register(new SkyProviderHandlerMP());

}



@EventHandler

public void init(FMLInitializationEvent event)

{
venus = (new Planet("Venus")).setParentSolarSystem(GalacticraftCore.solarSystemSol);
venus.setRingColorRGB(58.07F, 1.54F, 1.93F);
venus.setPhaseShift(6.4F);
venus.setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(1.35F, 1.35F));
venus.setRelativeOrbitTime(2.5F);
venus.setTierRequired(1);
venus.setBodyIcon(new ResourceLocation("venusaddon:textures/gui/celestialbodies/venus.png"));
venus.setDimensionInfo(ConfigManagerVenus.dimensionIDVenus, VenusWorldProvider.class);
venus.atmosphereComponent(IAtmosphericGas.ARGON);

GalacticraftRegistry.registerTeleportType(VenusWorldProvider.class, new VenusWorldProvider());
CreativeTabsBlesse.BlesseBlocksTab = new CreativeTabGC(CreativeTabs.getNextID(), "TutorialBlocks", Item.getItemFromBlock(GCBlocks.machineBase2), 0);
CreativeTabsBlesse.BlesseItemsTab = new CreativeTabGC(CreativeTabs.getNextID(), "TutorialItems", Item.getItemFromBlock(GCBlocks.blockMoon), 0);


}



@EventHandler

public void postInit(FMLPostInitializationEvent event) {

// Stub Method

}


}
 

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83
Good day.
Trying to create and Venus have any questions.
1) What to write in the main class of the planet (where the registration of the planet) to the red line with the name of the planet became green?
2) How to make a landing on the planet?

1) CelestialBody.getReachable() needs to return true.

2) This is done by a TeleportType - for example look at TeleportTypeMars in the Galacticraft source code, and look also at where that gets referenced from. Specifically the landing part is handled by TeleportTypeMars.onSpaceDimensionChanged().

The creation in the world of any lander entity, that's any subclass of EntityLanderBase, should automatically (a) spawn the lander at the player's spawn location in the new world, normally high in the air; (b) mount the player in the lander. This is done by the constructor EntityLanderBase(EntityPlayerMP player, float yOffset). If you look at the code in detail, you will also see extra code in the lander's update ticks which attempts to grab + force mount the player a few ticks later if not already mounted. This is to deal with laggy servers or laggy server-client connections, specifically, the client will maybe not spawn in the new lander entity properly until after it has received a packet from the server with an updated entity list, so maybe the mounting will not work the first time client-side.
 

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
I replaced
Code:
venus = (new Planet("Venus")).setParentSolarSystem(GalacticraftCore.solarSystemSol);
venus.setRingColorRGB(58.07F, 1.54F, 1.93F);
venus.setPhaseShift(6.4F);
venus.setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(1.35F, 1.35F));
venus.setRelativeOrbitTime(2.5F);
venus.setTierRequired(1);
venus.setBodyIcon(new ResourceLocation("venusaddon:textures/gui/celestialbodies/venus.png"));
venus.setDimensionInfo(ConfigManagerVenus.dimensionIDVenus, VenusWorldProvider.class);
venus.atmosphereComponent(IAtmosphericGas.ARGON);
on
Code:
GalacticraftCore.planetVenus = (new Planet("venus")).setParentSolarSystem(GalacticraftCore.solarSystemSol);
GalacticraftCore.planetVenus.setRingColorRGB(58.07F, 1.54F, 1.93F);
GalacticraftCore.planetVenus.setPhaseShift(2.0F);
GalacticraftCore.planetVenus.setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.75F, 0.75F));
GalacticraftCore.planetVenus.setRelativeOrbitTime(0.61527929901423877327491785323111F);
GalacticraftCore.planetVenus.setTierRequired(1);
GalacticraftCore.planetVenus.setBodyIcon(new ResourceLocation("venusaddon:textures/gui/celestialbodies/venus.png"));
GalacticraftCore.planetVenus.setDimensionInfo(ConfigManagerVenus.dimensionIDVenus, VenusWorldProvider.class);
GalacticraftCore.planetVenus.atmosphereComponent(IAtmosphericGas.ARGON);

Added
Code:
public boolean getReachable()
{
return true;
}
in VenusWorldProvider

But nothing has changed .... What am I doing wrong?
 
Last edited:

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83
You'll need to register a few things.

Look at MarsModule.java lines 100 to 109, for example registering the TeleportType. Most importantly you'll need to register the WorldProvider. For Galacticraft's built-in planets this is done at GalacticraftCore lines 299 to 306, if body.autoRegister is true. body.AutoRegister is set true by calling method setDimensionInfo, see for example MarsModule line 102.

I just figured out that it's quite important that your new planet also gets registered by the same code at lines 299 to 306 (because the order of registration is important later, if you're playing on a server). So to make sure that works, you might have to manually add your dimension ID to ConfigManagerCore.staticLoadDimensions, unless you have already put it in the config on server and client.

I'm sorry there is no existing tutorial on this. You're welcome to ask more questions along these lines.
 

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
You can tell more in detail about body.autoRegister?

Code:
int id = Arrays.binarySearch(ConfigManagerCore.staticLoadDimensions, GalacticraftCore.planetVenus.getDimensionID());

GalacticraftRegistry.registerProvider(Venus.planetVenus.getDimensionID(), Venus.planetVenus.getWorldProvider(), Venus.planetVenus.getForceStaticLoad() || id < 0);
I need this to add to the main class of my planet?
 

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83
Like I said, you need to do 2 things:

1. Call method setDimensionInfo(), see for example MarsModule line 102. Include "true" as the third parameter to set body.autoRegister to true.

2. Make sure your Venus dimension ID is included in ConfigManagerCore.staticLoadDimensions.

You need to do both things before GalacticraftCore code executes line 299. So do it before FML gets to the PostInit stage. Again, here, your best approach is to look at exactly how it is done in MarsModule. If you do exactly the same, it will work.

Think of it this way: GalacticraftPlanets - including the MarsModule - is basically just a large Add-on. It loads after GalacticraftCore, in just the same way that an Add-on loads after GalacticraftCore. So anything we can do in GalacticraftPlanets, you can also do in an Add-on, and even better: we already showed how to do it in GalacticraftPlanets.
 

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
Look:
MyPlanet:
Code:
package blessentumble.venus;



import java.io.File;
import java.util.Arrays;

import micdoodle8.mods.galacticraft.api.GalacticraftRegistry;
import micdoodle8.mods.galacticraft.api.galaxies.CelestialBody;
import micdoodle8.mods.galacticraft.api.galaxies.GalaxyRegistry;
import micdoodle8.mods.galacticraft.api.galaxies.Planet;
import micdoodle8.mods.galacticraft.api.world.IAtmosphericGas;
import micdoodle8.mods.galacticraft.core.GalacticraftCore;
import micdoodle8.mods.galacticraft.core.blocks.GCBlocks;
import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
import micdoodle8.mods.galacticraft.core.util.CreativeTabGC;
import net.minecraft.creativetab.CreativeTabs;
import net.minecraft.item.Item;
import net.minecraft.util.ResourceLocation;
import blessentumble.CreativeTabsBlesse;
import blessentumble.venus.blocks.TutorialBlocks;
import blessentumble.venus.dimension.TeleportTypeVenus;
import blessentumble.venus.dimension.VenusWorldProvider;
import blessentumble.venus.handler.SkyProviderHandlerMP;
import blessentumble.venus.items.TutorialItems;
import blessentumble.venus.proxy.CommonProxy;
import cpw.mods.fml.common.FMLCommonHandler;
import cpw.mods.fml.common.Mod;
import cpw.mods.fml.common.Mod.EventHandler;
import cpw.mods.fml.common.Mod.Instance;
import cpw.mods.fml.common.SidedProxy;
import cpw.mods.fml.common.event.FMLInitializationEvent;
import cpw.mods.fml.common.event.FMLPostInitializationEvent;
import cpw.mods.fml.common.event.FMLPreInitializationEvent;



@Mod(
modid = "venusaddon",
version = "0.0.1",
dependencies = "required-after:GalacticraftCore",
name = "GalacticraftTutorialMod"
)

public class Venus

{

public static final String MODID = "venusaddon";

public static final String VERSION = "0.0.1";

public static final String NAME = "Venus Moon";

public static Planet planetVenus;



@Instance(value = MODID)

public static Venus instance;



@SidedProxy(clientSide="blessentumble.venus.proxy.ClientProxy", serverSide="blessentumble.venus.proxy.CommonProxy")

public static CommonProxy proxy;



@EventHandler

public void preInit(FMLPreInitializationEvent event) {

new ConfigManagerVenus(new File(event.getModConfigurationDirectory(), "Galacticraft/venus.conf"));
TutorialBlocks.initialize();
TutorialItems.initItems();
FMLCommonHandler.instance().bus().register(new SkyProviderHandlerMP());

}



@EventHandler

public void init(FMLInitializationEvent event)

{
GalacticraftCore.planetVenus = (new Planet("venus")).setParentSolarSystem(GalacticraftCore.solarSystemSol);
GalacticraftCore.planetVenus.setRingColorRGB(58.07F, 1.54F, 1.93F);
GalacticraftCore.planetVenus.setPhaseShift(2.0F);
GalacticraftCore.planetVenus.setRelativeDistanceFromCenter(new CelestialBody.ScalableDistance(0.75F, 0.75F));
GalacticraftCore.planetVenus.setRelativeOrbitTime(0.61527929901423877327491785323111F);
GalacticraftCore.planetVenus.setBodyIcon(new ResourceLocation("venusaddon:textures/gui/celestialbodies/venus.png"));
GalacticraftCore.planetVenus.setDimensionInfo(ConfigManagerVenus.dimensionIDVenus, VenusWorldProvider.class).setTierRequired(2).shouldAutoRegister();;
GalacticraftCore.planetVenus.atmosphereComponent(IAtmosphericGas.ARGON);
GalacticraftCore.planetVenus.getReachable();

GalaxyRegistry.registerPlanet(GalacticraftCore.planetVenus);
GalacticraftRegistry.registerTeleportType(VenusWorldProvider.class, new TeleportTypeVenus());


CreativeTabsBlesse.BlesseBlocksTab = new CreativeTabGC(CreativeTabs.getNextID(), "AddonsGCBlocks", Item.getItemFromBlock(GCBlocks.machineBase2), 0);
CreativeTabsBlesse.BlesseItemsTab = new CreativeTabGC(CreativeTabs.getNextID(), "AddonsGCItems", Item.getItemFromBlock(GCBlocks.blockMoon), 0);


}

@EventHandler

public void postInit(FMLPostInitializationEvent event) {

// Stub Method

}


}

MyConfig:
Code:
package blessentumble.venus;

import cpw.mods.fml.common.FMLLog;
import micdoodle8.mods.galacticraft.core.Constants;
import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
import net.minecraftforge.common.config.Configuration;
import net.minecraftforge.common.config.Property;

import org.apache.logging.log4j.Level;

import java.io.File;
import java.util.ArrayList;
import java.util.List;

import static net.minecraftforge.common.config.Configuration.CATEGORY_GENERAL;

public class ConfigManagerVenus
{
public static boolean loaded;

static Configuration config;

public ConfigManagerVenus(File file)
{
if (!ConfigManagerVenus.loaded)
{
ConfigManagerVenus.config = new Configuration(file);
ConfigManagerVenus.syncConfig(true);
}
}

// DIMENSIONS
public static int dimensionIDVenus;


public static void syncConfig(boolean load)
{
List<String> propOrder = new ArrayList<String>();

try
{
Property prop;

if (!config.isChild)
{
if (load)
{
config.load();
}
}

prop = config.get(Constants.CONFIG_CATEGORY_DIMENSIONS, "dimensionIDVenus", ConfigManagerCore.staticLoadDimensions);
prop.comment = "Dimension ID for Venus";
prop.setLanguageKey("gc.configgui.dimensionIDVenus").setRequiresMcRestart(true);
dimensionIDVenus = prop.getInt();
propOrder.add(prop.getName());

config.setCategoryPropertyOrder(CATEGORY_GENERAL, propOrder);

if (config.hasChanged())
{
config.save();
}
}
catch (final Exception e)
{
FMLLog.log(Level.ERROR, e, "Galacticraft Venus (Planets) has a problem loading it's config");
}
}
}

It's all right?

p.s
Code:
GalacticraftCore.planetVenus.setDimensionInfo(ConfigManagerVenus.dimensionIDVenus, VenusWorldProvider.class).setTierRequired(2).shouldAutoRegister();
==>
Code:
planetVenus.setDimensionInfo(ConfigManagerVenus.dimensionIDVenus, VenusWorldProvider.class, true).setTierRequired(2);

and all GalacticraftCore.planetVenus ==> planetVenus
 
Last edited:

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
If you change the name of the planet from "venus" to "venus1", the planet appears in the list.

5yvrbzpj83ip.png



The remaining 1 questions ...
How to replace the Venus of GalacticraftCore on my planet?
 
Last edited:

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83
Seems like it's going well, I'm looking forward to seeing the WorldProvider in action.
 

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
VenusWorldProvider:
Code:
package blessentumble.planets.venus.dimension;

import micdoodle8.mods.galacticraft.api.galaxies.CelestialBody;
import micdoodle8.mods.galacticraft.api.prefab.world.gen.WorldProviderSpace;
import micdoodle8.mods.galacticraft.api.vector.Vector3;
import micdoodle8.mods.galacticraft.api.world.IGalacticraftWorldProvider;
import micdoodle8.mods.galacticraft.core.GalacticraftCore;
import micdoodle8.mods.galacticraft.core.util.ConfigManagerCore;
import net.minecraft.util.MathHelper;
import net.minecraft.world.biome.WorldChunkManager;
import net.minecraft.world.chunk.IChunkProvider;
import blessentumble.BlesseAddon;
import cpw.mods.fml.relauncher.Side;
import cpw.mods.fml.relauncher.SideOnly;

public class VenusWorldProvider extends WorldProviderSpace implements IGalacticraftWorldProvider
{
@Override
public Vector3 getFogColor()
{
float f = 1.0F - this.getStarBrightness(1.0F);
return new Vector3(210F / 255F * f, 120F / 255F * f, 59F / 255F * f);
}

@Override
public Vector3 getSkyColor()
{
float f = 1.0F - this.getStarBrightness(1.0F);
return new Vector3(154 / 255.0F * f, 114 / 255.0F * f, 66 / 255.0F * f);
}

@Override
public boolean canRainOrSnow()
{
return false;
}

@Override
public boolean hasSunset()
{
return false;
}

@Override
public long getDayLength()
{
return 24000L;
}

@Override
public boolean shouldForceRespawn()
{
return !ConfigManagerCore.forceOverworldRespawn;
}

@Override
public Class<? extends IChunkProvider> getChunkProviderClass()
{
return VenusChunkProvider.class;
}

@Override
public Class<? extends WorldChunkManager> getWorldChunkManagerClass()
{
return WorldChunkManagerVenus.class;
}
@Override
@SideOnly(Side.CLIENT)
public float getStarBrightness(float par1)
{
float f1 = this.worldObj.getCelestialAngle(par1);
float f2 = 1.0F - (MathHelper.cos(f1 * (float) Math.PI * 2.0F) * 2.0F + 0.25F);

if (f2 < 0.0F)
{
f2 = 0.0F;
}

if (f2 > 1.0F)
{
f2 = 1.0F;
}

return f2 * f2 * 0.75F;
}

@Override
public double getHorizon()
{
return 44.0D;
}

@Override
public int getAverageGroundLevel()
{
return 44;
}

@Override
public boolean canCoordinateBeSpawn(int var1, int var2)
{
return true;
}

@Override
public String getDimensionName()
{
return "Venus";
}

@Override
public float getGravity()
{
return 0.058F;
}

@Override
public int getHeight()
{
return 800;
}

@Override
public double getMeteorFrequency()
{
return 10.0D;
}

@Override
public double getFuelUsageMultiplier()
{
return 0.9D;
}

@Override
public boolean canSpaceshipTierPass(int tier)
{
return tier >= 2;
}

@Override
public float getFallDamageModifier()
{
return 0.38F;
}

@Override
public float getSoundVolReductionAmount()
{
return 10.0F;
}

@Override
public CelestialBody getCelestialBody()
{
return BlesseAddon.planetVenus;
}

@Override
public boolean hasBreathableAtmosphere()
{
return false;
}

@Override
public float getThermalLevelModifier()
{
return -1;
}

@Override
public float getWindLevel()
{
return 0.3F;
}
}
 

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83
It's not really intended that add-ons should unregister the GalacticraftCore planets, so we did not provide an explicit way to do that.

You can try to remove the existing celestial body ID of Venus from the WorldUtil.registeredPlanets list, see if that works, I can't guarantee it.
 

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
I'll probably tired, but do not tell me how to do it?
I know how to do the planet, but to replace the current ...
 

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
And if in the source mode to remove the registration of the planets?
Do not tell me what API used in package mode?
 

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83
I'm starting to not understand your questions here.
See what I wrote above:
It's not really intended that add-ons should unregister the GalacticraftCore planets, so we did not provide an explicit way to do that.
The reason is that we will some time soon* be making an official Venus and other planets in Galacticraft, so it would make no sense to have Add-ons able to override those.

(* relative to the age of the solar system)
 

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
Somehow it is not convenient to get ....

API allows you to create planets, moons, galaxies, and replace the current does not allow ...


Okay, wait for the official Venus.
 

radfast

Member
Staff member
Apr 27, 2014
1,118
339
83

BlesseNtumble

Member
Content developer
Galaxy Space
Space Ambient
Nov 1, 2014
314
70
28
26
α Centauri Bb
Only for some reason when entering into orbit, crashes client:

[11:58:06] [Client thread/FATAL]: Unreported exception thrown!
java.lang.NullPointerException
at java.util.regex.Matcher.getTextLength(Unknown Source) ~[?:1.7.0_71]
at java.util.regex.Matcher.reset(Unknown Source) ~[?:1.7.0_71]
at java.util.regex.Matcher.<init>(Unknown Source) ~[?:1.7.0_71]
at java.util.regex.Pattern.matcher(Unknown Source) ~[?:1.7.0_71]
at net.minecraft.util.ChatComponentTranslation.func_150269_b(SourceFile:61) ~[fr.class:?]
at net.minecraft.util.ChatComponentTranslation.func_150270_g(SourceFile:48) ~[fr.class:?]
at net.minecraft.util.ChatComponentTranslation.iterator(SourceFile:147) ~[fr.class:?]
at net.minecraft.util.ChatComponentStyle.func_150254_d(SourceFile:74) ~[fe.class:?]
at com.mumfrey.liteloader.client.ClientEvents.onChat(ClientEvents.java:699) ~[ClientEvents.class:1.7.10_02]
at com.mumfrey.liteloader.client.CallbackProxyClient.handleChatPacket(CallbackProxyClient.java:63) ~[CallbackProxyClient.class:1.7.10_02]
at net.minecraft.network.play.server.S02PacketChat.func_148833_a(SourceFile) ~[gj.class:?]
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212) ~[ej.class:?]
at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273) ~[bje.class:?]
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1591) ~[bao.class:?]
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962) ~[bao.class:?]
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887) [bao.class:?]
at net.minecraft.client.main.Main.main(SourceFile:148) [Main.class:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.7.0_71]
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source) ~[?:1.7.0_71]
at java.lang.reflect.Method.invoke(Unknown Source) ~[?:1.7.0_71]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134) [launchwrapper-1.9.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.9.jar:?]
---- Minecraft Crash Report ----
// On the bright side, I bought you a teddy bear!

Time: 11.11.14 11:58
Description: Unexpected error

java.lang.NullPointerException: Unexpected error
at java.util.regex.Matcher.getTextLength(Unknown Source)
at java.util.regex.Matcher.reset(Unknown Source)
at java.util.regex.Matcher.<init>(Unknown Source)
at java.util.regex.Pattern.matcher(Unknown Source)
at net.minecraft.util.ChatComponentTranslation.func_150269_b(SourceFile:61)
at net.minecraft.util.ChatComponentTranslation.func_150270_g(SourceFile:48)
at net.minecraft.util.ChatComponentTranslation.iterator(SourceFile:147)
at net.minecraft.util.ChatComponentStyle.func_150254_d(SourceFile:74)
at com.mumfrey.liteloader.client.ClientEvents.onChat(ClientEvents.java:699)
at com.mumfrey.liteloader.client.CallbackProxyClient.handleChatPacket(CallbackProxyClient.java:63)
at net.minecraft.network.play.server.S02PacketChat.func_148833_a(SourceFile)
at net.minecraft.network.NetworkManager.func_74428_b(NetworkManager.java:212)
at net.minecraft.client.multiplayer.PlayerControllerMP.func_78765_e(PlayerControllerMP.java:273)
at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1591)
at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:962)
at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:887)
at net.minecraft.client.main.Main.main(SourceFile:148)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(Unknown Source)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(Unknown Source)
at java.lang.reflect.Method.invoke(Unknown Source)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:134)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
 

Share this page