Giter Site home page Giter Site logo

malisiscore's Introduction

MalisisCore

MalisisCore is a framework dedicated to simplifying many processes required during mod development. It is licensed under the MIT License.

  • IRC: #malisis on irc.esper.net

Features

  • ASM Manipulation
  • Rendering
    • Shape manipulation
    • Animations
    • Graphical User Interface
  • Enhanced Inventory System
  • Linked GUI Settings System
  • Utility Classes (Entity, Items, etc)

Prerequisites

Cloning

To clone MalisisCore, simply run git clone [email protected]:Ordinastie/MalisisCore.git

Setup

Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.

For Eclipse

  1. Run gradle setupDecompWorkspace --refresh-dependencies
  2. Make sure you have the Gradle plugin installed (Help > Eclipse Marketplace > Gradle Integration Plugin)
  3. Import MalisisCore as a Gradle project (File > Import)
  4. Select the root folder for MalisisCore and click Build Model
  5. Check MalisisCore when it finishes building and click Finish

For IntelliJ

  1. Run gradle setupDecompWorkspace --refresh-dependencies
  2. Make sure you have the Gradle plugin enabled (File > Settings > Plugins).
  3. Click File > Import Module and select the build.gradle file for MalisisCore.

Running

Note: The following is aimed to help you setup run configurations for Eclipse and IntelliJ, if you do not want to be able to run MalisisCore directly from your IDE then you can skip this.

For Eclipse

  1. Go to Run > Run Configurations.
  2. Right-click Java Application and select New.
  3. Set the current project.
  4. Set the name as MalisisCore (Client) and apply the information for Client below.
  5. Repeat step 1 through 4, then set the name as MalisisCore (Server) and apply the information for Server below.
  6. When launching the server for the first time, it will shutdown by itself. You will need to modify the server.properties to set onlinemode=false and modify the eula.txt to set eula=true (this means you agree to the Mojang EULA, if you do not wish to do this then you cannot run the server).

For IntelliJ

  1. Go to Run > Edit Configurations.
  2. Click the green + button and select Application.
  3. Set the name as MalisisCore (Client) and apply the information for Client below.
  4. Repeat step 2 and set the name as MalisisCore (Server) and apply the information for Server below.
  5. When launching the server for the first time, it will shutdown by itself. You will need to modify the server.properties to set onlinemode=false and modify the eula.txt to set eula=true (this means you agree to the Mojang EULA, if you do not wish to do this then you cannot run the server).

Client

Property Value
Main class GradleStart
VM options -Dfml.coreMods.load=net.malisis.core.asm.MalisisCorePlugin
Working directory ./run (Included in project)
Module classpath MalisisCore (IntelliJ Only)

Server

Property Value
Main class GradleStartServer
VM options -Dfml.coreMods.load=net.malisis.core.asm.MalisisCorePlugin
Working directory ./run (Included in project)
Module classpath MalisisCore (IntelliJ Only)

Building

Note: If you do not have Gradle installed then use ./gradlew for Unix systems or Git Bash and gradlew.bat for Windows systems in place of any 'gradle' command.

In order to build MalisisCore you simply need to run the gradle command. You can find the compiled JAR files in ./build/libs but in most cases you'll only need 'malisiscore-x.x.x-x.x.x.jar' for obfuscated environments and '-dev' for unobfuscated environments.

Using

To use MalisisCore as a dependency in your project you must add the following to your build.gradle.

repositories {
    maven {
        name = 'sonatype-nexus'
        url = 'https://oss.sonatype.org/content/repositories/public/'
    }
}

dependencies {
    compile 'net.malisis:malisiscore:1.7.10-0.11.1:dev'
}

FAQ

Why do I get javac: source release 1.7 requires target release 1.7 in IntelliJ when running the client configuration?

Sometimes another project can mess with the settings in IntelliJ. Fixing this is relatively easy.

  1. Go to 'File > Settings'.
  2. Click the drop down for 'Compiler' on the left-hand side and select 'Java Compiler'.
  3. Select MalisisCore and set the 'Target bytecode version' as '1.7'.
  4. Click Apply and OK and try running it again.

Why do I get Zip file rt.jar failed to read properly in IntelliJ?

This is the result of Forge attempting to classload the Java runtime JAR, overall it is not an error that will cause any harm to your development and should be ignored.

A dependency was added, but my IDE is missing it! How do I add it?

If a new dependency was added, you can just restart your IDE and the Gradle plugin for that IDE should pull in the new dependencies.

Help! Things are not working!

Some issues can be resolved by deleting the '.gradle' folder in your user directory and running through the setup steps again, or even running gradle cleanCache and running through the setup again. Otherwise if you are having trouble with something that the README does not cover, feel free to join our IRC channel and ask for assistance.

malisiscore's People

Contributors

grinch avatar marvin-roesch avatar ordinastie avatar zidane avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

malisiscore's Issues

(1.9) Client crash when placing mod item

When placing a block reader from integrated dynamics i get this crash --> http://pastebin.com/khdb6NsA

When placing a item filter conveyor from power advantage i get this crash --> http://pastebin.com/yaRUKMwr

Both mention malisis core chunkcollision (that's why i posted the issue here first).

Integrated dynamics uses Cyclops core.

power advantage is a mod/api needed for electric and steam advantage mods.

If you think/know the other (core-)mods cause the problems i'll post the crashlogs on theyr githubs.

1.9 crash

Can't seem to launch the pack with, Malisis Core, Doors, and Adverts installed, among many other mods, also tested alone with just those 3, gives a crash with Outofboundsarray -1. Pastebin log is below.

http://pastebin.com/Fv79APmJ

Blinking Cursor is at the wrong position

The longer you type in a text box the worse the issue becomes. What happens is that the blinking cursor graphic starts to appear before the spot your typing at.

Tested with "Almura Preferred Font.zip" texture pack / font from our public repo

http://www.almuramc.com/images/GuideError3.png

Default font works fine, which mean issue is within MalisisCore and calculating its font and string width with custom fonts.

Conflict with NeoTech flushable chest (1.9)

Hello, I have been running a 1.9 pack with no issues with the flushable chest from NeoTech for quite some time now. I added MalisisCore/doors/switches/blocks to the pack and suddenly the chest crashes the game. If this is something that should be reported elsewhere let me know. I tried this in a few versions of forge including the recommended version 12.16.1.1887

http://pastebin.com/e17JAu5J

Anchor positions don't respect fontScale when drawn

In the following scenario:

debugTitle = new UILabel(this, ChatColor.AQUA + "Almura Debug");
debugTitle.setPosition(0, 3, Anchor.CENTER | Anchor.TOP);
debugTitle.setFontScale(1.1F);

When the debugTitle is drawn on the screen, the fontScale isn't taken into consideration when its drawn, resulting in the text being slightly off-center to the right.

Bug with using underline or strikethrough

java.lang.IllegalStateException: Already tesselating!
at net.minecraft.client.renderer.Tessellator.startDrawing(Tessellator.java:257)
at net.minecraft.client.renderer.Tessellator.startDrawingQuads(Tessellator.java:247)
at net.minecraft.client.gui.FontRenderer.renderStringAtPos(FontRenderer.java:494)
at net.minecraft.client.gui.FontRenderer.renderString(FontRenderer.java:556)
at net.minecraft.client.gui.FontRenderer.drawString(FontRenderer.java:317)
at net.malisis.core.client.gui.GuiRenderer.drawText(GuiRenderer.java:508)
at net.malisis.core.client.gui.GuiRenderer.drawText(GuiRenderer.java:471)
at net.malisis.core.client.gui.component.interaction.UITextField.drawText(UITextField.java:723)
at net.malisis.core.client.gui.component.interaction.UITextField.drawForeground(UITextField.java:695)
at net.malisis.core.client.gui.component.UIComponent.draw(UIComponent.java:889)
at net.malisis.core.client.gui.component.container.UIContainer.drawForeground(UIContainer.java:524)
at net.malisis.core.client.gui.component.UIComponent.draw(UIComponent.java:889)
at net.malisis.core.client.gui.component.container.UIContainer.drawForeground(UIContainer.java:524)
at net.malisis.core.client.gui.component.UIComponent.draw(UIComponent.java:889)
at net.malisis.core.client.gui.component.container.UIContainer.drawForeground(UIContainer.java:524)
at net.malisis.core.client.gui.component.UIComponent.draw(UIComponent.java:889)
at net.malisis.core.client.gui.GuiRenderer.drawScreen(GuiRenderer.java:229)
at net.malisis.core.client.gui.MalisisGui.drawScreen(MalisisGui.java:356)
at net.minecraft.client.renderer.EntityRenderer.updateCameraAndRender(EntityRenderer.java:1137)
at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1057)
at net.minecraft.client.Minecraft.run(Minecraft.java:951)
at net.minecraft.client.main.Main.main(Main.java:164)
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:57)
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
at java.lang.reflect.Method.invoke(Method.java:606)
at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:85)
at GradleStart.main(GradleStart.java:45)

I'm getting this whenever I try and apply a color code + underline or strikethrough formatting codes on text in UITextField.

Door Factory Error

Forge: forge-1.7.10-10.13.4.1614-1.7.10
Malisis: malisisdoors-1.7.10-1.13.0 & malisiscore-1.7.10-0.14.2

Error: "A problem occurred while constructing NullPointerException: null"

Error occurs when the player attempts to right-click a placed Door Factory (both existing and newly placed).

Alignment issues - explained.

This is an attempt to explain the alignment issue in further detail and what I did to resolve it.

Here's a Label object I constructed:

// Player Display Name
title = new UILabel(this, ChatColor.AQUA + "Residence Info");
title.setPosition(0, 0, Anchor.CENTER | Anchor.TOP);
title.setColor(0xffffffff);
title.setSize(7, 7);
title.setFontScale(0.8F);

This is the container I drew it in:

// Construct Hud with all elements
resPane = new UIBackgroundContainer(this, 110, 55);
resPane.setPosition(-10, 0);
resPane.setAnchor(Anchor.RIGHT | Anchor.BOTTOM);
resPane.setColor(Integer.MIN_VALUE);
resPane.setBackgroundAlpha(125);

If this is constructed and displayed onto the screen, the label begins its draw at the center of the container and continues right, see picture:

http://www.almuramc.com/images/Issues/Center-Right-Draw.png

I correct this issue by setting the text of the label again after the object is constructed in either an "update" method or before the drawScreen():

http://pastie.org/9944820

As you can see, the text is now centered properly, only corrected by re-setting the text on the label after the object is constructed and displayed on the screen:

http://www.almuramc.com/images/Issues/Center-Center-Draw.png

So, bug: Anchor data isn't respected until after label object is constructed and displayed at least once on the screen.

Console Spam related to Carpenter Blocks: "Tried to get GarageDoorTileEntity at <x>,<y>,<z>, but found TEBase instead."

Just wanted to report about this spam in console. Using the "Frutas Alocadas" Modpack v2.2.0 (codepack "frutas" on FTB Launcher). I have had latest version of Malisis Doors and Core for a while, but just noticed this. It happens everytime my garage door opens...

Checking on the moment, I noticed it happened the locations mentioned were of the five blocks below the actual door. Those were Carpenter Blocks, with a "Onyx Cobblestone" from GeoStrata. Removing it, and placing the cobblestone directly stopped the spamming... (Just leaving the Carpenter Blocks, with no texture, also caused the spam in console)

Optifine D7 and MalisisCore / Door crash in 1.10.2

Here is the crash report of this issue:
http://pastebin.com/trnU4V9S

Only changing Optifine from D7 to D6 fixes the problem. I don't know, if this is an issue with MalisisCore or MalisisDoor.

Installed versions:

  • malisisadvert-1.10.2-4.2.0.jar
  • malisiscore-1.10.2-4.3.0.jar
  • malisisdoors-1.10.2-5.2.0.jar
  • OptiFine_1.10.2_HD_U_D7.jar
    ... and other

Michael (aka BakermanLP)

malisiscore 0.13.0 crashing on server

[14:33:17] [main/DEBUG] [FML/]: Validating minecraft
[14:33:17] [main/DEBUG] [FML/]: Minecraft validated, launching...
[14:33:17] [main/INFO] [LaunchWrapper/]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:33:17] [main/DEBUG] [FML/]: Injecting coremod LoadingPlugin {cofh.asm.LoadingPlugin} class transformers
[14:33:17] [main/TRACE] [FML/]: Registering transformer cofh.asm.CoFHClassTransformer
[14:33:17] [main/DEBUG] [FML/]: Injection complete
[14:33:17] [main/DEBUG] [FML/]: Running coremod plugin for LoadingPlugin {cofh.asm.LoadingPlugin}
[14:33:17] [main/DEBUG] [FML/]: Running coremod plugin LoadingPlugin
[14:33:17] [main/DEBUG] [FML/]: Coremod plugin class LoadingPlugin run successfully
[14:33:17] [main/INFO] [LaunchWrapper/]: Calling tweak class cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper
[14:33:17] [main/DEBUG] [FML/]: Injecting coremod MalisisCorePlugin {net.malisis.core.asm.MalisisCorePlugin} class transformers
[14:33:18] [main/ERROR] [LaunchWrapper/]: Unable to launch
java.awt.HeadlessException:
No X11 DISPLAY variable was set, but this program performed an operation which requires it.
at java.awt.GraphicsEnvironment.checkHeadless(GraphicsEnvironment.java:204) ~[?:1.8.0_65]
at java.awt.Window.(Window.java:536) ~[?:1.8.0_65]
at java.awt.Frame.(Frame.java:420) ~[?:1.8.0_65]
at javax.swing.JFrame.(JFrame.java:233) ~[?:1.8.0_65]
at net.malisis.javacompat.JavaCompatibility.(JavaCompatibility.java:47) ~[JavaCompatibility.class:1.7.10-0.13.0]
at net.malisis.javacompat.JavaCompatibility.checkVersion(JavaCompatibility.java:205) ~[JavaCompatibility.class:1.7.10-0.13.0]
at net.malisis.core.asm.MalisisCorePlugin.getASMTransformerClass(MalisisCorePlugin.java:41) ~[malisiscore-1.7.10-0.13.0.jar:1.7.10-0.13.0]
at cpw.mods.fml.relauncher.CoreModManager$FMLPluginWrapper.injectIntoClassLoader(CoreModManager.java:105) ~[forge-1.7.10-10.13.4.1558-1.7.10-universal.jar:?]
at net.minecraft.launchwrapper.Launch.launch(Launch.java:115) [launchwrapper-1.12.jar:?]
at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_65]
at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_65]
at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_65]
at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_65]
at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:43) [forge-1.7.10-10.13.4.1558-1.7.10-universal.jar:?]
at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:12) [forge-1.7.10-10.13.4.1558-1.7.10-universal.jar:?]
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: java.lang.reflect.InvocationTargetException
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.reflect.Method.invoke(Method.java:497)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at cpw.mods.fml.relauncher.ServerLaunchWrapper.run(ServerLaunchWrapper.java:43)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at cpw.mods.fml.relauncher.ServerLaunchWrapper.main(ServerLaunchWrapper.java:12)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: Caused by: cpw.mods.fml.relauncher.FMLSecurityManager$ExitTrappedException
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at cpw.mods.fml.relauncher.FMLSecurityManager.checkPermission(FMLSecurityManager.java:25)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.SecurityManager.checkExit(SecurityManager.java:761)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.Runtime.exit(Runtime.java:107)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at java.lang.System.exit(System.java:971)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.launchwrapper.Launch.launch(Launch.java:138)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: at net.minecraft.launchwrapper.Launch.main(Launch.java:28)
[14:33:18] [main/INFO] [STDERR/]: [java.lang.Throwable$WrappedPrintStream:println:748]: ... 6 more

UIProgressBar alternation

Hi, Ordinastie. I using your core for my mod. I want to create energy progress bar. I have this code:
`import net.malisis.core.client.gui.GuiRenderer;
import net.malisis.core.client.gui.MalisisGui;
import net.malisis.core.client.gui.component.UIComponent;
import net.malisis.core.client.gui.element.SimpleGuiShape;
import net.malisis.core.client.gui.icon.GuiIcon;
import net.malisis.core.renderer.icon.MalisisIcon;

public class UIHeatBar extends UIComponent {
protected GuiIcon barIcon;
protected GuiIcon barFilledIcon;
protected float progress = 0.0F;
protected boolean reversed = false;

public UIHeatBar(MalisisGui gui) {
    super(gui);
    this.setSize(14, 41);
    this.shape = new SimpleGuiShape();
    this.barIcon = new GuiIcon(new MalisisIcon("sb:textures/special/atlas.png", 1, 0, 14, 41));//gui.getGuiTexture().getIcon(246, 0, 22, 16);
    this.barFilledIcon = new GuiIcon(new MalisisIcon("sb:textures/special/atlas.png", 23, 36, 30, 41));//gui.getGuiTexture().getIcon(246, 16, 22, 16);
}

public float getProgress() {
    return this.progress;
}

public UIHeatBar setReversed() {
    this.reversed = true;
    return this;
}

public void setProgress(float progress) {
    if(progress < 0.0F) {
        progress = 0.0F;
    }

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

    this.progress = progress;
}

public void drawBackground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick) {
    this.shape.resetState();
    this.shape.setSize((float)this.height, (float)this.height);
    this.barIcon.flip(this.reversed, false);
    this.rp.icon.set(this.barIcon);
    renderer.drawShape(this.shape, this.rp);
}

public void drawForeground(GuiRenderer renderer, int mouseX, int mouseY, float partialTick) {
    int height = (int)((float)this.height * this.progress);
    this.barFilledIcon.clip(0, 0, height, 17);
    this.barFilledIcon.flip(this.reversed, false);
    this.shape.resetState();
    this.shape.setSize((float)height, 41.0F);
    this.shape.translate(this.reversed?this.height - height:0, 0);
    this.rp.icon.set(this.barFilledIcon);
    renderer.drawShape(this.shape, this.rp);
}

}Have this "texture sprite": http://i.imgur.com/difveDj.png But texture not working and bar was rotate to right. This my gui for more info:import net.malisis.core.client.gui.Anchor;
import net.malisis.core.client.gui.MalisisGui;
import net.malisis.core.client.gui.component.container.UIPlayerInventory;
import net.malisis.core.client.gui.component.container.UIWindow;
import net.malisis.core.inventory.MalisisInventoryContainer;
import sb.common.tile.TileHeatGenerator;

public class GuiHeatGenerator extends MalisisGui {
private TileHeatGenerator te;
UIHeatBar heat;

public GuiHeatGenerator(MalisisInventoryContainer inventoryContainer, TileHeatGenerator tileEntity) {
    setInventoryContainer(inventoryContainer);
    this.te = tileEntity;
    guiscreenBackground = false;
}

@Override
public void construct() {
    UIWindow window = new UIWindow(this, 200, 150).setPosition(0, 0, Anchor.CENTER | Anchor.MIDDLE).setZIndex(0);

    /*
    UILabel plateCamoLabel = new UILabel(this, "Plate texture").setPosition(16, 5, Anchor.LEFT);
    UILabel buttonCamoLabel = new UILabel(this, "Switch texture").setPosition(-1, 5, Anchor.RIGHT);

    window.add(plateCamoLabel);
    window.add(buttonCamoLabel);
    */

    heat = new UIHeatBar(this).setPosition(0, 0, Anchor.CENTER | Anchor.MIDDLE);
    heat.setProgress(te.heat);

    UIPlayerInventory playerInv = new UIPlayerInventory(this, inventoryContainer.getPlayerInventory());

    window.add(heat);
    window.add(playerInv);

    addToScreen(window);
}

@Override
public void onGuiClosed() {
    super.onGuiClosed();
}

}`
Already thanks for support. And.... Sorry for my english, i very stupid in him, because i live in Russia and here i study english, but know not perfectly, sorry.

Add MalisisCore AT entry to FMLAT in Manifest

@Ordinastie

This is needed for people who depend on you and want to utilize FG's:

minecraft { 
    useDepAts = true
}

This reads from your manifest and applies it. Otherwise, I have to copy all your AT entries into my AT file for dev environment to work :/.

[1.10.2] Crash when used with Schematica

When I load a schematic using the Schematica mod Minecraft crashes. It stops crashing when I disable Malisis. Don't know if anyone can be done about this but thought I'd let you know.

[13:09:16] [Client thread/INFO] [STDOUT/]: [net.minecraft.init.Bootstrap:func_179870_a:560]: ---- Minecraft Crash Report ----

WARNING: coremods are present:
  AppleCore (AppleCore-mc1.10.2-1.3.5.jar)
  EnderCorePlugin (EnderCore-1.10.2-0.4.1.41-beta.jar)
  LoadingPlugin (Quark-beta-48.jar)
  NWRTweak (redstonepaste-mc1.9.4-1.7.4.jar)
  FMLPlugin (InventoryTweaks-1.61-58.jar)
  CoreMod (Aroma1997Core-1.9.4-1.1.0.3.jar)
  MalisisCorePlugin (malisiscore-1.9.4-4.0.1.jar)
Contact their authors BEFORE contacting forge

// This doesn't make any sense!

Time: 7/26/16 1:09 PM
Description: Unexpected error

java.lang.ClassCastException: com.github.lunatrius.schematica.client.world.chunk.ChunkProviderSchematic cannot be cast to net.minecraft.client.multiplayer.ChunkProviderClient
    at net.minecraft.client.multiplayer.WorldClient.func_72863_F(WorldClient.java:507)
    at net.minecraft.client.multiplayer.WorldClient.func_72863_F(WorldClient.java:49)
    at net.malisis.core.util.chunkblock.ChunkBlockHandler.getAffectedChunks(ChunkBlockHandler.java:338)
    at net.malisis.core.util.chunkcollision.ChunkCollision.getRayTraceResult(ChunkCollision.java:132)
    at net.minecraft.world.World.func_147447_a(World.java:901)
    at com.github.lunatrius.schematica.handler.client.RenderTickHandler.rayTrace(RenderTickHandler.java:50)
    at com.github.lunatrius.schematica.handler.client.RenderTickHandler.onRenderTick(RenderTickHandler.java:23)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_557_RenderTickHandler_onRenderTick_RenderTickEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)
    at net.minecraftforge.fml.common.FMLCommonHandler.onRenderTickStart(FMLCommonHandler.java:350)
    at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1074)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:371)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)


A detailed walkthrough of the error, its code path and all known details is as follows:
---------------------------------------------------------------------------------------

-- Head --
Thread: Client thread
Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.func_72863_F(WorldClient.java:507)
    at net.minecraft.client.multiplayer.WorldClient.func_72863_F(WorldClient.java:49)
    at net.malisis.core.util.chunkblock.ChunkBlockHandler.getAffectedChunks(ChunkBlockHandler.java:338)
    at net.malisis.core.util.chunkcollision.ChunkCollision.getRayTraceResult(ChunkCollision.java:132)
    at net.minecraft.world.World.func_147447_a(World.java:901)
    at com.github.lunatrius.schematica.handler.client.RenderTickHandler.rayTrace(RenderTickHandler.java:50)
    at com.github.lunatrius.schematica.handler.client.RenderTickHandler.onRenderTick(RenderTickHandler.java:23)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_557_RenderTickHandler_onRenderTick_RenderTickEvent.invoke(.dynamic)
    at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:72)
    at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:168)

-- Affected level --
Details:
    Level name: MpServer
    All players: 1 total; [EntityPlayerSP['bsgb'/25, l='MpServer', x=133.25, y=4.00, z=173.38]]
    Chunk stats: MultiplayerChunkCache: 4117, 4117
    Level seed: 0
    Level generator: ID 01 - flat, ver 0. Features enabled: false
    Level generator options: 
    Level spawn location: World: (130,4,176), Chunk: (at 2,0,0 in 8,11; contains blocks 128,0,176 to 143,255,191), Region: (0,0; contains chunks 0,0 to 31,31, blocks 0,0,0 to 511,255,511)
    Level time: 4037 game time, 4037 day time
    Level dimension: 0
    Level storage version: 0x00000 - Unknown?
    Level weather: Rain time: 0 (now: false), thunder time: 0 (now: false)
    Level game mode: Game mode: creative (ID 1). Hardcore: false. Cheats: false
    Forced entities: 8 total; [EntityHorse['Horse'/17, l='MpServer', x=135.13, y=4.00, z=189.98], EntityPig['Pig'/18, l='MpServer', x=142.27, y=4.00, z=207.59], EntityHorse['Horse'/21, l='MpServer', x=189.15, y=4.00, z=240.15], EntityPig['Pig'/23, l='MpServer', x=206.50, y=4.00, z=198.50], EntityPig['Pig'/10, l='MpServer', x=59.50, y=4.00, z=250.50], EntitySheep['Sheep'/12, l='MpServer', x=88.77, y=4.00, z=189.17], EntityCow['Cow'/14, l='MpServer', x=100.50, y=4.00, z=198.50], EntityPlayerSP['bsgb'/25, l='MpServer', x=133.25, y=4.00, z=173.38]]
    Retry entities: 0 total; []
    Server brand: fml,forge
    Server type: Integrated singleplayer server
Stacktrace:
    at net.minecraft.client.multiplayer.WorldClient.func_72914_a(WorldClient.java:414)
    at net.minecraft.client.Minecraft.func_71396_d(Minecraft.java:2660)
    at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:400)
    at net.minecraft.client.main.Main.main(SourceFile:124)
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method)
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62)
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43)
    at java.lang.reflect.Method.invoke(Method.java:483)
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135)
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28)

[1.8.9] Class Cast when hovering over a scroll bar in UITextField

[22:51:10] [Client thread/ERROR] [malisiscore]: An error occured while processing event : HoveredStateChange
java.lang.ClassCastException: net.malisis.core.client.gui.component.interaction.UITextField cannot be cast to net.malisis.core.client.gui.component.control.UIScrollBar
    at net.malisis.core.client.gui.component.control.UISlimScrollbar.onMouseOver(UISlimScrollbar.java:175) ~[malisiscore-1.8.9-2.1.7-SNAPSHOT.jar:1.8.9-2.1.7-SNAPSHOT]
    at sun.reflect.GeneratedMethodAccessor11.invoke(Unknown Source) ~[?:?]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77]
    at com.google.common.eventbus.EventSubscriber.handleEvent(EventSubscriber.java:74) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.SynchronizedEventSubscriber.handleEvent(SynchronizedEventSubscriber.java:47) ~[guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatch(EventBus.java:322) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.dispatchQueuedEvents(EventBus.java:304) [guava-17.0.jar:?]
    at com.google.common.eventbus.EventBus.post(EventBus.java:275) [guava-17.0.jar:?]
    at net.malisis.core.client.gui.component.UIComponent.fireEvent(UIComponent.java:665) [UIComponent.class:1.8.9-2.1.7-SNAPSHOT]
    at net.malisis.core.client.gui.component.UIComponent.setHovered(UIComponent.java:399) [UIComponent.class:1.8.9-2.1.7-SNAPSHOT]
    at net.malisis.core.client.gui.MalisisGui.setHoveredComponent(MalisisGui.java:803) [MalisisGui.class:1.8.9-2.1.7-SNAPSHOT]
    at net.malisis.core.client.gui.component.UIComponent.setHovered(UIComponent.java:394) [UIComponent.class:1.8.9-2.1.7-SNAPSHOT]
    at net.malisis.core.client.gui.MalisisGui.handleMouseInput(MalisisGui.java:351) [MalisisGui.class:1.8.9-2.1.7-SNAPSHOT]
    at net.minecraft.client.gui.GuiScreen.handleInput(GuiScreen.java:599) [GuiScreen.class:?]
    at net.minecraft.client.Minecraft.runTick(Minecraft.java:1784) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.runGameLoop(Minecraft.java:1100) [Minecraft.class:?]
    at net.minecraft.client.Minecraft.run(Minecraft.java:384) [Minecraft.class:?]
    at net.minecraft.client.main.Main.main(Main.java:116) [Main.class:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77]
    at net.minecraft.launchwrapper.Launch.launch(Launch.java:135) [launchwrapper-1.12.jar:?]
    at net.minecraft.launchwrapper.Launch.main(Launch.java:28) [launchwrapper-1.12.jar:?]
    at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_77]
    at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_77]
    at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_77]
    at java.lang.reflect.Method.invoke(Method.java:498) ~[?:1.8.0_77]
    at net.minecraftforge.gradle.GradleStartCommon.launch(GradleStartCommon.java:97) [start/:?]
    at GradleStart.main(GradleStart.java:26) [start/:?]

[1.10.2] Random Crash: Tesselating block in world

Not sure what to title this issue...

Anyway, I'm running this on a server, and when I visit certain parts of my world, the client crashes. I'm running the latest commit [8726286] on MC 1.10.2. There's nothing in the part of my world that I would think would cause it to crash like this. I was in the Nether for this crash when nearing a portal I haven't been to in a while, and it also seemed to crash in the Overworld when nearing a different portal. But I have a lot of other portals around as well, so I'm not sure if they really have anything to do with it, just thought it was a coincidence that both crashes I had were near portals I haven't been to in a while...

Currently, I'm unable to join back into the server without it crashing, unless I remove the mod first.

crash-2016-07-26_14.06.20-client.txt

Feature Request - Ability to mark UITextField as not editable.

While I am perfectly aware that this makes it basically a UIMultilineLabel, in my mod Guide I have a TextField that has the Guide's text that one can modify and save but if a user doesn't have permission, I want them to still be able to highlight and copy text but not change any contents. Setting the UITextField to disabled stops keystrokes but prevents highlighting and copying.

Correct usage of Generics or lack there of.

In the pursuit of using a fluent API (which you are aiming for), there are a few spots where the generics aren't correct (making it a concrete class instead of T) or not present at all.

Hotbar changes lighting appearance if slot is empty

See screenshots for issue: If the hotbar is selected on a slot that is empty, the entire hotbar's lighting shade goes darker than it is when the hotbar is rendering an item (on a select slot with an item).

http://www.almuramc.com/images/gui/darkSlot.png

http://www.almuramc.com/images/gui/lightSlot.png

My hack fix to resolve issue: I commented out lines:

https://github.com/Ordinastie/MalisisCore/blob/master/src/main/java/net/malisis/core/client/gui/MalisisGui.java#L386

and

https://github.com/Ordinastie/MalisisCore/blob/master/src/main/java/net/malisis/core/client/gui/MalisisGui.java#L387

I am assuming there is a different place to resolve this issue, this was the first "fix" I came to.

Console messages: "Chunk" and "Saving -1/0"

I am seeing these two messages in the console, fairly frequently (roughly one every minute or two; the "Saving" one is more frequent)

[21:54:00] [Server thread/INFO] [malisiscore]: Saving -1/0
[21:59:15] [Server thread/INFO] [malisiscore]: Chunk

malisiscore-1.10.2-4.2.6 (part of All the Mods 1.38b)

Questional fix for Custom Blocks not lighting correctly in GUI

Ordi, In our

https://github.com/AlmuraDev/Almura/blob/master/src/main/java/com/almuradev/almura/pack/renderer/BlockRenderer.java

which is used to render blocks as items in the GUI (hotbar specifically) in this example.

Problem is that they aren't lit correctly. The hotbar icon is dark in color.

I fixed this issue by modifying this method in MalisisRenderer.java
@OverRide
public void renderInventoryBlock(Block block, int metadata, int modelId, RenderBlocks renderer)
{
set(block, metadata);
// New
RenderHelper.enableGUIStandardItemLighting();
renderBlocks = renderer;
prepare(RenderType.ISBRH_INVENTORY);
render();
clean();
// New
RenderHelper.enableStandardItemLighting();
}

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.