Think node RimWorld.ThinkNode...

Started by notfood, July 20, 2016, 03:03:05 PM

Previous topic - Next topic

notfood

What's going on here? I don't see ThinkNodes being called anywhere in the code. Perhaps I'm blind. It doesn't seem to affect anything as far as I can see but warning messages are always annoying...



Source: https://github.com/notfood/RimWorld-Infused

notfood

Well, it happens even with very simple mods I compile so It appears to be the compiler I'm using. Which is the one that comes in Unity for Linux. What am I supposed to use instead?

skullywag

Thinktree nodes are what pawns call as they go about their day. It controls everything they do. If your mod is not touching this area of code it does sound possible its your compiler, but without knowing more detail i couldnt comment further. Most of us are using Visual Studio/Xamarin to compile.
Skullywag modded to death.
I'd never met an iterator I liked....until Zhentar saved me.
Why Unity5, WHY do you forsake me?

notfood

#3
I compiled with VisualStudio 2010. Same thing.

This is a test project that has nothing but this:

It produces the exact same Think node messages.

I'm guessing it's somewhere in the project configuration, something obvious I missed.

Can you help me?

Relevant code:

Microsoft Visual Studio Solution File, Format Version 11.00
# Visual C# Express 2010
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "Experiment", "Experiment\Experiment.csproj", "{4E3C15A1-1C70-4559-A848-04E2FE0ECB08}"
EndProject
Global
GlobalSection(SolutionConfigurationPlatforms) = preSolution
Debug|Any CPU = Debug|Any CPU
Release|Any CPU = Release|Any CPU
EndGlobalSection
GlobalSection(ProjectConfigurationPlatforms) = postSolution
{4E3C15A1-1C70-4559-A848-04E2FE0ECB08}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
{4E3C15A1-1C70-4559-A848-04E2FE0ECB08}.Debug|Any CPU.Build.0 = Debug|Any CPU
{4E3C15A1-1C70-4559-A848-04E2FE0ECB08}.Release|Any CPU.ActiveCfg = Release|Any CPU
{4E3C15A1-1C70-4559-A848-04E2FE0ECB08}.Release|Any CPU.Build.0 = Release|Any CPU
EndGlobalSection
GlobalSection(SolutionProperties) = preSolution
HideSolutionNode = FALSE
EndGlobalSection
EndGlobal


<?xml version="1.0" encoding="utf-8"?>
<Project DefaultTargets="Build" ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
  <PropertyGroup>
    <Configuration Condition=" '$(Configuration)' == '' ">Debug</Configuration>
    <Platform Condition=" '$(Platform)' == '' ">AnyCPU</Platform>
    <ProjectGuid>{4E3C15A1-1C70-4559-A848-04E2FE0ECB08}</ProjectGuid>
    <OutputType>Library</OutputType>
    <RootNamespace>Experiment</RootNamespace>
    <AssemblyName>Experiment</AssemblyName>
    <TargetFrameworkVersion>v3.5</TargetFrameworkVersion>
    <UseMSBuildEngine>False</UseMSBuildEngine>
    <PublishUrl>publish\</PublishUrl>
    <Install>true</Install>
    <InstallFrom>Disk</InstallFrom>
    <UpdateEnabled>false</UpdateEnabled>
    <UpdateMode>Foreground</UpdateMode>
    <UpdateInterval>7</UpdateInterval>
    <UpdateIntervalUnits>Days</UpdateIntervalUnits>
    <UpdatePeriodically>false</UpdatePeriodically>
    <UpdateRequired>false</UpdateRequired>
    <MapFileExtensions>true</MapFileExtensions>
    <ApplicationRevision>0</ApplicationRevision>
    <ApplicationVersion>1.0.0.%2a</ApplicationVersion>
    <IsWebBootstrapper>false</IsWebBootstrapper>
    <UseApplicationTrust>false</UseApplicationTrust>
    <BootstrapperEnabled>true</BootstrapperEnabled>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Debug|AnyCPU' ">
    <DebugSymbols>true</DebugSymbols>
    <DebugType>full</DebugType>
    <Optimize>false</Optimize>
    <OutputPath>..\..\Assemblies\Debug</OutputPath>
    <DefineConstants>DEBUG;</DefineConstants>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <UseVSHostingProcess>false</UseVSHostingProcess>
  </PropertyGroup>
  <PropertyGroup Condition=" '$(Configuration)|$(Platform)' == 'Release|AnyCPU' ">
    <Optimize>false</Optimize>
    <OutputPath>..\..\Assemblies\Release</OutputPath>
    <ErrorReport>prompt</ErrorReport>
    <WarningLevel>4</WarningLevel>
    <ConsolePause>false</ConsolePause>
    <UseVSHostingProcess>false</UseVSHostingProcess>
  </PropertyGroup>
  <ItemGroup>
    <Reference Include="System" />
    <Reference Include="Assembly-CSharp">
      <HintPath>..\..\..\..\RimWorldLinux_Data\Managed\Assembly-CSharp.dll</HintPath>
      <Private>True</Private>
    </Reference>
    <Reference Include="UnityEngine">
      <HintPath>..\..\..\..\RimWorldLinux_Data\Managed\UnityEngine.dll</HintPath>
    </Reference>
    <Reference Include="Community Core Library">
      <HintPath>..\..\..\Community Core Library\Assemblies\Community Core Library.dll</HintPath>
    </Reference>
  </ItemGroup>
  <ItemGroup>
    <Compile Include="Properties\AssemblyInfo.cs" />
    <Compile Include="DefInject.cs" />
  </ItemGroup>
  <ItemGroup>
    <BootstrapperPackage Include="Microsoft.Net.Client.3.5">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1 Client Profile</ProductName>
      <Install>false</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Net.Framework.3.5.SP1">
      <Visible>False</Visible>
      <ProductName>.NET Framework 3.5 SP1</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
    <BootstrapperPackage Include="Microsoft.Windows.Installer.3.1">
      <Visible>False</Visible>
      <ProductName>Windows Installer 3.1</ProductName>
      <Install>true</Install>
    </BootstrapperPackage>
  </ItemGroup>
  <Import Project="$(MSBuildBinPath)\Microsoft.CSharp.targets" />
</Project>


Another wild guess... it could be the CSharp_Assembly.dll shipped for Linux.

notfood

Found the issue!

Having the output folder being the Assemblies directory copies CSharp_Assembly.dll as well... which causes this issue only for development enviroment. The resulting dll is safe.

1000101

Turn "local copy" off for your reference dlls.
(2*b)||!(2*b) - That is the question.
There are 10 kinds of people in this world - those that understand binary and those that don't.

Powered By