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
Level Editor Help AMFP phone box entity
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#1
AMFP phone box entity

hello everyone! i need the phone_box entity from AMFP for my full conversion mod, to make phone calls like in the original Machine For Pigs game, but i'm getting trouble with making it work in the editor and in-game. Some entities in AMFP have their models stored elsewhere in static objects (for example bulkhead_door, the new barrel, etc.), i have found out that already, still it looks like the texture for the phone box is missing, i didn't find it in the entities and the static_objects folder. the books on the phone's shelf appear, but the rest of the model does not. Anyone knows where can i get the textures for the whole phone_box entity?
(This post was last modified: 06-30-2014, 01:10 PM by KiraImmortal.)
06-30-2014, 01:10 PM
Find
DnALANGE Offline
Banned

Posts: 1,549
Threads: 73
Joined: Jan 2012
#2
RE: AMFP phone box entity

The models are in Machine for Pigs.
Right mouse click on the .ent and open it with Notepad** for example..
Then check what textures the entitie is using and get all of them. ALSO be aware some textures use other dds or jpg or whatsoever.
06-30-2014, 01:14 PM
Find
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#3
RE: AMFP phone box entity

yeah, but the problem is that i've failed in locating the necessary textures, i just can't find them :/
06-30-2014, 07:13 PM
Find
Daemian Offline
Posting Freak

Posts: 1,129
Threads: 42
Joined: Dec 2012
Reputation: 49
#4
RE: AMFP phone box entity

Yep, what sailor dnAlange means is you gotta find inside each file the reference to another, and copy all those files to your mod.

Example, chain of files:
phone.ent
             phone.dae
                           phone.mat
                                          phone.dds
                                          phone_nrm.dds
                                          phone_spec.dds
                                          phone_height.tga


And these are the lines you should look for inside each file in the chain:

Quote:phone.ent content
...
<Mesh Filename="entities/gameplay/phone/phone.dae">
...

Quote:phone.dae content
...
<library_images>
<image id="file1-image" name="file1">
<init_from>file://amnesia/static_objects/secret/mystuff/bla bla bla path/phone/phone.dds</init_from>
</image>
</library_images>
...

Note: Amnesia ignores extension in the .dae entry (.dds in this case) and looks for the name+mat (phone.mat)

Quote:phone.mat content
...
<TextureUnits>
<Diffuse AnimFrameTime="" AnimMode="" File="phone.dds" Mipmaps="true" Type="2D" Wrap="Repeat" />
<NMap AnimFrameTime="" AnimMode="" File="phone_nrm.dds" Mipmaps="true" Type="2D" Wrap="Repeat" />
<Specular AnimFrameTime="" AnimMode="" File="phone_spec.dds" Mipmaps="true" Type="2D" Wrap="Repeat" />
<Height AnimFrameTime="" AnimMode="" File="phone_height.tga" Mipmaps="true" Type="2D" Wrap="Repeat" />
</TextureUnits>
...


So, you need all the files in the chain for your phone entity to work properly.
It doesn't matter where each file is located as long as its parent location is mentioned in resources.cfg

Remember the editors use resources.cfg from /amnesia or /amnesia/redist
and your mod may use another ( /mymod/resources.cfg ) to run the game
So some stuff may be visible in-game but not in the editor.

06-30-2014, 08:40 PM
Find
KiraImmortal Offline
Member

Posts: 138
Threads: 32
Joined: Nov 2013
Reputation: 3
#5
RE: AMFP phone box entity

i understand Smile the textures for the phone_box entity are kinda scattered around the folders, also i'm sure i have to change the entity type because my mod will not use the 1.3 patch of the game, only the Justine expansion, so the entity type "phonebox" won't work i suppose. thanks for helping me for both of you ^^
07-02-2014, 11:41 AM
Find
Darkfire Offline
Senior Member

Posts: 371
Threads: 22
Joined: May 2014
Reputation: 15
#6
RE: AMFP phone box entity

Has anyone got this to work ? I couldn't find any of the files mentioned in phone_box.dae, .ent (speaking of which, there's no .mat for the phone box either).

If someone has a working version of this, or at least an idea where the files may be, please send help D:

10-14-2016, 02:14 PM
Find
Mudbill Offline
Muderator

Posts: 3,881
Threads: 59
Joined: Apr 2013
Reputation: 179
#7
RE: AMFP phone box entity

Posting just in case people stumble upon this thread. I have created a compact and self-contained download for this entity. It works mostly like in AMFP and should be compatible with Amnesia 1.2 as well.

Here's the thread:
https://www.frictionalgames.com/forum/thread-52892.html

10-19-2016, 11:51 AM
Find




Users browsing this thread: 2 Guest(s)