PDA

View Full Version : Keys no longer displaying in OBJK


gnowor
16th Dec 2009, 10:40 PM
So I just wrote what I think should be a script to add an interaction to an object. Problem is that it's asking me to add a key but S3PE isn't displaying Keys in the OBJK of my cloned object (see attached screenshot). Is this possibly a change since World Adventures released?

(This is a sample taken from the ToyStuffedAnimalTeddyBear object after I cloned it - this is actually part of the core game, and also the sample object that was used in the tutorial I was following.)

Inge Jones
16th Dec 2009, 11:45 PM
Open the ComponentData ellipsis.

Digitalchaos
19th Dec 2009, 2:15 AM
To make it easy do the following (with the latest version of S3PE):


Highlight the OBJK Resource
Next to "External" is button called "Edit" [this towards the very-bottom of the application]- click it (if it is not greyed-out [make sure the OBJK resource is selected]).
You will see the "OBJK Resource Editor" dialog
Make sure the tickbox next to "Script" is checked.
In the textbox across from that - Enter the full namespace to your "public class" for this object.
For the following example you would enter: "example.TestingObjects.test"
namespace example.TestingObjects
{
public class test
{
}
}

Then Click..."Save" and test in-game.
If the interaction does not show up in-game, then, please attach your "Script's source code" to this thread. I can look at it and tell you if it is an issue with the source code/interaction.


P.S. Also, if you haven't already done it (skip if you have), add an:
Resource: S3SA 0x073FAA07
Group: 0x00000000
Instance: FNV64 Hash of the dll name (i.e. use test.dll, if that's the name) (Tools -> FNV Hash... -or- Ctrl+F)

Click the S3SA resource, and then "Grid" (same place as "Edit" for the OBJK, just more to the left of it)

Then in the "Import/Export..." drop-down, click the down arrow, and then "Import..." -- Navigate to & Select your Dll.

"Commit" and then "Save"

gnowor
20th Dec 2009, 11:48 PM
OBJK resource editor! That's pure genius.

Two semesters of C++ several years ago and all my friends think that I'm a genius. Then I have to point to everyone on boards like this that bails me out time and time again. Thanks so much!