Frictional Games Forum (read-only)
[LVL ED] AMFP phone box entity - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: [LVL ED] AMFP phone box entity (/thread-25591.html)



AMFP phone box entity - KiraImmortal - 06-30-2014

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?


RE: AMFP phone box entity - DnALANGE - 06-30-2014

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.


RE: AMFP phone box entity - KiraImmortal - 06-30-2014

yeah, but the problem is that i've failed in locating the necessary textures, i just can't find them :/


RE: AMFP phone box entity - Daemian - 06-30-2014

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:
Code:
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.


RE: AMFP phone box entity - KiraImmortal - 07-02-2014

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 ^^


RE: AMFP phone box entity - Darkfire - 10-14-2016

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:


RE: AMFP phone box entity - Mudbill - 10-19-2016

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