Hi there! You are currently browsing as a guest. Why not create an account? Then you get less ads, can thank creators, post feedback, keep a list of your favourites, and more!
Quick Reply
Search this Thread
Test Subject
Original Poster
#1 Old 23rd Feb 2015 at 10:37 PM
Default Help with Createobject?
for the createobject function the first expected argument is an instance what should this "instance" be? is it the instance of a specific resource in the package or something else? any help on this subject would be greatly appreciated.
Advertisement
Inventor
#2 Old 24th Feb 2015 at 8:01 AM
Test Subject
Original Poster
#3 Old 24th Feb 2015 at 11:08 AM
Default Arsil
Could you have a look at my package file and see if my NGMP is correct? please.
Attached files:
File Type: zip  TestBlock.zip (38.5 KB, 9 downloads) - View custom content
Inventor
#4 Old 24th Feb 2015 at 1:33 PM Last edited by Arsil : 24th Feb 2015 at 1:55 PM.
It is correct, but there's something wrong with the object itself.
In the catalog preview it displays no mesh/textures and you can't place it.

EDIT

Oh, I think I know what happened. You changed the name of the OBJD and OBJK
and pressed FNV64, didn't you?

Now the OBJD is pointing to a non existing OBJK's IID.

You can easily fix it this way:
- right click on the OBJK resource and select "Copy RK",
- select the OBJD and click "Grid"
- select the OBJKIndex and click on the arrow pointing north-east.
- select the OBJK and then click on "Paste RK".

The interaction doesn't seem to be working though.
EDIT2: maybe because that object can't be put into an inventory
(you have to add an inventoryItemComponent or something like that in OnStartup,).

Code:
base.AddComponent<ItemComponent>(new object[]
{
  ItemComponent.SimInventoryItem
});
Test Subject
Original Poster
#5 Old 25th Feb 2015 at 10:16 PM
got it working thanks for the advice
Inventor
#6 Old 28th Feb 2015 at 12:51 PM
Just checking: how did you get the IID of the NGMP? It's important that it is unique
to not override an existing one (chances are slim, but better be careful anyway).

Also, TestObject is all right as hashing key as long as you are experimenting,
but it's better to get used to adopt a way to generate unique names/keys/hashing
as a rule of thumb (using your nickname as part of the string for example).

Glad you got it working. Have fun ^^
Test Subject
Original Poster
#7 Old 28th Feb 2015 at 1:15 PM
i make test objects they are for my use only just to test things on and will never be released to anyone
Back to top