Skip to content

Instantly share code, notes, and snippets.

OpenBlock/Peripheral/etc FAQ/EAQ/Whatever
* I have strange problem with OpenPeripheral...
Check you version. Is it OpenPeripheral 0.2.1 pre8? Then it's not our problem
* Where is peripheral documentation? I don't see it on site.
It was moved in-game. Use openp/docs to access, usage:
- openp/docs <side> - list methods
- opens/docs <side> <method name> - list informaction about single method
Also, every peripheral has method .listMethods() that returns brief list of methods.
@boq
boq / gist:8887832
Created February 8, 2014 18:20
openp/docs
--[[
Made by SinZ and boq
--]]
local args = {...}
if #args == 0 then
print("usage: docs <side> (function)")
return
end
local side = args[1]
ᚠ.ᛒ.net
java.lang.NullPointerException 373
cpw.mods.fml.common.LoaderException 189
java.lang.NoClassDefFoundError 156
java.lang.IllegalArgumentException 146
java.lang.RuntimeException 109
java.lang.OutOfMemoryError 72
java.lang.ArrayIndexOutOfBoundsException 63
java.lang.IndexOutOfBoundsException 54
java.lang.ClassCastException 52
java.lang.NoSuchMethodError 32
- I see some mods unfairly blamed for crashes or crashes that have missing mod assignments?
Sometimes we can't get full and/or valid information about package sources. Mod identification will never be fully reliable. That's why we have labels like "likely involved mods".
Here are common causes:
1. Due to few coremod's magic (like NEI), built-in mechanism of finding class source can sometimes fail (though in newer versions of OpenEye we use more reliable method).
2. Mod includes API classes. STOP THAT, it's not needed. If you include other mods' APIs you may be blamed for crashes in that part of code. Use @Optional.* and correct build process.
3. Stacktrace contains class from shared library. Every mod that includes this class will be marked as possible candidate.
3. Mod failed on startup (i.e. is in 'errored' state). When multiple mods crash on startup, only one exception is logged (FML limitation). We can retrieve information list about other mods that failed to initialize, but not stacktrace.
4. Crash has
public ChunkPosition findClosestStructure(World par1World, String par2Str, int par3, int par4, int par5)
{
return "Stronghold".equals(par2Str) && this.strongholdGenerator != null ? this.strongholdGenerator.getNearestInstance(par1World, par3, par4, par5) : null;
}
{
"methods" : {
"chunk_load" : {
"cls" : "net.minecraft.world.chunk.storage.AnvilChunkLoader",
"argTypes" : ["Lnet/minecraft/world/World;", "I", "I"],
"returnType" : "Lnet/minecraft/world/chunk/Chunk;",
"mcpName" : "loadChunk",
"srgName" : "func_73158_c"
}
}
java.lang.NullPointerException 780415
java.lang.OutOfMemoryError 126036
java.lang.RuntimeException 124261
cpw.mods.fml.common.LoaderException 63919
java.lang.IndexOutOfBoundsException 46115
java.lang.ClassCastException 44993
java.lang.IllegalArgumentException 43632
java.lang.NoClassDefFoundError 28422
java.lang.ArrayIndexOutOfBoundsException 26024
java.lang.reflect.InvocationTargetException 16223
"Oracle Corporation 1.7.0_60": 60406,
"Oracle Corporation 1.7.0_55": 50030,
"Oracle Corporation 1.7.0_51": 41784,
"Oracle Corporation 1.7.0_45": 30098,
"Oracle Corporation 1.8.0_05": 14322,
"Oracle Corporation 1.7.0_25": 10610,
"Apple Inc. 1.6.0_65": 7883,
"Oracle Corporation 1.7.0_21": 5273,
"Oracle Corporation 1.7.0_40": 4395,
"Oracle Corporation 1.7.0_17": 3545,
Oracle Corporation 1.7.0 225049 86,60%
Oracle Corporation 1.8.0 17763 6,84%
Apple Inc. 1.6.0 8722 3,36%
Sun Microsystems Inc. 1.6.0 8315 3,20%
Sun Microsystems Inc. 1.7.0 11 0,00%
Total 259860 100,00%