Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee


Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Custom entity as Item?
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#1
Custom entity as Item?

So I'm creating a full conversion mod soon where you're a police officer and I am going to create a radio entity. (Like a walkie talkie) How would I make that an item that you can pick up, and it shows a picture of it in your inventory?

Custom Stories

-BrastaSauce

01-04-2012, 12:59 PM
Website Find
Acies Offline
Posting Freak

Posts: 1,643
Threads: 60
Joined: Feb 2011
Reputation: 73
#2
RE: Custom entity as Item?

Once you have created the model in your modeling program export it as a .dae file. Thereafter you create a folder for it, containing its textures. When loading the "yourRadio.dae" in the ModelEditor.exe you need to do some things:
1. Create a body for it and attach it to the mesh
2. Go to the "User defined Variables window"; Select Item --> Puzzle
3. In the "item --> Puzzle" menu assign it a "SubItemTypeName"
4. ----- | | ----------------- assign it a picture which is 60x60 px
5. Using the assigned SubItemTypeName you can add a name and description to your item in the ".lang" file.


Good luck.

[Image: mZiYnxe.png]


01-04-2012, 04:32 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#3
RE: Custom entity as Item?

If it helps, Penumbra: Overture has a hand-held radio entity if you would like to just import that. Save you some time.
01-04-2012, 09:42 PM
Find
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#4
RE: Custom entity as Item?

(01-04-2012, 09:42 PM)Statyk Wrote: If it helps, Penumbra: Overture has a hand-held radio entity if you would like to just import that. Save you some time.
I found it. Would i just copy and paste the folder into entities or do i have to add some other things?

Custom Stories

-BrastaSauce

01-04-2012, 10:32 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#5
RE: Custom entity as Item?

(01-04-2012, 10:32 PM)FreshKorruption Wrote: I found it. Would i just copy and paste the folder into entities or do i have to add some other things?
You have to make materials and bodies, etc. This should help:

http://www.frictionalgames.com/forum/thread-5126.html
01-04-2012, 10:33 PM
Find
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#6
RE: Custom entity as Item?

(01-04-2012, 10:33 PM)Statyk Wrote:
(01-04-2012, 10:32 PM)FreshKorruption Wrote: I found it. Would i just copy and paste the folder into entities or do i have to add some other things?
You have to make materials and bodies, etc. This should help:

http://www.frictionalgames.com/forum/thread-5126.html
My only issue is that there isn't a .ent or .dae file for it. I even did Verify integrity cache and nothing appeared.

Custom Stories

-BrastaSauce

01-04-2012, 10:56 PM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#7
RE: Custom entity as Item?

okay, I'll try to make this as simple as I can O.e

1) Make a folder in your "entities" folder and title it: "Fresh_Radio"

2) Find the radio files in Penumbra: Overture. Copy them all and paste them into "Fresh_Radio"

3) Open the MaterialEditor and find a DIFFERENT .mat. Like a castle wall...

4) Replace each type "diffuse", "bump/nrm", and "specular" with the ones in the "Fresh_Radio" and overwrite the radio.mat in "Fresh_Radio".

5) Open ModelEditor and pick "File > Import Mesh" and find the radio's.dae. It will be invisible here. so highlight the entire grid with a "selection box" (Left mouse button drag from corner to corner. The invisible mesh will show up.

6) In the bottom right, it will say "Material" and there will be a "..." and "+" button. Pick "..." and find the radio's.mat.

7) the texture will be visible. Set "User Defined Variables" and overwrite the radio's .ent file.

01-04-2012, 11:52 PM
Find
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#8
RE: Custom entity as Item?

My issue is that there is no .dae file. I'm not sure if you extract it from Penumbra (well actually i cant because there is no .dae file for the radio. neither a .ent) or it gets created because that doesn't seem to happen. I understand the material editor part.

Custom Stories

-BrastaSauce

01-05-2012, 12:06 AM
Website Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#9
RE: Custom entity as Item?

I see what you mean.... I'll look around for it.
Found out the maps for Penumbra are .dae files. I'll open up the mine in Maya where it is located, crop it out, apply the textures, and hand it over to you.

Sound good?
AFTER I figure out how to import it >> It's not showing up.
(This post was last modified: 01-05-2012, 12:57 AM by Statyk.)
01-05-2012, 12:53 AM
Find
FreshKorruption Offline
Member

Posts: 94
Threads: 27
Joined: Oct 2011
Reputation: 1
#10
RE: Custom entity as Item?

(01-05-2012, 12:53 AM)Statyk Wrote: I see what you mean.... I'll look around for it.
Found out the maps for Penumbra are .dae files. I'll open up the mine in Maya where it is located, crop it out, apply the textures, and hand it over to you.

Sound good?
AFTER I figure out how to import it >> It's not showing up.
Thanks man, you are being a huge help!

Custom Stories

-BrastaSauce

01-05-2012, 01:17 AM
Website Find




Users browsing this thread: 1 Guest(s)