Menu

Show posts

This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.

Show posts Menu

Messages - Silerra

#1
Help / Re: Surgery mod need help
October 24, 2016, 04:09:47 PM
Why do you want to program in C++? The game is written in C# (C-Sharp) and this is not the same programming language as C++.
Read this thread to have a base to implement your own C# extension: https://ludeon.com/forums/index.php?topic=3408.0

And here the link to C#-Reference: https://msdn.microsoft.com/en-us/library/618ayhy6.aspx

Well, C# is easier to learn than C++. ;-)
#2
Help / Re: How can i change the textures ?
October 24, 2016, 01:06:55 PM
Quote from: nccvoyager on October 24, 2016, 02:21:42 AM
...
textures/ui/icons/passionminorgray
See attachment for a simple direct replacement mod example.
(It may not work as intended; don't have access to a computer I can test it with.)

Oh, why suggest to me what I tried in August as a second? :-P

Quote from: Silerra on August 23, 2016, 01:15:13 PM
What's meant by "texPath"?
Where the file is stored? Here the full path "F:\Spiele\RimWorld1249Win\Mods\Silerra\Textures\UI\Icons\PassionMajorGray.png"

By the way, I have found that my changes in "Textures\UI\Designators" are accepted.

My first solution I had there already. However, this was to edit the "resources.assets" file for each update. Not pretty and especially too elaborate.

Currently I have a second solution. Here an existing class is simply integrated as a mod. Also not so pretty. But this way was easier to make this mod. (Look in my following zip.)
;-)

[attachment deleted by admin due to age]
#3
Help / Re: How can i change the textures ?
October 22, 2016, 11:03:20 PM
I couldn't find an entry about "PassionMajorGray" in autodocumentation. But nevertheless, I already know the matching texture path.
Well, this doesn't work via XML file like this:

<?xml version="1.0" encoding="utf-8" ?>
<ThingDefs>
  <ThingDef Name="" ParentName="">
    <graphicData>
      <texPath>UI/Icons/PassionMajorGray</texPath>
      <graphicClass>Graphic_Single</graphicClass>
    </graphicData>
  </ThingDef>
</ThingDefs>


I think that not all images can be replaced on this way. Because some images are loaded before mod indexing.
#4
I thing you only need to set the "target framework" on .Net Framework 3.5.
You can find this option in your project properties.

On my computer is following frameworks installed:
Microsoft .NET Framework 4.5 SDK
Microsoft .NET Framework 4.5 Multi-Targeting Pack
And this works for me. But I'm beginner in Rimworld-Modding, too. So I'm not sure if the error could be somewhere else.
#5
Help / Re: How can i change the textures ?
August 23, 2016, 07:26:27 PM
Well, I just want only to replace the vanilla textures. But probably I don't know all current paths. And I don't know how to integrate textures via XML. So far, I not yet discover how to this XML files works.
#6
Help / Re: How can i change the textures ?
August 23, 2016, 01:15:13 PM
What's meant by "texPath"?
Where the file is stored? Here the full path "F:\Spiele\RimWorld1249Win\Mods\Silerra\Textures\UI\Icons\PassionMajorGray.png"

By the way, I have found that my changes in "Textures\UI\Designators" are accepted.
#7
Help / Re: How can i change the textures ?
August 22, 2016, 10:22:39 PM
I also tried to change the texture. But it doesn't work for me somehow.
These things have already done:
- A new mod folder named as MyMod
- In this folder contains a folder "About" with file About.xml
- And a another folder "Textures"
I tried to change the picture PassionMajorGray and PassionMinorGray. I placed the PNGs in /Textures/UI/Icons/ with appropriate filenames.

What I doing wrong?