Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
484 changes: 484 additions & 0 deletions .gitignore

Large diffs are not rendered by default.

13 changes: 13 additions & 0 deletions .idea/.idea.VisiblePants/.idea/.gitignore

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 4 additions & 0 deletions .idea/.idea.VisiblePants/.idea/encodings.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

8 changes: 8 additions & 0 deletions .idea/.idea.VisiblePants/.idea/indexLayout.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

6 changes: 6 additions & 0 deletions .idea/.idea.VisiblePants/.idea/vcs.xml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Binary file removed 1.0/Assemblies/0Harmony.dll
Binary file not shown.
Binary file removed 1.0/Assemblies/VisiblePants.dll
Binary file not shown.
8 changes: 6 additions & 2 deletions About/About.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,14 @@
<packageId>XeoNovaDan.VisiblePants</packageId>
<url>https://steamcommunity.com/sharedfiles/filedetails/?id=926698084</url>
<supportedVersions>
<li>1.0</li>
<li>1.1</li>
<li>1.2</li>
<li>1.3</li>
<li>1.4</li>
<li>1.5</li>
<li>1.6</li>
</supportedVersions>
<description>Current version: v2.3.0.3 (2nd March 2020)\n\nA mod that allows you to see everybody's trousers, for that complete feel!</description>
<description>A mod that allows you to see everybody's trousers, for that complete feel!</description>
<modDependencies>
<li>
<packageId>brrainz.harmony</packageId>
Expand Down
6 changes: 3 additions & 3 deletions About/Manifest.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
<Manifest>
<identifier>VisiblePants</identifier>
<manifestUri>https://cdn.jsdelivr.net/gh/XeoNovaDan/VisiblePants/About/Manifest.xml</manifestUri>
<downloadUri>https://github.com/XeoNovaDan/VisiblePants/releases</downloadUri>
<version>2.3</version>
<manifestUri>https://raw.githubusercontent.com/JonathanTroyer/VisiblePants/master/About/Manifest.xml</manifestUri>
<downloadUri>https://github.com/JonathanTroyer/VisiblePants/releases</downloadUri>
<version>2.6</version>
</Manifest>
2 changes: 1 addition & 1 deletion About/PublishedFileId.txt
Original file line number Diff line number Diff line change
@@ -1 +1 @@
926698084
2264108215
34 changes: 34 additions & 0 deletions Common/Patches/MechainoidsAddOn/ThingDefs_Misc/MechanoidsAddOn.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
<Patch>
<Operation Class="PatchOperationFindMod">
<mods>
<li>Vanilla Factions Expanded - Mechanoids</li>
</mods>
<match Class="PatchOperationSequence">
<operations>
<li Class="PatchOperationSequence">
<success>Always</success>
<operations>
<li Class="PatchOperationTest">
<xpath>/Defs/ThingDef[defName="VFE_MechanitePants"]/apparel/wornGraphicPath</xpath>
</li>
<li Class="PatchOperationRemove">
<xpath>/Defs/ThingDef[defName="VFE_MechanitePants"]/apparel/wornGraphicPath</xpath>
</li>
</operations>
</li>
<li Class="PatchOperationAddModExtension">
<xpath>/Defs/ThingDef[defName="VFE_MechanitePants"]</xpath>
<value>
<li Class="VisiblePants.ThingDefExtension"/>
</value>
</li>
<li Class="PatchOperationAdd">
<xpath>/Defs/ThingDef[defName="VFE_MechanitePants"]/apparel</xpath>
<value>
<wornGraphicPath>MechanoidsAddOn/Things/Pawn/Humanlike/Apparel/MechanitePants/MechanitePants</wornGraphicPath>
</value>
</li>
</operations>
</match>
</Operation>
</Patch>
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
123 changes: 123 additions & 0 deletions Install.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,123 @@
REM ################ Mod build and install script (c) Andreas Pardeike 2020 ################
REM
REM Call this script from Visual Studio's Build Events post-build event command line box:
REM "$(ProjectDir)Install.bat" $(ConfigurationName) "$(ProjectDir)" "$(ProjectName)" "About Assemblies Languages Textures v1.1" "LoadFolders.xml"
REM
REM The project structure should look like this:
REM
REM Modname
REM +- .git
REM +- .vs
REM +- About
REM | +- About.xml
REM | +- Preview.png
REM | +- PublishedFileId.txt
REM +- Assemblies <----- this is for RW1.0 + Harmony 1
REM | +- 0Harmony.dll
REM | +- 0Harmony.dll.mbd
REM | +- 0Harmony.pdb
REM | +- Modname.dll
REM | +- Modname.dll.mbd
REM | +- Modname.pdb
REM +- Languages
REM +- packages
REM | +- Lib.Harmony.2.x.x
REM +- Source
REM | +- .vs
REM | +- obj
REM | +- Debug
REM | +- Release
REM | +- Properties
REM | +- Modname.csproj
REM | +- Modname.csproj.user
REM | +- packages.config
REM | +- Install.bat <----- this script
REM +- Textures
REM +- v1.1
REM | +- Assemblies <----- this is for RW1.1 + Harmony 2
REM | +- 0Harmony.dll
REM | +- 0Harmony.dll.mbd
REM | +- 0Harmony.pdb
REM | +- Modname.dll
REM | +- Modname.dll.mbd
REM | +- Modname.pdb
REM +- .gitattributes
REM +- .gitignore
REM +- LICENSE
REM +- LoadFolders.xml
REM +- README.md
REM +- Modname.sln
REM
REM Also needed are the following environment variables in the system settings (example values):
REM
REM MONO_EXE = C:\Program Files\Mono\bin\mono.exe
REM PDB2MDB_PATH = C:\Program Files\Mono\lib\mono\4.5\pdb2mdb.exe
REM RIMWORLD_DIR_STEAM = C:\Program Files (x86)\Steam\steamapps\common\RimWorld\
REM RIMWORLD_DIR_STANDALONE = %USERPROFILE%\RimWorld1-0-2408Win64
REM RIMWORLD_MOD_DEBUG = --debugger-agent=transport=dt_socket,address=127.0.0.1:56000,server=y
REM
REM Finally, configure Visual Studio's Debug configuration with the rimworld exe as an external
REM program and set the working directory to the directory containing the exe.
REM
REM To debug, build the project (this script will install the mod), then run "Debug" (F5) which
REM will start RimWorld in paused state. Finally, choose "Debug -> Attach Unity Debugger" and
REM press "Input IP" and accept the default 127.0.0.1 : 56000

@ECHO ON
SETLOCAL ENABLEDELAYEDEXPANSION

SET RIMWORLD_DIR_STEAM=C:\Program Files (x86)\Steam\steamapps\common\RimWorld

SET SOLUTION_DIR=%~2
SET TARGET_DIR=%RIMWORLD_DIR_STEAM%\Mods\%~3
SET TARGET_DEBUG_DIR=%RIMWORLD_DIR_STANDALONE%\Mods\%~3
SET ZIP_EXE="C:\Program Files\7-Zip\7z.exe"

SET HARMONY_PATH=%SOLUTION_DIR%Assemblies\0Harmony.dll
SET MOD_DLL_PATH=%SOLUTION_DIR%Assemblies\%~3.dll

echo "%RIMWORLD_DIR_STEAM%"
IF %1==Debug (
IF EXIST "%HARMONY_PATH:~0,-4%.pdb" (
ECHO "Creating mdb at %HARMONY_PATH%"
"%MONO_EXE%" "%PDB2MDB_PATH%" "%HARMONY_PATH%" 1>NUL
)
IF EXIST "%MOD_DLL_PATH:~0,-4%.pdb" (
ECHO "Creating mdb at %MOD_DLL_PATH%"
"%MONO_EXE%" "%PDB2MDB_PATH%" "%MOD_DLL_PATH%" 1>NUL
)
)

IF %1==Release (
IF EXIST "%HARMONY_PATH%.mdb" (
ECHO "Deleting %HARMONY_PATH%.mdb"
DEL "%HARMONY_PATH%.mdb" 1>NUL
)
IF EXIST "%MOD_DLL_PATH%.mdb" (
ECHO "Deleting %MOD_DLL_PATH%.mdb"
DEL "%MOD_DLL_PATH%.mdb" 1>NUL
)
)

IF EXIST "%RIMWORLD_DIR_STANDALONE%" (
ECHO "Copying to %TARGET_DEBUG_DIR%"
IF NOT EXIST "%TARGET_DEBUG_DIR%" MKDIR "%TARGET_DEBUG_DIR%" 1>NUL
FOR %%D IN (%~4) DO (
XCOPY /I /Y /E "%SOLUTION_DIR%%%D" "%TARGET_DEBUG_DIR%\%%D" 1>NUL
)
FOR %%D IN (%~5) DO (
XCOPY /Y "%SOLUTION_DIR%%%D" "%TARGET_DEBUG_DIR%\*" 1>NUL
)
)

IF EXIST "%RIMWORLD_DIR_STEAM%" (
ECHO "Copying to %TARGET_DIR%"
IF NOT EXIST "%TARGET_DIR%" MKDIR "%TARGET_DIR%"
FOR %%D IN (%~4) DO (
XCOPY /I /Y /E "%SOLUTION_DIR%%%D" "%TARGET_DIR%\%%D" 1>NUL
)
FOR %%D IN (%~5) DO (
XCOPY /Y "%SOLUTION_DIR%%%D" "%TARGET_DIR%\*" 1>NUL
)
%ZIP_EXE% a "%TARGET_DIR%.zip" "%TARGET_DIR%" 1>NUL
)
27 changes: 27 additions & 0 deletions LoadFolders.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
<?xml version="1.0" encoding="utf-8" ?>
<loadFolders>
<v1.1>
<li>Common</li>
<li>v1.1</li>
</v1.1>
<v1.2>
<li>Common</li>
<li>v1.2</li>
</v1.2>
<v1.3>
<li>Common</li>
<li>v1.3</li>
</v1.3>
<v1.4>
<li>Common</li>
<li>v1.4</li>
</v1.4>
<v1.5>
<li>Common</li>
<li>v1.5</li>
</v1.5>
<v1.6>
<li>Common</li>
<li>v1.6</li>
</v1.6>
</loadFolders>
Binary file removed Source/Preview.xcf
Binary file not shown.
Binary file removed Source/VisiblePants/.vs/VisiblePants/v16/.suo
Binary file not shown.
Empty file.
Binary file not shown.
25 changes: 0 additions & 25 deletions Source/VisiblePants/HarmonyPatches/HarmonyPatches.cs

This file was deleted.

43 changes: 0 additions & 43 deletions Source/VisiblePants/HarmonyPatches/Patch_Pawn.cs

This file was deleted.

36 changes: 0 additions & 36 deletions Source/VisiblePants/Properties/AssemblyInfo.cs

This file was deleted.

29 changes: 0 additions & 29 deletions Source/VisiblePants/Reflection/ReflectedMethods.cs

This file was deleted.

Loading