Skip to content

Instantly share code, notes, and snippets.

View JonRurka's full-sized avatar

jon Rurka JonRurka

View GitHub Profile
public void flush()
{
this.vertexBuffer.flip();
this.texCoordBuffer.flip();
this.colorBuffer.flip();
GL11.glVertexPointer(3, 0, this.vertexBuffer);
if (this.hasTexture) {
GL11.glTexCoordPointer(2, 0, this.texCoordBuffer);
}
public object Call_CMD(params string[] args)
{
if (args.Length >= 3)
{
Type compType = null;
foreach (Assembly assm in Assemblies.Values)
{
Type testType = assm.GetType(args[1]);
if (testType != null)
{
testObject = new GameObject("__TestObject__");
testObject.AddComponent<WebTestComponent>();
Type testType = Assembly.GetCallingAssembly().GetType("WebTestComponent", false, true);
if (testType == null)
PConsole.LogWarning("Still null...");
public IEnumerator AddTrees()
{
ClearTrees();
int height = _terrain.terrainData.heightmapWidth;
int width = _terrain.terrainData.heightmapWidth;
float[,] heights = _terrain.terrainData.GetHeights(0, 0, width, height);
float[, ,] map = _terrain.terrainData.GetAlphamaps(0, 0, width - 1, height - 1);
Perlin perlin = new Perlin();
perlin.Seed = seed;
Noise2D noisePlane = new Noise2D(width, height, perlin);
System.Diagnostics.Stopwatch watch = new System.Diagnostics.Stopwatch();
watch.Start();
Chunk[] chunkTemp = GameObject.FindObjectsOfType<Chunk>();
watch.Stop();
Debug.Log("time: " + watch.Elapsed.ToString() + ", chunks found: " + chunkTemp.Length);
public override bool Equals(object obj) {
if (obj is Vector3Int)
{
return Equals((Vector3Int)obj);
}
return false;
}
public bool Equals(Vector3Int other)
{
System.AggregateException: One or more errors occurred. ---> System.InvalidOpera
tionException: Could not compile shader. See error messages.[]: Error: C:/Progra
m Files/Silicon Studio Corp/Paradox/GamePackages/Paradox.1.1.0-beta/Assets/Share
d/Images/DepthMinMax/DepthMinMaxShader.pdxsl(28,25-89): error X4532: cannot map
expression to ps_4_0 instruction set
at SiliconStudio.Paradox.Rendering.EffectSystem.CheckResult(LoggerResult comp
ilerResult)
at SiliconStudio.Paradox.Rendering.EffectSystem.CreateEffect(String effectNam
e, EffectBytecodeCompilerResult effectBytecodeCompilerResult, CompilerResults co
public void SpawnChunk(Vector3Int location)
{
if (!pageController.BuilderExists(location.x, location.y, location.z))
{
SmoothChunk chunkInstance = new SmoothChunk();
ScriptComponent scriptComp = new ScriptComponent();
Entity chunkObj = new Entity();
//chunkObj.Transform.Parent = Entity.Transform;
SceneSystem.SceneInstance.Scene.AddChild<Entity>(chunkObj);
chunkObj.Name = string.Format("Chunk_{0}.{1}.{2}", location.x, location.y, location.z);
Internal error. Please report to https://github.com/consulo/consulo/issues
com.intellij.ide.plugins.PluginManager$StartupAbortedException: Fatal error initializing 'com.intellij.openapi.roots.ModuleRootManager'
at com.intellij.ide.plugins.PluginManager.handleComponentError(PluginManager.java:250)
at com.intellij.openapi.components.impl.PlatformComponentManagerImpl.handleInitComponentError(PlatformComponentManagerImpl.java:40)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter$1.getComponentInstance(ComponentManagerImpl.java:599)
at com.intellij.openapi.components.impl.ComponentManagerImpl$ComponentConfigComponentAdapter.getComponentInstance(ComponentManagerImpl.java:619)
at com.intellij.util.pico.DefaultPicoContainer.getLocalInstance(DefaultPicoContainer.java:245)
at com.intellij.util.pico.DefaultPicoContainer.getComponentInstance(DefaultPicoContainer.java:211)
at com.intellij.openapi.components.impl.ComponentManagerImpl.createComponent(Co
map data:
{
"$type": "WarWorldInfServer.SerializationStructs+MapData, WarWorldInfServer",
"response": 0,
"seed": 0,
"width": 1400,
"height": 880,
"module": {
"$type": "LibNoise.Perlin, WarWorldInfServer",
"Frequency": 1.0,