Skip to content

Instantly share code, notes, and snippets.

@ltem
ltem / Versuch 1
Created December 27, 2017 17:55
Hark 8 first try
### Also ich habe das lua script so erweitert:
SendSaboteur = function(saboteur, targets)
- local path = Utils.Random(SaboteurPaths)
- local target = Utils.Random(targets)
-
- saboteur.Wait(DateTime.Seconds(5))
- saboteur.Move(path[1])
- saboteur.Move(path[2])
- saboteur.Move(path[3])
@ltem
ltem / lua.log_2
Created December 27, 2017 15:34
barracks 244 (not in world)
Fatal Lua Error: [string "BindingSupport.lua"]:30: Uncaught CLR exception at Lua->CLR boundary: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Attempted to get trait from destroyed object (barracks 244 (not in world))
at OpenRA.TraitDictionary.CheckDestroyed (OpenRA.Actor actor) [0x00020] in <7674126de3c34106adb52b64521010a8>:0
at OpenRA.TraitDictionary.WithInterface[T] (OpenRA.Actor actor) [0x00001] in <7674126de3c34106adb52b64521010a8>:0
at OpenRA.Actor.TraitsImplementing[T] () [0x00001] in <7674126de3c34106adb52b64521010a8>:0
at OpenRA.Mods.Common.Activities.Demolish..ctor (OpenRA.Actor self, OpenRA.Actor target, OpenRA.Mods.Common.Activities.EnterBehaviour enterBehaviour, System.Int32 delay, System.Int32 flashes, System.Int32 flashesDelay, System.Int32 flashInterval, System.Int32 flashDuration)
@ltem
ltem / lua.log
Created December 27, 2017 15:09
The repair pad was destroyed by an airstrike but I'm sure I rebuild it, shortly after it crashed, maybe the saboteur wanted to kill the same (old) target?
Fatal Lua Error: [string "BindingSupport.lua"]:30: Uncaught CLR exception at Lua->CLR boundary: System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.Reflection.TargetInvocationException: Exception has been thrown by the target of an invocation. ---> System.InvalidOperationException: Attempted to get trait from destroyed object (repair_pad 580 (not in world))
at OpenRA.TraitDictionary.CheckDestroyed (OpenRA.Actor actor) [0x00020] in <7674126de3c34106adb52b64521010a8>:0
at OpenRA.TraitDictionary.WithInterface[T] (OpenRA.Actor actor) [0x00001] in <7674126de3c34106adb52b64521010a8>:0
at OpenRA.Actor.TraitsImplementing[T] () [0x00001] in <7674126de3c34106adb52b64521010a8>:0
at OpenRA.Mods.Common.Activities.Demolish..ctor (OpenRA.Actor self, OpenRA.Actor target, OpenRA.Mods.Common.Activities.EnterBehaviour enterBehaviour, System.Int32 delay, System.Int32 flashes, System.Int32 flashesDelay, System.Int32 flashInterval, System.Int32 flashDuration
@ltem
ltem / abc.lua
Created December 25, 2017 16:43
Atreides enemies again
Trigger.OnDamaged(unit, function(self, attacker)
if unit.Owner == atreides_neutral and attacke.Owner == player then
ChangeOwner(atreides_neutral, atreides_enemy)
-- Ensure that harvesters that was on a carryall switched sides.
Trigger.AfterDelay(DateTime.Seconds(15), function()
ChangeOwner(atreides_neutral, atreides_enemy)
end)
end
@ltem
ltem / pr.md
Created March 16, 2017 14:48 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@ltem
ltem / pr.md
Created March 16, 2017 14:48 — forked from piscisaureus/pr.md
Checkout github pull requests locally

Locate the section for your github remote in the .git/config file. It looks like this:

[remote "origin"]
	fetch = +refs/heads/*:refs/remotes/origin/*
	url = [email protected]:joyent/node.git

Now add the line fetch = +refs/pull/*/head:refs/remotes/origin/pr/* to this section. Obviously, change the github url to match your project's URL. It ends up looking like this:

@ltem
ltem / .Xdefaults
Created December 22, 2016 22:50 — forked from ei-grad/.Xdefaults
My urxvt config.
!! Appearance
urxvt.termName: rxvt-unicode
urxvt.scrollBar: false
urxvt.background: black
urxvt.foreground: gray
!! Font prefferenes
urxvt.font: xft:DejaVu Sans Mono:pixelsize=13
urxvt.boldFont: xft:DejaVu Sans Mono:pixelsize=13:weight=bold
urxvt.letterSpace: -1
!! Larger history limit