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


Thread Rating:
  • 2 Vote(s) - 5 Average
  • 1
  • 2
  • 3
  • 4
  • 5
How to: Apply a New "Lantern"
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#1
How to: Apply a New "Lantern"

For starters, this works with
~~ FULL CONVERSIONS ONLY ~~

This tutorial is here to help those who do not know how to apply a new custom lantern to their Full Conversion (FC) and would like to know. This tutorial assumes that you already have a FC set up with the config files and directories attached in the "FC_resources.cfg". Now... Let's get started shall we?


Step 1: Basics/directories

First thing you want to do is learn where to put everything. In this tutorial, I will be using my Oh Silent Night FC to outline directories....

Inside the FC_game.cfg is a section labeled "Player_lantern"... This is where you can set sway physics (swinging back and forth. You see this by looking up and down in-game while having the lantern out) on or off, change sounds, oil drain speed, etc. Play around with it!

Inside what is labeled as the "lantern.ho" in the "models" folder is what holds the necessary info to run the new lantern (or main one)... This will be needed in the "FC_models" folder later.

Now we need to set up an entity to pick up to GET the new lantern. Find the object you are going to use and open it in the Model Editor. In this tutorial, I will be using a black lantern I made/retextured. Go into the Model Editor and import/open the new lightsource, then go up to "User Defined Variables" and set Type to: 'Item' and set SubType to: 'Lantern'. Scroll all the way down to what is highlighted in the picture below and find an image for the inventory and if needed, a custom name for the new lantern. Naming it works the same as a key in the english.lang, like "ItemName_SUBNAME" and "ItemDesc_SUBNAME". An image of any sorts can be made, just keep it 60x60 pixels or lower. Here, I took the original lantern icon and colored it dark grey, and saved it in the FC folder (it can be saved anywhere inside a folder that is listed in the "FC_resources.cfg". The game will find the image on its own).

[Image: tut1_by_statyk94-d4lff1b.jpg]


You need to make bodies for the mesh as well so it can be affected by gravity, be solid, sounds, physics, etc. Make a new folder in the root "entities" folder labeled whatever you would like. I will name mine "Black Lantern". Then save it in that folder as "FC_newlantern"... But keep the Model Editor open! We will now be making it as an object for the screen (what the hand holds).



Step 2: Setting up the new lantern

First, delete the bodies. This prevents colliding and any other issues. No screen lantern models that I have seen use bodies, so let's not fix something that isn't broken, you know? Then go up to "User Defined Variables" and change the Type to: "HandObject".

Now we need to position the new lantern in place. The lantern.ho states that the point of origin (the 0 point of all axis of the model) attaches to the "attachpoint" of the hand model. The attachpoint is located by the cuticles, in the middle of the palm. I positioned mine where necessary, so you can get an idea of how it will be placed. Also notice how I added the glow, as this will be glowing in screen, or else it won't make sense. Add some pointlights, maybe a halo, and you're set!

[Image: tut2_by_statyk94-d4lfie6.jpg]

You should have a "FCNAME_models" folder in your full conversion. This is where your hands and hand_object (new lantern) will be.

Copy the "player" and "hand_objects" folders from the main redist "models" folder and paste them into your "FCNAME_models" folder. This is going to be our base. Now, go into "hand_objects > lantern" and delete everything in there BUT the "lantern.ho". Now go back to the model and save it in that folder as something NAMED DIFFERENTLY than the entity you pick up. Mine is "B_handheldlantern.ent"

Now open the lantern.ho in the FC_models and in the "Main" section, change "Model" to your directory. mine shows like this:

[Image: tut3_by_statyk94-d4lfmcj.jpg]


You may change around your settings however you would like. Save, add the item file in the map to pick up, and YOU'RE GOOD!





Final Shot:
[Image: tut4_by_statyk94-d4lfqd1.jpg]
(This post was last modified: 10-25-2012, 06:53 PM by Statyk.)
01-06-2012, 04:00 AM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#2
RE: How to: Apply a New "Lantern"

I followed the tutorial exactly and I am still getting a black box error that I had before. It might be the model I'm using, but I don't really feel like telling everybody what it is until I get further into my story.

Amnesia.exe caused an EXCEPTION_ACCESS_VIOLATION in module Amnesia.exe at 001B:004C83A0

Stack Trace

001B:004C83A0 Amnesia.exe


If you honestly need to know what model I'm using just tell me and I'll PM you it.



EDIT I went into a custom story, got the lantern and it crashed when I turned it on. Except, the numbers were different.

001B:0051AFE0

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
(This post was last modified: 01-06-2012, 11:32 PM by RawkBandMan.)
01-06-2012, 11:21 PM
Find
flamez3 Offline
Posting Freak

Posts: 1,281
Threads: 48
Joined: Apr 2011
Reputation: 57
#3
RE: How to: Apply a New "Lantern"

Nice and detailed tut. +1 for effort.

01-07-2012, 04:13 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#4
RE: How to: Apply a New "Lantern"

Can I rep you more if I rep you in posts?

HAHAH! I can!

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
01-07-2012, 06:36 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#5
RE: How to: Apply a New "Lantern"

Thanks a ton guys =] Hope it helps you out!
01-07-2012, 09:04 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#6
RE: How to: Apply a New "Lantern"

Also, could you finish up that lantern you used as an example? I think it looks pretty cool Tongue

I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
01-08-2012, 11:39 PM
Find
BlueFury Offline
Senior Member

Posts: 470
Threads: 30
Joined: May 2011
Reputation: 9
#7
RE: How to: Apply a New "Lantern"

Thanks B!

Sticks and stones may break our bones, but words will break our hearts. – Robert Fulghum
01-08-2012, 11:42 PM
Find
Statyk Offline
Schrödinger's Mod

Posts: 4,390
Threads: 72
Joined: Sep 2011
Reputation: 241
#8
RE: How to: Apply a New "Lantern"

(01-08-2012, 11:39 PM)XxRoCkBaNdMaNxX Wrote: Also, could you finish up that lantern you used as an example? I think it looks pretty cool Tongue
Added it to the bottom of the OP. =] I'm actually using it as a replacement for the original main one.
01-09-2012, 12:41 AM
Find
FlaW Offline
Junior Member

Posts: 48
Threads: 9
Joined: Nov 2011
Reputation: 0
#9
RE: How to: Apply a New "Lantern" (+ Black Lantern download)

how to change the position of the hands and fingers?
01-28-2012, 07:11 PM
Find
RawkBandMan Offline
Posting Freak

Posts: 1,146
Threads: 35
Joined: Nov 2010
Reputation: 5
#10
RE: How to: Apply a New "Lantern" (+ Black Lantern download)

(01-28-2012, 07:11 PM)FlaW Wrote: how to change the position of the hands and fingers?
I don't think you can unless you make a custom hand model and make animations for it. (Unless there is a way that I'm unaware of)



I've come to learn to not fear the living, nor the dead... But the monsters that hide in closets.
01-28-2012, 11:28 PM
Find




Users browsing this thread: 2 Guest(s)