Frictional Games Forum (read-only)

Full Version: Lantern --> FlashLight --> Resources error :/ FIXED!! NVM THIS THREAD
You're currently viewing a stripped down version of our content. View the full version with proper formatting.
hey i'v tryed to add flashlight instead but get some error


<Resources>
<Directory Path="/_temp" AddSubDirs="true" />
<Directory Path="/fonts" AddSubDirs="false" />
<Directory Path="/maps" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/models" AddSubDirs="true" />
<Directory Path="/gui" AddSubDirs="true" />
<Directory Path="/static_objects" AddSubDirs="true" />
<Directory Path="/sounds" AddSubDirs="true" />
<Directory Path="/main_menu" AddSubDirs="true" />
<Directory Path="/shaders" AddSubDirs="true" />
<Directory Path="/lights" AddSubDirs="true" />
<Directory Path="/billboards" AddSubDirs="true" />
<Directory Path="/entities" AddSubDirs="true" />
<Directory Path="/graphics" AddSubDirs="true" />
<Directory Path="/viewer" AddSubDirs="true" />
<Directory Path="/particles" AddSubDirs="true" />
<Directory Path="/test_mod/wn_models" AddSubDirs="true" />
<Directory Path="/music" AddSubDirs="true" />
<Directory Path="/flashbacks" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/misc" AddSubDirs="true" />
<Directory Path="/commentary" AddSubDirs="true" />
<Directory Path="/custom_stories" AddSubDirs="true" />
<Directory Path="/test_mod/wn_sounds" AddSubDirs="true" />
</Resources>

followed this tutorial : http://www.moddb.com/mods/white-night/tu...game-files


any clue why it dosnt work ???
Can you tell us the error? Or when it occurs?
(04-16-2012, 01:32 AM)Statyk Wrote: [ -> ]Can you tell us the error? Or when it occurs?
dont get error anymore , the lantern keeps pop up :/

here is the new resc


<Resources>
<Directory Path="/_temp" AddSubDirs="true" />
<Directory Path="/fonts" AddSubDirs="false" />
<Directory Path="/maps" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/test_mod/wn_models" AddSubDirs="true" />
<Directory Path="/gui" AddSubDirs="true" />
<Directory Path="/static_objects" AddSubDirs="true" />
<Directory Path="/sounds" AddSubDirs="true" />
<Directory Path="/test_mod/wn_sounds" AddSubDirs="true" />
<Directory Path="/main_menu" AddSubDirs="true" />
<Directory Path="/shaders" AddSubDirs="true" />
<Directory Path="/lights" AddSubDirs="true" />
<Directory Path="/billboards" AddSubDirs="true" />
<Directory Path="/entities" AddSubDirs="true" />
<Directory Path="/graphics" AddSubDirs="true" />
<Directory Path="/viewer" AddSubDirs="true" />
<Directory Path="/particles" AddSubDirs="true" />
<Directory Path="/models" AddSubDirs="true" />
<Directory Path="/music" AddSubDirs="true" />
<Directory Path="/flashbacks" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/misc" AddSubDirs="true" />
<Directory Path="/commentary" AddSubDirs="true" />
<Directory Path="/custom_stories" AddSubDirs="true" />
<Directory Path="/test_mod" AddSubDirs="true" />
</Resources>
okey i finally made the flashlight to work , but the sound from the old lantern is still there?! how i fix that ?!


<Resources>
<Directory Path="/_temp" AddSubDirs="true" />
<Directory Path="/fonts" AddSubDirs="false" />
<Directory Path="/maps" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/hoh_models" AddSubDirs="true" />
<Directory Path="/gui" AddSubDirs="true" />
<Directory Path="/static_objects" AddSubDirs="true" />
<Directory Path="/test_mod
oh_sound " AddSubDirs="true" />
<Directory Path="/sounds" AddSubDirs="true" />
<Directory Path="/main_menu" AddSubDirs="true" />
<Directory Path="/shaders" AddSubDirs="true" />
<Directory Path="/lights" AddSubDirs="true" />
<Directory Path="/billboards" AddSubDirs="true" />
<Directory Path="/entities" AddSubDirs="true" />
<Directory Path="/graphics" AddSubDirs="true" />
<Directory Path="/viewer" AddSubDirs="true" />
<Directory Path="/particles" AddSubDirs="true" />
<Directory Path="/hoh_models" AddSubDirs="true" />
<Directory Path="/music" AddSubDirs="true" />
<Directory Path="/flashbacks" AddSubDirs="true" />
<Directory Path="/textures" AddSubDirs="true" />
<Directory Path="/misc" AddSubDirs="true" />
<Directory Path="/commentary" AddSubDirs="true" />
<Directory Path="/custom_stories" AddSubDirs="true" />
<Directory Path="/test_mod" AddSubDirs="true" />
</Resources>


how do i fix the freaking sound?!
First download the flashlight sound mod, make a new folder in the test_mod/sounds/ directory named ui then make .snt files for those sounds (all in the same folder). Then you must change what sound will play in the game.cfg file. (So the final directory should look like this: test_mod/sounds/ui/sounds here)



If you have White Night installed, it makes the process a lot easier as the sounds are already there and you can just copy/paste into your sounds folder, and copy/paste the code in the game.cfg (just give credit where it`s due).



I`m in class right now, I could post the code when I get home.
(04-16-2012, 05:06 PM)MrIcabod123 Wrote: [ -> ]First download the flashlight sound mod, make a new folder in the test_mod/sounds/ directory named ui then make .snt files for those sounds (all in the same folder). Then you must change what sound will play in the game.cfg file. (So the final directory should look like this: test_mod/sounds/ui/sounds here)



If you have White Night installed, it makes the process a lot easier as the sounds are already there and you can just copy/paste into your sounds folder, and copy/paste the code in the game.cfg (just give credit where it`s due).



I`m in class right now, I could post the code when I get home.
Please post code when you get home Smile
not sure i will make it , first mode i make

okey i tried make it , still no sound :S
Ok so make sure you have your game.cfg file ready and you did the sound thing I said earlier. Open it up with NotePad++ and go to line 290-302

delete what it says and paste this:



<Player_Lantern

Color="0.88 0.82 0.40 0.8"
Radius = "0.0001"
Gobo = "flashlight.tga"
LocalOffset = "0.3 -0.3 -0.1"
TurnOnSound = "ui_flashlight_on"
TurnOffSound = "ui_flashlight_off"
OutOfOilSound = "ui_flashlight_off"
DisabledSound = ""
CastShadows = "false"
LowerOilSpeed = "0.25"
FadeLightOilAmount = "10"

/>


You can change some of the values if you want, and if it doesn't work let me know.