Skip to content

Instantly share code, notes, and snippets.

View boformer's full-sized avatar

boformer boformer

  • Ruhr-Universität Bochum
  • Bochum, Germany
View GitHub Profile
@boformer
boformer / config.cs
Created July 2, 2015 12:48
Better Growables config
using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.Linq;
using System.IO;
using System.Xml.Serialization;
using UnityEngine;
namespace BetterGrowables
{
@boformer
boformer / gist:ac5c509c6e8b4a6df45d
Created July 3, 2015 13:49
Mod Tools error on game startup (debug_log)
NullReferenceException: Object reference not set to an instance of an object
at ModTools.Console..ctor () [0x00000] in <filename unknown>:0
UnityEngine.GameObject:Internal_AddComponentWithType(Type)
UnityEngine.GameObject:AddComponent(Type)
UnityEngine.GameObject:AddComponent()
ModTools.ModTools:Initialize(UpdateMode)
ModTools.ModToolsBootstrap:InitModTools(UpdateMode)
ModTools.ModToolsBootstrap:Bootstrap()
ModTools.Mod:get_Name()
OptionsMainPanel:AddUserMods()
using System;
using System.Collections.Generic;
using System.Linq;
using System.Reflection;
using System.Text;
namespace BetterUpgrade.Detour
{
public class BuildingInfoDetour : BuildingInfo
{
@boformer
boformer / gist:88a589fd4ac01f6358a1
Last active August 29, 2015 14:24
Mod Tools error in game
ArgumentException: Getting control 73's position in a group with only 73 controls when doing mouseDrag
Aborting
at UnityEngine.GUILayoutGroup.GetNext () [0x00000] in <filename unknown>:0
at UnityEngine.GUILayoutUtility.DoGetRect (Single minWidth, Single maxWidth, Single minHeight, Single maxHeight, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) [0x00000] in <filename unknown>:0
at UnityEngine.GUILayoutUtility.GetRect (Single width, Single height, UnityEngine.GUIStyle style, UnityEngine.GUILayoutOption[] options) [0x00000] in <filename unknown>:0
at UnityEngine.GUILayout.Space (Single pixels) [0x00000] in <filename unknown>:0
<?xml version="1.0" encoding="utf-8"?>
<Configuration xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<Themes>
<Theme name="test theme">
</Theme>
</Themes>
</Configuration>
using ICities;
public class ThemeMod : IUserMod
{
public string Name
{
get { return "Building Theme: UK Terraced Housing"; }
}
public string Description
@boformer
boformer / gist:ae0c7b4521bcdaea84e6
Created July 21, 2015 21:48
ImprovedAssetsPanel error occuring all the time
NullReferenceException: Object reference not set to an instance of an object
at ImprovedAssetsPanel.ImprovedAssetsPanel+<>c__DisplayClass1.<Bootstrap>b__0 () [0x00000] in <filename unknown>:0
at ImprovedAssetsPanel.UpdateHook.Update () [0x00000] in <filename unknown>:0
(Filename: Line: -1)
@boformer
boformer / defaultTemplateByParentTv.plugin.php
Last active August 29, 2015 14:26 — forked from bfncs/defaultTemplateByParentTv.plugin.php
Default Children Template by Parent TV - modX Revolution Plugin
<?php
/**
* =========================
* defaultTemplateByParentTv
* =========================
*
* Plugin for modX Revolution
* Set default template for children of a ressource
*
* Author:
KeyNotFoundException: The given key was not present in the dictionary.
at System.Collections.Generic.Dictionary`2[BuildingThemes.Configuration+Theme,System.Collections.Generic.List`1[BuildingThemes.GUI.BuildingItem]].get_Item (BuildingThemes.Theme key) [0x00000] in <filename unknown>:0
at BuildingThemes.GUI.UIThemeManager.ThemeValidityError (BuildingThemes.Theme theme) [0x00000] in <filename unknown>:0
at BuildingThemes.GUI.UIThemePolicyItem.Display (System.Object data, Boolean isRowOdd) [0x00000] in <filename unknown>:0
at BuildingThemes.GUI.UIFastList.DisplayAt (Single pos) [0x00000] in <filename unknown>:0
at BuildingThemes.GUI.UIFastList.Refresh () [0x00000] in <filename unknown>:0
NullReferenceException: Object reference not set to an instance of an object
at ModTools.IsolatedFailures.<OnLevelLoaded>b__0 (ILoadingExtension e, UpdateMode m) [0x00000] in <filename unknown>:0
at ModTools.IsolatedFailures.ProcessLoadingExtensions (UpdateMode mode, System.Func`3 callback) [0x00000] in <filename unknown>:0
at ModTools.IsolatedFailures.OnLevelLoaded (UpdateMode mode) [0x00000] in <filename unknown>:0
at LoadingManager+<LoadLevelComplete>c__Iterator59.MoveNext () [0x00000] in <filename unknown>:0
at LoadingManager.Update () [0x00000] in <filename unknown>:0