This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
for(B=i=y=u=b=i=5-5,x=10,I=[],l=[];l[B]="ECDFBDCEAAAAAAAAIIIIIIIIMKLNJLKM@G@TSb~?A6J57IKJT576,+-48HLSUmgukgg OJNMLK IDHGFE".charCodeAt(B)-64,B++<120;I[B-1]=B%x?B/x%x<2|B%x<2?7:B/x&4?0:l[i++]:7);function X(c,h,e,s){c^=8;for(var o,S,C,A,R,T,G,d=e&&X(c,0)>1e4,n,N=-1e8,O=20;++O<99;)if((o=I[T=O])&&(G=o^c)<7){A=G--&2?8:4;C=o-9?l[61+G]:49;do if(!(R=I[T+=l[C]])&&!!G|A<3||(R+1^c)>9&&G|A>2){if(!(R-2&7))return 78-h<<x;n=G|(c?T>29:T<91)?o:6^c;S=(R&&l[R&7|32]*2-h-G)+(G?0:n-o?110:(A<2)+1);if(e>h||1<e&e==h&&S>2|d){I[T]=n;I[O]=0;S-=X(c,h+1,e,S-N);if(!(h||e-1|B-O|T-b|S<-1e4))return W(),c&&setTimeout("X(8,0,2),X(8,0,1)",50);I[O]=o;I[T]=R}if(S>N||!h&S==N&&Math.random()<.5)if(N=S,e>1)if(h?s-S<0:(B=O,b=T,0))return N}while(!R&G>2||(T=O,(G||A>2|(c?O>78:O<41)&!R)&&++C*--A))}return N}function W(){i="<table>";for(u=18;u<98;document.body.innerHTML=i+=++u%x-9?"<th width=60 height=60 onclick='I[b="+u+"]>8?W():X(0,0,1)'style='font-size:50px'bgcolor=#"+(u-B?u*.9&1||9:"d")+"0f0e0>&#"+(I[u]?9808+l[67+I[u]]:160)+";":u++&&"<tr>")B=b}W() |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
The following is a log created by Harmony when running two mods in RimWorld together: | |
CameraPlus and SameSpot. Both are here on GitHub under my name and the Harmony commit 81a27ed | |
is used with both mods: https://github.com/pardeike/Harmony/commit/81a27edb2d917c8be0fe25f2eae52b17ea9b529f | |
PC used: Windows 10, version 1607 14393.693 | |
Intel i7-3770 16GB ram, 64bit x64 system | |
Debugging was done on offline RimWorld with replaced debug mono.ddl | |
The log shows SameSpot loading first (both have the same Harmony.dll and thus ony SameSpot gets |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Harmony; | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using Verse; | |
namespace Namespace | |
{ | |
[StaticConstructorOnStartup] | |
static class YourMod |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
public static List<string> ReadModIDs(string filepath) { | |
Scribe.loader.InitLoadingMetaHeaderOnly(filepath); | |
ScribeMetaHeaderUtility.LoadGameDataHeader(ScribeMetaHeaderUtility.ScribeHeaderMode.Map, false); | |
Scribe.loader.FinalizeLoading(); | |
return ScribeMetaHeaderUtility.loadedModIdsList; | |
} | |
public static void Test() { | |
List<string> modIDs = ReadModIDs(file); | |
ModsConfig.Reset(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?xml version="1.0" encoding="utf-8"?> | |
<Project ToolsVersion="14.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> | |
<!-- add this to the end of the Project --> | |
<Target Name="TransformOnBuild" BeforeTargets="BeforeBuild"> | |
<PropertyGroup> | |
<!-- CHANGE TO YOUR CORRECT PATH, THIS IS FOR VISUAL STUDIO 2017 COMMUNITY EDITION --> | |
<_TransformExe>$(MSBuildExtensionsPath)\..\Common7\IDE\TextTransform.exe</_TransformExe> | |
<_TextTransform>$(ProjectDir)Properties\AssemblyInfo.tt</_TextTransform> | |
<_TextTransformResult>$(ProjectDir)Properties\AssemblyInfo.cs</_TextTransformResult> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Harmony.ILCopying; | |
using System; | |
using System.Collections.Generic; | |
using System.Linq; | |
using System.Reflection.Emit; | |
namespace Harmony | |
{ | |
public class CodeMatch | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Harmony; | |
using RimWorld; | |
using Steamworks; | |
using System.Collections.Generic; | |
using System.IO; | |
using System.Linq; | |
using System.Reflection; | |
using System.Xml; | |
using Verse; | |
using Verse.Steam; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
using Harmony; | |
using RimWorld; | |
using System; | |
using System.Linq; | |
using System.Reflection; | |
using System.Reflection.Emit; | |
using UnityEngine; | |
using Verse; | |
namespace YourNameSpace |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import UIKit | |
import AVFoundation | |
open class VideoPreview : UIViewController { | |
var captureSession: AVCaptureSession! | |
var camera: AVCaptureDevice! | |
var preview: AVCaptureVideoPreviewLayer! | |
func initSession() { |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
REM ################ Mod build and install script (c) Andreas Pardeike 2018 ################ | |
REM | |
REM Call this script from Visual Studio's Build Events post-build event command line box: | |
REM "$(ProjectDir)Install.bat" $(ConfigurationName) "$(SolutionDir)..\" "$(TargetFileName)" | |
REM | |
REM The project structure should look like this: | |
REM | |
REM ProjectFolder | |
REM +- About | |
REM +- Assemblies |
OlderNewer