Compare commits
No commits in common. "dce259ecf8c79ababab6a21e3aca99953345224f" and "eb1429021044bc732ec8dda638bacf86a9fbb8ef" have entirely different histories.
dce259ecf8
...
eb14290210
10 changed files with 30 additions and 22 deletions
5
.vscode/extensions.json
vendored
5
.vscode/extensions.json
vendored
|
@ -1,5 +0,0 @@
|
|||
{
|
||||
"recommendations": [
|
||||
"ms-dotnettools.csharp"
|
||||
]
|
||||
}
|
14
.vscode/launch.json
vendored
14
.vscode/launch.json
vendored
|
@ -15,6 +15,20 @@
|
|||
"console": "internalConsole",
|
||||
"internalConsoleOptions":"neverOpen",
|
||||
"stopAtEntry": true
|
||||
},
|
||||
|
||||
{ // ignore
|
||||
"name": ".NET Framework Attach",
|
||||
"type": "clr",
|
||||
"request": "attach",
|
||||
"processId": "${command:pickProcess}",
|
||||
"symbolOptions": {
|
||||
"searchPaths": [
|
||||
".vscode/obj/Debug/*"
|
||||
],
|
||||
"searchMicrosoftSymbolServer": false,
|
||||
"searchNuGetOrgSymbolServer": false
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
8
.vscode/mod.csproj
vendored
8
.vscode/mod.csproj
vendored
|
@ -1,14 +1,14 @@
|
|||
<Project Sdk="Microsoft.NET.Sdk">
|
||||
<PropertyGroup>
|
||||
<OutputType>Library</OutputType>
|
||||
<TargetFramework>net480</TargetFramework>
|
||||
<TargetFramework>net472</TargetFramework>
|
||||
<PlatformTarget>x64</PlatformTarget>
|
||||
|
||||
<!-- Modify [RootNamespace], [AssemblyName], [OutputPath], [VersionPrefix] -->
|
||||
<RootNamespace>Template</RootNamespace>
|
||||
<AssemblyName>Template</AssemblyName>
|
||||
<OutputPath>../1.4/Assemblies</OutputPath>
|
||||
<VersionPrefix>0.1.0.0</VersionPrefix>
|
||||
<OutputPath>../1.2/Assemblies</OutputPath>
|
||||
<VersionPrefix>1.0.0.0</VersionPrefix>
|
||||
|
||||
<!-- do not generate pdb file -->
|
||||
<DebugType>none</DebugType>
|
||||
|
@ -27,7 +27,7 @@
|
|||
</Reference>
|
||||
|
||||
<!-- Harmony -->
|
||||
<!-- <Reference Include="../../Harmony/Current/Assemblies/0Harmony.dll">
|
||||
<!-- <Reference Include="../../Harmony/v1.1/Assemblies/0Harmony.dll">
|
||||
<Private>False</Private>
|
||||
</Reference> -->
|
||||
</ItemGroup>
|
||||
|
|
BIN
1.2/Assemblies/Template.dll
Normal file
BIN
1.2/Assemblies/Template.dll
Normal file
Binary file not shown.
|
@ -1,23 +1,23 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<ModMetaData>
|
||||
<packageId>username.modname</packageId>
|
||||
<name>Mod Template</name>
|
||||
<author>username</author>
|
||||
<packageId>arvkus.template</packageId>
|
||||
<name>Arvkus Mod Template</name>
|
||||
<author>Arvkus</author>
|
||||
<supportedVersions>
|
||||
<li>1.4</li>
|
||||
<li>1.2</li>
|
||||
</supportedVersions>
|
||||
|
||||
<modDependencies>
|
||||
<!-- <li>
|
||||
<packageId>brrainz.harmony</packageId>
|
||||
<displayName>Harmony</displayName>
|
||||
<steamWorkshopUrl>steam://url/CommunityFilePage/2009463077</steamWorkshopUrl>
|
||||
<downloadUrl>https://github.com/pardeike/HarmonyRimWorld/releases/latest</downloadUrl>
|
||||
<downloadUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</downloadUrl>
|
||||
<steamWorkshopUrl>https://steamcommunity.com/workshop/filedetails/?id=2009463077</steamWorkshopUrl>
|
||||
</li> -->
|
||||
</modDependencies>
|
||||
|
||||
<incompatibleWith>
|
||||
<!-- <li>username.modname</li> -->
|
||||
<!-- <li>arvkus.template</li> -->
|
||||
</incompatibleWith>
|
||||
|
||||
<description>Template</description>
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
# Rimworld Mod Template
|
||||
|
||||
This template is created for Rimworld modders who use [Visual Studio Code](https://code.visualstudio.com/) instead of Visual Studio IDE.
|
||||
This template is created for Rimworld moders who use [Visual Studio Code](https://code.visualstudio.com/) instead of Visual Studio IDE.
|
||||
|
||||
* __No virtual folders__. Easy to manage and edit both `xml` and `cs` files.
|
||||
|
||||
|
@ -11,13 +11,12 @@ This template is created for Rimworld modders who use [Visual Studio Code](https
|
|||
* __Customizable__. Almost every feature can be changed, whenever it is editor UI, keybinds or folder structure.
|
||||
|
||||
## Setup
|
||||
1. Download and install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) and [.Net Framework 4.8 Developer Pack](https://dotnet.microsoft.com/download/dotnet-framework/net48). This step can be skipped if you already have required C# packages from Visual Studio IDE.
|
||||
2. Install [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
|
||||
1. Download and install [.NET Core SDK](https://dotnet.microsoft.com/download/dotnet-core) and [.Net Framework 4.7.2 Developer Pack]( https://dotnet.microsoft.com/download/dotnet-framework/net472). This step can be skipped if you already have required C# packages from Visual Studio IDE.
|
||||
2. Instal [C# extension](https://marketplace.visualstudio.com/items?itemName=ms-dotnettools.csharp).
|
||||
3. Clone, pull or download this template into your Rimworld `Mods` folder.
|
||||
|
||||
## Additional notes
|
||||
* By pressing `F5` key VS Code will perform 2 operations: build assembly file and launch Rimworld executable.
|
||||
* All intermediate files are kept inside `.vscode` folder.
|
||||
* For XML only modders remove preLaunchTask line from `.vscode/launch.json` file.
|
||||
* Modify `.vscode/mod.csproj` and `About/About.xml` according to your needs.
|
||||
|
||||
|
|
|
@ -14,8 +14,8 @@ using Verse.Grammar;
|
|||
using RimWorld;
|
||||
using RimWorld.Planet;
|
||||
|
||||
// using System.Reflection;
|
||||
// using HarmonyLib;
|
||||
//using System.Reflection;
|
||||
//using HarmonyLib;
|
||||
|
||||
namespace Template
|
||||
{
|
||||
|
|
Loading…
Reference in a new issue