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 - CrazyMalk

#31
Help / Re: Blue numbers in FoodTypeFlags
February 03, 2018, 01:49:08 PM
I created a class in my project, and added:
using System;
using RimWorld;
using Verse;

namespace KingkillerCreatures
{
    [Flags]
    public enum FoodTypeFlags
    {
        StoneChunks = 4096,
        DendrovoreAnimalGastroliths = 6801
    }
}


Then, I created a copy of the vanilla Various_Stone.xml and deleted everything, except for the "ChunkBase". There, i added to the file:

<ingestible>
      <foodType>StoneChunks</foodType>
</ingestible>

I tested the game, and the debug log said that "DendrovoreAnimalGastroliths" was not valid for "FoodType", and listed the vanilla 'tags' (DendrovoreAnimal, etc). So, i tried looking into the code with ILSpy again. Under FoodTypeFlags, i saw each tag divided into separated classes.

I copied one of them, so that i could paste it into one of my own classes on my own project, but Visual Studio wont accept classes without the normal structure of a C# project. What can i do?

Ps.: Sorry for the giant image, i don't know how to resize it :/
#32
Help / Re: Blue numbers in FoodTypeFlags
February 02, 2018, 02:15:01 PM
Ok, so... The names used (Tree; Meal; Processed; Seed; Meat; Etc.) are from the Core Defs, or are they "generated" in the codes?
#33
Help / Re: Blue numbers in FoodTypeFlags
February 02, 2018, 10:56:43 AM
Oh, now i get it! I did not think that way. Well, there's no way of knowing if it works without trying, so here i go! Thanks for the explanation!
#34
Help / Re: Blue numbers in FoodTypeFlags
February 02, 2018, 07:39:12 AM
Wow... Smart. But, is it possible to add another kind of food? Because, if you do, wouldn't it mess up the calculations?

Edit: With "another kind of food", I mean things that are not commonly used as food, like stone chunks or ores, for example.
#35
Outdated / Re: [B18]Range Animal Framework
February 01, 2018, 12:48:05 PM
Ha! Now it makes sense! I always tried to use the mechanoid/custom gun technique!
#36
Outdated / Re: [B18]Range Animal Framework
February 01, 2018, 12:39:01 PM
Oh man! Why didn't I discover this before! Amazing!
#37
Help / Blue numbers in FoodTypeFlags
February 01, 2018, 12:13:39 PM
Hello! I'm a big newbie when the subject is programming, and while exploring the game with ILSpy, i decided to try learning how DendrovoreAnimal works, and it led me to FoodTypeFlags. But i cannot understand what the numbers in front of each type of food means (Eg.: Tree = 128, or  DendrovoreAnimal = 2705,)

This can be something really basic, but as I said, I am a big newbie to this subject ._. Can anyone help me?
#38
Help / Re: "'X' already has short hash" Error
December 17, 2017, 12:48:01 PM
Thanks, i'll be more watchful next time!
#39
Help / Re: "'X' already has short hash" Error
December 16, 2017, 04:33:51 PM
Thanks for the help everyone! I am really ashamed of myself right now... While re-checking everything, i noticed that something went wrong during configuration, and i forgot to delete the standard assemblies from the Assemblies folder... Sorry for the trouble, everyone!
#40
Help / "'X' already has short hash" Error
November 29, 2017, 04:01:05 PM
Hi! I'm trying to add musical instruments to the game, but when i launch the game, i get a lot of errors. When creating a game, the log list updates again. Can someone help a lost fellow modder? Here is the log:
https://gist.github.com/HugsLibRecordKeeper/3452d0543f603cfca5c9f82d42a2232f
#41
Tip: remove bioraptors legs and put a stump in their place.
#42
Unfinished / Re: [A18] (WIP) Rimworld - Fear The Darkness
November 08, 2017, 06:06:49 PM
Nice! I can't see the last image, for some reason. Trees don't look very "RimWorldy" right now, but maybe under the dark light it will not be a issue :D
#43
Help / Re: Editing "ITab_Pawn_Character" interface
November 05, 2017, 06:35:48 PM
I think this is what i need... Now i only need to figure how to stick a scrollbar in there with my poor C# coding skills ._.
#44
Help / Re: Editing "ITab_Pawn_Character" interface
November 05, 2017, 01:23:40 PM


When adding a new skill, as you can note, it does not fit in the ui, and gets cut at the bottom. I would like to edit that interface and add a scrollbar there, so that you could scroll down and see the new skills, but i can't find the interface itself.
#45
Help / Editing "ITab_Pawn_Character" interface
November 04, 2017, 06:24:59 PM
Hello, I'm trying to edit the interface from the pawn's Character tab and add a Scroll Bar into it, to make you able to see new skills added by mods. I thought about using a scrollbar from another mod like EDB Prepare Carefully, or even from vanilla RimWorld... But i can't even find, with IlSpy, the interface itself to edit. Can someone with more experience (that I, for sure, don't have) show me the path to find the skills interface in Character Tab and Character Creation, if possible?