Skip to content

Instantly share code, notes, and snippets.

View gravityfox's full-sized avatar
🦊
Sleepy Foxchee

Mike Liu gravityfox

🦊
Sleepy Foxchee
View GitHub Profile
@gravityfox
gravityfox / indexing.txt
Created April 21, 2023 08:23
Index Design Notes
I want objects to link to other objects, especially to objects of different types.
I also want it to be possible to have certain local objects that are not expressly in the main index
- for example, i want it to be possible for local components to exist in a handler so that
they are only loaded if the handler is loaded.
- however for storage they would be stored by the same storage index, usually much the same way as
upper level objects.
I think that all objects should always be loaded by the loader of their type,
and that loaders should report any local objects to the correct loader to be loaded, in a recursive manner.
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:59973,suspend=y,server=n -Dfml.coreMods.load=org.spongepowered.mod.SpongeCoremod -javaagent:/Users/fox/Library/Caches/IntelliJIdea2018.2/groovyHotSwap/gragent.jar -javaagent:/Users/fox/Library/Caches/IntelliJIdea2018.2/captureAgent/debugger-agent.jar=file:/private/var/folders/mh/5wz0b2c12yscnd_6dhpc29wr0000gn/T/capture.props -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java
@gravityfox
gravityfox / start
Created April 16, 2018 23:29
intellij commandline for starting MC
/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/bin/java -agentlib:jdwp=transport=dt_socket,address=127.0.0.1:56085,suspend=y,server=n -Dfml.coreMods.load=org.spongepowered.mod.SpongeCoremod -javaagent:/Users/fox/Library/Caches/IntelliJIdea2018.1/groovyHotSwap/gragent.jar -javaagent:/Users/fox/Library/Caches/IntelliJIdea2018.1/captureAgent/debugger-agent.jar=file:/private/var/folders/mh/5wz0b2c12yscnd_6dhpc29wr0000gn/T/capture.props -Dfile.encoding=UTF-8 -classpath "/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/charsets.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/deploy.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/cldrdata.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/dnsns.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/jaccess.jar:/Library/Java/JavaVirtualMachines/jdk1.8.0_131.jdk/Contents/Home/jre/lib/ext/jfxrt.jar:/Library/Java

Keybase proof

I hereby claim:

  • I am gravityfox on github.
  • I am gravityfox (https://keybase.io/gravityfox) on keybase.
  • I have a public key whose fingerprint is 8FDE A976 3F22 DE67 D8CC 32C0 7FFB B26E 44D0 5366

To claim this, I am signing this object:

[11:47:21] [Server thread/TRACE] [Sponge/]: /***********************************************************************************************************************/
[11:47:21] [Server thread/TRACE] [Sponge/]: /* Exception trying to process over a phase! */
[11:47:21] [Server thread/TRACE] [Sponge/]: /***********************************************************************************************************************/
[11:47:21] [Server thread/TRACE] [Sponge/]: /* PhaseContext : */
[11:47:21] [Server thread/TRACE] [Sponge/]: /* - Name: Source */
[11:47:21] [Server thread/TRACE] [Sponge/]: /* Object: EntityPlayerMP['Inscrutable'/35996, l='block19', x=487.22, y=64.00, z=297.26] */
[11:47:21] [Server thread/TR
---- Minecraft Crash Report ----
WARNING: coremods are present:
LoadingPlugin (QUARK-BETA-28.jar)
EnderCorePlugin (ENDERCORE-1.9.4-0.4.0.26-ALPHA.jar)
SpongeCoremod (SPONGEFORGE-1.9.4-1968-5.0.0-BETA-1494.jar)
LoadingPlugin (RANDOMTHINGS-MC1.9.4-3.7.3.jar)
AppleCore (APPLECORE-MC1.9.4-1.3.4.jar)
FldLoadingPlugin (FASTLEAFDECAY-MC1.9.4-1.7.jar)
ShetiPhian-ASM (SHETIPHIANCORE-1.9.4-3.2.6.jar)
<?xml version="1.0" encoding="UTF-8"?>
<!-- Sponge Log4j2 server config for dev-time. Based on the Forge log4j2.xml -->
<Configuration status="WARN" packages="com.mojang.util,net.minecraftforge.server.console">
<Appenders>
<TerminalConsole name="FmlConsole">
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level] [%logger]: %msg%n" />
</TerminalConsole>
<TerminalConsole name="Console">
<PatternLayout pattern="[%d{HH:mm:ss}] [%t/%level]: %msg%n" />
</TerminalConsole>
[23:28:05] [Server thread/INFO] [foxcore]:
MemoryDataContainer{
map={
ContentVersion=1,
ItemType=minecraft:golden_axe,
Count=1,
UnsafeDamage=0,
UnsafeData=MemoryDataView{
path=UnsafeData,
map={
@gravityfox
gravityfox / Itemlog
Created January 10, 2016 21:23
First one works. Second is broken
[13:22:23] [Server thread/INFO] [STDOUT]: [net.foxdenstudio.sponge.foxcore.plugin.listener.WandListener:handle:54]: MemoryDataContainer{map={ContentVersion=1, ItemType=minecraft:golden_axe, Count=1, UnsafeDamage=0, UnsafeData=MemoryDataView{path=UnsafeData, map={ench=[], display=MemoryDataView{path=UnsafeData.display, map={Lore=[Position Wand]}}}}, Data=[MemoryDataContainer{map={DataClass=org.spongepowered.common.data.manipulator.mutable.item.SpongeEnchantmentData, ManipulatorData=MemoryDataView{path=ManipulatorData, map={ContentVersion=1, ItemEnchantments=[]}}}}, MemoryDataContainer{map={DataClass=net.foxdenstudio.sponge.foxcore.plugin.wand.data.WandData, ManipulatorData=MemoryDataView{path=ManipulatorData, map={ContentVersion=1, wandtype=POSITION}}}}]}}
[13:22:27] [Server thread/INFO] [STDOUT]: [net.foxdenstudio.sponge.foxcore.plugin.listener.WandListener:handle:54]: MemoryDataContainer{map={ContentVersion=1, ItemType=minecraft:golden_axe, Count=1, UnsafeDamage=0, UnsafeData=MemoryDataView{path=UnsafeData,
@gravityfox
gravityfox / toContainer
Created January 6, 2016 07:29
The first entry is broken. The second one is working.
[23:28:05] [Server thread/INFO] [foxcore]: MemoryDataContainer{map={ContentVersion=1, ItemType=minecraft:golden_axe, Count=1, UnsafeDamage=0, UnsafeData=MemoryDataView{path=UnsafeData, map={ench=[], SpongeData=MemoryDataView{path=UnsafeData.SpongeData, map={CustomManipulators=[MemoryDataContainer{map={DataClass=net.foxdenstudio.sponge.foxcore.plugin.wand.data.WandData, ManipulatorData=MemoryDataView{path=ManipulatorData, map={wandtype=POSITION}}}}]}}, display=MemoryDataView{path=UnsafeData.display, map={Lore=[Position Wand]}}}}, Data=[MemoryDataContainer{map={DataClass=org.spongepowered.common.data.manipulator.mutable.item.SpongeEnchantmentData, ManipulatorData=MemoryDataView{path=ManipulatorData, map={ContentVersion=1, ItemEnchantments=[]}}}}]}}
[23:28:19] [Server thread/INFO] [foxcore]: MemoryDataContainer{map={ContentVersion=1, ItemType=minecraft:golden_axe, Count=1, UnsafeDamage=0, UnsafeData=MemoryDataView{path=UnsafeData, map={ench=[], SpongeData=MemoryDataView{path=UnsafeData.SpongeData, map={CustomMan