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

#1
Just in time for the best Command & Conquer in the series: Rivals!
#2


Aaahh!!! Real Aliens™ is a RimWorld mod about Real Aliens™.

Gaben link: https://steamcommunity.com/sharedfiles/filedetails/?id=1370668693
Non-Gaben link: Later
#3
Help / Re: Need help adding social fight variation
February 08, 2018, 03:54:53 AM
You can get (or set) any private field using Reflection.

Something along the lines of
typeof(ClassName).GetField("pawnStringName", BindingFlags.Instance | BindingFlags.NonPublic).GetValue(classInstance)
as Pawn
#4
Ideas / [Modding] Make VerbTick virtual
February 07, 2018, 10:42:14 PM
Make Verse.Verb.VerbTick() virtual.

This will allow modders to have greater flexibility by having a Tick-based method for custom verbs.
#5
Help / Re: Need help updating this mod that isn't mine
February 07, 2018, 10:20:27 PM
Change Color to color.
#6
Help / Re: C# modding help with Rimworld structure
January 28, 2018, 08:50:44 AM
Disclaimer: I'm not familiar with the game's crafting system outside of the basics so I might be wrong in some areas here. I'm only reading through the game's source.

Quote from: crusader2010 on January 24, 2018, 12:37:54 PM
  • In the DefDatabase class there is also a method called "AddAllInMods()" - do I need to call this method before checking for recipes, or is it called/cached when the game starts (or similar) ? I want to get all the recipes, not just the vanilla ones.
All Defs from all mods are loading on game start. This is one of the reasons why the game restarts whenever you change your mod list.

Quote from: crusader2010 on January 24, 2018, 12:37:54 PM
  • What does the property "AvailableNow" actually mean for instances of RecipeDef? Whether or not the recipe is suspended in the production table? If it's available to be built according to the technologies researched? Something else?
Prerequisites like research are satisfied and item is ready for crafting.

Quote from: crusader2010 on January 24, 2018, 12:37:54 PM
3. How do I get from a recipe to the item itself (even if not actually built), then to the item's stats (e.g. short accuracy, damage, burst shot count, blunt protection, social chat impact, etc ?

recipeDef.products[0].thingDef
Will retrieve the ThingDef of that recipe, assuming the recipe only has one product output. From there, you can retrieve whatever stats you want.

Quote from: crusader2010 on January 24, 2018, 12:37:54 PM
2. How do I get a list of all the weapon&apparel recipes that are available to build at a certain point in the game (i.e. when the player clicks on the menu)?

DefDatabase<RecipeDef>.AllDefs.Where(recipeDef => recipeDef.AvailableNow && recipeDef.products.Count() == 1 && (recipeDef.products[0].thingDef.IsWeapon || recipeDef.products[0].thingDef.IsApparel)
There may be an easier built-in function somewhere in the code. Again, only works on one-output recipes.

Quote from: crusader2010 on January 24, 2018, 12:37:54 PM
4. Is it possible to limit the recipes found above only to those that can be built (i.e. there are production tables on the map)?
Recipes are global and not map-based. Maybe patch in AvailableNow to suit whatever your criteria?
#7
Quote from: Walking Problem on September 08, 2017, 08:05:53 AMThats the reason also why Pokemon mod is on very low priority...

Or you should just drop it altogether. Nintendo is notorious for protecting its IP and sending cease-and-desists to fan projects.

Best case scenario if you continue is that the mod will be unpopular enough to fly under the radar.
#8
Ideas / [Modding] Allow custom FleshType wounds
September 07, 2017, 01:27:28 AM
Pawn wounds are currently hardcoded for the three vanilla flesh types. Using custom flesh types will result in an error and will fall back to normal flesh type (red blood graphic).

Suggestion is to allow modders to add new flesh types with customizable color and/or graphics via XML.

Or at the very least, remove the error and disable wound rendering if using a custom flesh type.

#9
GenHostility.HostileTo()
#10
Unfinished / [A17][WIP] Aaahh!!! Real Aliens
May 10, 2017, 06:26:18 AM
-