
Posts posted by Cadiboo
-
-
-
-
37 minutes ago, Laike_Endaril said:
I can also think of a byte code edit that would do it, but would also very likely make your mod incompatible with many other mods, so that's not a good approach either.
No, we don’t talk about ASM here. Also it’s less likely to make your mod incomparable than replacing the class with reflection if done right.
Also, don’t catch & print, crash the game!
You could also create a PR to forge to add a hook? What’s wrong with the onEntityJoinWorld event?
-
-
1 minute ago, sudwood said:
compound.getCompoundTag in the readNBT function of the tileEntity https://github.com/Sudwood/Cencial/blob/master/java/com/sudwood/cencial/tileentities/TileEntityBasicPlinth.java#L43
“Inventory”!=“inventory”
also that’s now how comparisons in java work. You need to use .equals()
-
Try looking at http://hopper.minecraft.net/help/pixel-format-not-accelerated/
Causes
Graphics drivers are outdated, they do not support required OpenGL support to run Minecraft.
Invalid memory allocation, if you set any Java arguments in your Profile Settings, please remove them.
On Windows 10, driver updates are automatically installed on your PC whereas previously they were optional. Sometimes the drivers obtained through Windows Update may not contain the proper OpenGL required for Minecraft. You should in this case update your PC's graphics driver as explained below.
On first- and second- generation Intel HD graphics chipsets, a Java version below 8u60 is needed on Windows 10. The new Minecraft launcher available on minecraft.net/download as a .MSI should automatically resolve issues on these chipsets.
-
Spoiler
[09:21:18] [main/ERROR]: Exception caught during firing event net.minecraftforge.fml.common.gameevent.TickEvent$ClientTickEvent@5d2f5051: java.lang.NullPointerException: null at java.lang.String.replace(String.java:2228) ~[?:1.8.0_51] at com.gitlab.cdagaming.craftpresence.handler.server.ServerHandler.updateServerPresence(ServerHandler.java:206) ~[ServerHandler.class:?] at com.gitlab.cdagaming.craftpresence.handler.server.ServerHandler.updateServerData(ServerHandler.java:124) ~[ServerHandler.class:?] at com.gitlab.cdagaming.craftpresence.handler.server.ServerHandler.onTick(ServerHandler.java:58) ~[ServerHandler.class:?] at com.gitlab.cdagaming.craftpresence.handler.CommandHandler.reloadData(CommandHandler.java:30) ~[CommandHandler.class:?] at com.gitlab.cdagaming.craftpresence.CraftPresence.onTick(CraftPresence.java:89) ~[CraftPresence.class:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler_1442_CraftPresence_onTick_ClientTickEvent.invoke(.dynamic) ~[?:?] at net.minecraftforge.fml.common.eventhandler.ASMEventHandler.invoke(ASMEventHandler.java:90) ~[ASMEventHandler.class:?] at net.minecraftforge.fml.common.eventhandler.EventBus.post(EventBus.java:182) [EventBus.class:?] at net.minecraftforge.fml.common.FMLCommonHandler.onPreClientTick(FMLCommonHandler.java:344) [FMLCommonHandler.class:?] at net.minecraft.client.Minecraft.func_71407_l(Minecraft.java:1707) [bib.class:?] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1097) [bib.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397) [bib.class:?] at net.minecraft.client.main.Main.main(SourceFile:123) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] 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:?]
try removing "com.gitlab.cdagaming.craftpresence"
-
-
10 hours ago, joan99 said:
Hi, I also have the same problem of memory, while I have 7 GB disponible, did you find a solution ?
Don't hijack someone else's thread, make a new thread.
On 11/8/2018 at 1:28 AM, naturaGodhead said:java.util.concurrent.ExecutionException: java.lang.OutOfMemoryError at java.util.concurrent.FutureTask.report(FutureTask.java:122) ~[?:1.8.0_51] at java.util.concurrent.FutureTask.get(FutureTask.java:192) ~[?:1.8.0_51] at net.minecraft.util.Util.func_181617_a(SourceFile:47) [h.class:?] at net.minecraft.client.Minecraft.func_71411_J(Minecraft.java:1087) [bib.class:?] at net.minecraft.client.Minecraft.func_99999_d(Minecraft.java:397) [bib.class:?] at net.minecraft.client.main.Main.main(SourceFile:123) [Main.class:?] at sun.reflect.NativeMethodAccessorImpl.invoke0(Native Method) ~[?:1.8.0_51] at sun.reflect.NativeMethodAccessorImpl.invoke(NativeMethodAccessorImpl.java:62) ~[?:1.8.0_51] at sun.reflect.DelegatingMethodAccessorImpl.invoke(DelegatingMethodAccessorImpl.java:43) ~[?:1.8.0_51] at java.lang.reflect.Method.invoke(Method.java:497) ~[?:1.8.0_51] 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:?]
I assume a mod is adding a future task and that task does something bad that uses up all the memory. OR there's something really messed up with recipes.
Try removing foam fix and/or JEI/NEI
-
-
-
-
10 hours ago, DocBrian said:
Minecraft.getMinecraft().theWorld.getEntitiesWithinAABBExcludingEntity() and setting the AABB to the bounding box of the entity and excluding itself. Seems to work most of the time, but not always.
You could try interpolating the bounding boxes based on time, this might not work very well though.
10 hours ago, DocBrian said:1.7
Sorry we don't support 1.7 on this forum anymore due to its age (4+ years old). We simply don't know how to help you anymore.
I think theres an onEntityCollideWithEntity method or something that you can override?
-
-
22 minutes ago, sudwood said:
CommonProxy.java
CommonProxy makes no sense. Proxies are meant to separate sided-only code. If the code is common it goes into your main class, not in your proxy.
GuiProxy.java
What???
inventory.deserializeNBT((NBTTagCompound) compound.getTag("inventory"));
What if the NBTTagCompound doesn't have the "inventory" tag?
-
-
-
-
-
-
-
-
-
What?? I was saying that resource location exists to prevent issues like this. If you don’t have anything special (Transformations / 3D models) for your time you should probably auto generate the models.
55 minutes ago, MajesticMadman said:Them every block would be separated into a different category at this level
I’ve gone all the way down this path and don’t recommend it. Vanilla does it with all models in a single folder and that’s the easiest way to do it.
1 hour ago, MajesticMadman said:I was trying to find a way to do it in the JSON
The only way to do it is with JSON.
1 hour ago, MajesticMadman said:simpler than having to create a variable for each block and within that set the file path and then reference that in the ModelResourceLocation
for(Item item : allModItems) ModelLoader.setCustomModelResourceLocation(item, 0, new ModelResourceLocation( item.getRegistryName(), “normal”));
Intercepting WorldServer.addWeatherEffect Argument
in Modder Support
... but it doesn’t...
you catch the exception, and print it. The key word there is catch - the exception doesn’t get thrown & doesn’t crash the game.