Skip to content

Instantly share code, notes, and snippets.

[21:39:49] [Netty Client IO #2/INFO] [FML]: CLIENT-RAW > class cpw.mods.fml.common.network.internal.FMLProxyPacket (channel: REGISTER, register: [BungeeCord])
// ^ possible bug: channel is registered only once
// FML fallback - client sends channels on S01PacketJoinGame, even if hanshake failed
[21:39:52] [Netty Client IO #2/INFO] [FML]: CLIENT-DECODED < class cpw.mods.fml.common.network.internal.FMLProxyPacket (channel: REGISTER, register: [FML|HS, FML, OpenMods|E, OpenMods|M, FORGE, OpenMods|RPC, OpenMods|I])
[21:39:52] [Netty Client IO #2/INFO] [FML]: CLIENT-RAW < class cpw.mods.fml.common.network.internal.FMLProxyPacket (channel: REGISTER, register: [FML|HS, FML, OpenMods|E, OpenMods|M, FORGE, OpenMods|RPC, OpenMods|I])
[21:39:52] [Netty Client IO #2/INFO] [FML]: Aborting client handshake "VANILLA"
[21:39:52] [Netty Client IO #2/INFO] [FML]: [Netty Client IO #2] Client side vanilla connection established
public class GenericTest {
public static <T extends java.lang.Number> T test(java.lang.Object);
Code:
0: aload_0
1: checkcast #18 // class java/lang/Number
4: areturn
public static void test();
@boq
boq / gist:9a098b89ee102cbf1b2b
Last active October 24, 2019 01:18
OpenPeripheral Addons terminal glasses events
All events have same first three arguments: <1:source peripheral> <2:player name> <3:player uuid>
State events:
glasses_attach - player started wearing glasses
glasses_detach - player stopped wearing glasses
glasses_capture - player initiated capture mode (used keyboard)
glasses_release - player exited capture mode (exited gui screen)
Chat events:
package testmod;
import dan200.computercraft.api.lua.*;
import dan200.computercraft.api.peripheral.IComputerAccess;
import dan200.computercraft.api.peripheral.IPeripheral;
public class FaultyPeripheral implements IPeripheral {
private static class TestObject implements ILuaObject {
All java.lang.NoClassDefFoundError with openmods.* in message (second column is number of all reports)
openmods/utils/NetUtils 276
openmods/block/OpenBlock$1 139 // autogenerated switch map
openmods/config/game/ModStartupHelper 132 // probably OpenModsLib and OpenBlocks mismatch
Could not initialize class openmods.utils.NetUtils 82
openmods/utils/ByteUtils 47
openmods/config/game/ConfigurableFeatureManager$CustomFeatureRule 33
openmods/utils/OpenModsFakePlayer 26
openmods/integration/IIntegrationModule 17
39c5b518617bc921626e2bb2ac365f36 1 Could not initialize class openmods.block.OpenBlock$1
eeec019d34d5bfffdb4e8402cd2aa308 4 Could not initialize class openmods.block.OpenBlock$1
b266eed4967e26fdf3938be1663df184 1 Could not initialize class openmods.block.OpenBlock$1
1aae43817a7bf51a25f01bd5092a9527 1 Could not initialize class openmods.block.OpenBlock$1
554a730e2a5e7edb6841e28ee9842636 1 Could not initialize class openmods.block.OpenBlock$1
ee2bef9945844fb92576d65fc0ea0754 1 Could not initialize class openmods.block.OpenBlock$1
f90ce3a224d7e1762ba7c63d14199e9c 1 Could not initialize class openmods.block.OpenBlock$1
7375cc76b272f7a1b549b71df13de955 1 Could not initialize class openmods.block.OpenBlock$1
c8ee42f90faaf8c770ae22490cd7dc69 1 Could not initialize class openmods.block.OpenBlock$1
52153d707e8b4bf49cd2be3fd4e9191d 1 Could not initialize class openmods.utils.NetUtils
[21:02:22] [Server thread/INFO] [OpenMods/]: openblocks.common.PlayerInventoryStore.onPlayerDeath(PlayerInventoryStore.java:195): Storing post-mortem inventory into h:\minecraft\forge-dev-ob-1.7.10\saves\OB-emptier\data\inventory-boq42-2015-03-26_21.02.22-death-0.dat. It can be restored with command '/ob_inventory restore boq42 boq42-2015-03-26_21.02.22-death-0'
[21:02:22] [Server thread/DEBUG] [OpenMods/]: openblocks.common.PlayerDeathHandler.onPlayerDrops(PlayerDeathHandler.java:309): Scheduling grave placement for player 'EntityPlayerMP['boq42'/10, l='OB-emptier', x=274,70, y=53,00, z=188,70]':'com.mojang.authlib.GameProfile@15fbd657[id=26cceef4-c0ed-39ec-8152-b49f124a11f7,name=boq42,properties={},legacy=false]' with 6 items
[21:02:22] [Server thread/INFO] [OpenMods/]: openblocks.common.PlayerDeathHandler$GraveCallable.tryPlaceGrave(PlayerDeathHandler.java:191): Grave backup for player com.mojang.authlib.GameProfile@15fbd657[id=26cceef4-c0ed-39ec-8152-b49f124a11f7,name=boq42,properties={},legacy=false] sav
-- OpenPeripheral terminal glasses demo
-- by boq
local p = peripheral.wrap("back")
if p == nil then
print("Peripheral not found")
return
end
while true do
local evt, slot, side = os.pullEvent()
if evt == 'slot_click' then
if slot ~= 5 then
local p = peripheral.wrap(side)
local item = p.getSlot(slot)
print(item.raw_name)
p.setSlot(5, item)
else
peripheral.call(side, "setSlot", 5)
@boq
boq / keybase.md
Last active August 29, 2015 14:19

Keybase proof

I hereby claim:

  • I am boq on github.
  • I am boq (https://keybase.io/boq) on keybase.
  • I have a public key whose fingerprint is FB55 0778 988C 4533 27B3 2F19 38E1 5674 61F7 15C3

To claim this, I am signing this object: