Jump to content

Abastro

Forge Modder
  • Posts

    1075
  • Joined

  • Last visited

  • Days Won

    2

Everything posted by Abastro

  1. Introduction Stellarium is the mod which changes minecraft sky much realistic, adding fancy real stars and planets, etc. Find constellations and stars with this mod! Features 1. Real colored stars rises at night. 2. The size of Sun and Moon is much fancier, smaller than default, and they moves diagonally 3. Bright planets like Venus can also be seen in daytime 4. 1 month is 29.5 days, and 1 year is 365.2422 days. 5. Sun, Moon, planets, and stars are invisible when it's raining. Photos Update Log Scheduled Updates Installation 1. First, install minecraft forge. 2. Find %appdata%\.minecraft folder or find directory where minecraft was installed. 3. Drop Stellarium.jar in mods folder. Configuation Stellarium.cfg - Mag_Limit : reducing Limit Magnitude can improve FPS exponentially - Moon_Fragments_Number : Accuracy of moon, reducing this will improve FPS slightly. - Twinkling(Turbulance) : Degree of the twinkling effect of star. Not related with FPS. Recent Download Version 0.1.4 Stellarium v0.1.4 | * - v0.1.4 requires SciAPI v0.5.2 to run. Old Downloads Inquiry[/size] you can inquiry here or [email protected] or http://stellarium.tistory.com/
  2. I solved this problem by preventing the Entityplayer class from patching. and I'll let it collide if some other mod tries to patch the WorldProvider class.
  3. I just only changed very few part of the class... and there was nothing changed in EntityRenderer.class.
  4. Then How can I edit Base classes?
  5. The Error log was full log. I followed coolgooner's tutorial, and this is my code: StellarClassTransformer: package stellarium.core; import java.io.*; import java.util.zip.*; import cpw.mods.fml.relauncher.IClassTransformer; public class StellarClassTransformer implements IClassTransformer { @Override public byte[] transform(String name, String transformedName, byte[] bytes) { if (name.equals("acn") || name.equals("net.minecraft.world.WorldProvider")) { System.out.println("********* INSIDE WorldProvider TRANSFORMER ABOUT TO PATCH: " + name); bytes = patchClassInJar(name, bytes, name, StellarLoadingPlugin.location); } if (name.equals("bfq") || name.equals("net.minecraft.client.renderer.EntityRenderer")) { System.out.println("********* INSIDE EntityRenderer TRANSFORMER ABOUT TO PATCH: " + name); bytes = patchClassInJar(name, bytes, name, StellarLoadingPlugin.location); } return bytes; } public byte[] patchClassInJar(String name, byte[] bytes, String ObfName, File location) { try { //open the jar as zip ZipFile zip = new ZipFile(location); ZipEntry entry = zip.getEntry(name.replace('.', '/') + ".class"); if (entry == null) { System.out.println(name + " not found in " + location.getName()); } else { //serialize the class file into the bytes array InputStream zin = zip.getInputStream(entry); bytes = new byte[(int) entry.getSize()]; zin.read(bytes); zin.close(); System.out.println("[" + "StellariumCore" + "]: " + "Class " + name + " patched!"); } zip.close(); } catch (Exception e) { throw new RuntimeException("Error overriding " + name + " from " + location.getName(), e); } //return the new bytes return bytes; } } StellarLoadingPlugin: package stellarium.core; import java.io.File; import java.util.Map; import cpw.mods.fml.relauncher.IFMLLoadingPlugin; public class StellarLoadingPlugin implements IFMLLoadingPlugin { public static File location; @Override public String[] getLibraryRequestClass() { // TODO Auto-generated method stub return null; } @Override public String[] getASMTransformerClass() { return new String[]{StellarClassTransformer.class.getName()}; } @Override public String getModContainerClass() { // TODO Auto-generated method stub return StellarDummyContainer.class.getName(); } @Override public String getSetupClass() { // TODO Auto-generated method stub return null; } @Override public void injectData(Map<String, Object> data) { location = (File) data.get("coremodLocation"); } } StellarDummyContainer: package stellarium.core; import java.util.Arrays; import com.google.common.eventbus.Subscribe; import com.google.common.eventbus.EventBus; import cpw.mods.fml.common.DummyModContainer; import cpw.mods.fml.common.LoadController; import cpw.mods.fml.common.ModMetadata; import cpw.mods.fml.common.event.FMLConstructionEvent; import cpw.mods.fml.common.event.FMLInitializationEvent; import cpw.mods.fml.common.event.FMLPostInitializationEvent; import cpw.mods.fml.common.event.FMLPreInitializationEvent; public class StellarDummyContainer extends DummyModContainer { public StellarDummyContainer() { super(new ModMetadata()); ModMetadata meta = getMetadata(); meta.modId = "StellariumCore"; meta.name = "StellariumCore"; meta.version = "0.0.0"; meta.credits = "Not Decided"; meta.authorList = Arrays.asList("Abastro"); meta.description = ""; meta.url = "http://blog.naver.com/abab9579"; meta.updateUrl = ""; meta.screenshots = new String[0]; meta.logoFile = ""; } @Override public boolean registerBus(EventBus bus, LoadController controller) { bus.register(this); return true; } @Subscribe public void modConstruction(FMLConstructionEvent evt){ } @Subscribe public void preInit(FMLPreInitializationEvent evt) { } @Subscribe public void init(FMLInitializationEvent evt) { } @Subscribe public void postInit(FMLPostInitializationEvent evt) { } }
  6. [move][/move]I made some coremod which changes base EntityRenderer.class (and WorldProvider.class) And I got this error. This is the Error Log: 2013-08-21 17:18:52 [iNFO] [sTDERR] [17:18:52] [ERROR] Class.getDeclaredFields0:-2->MinecraftLauncher.main:214: Unhandled error launching minecraft: java.lang.NoClassDefFoundError: Lnet/minecraft/client/renderer/EntityRenderer; 2013-08-21 17:18:52 [iNFO] [sTDERR] java.lang.Class.getDeclaredFields0(Native Method) 2013-08-21 17:18:52 [iNFO] [sTDERR] java.lang.Class.privateGetDeclaredFields(Unknown Source) 2013-08-21 17:18:52 [iNFO] [sTDERR] java.lang.Class.getDeclaredField(Unknown Source) 2013-08-21 17:18:52 [iNFO] [sTDERR] cpw.mods.fml.relauncher.ReflectionHelper.findField(ReflectionHelper.java:78) 2013-08-21 17:18:52 [iNFO] [sTDERR] cpw.mods.fml.relauncher.ReflectionHelper.setPrivateValue(ReflectionHelper.java:136) 2013-08-21 17:18:52 [iNFO] [sTDERR] cpw.mods.fml.relauncher.FMLRelauncher.setupNewClientHome(FMLRelauncher.java:135) 2013-08-21 17:18:52 [iNFO] [sTDERR] cpw.mods.fml.relauncher.FMLRelauncher.relaunchApplet(FMLRelauncher.java:260) 2013-08-21 17:18:52 [iNFO] [sTDERR] cpw.mods.fml.relauncher.FMLRelauncher.appletEntry(FMLRelauncher.java:229) 2013-08-21 17:18:52 [iNFO] [sTDERR] net.minecraft.client.MinecraftApplet.init(MinecraftApplet.java:25) 2013-08-21 17:18:52 [iNFO] [sTDERR] net.minecraft.Launcher.init(Launcher.java:85) 2013-08-21 17:18:52 [iNFO] [sTDERR] net.ftb.mclauncher.MinecraftFrame.start(MinecraftFrame.java:149) 2013-08-21 17:18:52 [iNFO] [sTDERR] net.ftb.mclauncher.MinecraftLauncher.main(MinecraftLauncher.java:208) Please Help me...
×
×
  • Create New...

Important Information

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