PDA

View Full Version : MSIL question


ShideKnight
11th Sep 2011, 06:40 PM
So I have been fairly successful modding MSIL so far. But now I am trying to mod the Body Sculptor to add some options for sliders that were added in the expansion packs and there is a line of code which throws me:

IL_0001: call instance class [Sims3GameplaySystems]Sims3.Gameplay.Interactions.InteractionDefinition [Sims3GameplaySystems]Sims3.Gameplay.Interactions.InteractionInstance::get_InteractionDefinition()

Whats going on here? It looks to me like the code is calling a constructor for the first class and a method in the second class... but I don't know. Is the first class an argument for the method or something? Is it the other way around? Please help. Pointers appreciated.

Also, is there any place where the structure of the code is documented? I've looked but I haven't found anything.

Buzzler
11th Sep 2011, 07:54 PM
All calls for a property seem to look like that. Specifically, that call accesses the getter method of the Sims3.Gameplay.Interactions.InteractionDefinition property.

Also, is there any place where the structure of the code is documented? I've looked but I haven't found anything.The TS3 source code is almost definitely documented, but we don't have it of course. ;)

If you mean IL, try searching for common intermediate language instead of MSIL. You'll find List_of_CIL_instructions (http://en.wikipedia.org/wiki/List_of_CIL_instructions) for example.

twallan
11th Sep 2011, 07:55 PM
IL_0001: call instance class [Sims3GameplaySystems]Sims3.Gameplay.Interactions.InteractionDefinition [Sims3GameplaySystems]Sims3.Gameplay.Interactions.InteractionInstance::get_InteractionDefinition()


<the line number>
IL_0001:

<The IL command>
call

<The return parameter type>
class [Sims3GameplaySystems]Sims3.Gameplay.Interactions.InteractionDefinition

<The function>
[Sims3GameplaySystems]Sims3.Gameplay.Interactions.InteractionInstance::get_InteractionDefinition()

:)

(Buzzler ninja'd)

ShideKnight
11th Sep 2011, 09:14 PM
Geeze, one of those "duh should of had a V8" moments. OF COURSE, other calls list int32, bool, etc. :faceslap:

Thanks much you two.