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

Help / Re: A tutorial on ability making?
September 11, 2021, 07:16:31 AM
you should decompile game and look on your own.

ever with tutorial you won't be able to code anything without understanding of how game works and what fields objects have.
perform same actions for keyword "PM_Chaothrumbo"
search over mod's folder (both local and steam) (inside files, not just file names)
remove hosting mod
you should read unity manual first

focus on

hardcoded size for skills is 258f, 355f, you may need to read harmony transpiler manual also.
Help / Re: How can I get the pawn working at a "building"
September 06, 2021, 04:57:46 AM
it will be helpful (for other people) if you post entire code or leave workshop\git hub link to your mod.

also you may want to check syntax sugar behind your lambda, because real code is very different compared to what you see in IDE.
(any decompiler in IL mode will work)
General Discussion / Re: Raider meme sucks, suggestion(s)
September 03, 2021, 08:37:13 AM
number of technologies?
and what is that number?
try without mods, it's obvious that you have mod that interfere with pawn\animal AI and cause issues, in vanilla farm animals will follow caravan on they own ever without leash (if they happen to "break" leash by falling due to exhaustion or other reason)
Help / Re: Increasing texture scale for wounds?
September 03, 2021, 02:40:21 AM
what core folders or XMLs you checked so far?
did you used search with keywords like "wound" over "data" folder?
(you are expected to search inside files, not just file names, you may need tool like notepad++ for this)
Help / Re: How can I get the pawn working at a "building"
September 03, 2021, 02:37:47 AM
you should study logic behind jobs, start from "JobDriver_Research" and follow around.

most effective way will be "disabling and enabling" student desks based on state of teacher desk (that is always enabled)

your current code will trigger as soon as pawn took job, ever if he is on other part of map and not actually doing job (and will take few hours of walking to reach it)
General Discussion / Re: Raider meme sucks, suggestion(s)
September 03, 2021, 02:19:44 AM
before rolling your eyes really hard, you should run the game and check how exactly memes are implemented, you can have raiding precept without raiding meme.
(and memes do nothing on they own)

you should research subject a little bit before arguing with people.

General Discussion / Re: Raider meme sucks, suggestion(s)
September 02, 2021, 07:15:29 AM
QuoteBiomes aren't a playstyle.
Quoteserious reply

let me guess, as long as my reply does not fit your personal opinion it's not considered "serious" right?

lot's of people do not understand "design" behind Rimworld, for such people workshop and mods exists.

General Discussion / Re: Raider meme sucks, suggestion(s)
September 02, 2021, 05:29:38 AM
QuoteI'm afraid I don't subscribe to that line of excuses.
this is exactly what developer said.

just like nasty biomes like ice sheet that provide no rewards for increased difficulty.
General Discussion / Re: Beggars quest
September 01, 2021, 09:10:51 AM
Quotebeggars can send a raid to get what they need

they are just regular beggars, not some "beggars guild" from manga\anime
memes are not designed to be "balanced" and some precepts are self imposed challenge.
Help / Re: Gizmo error with Shield Belt code
August 30, 2021, 04:25:46 PM
code you see is result of syntax sugar "compilation" produced by "yield return"

implementation of yield return is "IteratorStateMachine" where hidden compiler generated class holds current state and actual output is provided by "movenext" method.

decompilation provided by dnspy looks this way:

    // Token: 0x060068B6 RID: 26806 RVA: 0x0023930D File Offset: 0x0023750D
public override global::System.Collections.Generic.IEnumerable<global::Verse.Gizmo> GetWornGizmos()
foreach (global::Verse.Gizmo gizmo in base.GetWornGizmos())
yield return gizmo;
global::System.Collections.Generic.IEnumerator<global::Verse.Gizmo> enumerator = null;
if (global::Verse.Find.Selector.SingleSelectedThing == base.Wearer)
yield return new global::RimWorld.Gizmo_EnergyShieldStatus
shield = this
yield break;
yield break;

to get better understanding of yield return and syntax sugar in general, you can compile simple method, like multiple yield returns, use strings for easy tracking, compile it and then decompile.

you will see how it actually looks like.

it's possible to implement exactly same logic without using yield and ever without using iterators, native implementation of everything is single dimension array.