Skip to content

Instantly share code, notes, and snippets.

View Cervator's full-sized avatar

Rasmus Praestholm Cervator

View GitHub Profile
@Cervator
Cervator / ModuleManagerImpl.java
Created July 21, 2018 21:33
Permissive module sandbox setting
/*
* Copyright 2014 MovingBlocks
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
[root@remoteworkspace bin]# kubectl describe pod jx-staging-demo-755668f8bc-xnbtr -n jx-staging
Name: jx-staging-demo-755668f8bc-xnbtr
Namespace: jx-staging
Node: gke-democluster-default-pool-7c35eaae-bjh4/10.142.0.2
Start Time: Mon, 28 May 2018 21:57:53 +0000
Labels: app=jx-staging-demo
draft=draft-app
pod-template-hash=3112249467
Annotations: kubernetes.io/created-by={"kind":"SerializedReference","apiVersion":"v1","reference":{"kind":"ReplicaSet","namespace":"jx-staging","name":"jx-staging-demo-755668f8bc","uid":"2b d5b7b8-62c2-11e8-929f-42...
Status: Running
# Modding API:
## terasology engine
* org.terasology.particles.components.affectors.AccelerationAffectorComponent (CLASS)
* org.terasology.network (PACKAGE)
* org.terasology.physics (PACKAGE)
* org.terasology.rendering.nui (PACKAGE)
* org.terasology.world.block.loader.SectionDefinitionData (CLASS)
* - getDisplayName (METHOD)
* -- class java.lang.String (RETURN)
* -- [] (PARAMETERS)
#
# A fatal error has been detected by the Java Runtime Environment:
#
# EXCEPTION_ACCESS_VIOLATION (0xc0000005) at pc=0x00000000226e1066, pid=7060, tid=0x0000000000002d68
#
# JRE version: Java(TM) SE Runtime Environment (8.0_112-b15) (build 1.8.0_112-b15)
# Java VM: Java HotSpot(TM) 64-Bit Server VM (25.112-b15 mixed mode windows-amd64 compressed oops)
# Problematic frame:
# C [OpenAL64.dll+0x11066]
#
@Cervator
Cervator / overview.md
Last active November 19, 2017 18:20
BTM Nov 2017 Panel - Terasology & Modding concepts

Who we are

Why

Started during the gold rush era caused by Minecraft's early success when new games inspired by MC were popping up like mushrooms.

This is an overview of the different parts of our primary codebase and will be primarily of interest to developers/modders. See also [[Project Overview]] for a higher level view across more different projects.

Gradle and Groovy

Most of our projects are organized using Gradle, a build automation tool similar to Maven, but using Groovy as its language. This allows for some pretty powerful scripting and customization of a local developer setup while leveraging maven repositories for dependency resolution.

You interact with Gradle using a gradlew wrapper script that downloads and installs the correct project-specific version of Gradle itself. No need to install anything locally yourself. You simply run the command gradlew on any OS in the directory you've cloned the primary Terasology engine repo to and the correct version will be fetched and executed.

Much like the Gradle wrapper as of September 2017 we've

@Cervator
Cervator / keybase.md
Created July 16, 2017 02:04
keybase.md

Keybase proof

I hereby claim:

  • I am cervator on github.
  • I am cervator (https://keybase.io/cervator) on keybase.
  • I have a public key ASBCq2_P0LUO7NPUrDV7D5NTeAN8c-jOyyBWPnIZfAJrmAo

To claim this, I am signing this object:

{
"basedOn": "core:rock",
"displayName": "Hello Block",
"penetrable": true,
"entity": {
"prefab": "Sample:SomeBlock"
}
}
@Cervator
Cervator / gist:7acc1c9c9b133566b731
Created February 22, 2015 19:29
Sample server config.cfg
{
"system": {
"dayNightLengthInMs": 1800000,
"maxThreads": 2,
"verticalChunkMeshSegments": 1,
"maxSecondsBetweenSaves": 60,
"maxUnloadedChunksPercentageTillSave": 40,
"debugEnabled": false,
"monitoringEnabled": false
},
@Cervator
Cervator / gist:bdb5f43bf2843920a19f
Created February 21, 2015 03:12
Client log including stack dump with "Requesting missing modules"
C:\Dev\Java\jdk7u55_64bit\bin\java -Xms256m -Xmx1024m -Didea.launcher.port=7533 -Didea.launcher.bin.path=H:\Dev\IntelliJ14U\bin -Dfile.encoding=UTF-8 -classpath C:\Dev\Java\jdk7u55_64bit\jre\lib\charsets.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\deploy.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\javaws.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\jce.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\jfr.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\jfxrt.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\jsse.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\management-agent.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\plugin.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\resources.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\rt.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\ext\access-bridge-64.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\ext\dnsns.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\ext\jaccess.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\ext\localedata.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\ext\sunec.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\ext\sunjce_provider.jar;C:\Dev\Java\jdk7u55_64bit\jre\lib\ext\sunmscapi.ja