Your first modification

From Mod Wiki

(Difference between revisions)
Jump to: navigation, search
Revision as of 22:38, 25 June 2008 (edit)
Soduka (Talk | contribs)

← Previous diff
Current revision (11:40, 17 July 2008) (edit) (undo)
Don Reba (Talk | contribs)
m (more formatting; KG -> kg)
 
(5 intermediate revisions not shown.)
Line 1: Line 1:
-== Getting Started ==+==Getting started==
Modding S.T.A.L.K.E.R. is a rewarding experience because it allows you to bend the extremely atmospheric game to your will. With enough patience and will power, (Knowing Russian helps) you can figure out how to change the most complex "settings" in the game to fit your new world. However, we are not at that step yet. We are going to start nice and simple and work our way up through other tutorials. You will need quite a few tools before you begin on your first mod. Modding S.T.A.L.K.E.R. is a rewarding experience because it allows you to bend the extremely atmospheric game to your will. With enough patience and will power, (Knowing Russian helps) you can figure out how to change the most complex "settings" in the game to fit your new world. However, we are not at that step yet. We are going to start nice and simple and work our way up through other tutorials. You will need quite a few tools before you begin on your first mod.
 +===Tools===
-----+[[Tool List#Extractor|Database Extractor]]
-=== Tools ===+[[Tool List#Notepad.2B.2B|Notepad++]] (Optional, '''Windows Notepad''' works fine, but you will thank me later)
- +
- +
-Database Extractor+
- +
-[[Notepad ++]] (Optional, [[Windows Notepad]] works fine, but you will thank me later)+
STALKER patched to at least 1.005 (1.006 is mostly an optional patch, it only changes Multiplayer stuff, nothing you will be editing) STALKER patched to at least 1.005 (1.006 is mostly an optional patch, it only changes Multiplayer stuff, nothing you will be editing)
Line 17: Line 13:
A good amount of space on your Hard Drive. (10 gigabytes free is a must for lots of wiggle room and backups) A good amount of space on your Hard Drive. (10 gigabytes free is a must for lots of wiggle room and backups)
-== Understanding Extraction and Mod Structure ==+==Understanding extraction and mod structure==
- +
-Extract all the database archives into a separate folder on your desktop. Name it [[gamedata_original]]. Now, there is so much to change! Create a new folder in your [[X:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl]] (X for your drive letter) and call this new folder [[gamedata]]. If you have not already browsed through your gamedata_original folder, do so now. So many files and sub-directories! Whenever you edit a file, Notepad ++ will create a .bak of the original in the folder it was edited so you always have the file as it was when it worked (or before changes). To make this .bak work, all you must do is rename the extension back to .ltx or whatever it was before. +
 +Extract all the database archives into a separate folder on your desktop. Name it '''gamedata_original'''. Now, there is so much to change! Create a new folder in your '''X:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl''' (X for your drive letter) and call this new folder '''gamedata'''. If you have not already browsed through your gamedata_original folder, do so now. So many files and sub-directories! Whenever you edit a file, Notepad ++ will create a .bak of the original in the folder it was edited so you always have the file as it was when it worked (or before changes). To make this .bak work, all you must do is rename the extension back to .ltx or whatever it was before.
If you can't see extensions and are on Windows XP, open up a folder and go to Tools - Folder Options and click on the View tab. Uncheck hide extensions for known file types. If you can't see extensions and are on Windows XP, open up a folder and go to Tools - Folder Options and click on the View tab. Uncheck hide extensions for known file types.
 +===Editing your first file===
 +Notepad++ and Windows Notepad are only capable of editing essentially word files. These extensions include [[Ltx|.ltx]] and [[Xml|.xml]] and [[Script|.script]]. (Notepad++ handles .xml and .script files much cleaner than Windows Notepad) An easy first change to STALKER is changing how much you can carry, your weight limit. When STALKER was first released there were mods that were entirely based on just doing that. It isn't any big mystery how it's done now, but it is still sometimes done improperly. There are a total of 3 lines of code that need to be edited to make the new weight limit official.
 +2 of them are in '''actor.ltx''' and one of them is in '''system.ltx''':
 +* C:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl\gamedata\config\creatures\actor.ltx
 +* C:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl\gamedata\config\system.ltx
 +You see now both of these files have '''gamedata\config''' in common, so browse to your STALKER gamedata folder which is looking very empty right now, and create a new folder called config inside. '''System.ltx''' will land right in there, but '''actor.ltx''' goes a bit deeper. Create another folder inside config and name it creatures. Keep the gamedata folder open and go to the gamedata_original folder. Browse first to '''gamedata_original\config''' and copy '''system.ltx''' to your STALKER '''gamedata\config''' folder. Open it up and you should see something like this:
-=== Editing your First File ===+[[Image:Systemltx.JPG|left|thumb|Notepad++ viewing system.ltx]]{{Clear}}
 +Hit Ctrl+F and search for weight and you will hit upon a line with '''max_weight''' in it. Change the value to say 120 or whatever value you want. 1 = 1 kg in game. Save it, you are done with system.ltx.
 +Now copy over the '''actor.ltx''' from gamedata_original and paste it in '''gamedata\config\creatures'''. Open it up and you will see something resembling this:
-[[Notepad ++]] and [[Windows Notepad]] are only capable of editing essentially word files. These extensions include .ltx and .xml and .script. (Notepad ++ handles .xml and .script files much cleaner than Windows Notepad) An easy first change to STALKER is changing how much you can carry, your weight limit. When STALKER was first released there were mods that were entirely based on just doing that. It isn't any big mystery how it's done now, but it is still sometimes done improperly. There are a total of 3 lines of code that need to be edited to make the new weight limit official. +[[Image:Actorltx.JPG|left|thumb|Notepad++ viewing actor.ltx]]{{Clear}}
-2 of them are in [[actor.ltx]] and one of them is in [[system.ltx]]+
- C:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl\gamedata\config\creatures\actor.ltx+Search for '''max_item_mass'''. It's visible without searching with Ctrl F, around line 20. Once you find that, change the number it equals to 120 or whatever you changed the number in system.ltx to. Now do a search for '''max_walk_weight'''. This one is up to your judgment. The other two are bound together to control how much weight you can move this while being able to run. If you want to just be able to carry 120 kg and then stop dead at that limit, you can also put this number to 120 kg. However, if you would like to be able to carry stuff after 120 kg but not be able to run, just walk, set it to something like 140.
- C:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl\gamedata\config\system.ltx+This means you can carry stuff and run up to 120 kg, but you can also carry stuff and still be able to at least walk up to 140 kg. Save it and exit.
-You see now both of these files have [[gamedata\config]] in common, so browse to your STALKER gamedata folder which is looking very empty right now, and create a new folder called config inside. [[System.ltx]] will land right in there, but [[actor.ltx]] goes a bit deeper. Create another folder inside config and name it creatures. Keep the gamedata folder open and go to the gamedata_original folder. Browse first to [[gamedata_original\config]] and copy [[system.ltx]] to your STALKER [[gamedata\config]] folder. Open it up and you should see something like this:+==Setting your mod to run==
 +STALKER works by basically interrupting original content with your edited stuff. To make this happen, look inside your STALKER root directory and you will find a file called '''fsgame.ltx'''. Open it up and it should be the second line you need to edit. It will appear (If you haven't edited it before) like this:
-{{Gallery4+<source lang="ini">
-|image1=Systemltx.JPG+$game_data$ = false|true|$fs_root$|gamedata\
-|comment1=Notepad ++ viewing system.ltx+</source>
-}}+
-Hit Ctrl F and search for weight and you will hit upon a line with [[max_weight]] in it. Change the value to say 120 or whatever value you want. 1 = 1 KG in game. Save it, you are done with system.ltx.+This is telling the game to ignore everything and just read the game files in the database archives. We need to change that. Change that line to appear as:
- +<source lang="ini">
- +$game_data$ = true|true|$fs_root$|gamedata\
-Now copy over the [[actor.ltx]] from gamedata_original and paste it in [[gamedata\config\creatures]]. Open it up and you will see something resembling this:+</source>
- +
- +
- +
-{{Gallery4+
-|image1=Actorltx.JPG+
-|comment1=Notepad ++ viewing actor.ltx+
-}}+
- +
-Search for [[max_item_mass]]. It's visible without searching with Ctrl F, around line 20. Once you find that, change the number it equals to 120 or whatever you changed the number in system.ltx to. Now do a search for [[max_walk_weight]]. This one is up to your judgment. The other two are bound together to control how much weight you can move this while being able to run. If you want to just be able to carry 120 KG and then stop dead at that limit, you can also put this number to 120 KG. However, if you would like to be able to carry stuff after 120 KG but not be able to run, just walk, set it to something like 140. +
- +
-This means you can carry stuff and run up to 120 KG, but you can also carry stuff and still be able to at least walk up to 140 KG. Save it and exit.+
- +
-== Setting your Mod to Run ==+
- +
-STALKER works by basically interrupting original content with your edited stuff. To make this happen, look inside your STALKER root directory and you will find a file called [[fsgame.ltx]]. Open it up and it should be the second line you need to edit. It will appear (If you haven't edited it before) like this:+
- +
- $game_data$ = false| true| $fs_root$| gamedata\+
- +
-This is telling the game to ignore everything and just read the game files in the database archives. We need to change that. Change that line to appear as:+
- $game_data$ = true| true| $fs_root$| gamedata\+
Now it will load any files you have in the gamedata folder instead of the same named files in the databases. Simple? Save and exit. Start up STALKER and you can enjoy your new weight carrying limit. Now it will load any files you have in the gamedata folder instead of the same named files in the databases. Simple? Save and exit. Start up STALKER and you can enjoy your new weight carrying limit.
- 
[[Category:Articles]] [[Category:Articles]]

Current revision

Contents

Getting started

Modding S.T.A.L.K.E.R. is a rewarding experience because it allows you to bend the extremely atmospheric game to your will. With enough patience and will power, (Knowing Russian helps) you can figure out how to change the most complex "settings" in the game to fit your new world. However, we are not at that step yet. We are going to start nice and simple and work our way up through other tutorials. You will need quite a few tools before you begin on your first mod.

Tools

Database Extractor

Notepad++ (Optional, Windows Notepad works fine, but you will thank me later)

STALKER patched to at least 1.005 (1.006 is mostly an optional patch, it only changes Multiplayer stuff, nothing you will be editing)

A good amount of space on your Hard Drive. (10 gigabytes free is a must for lots of wiggle room and backups)

Understanding extraction and mod structure

Extract all the database archives into a separate folder on your desktop. Name it gamedata_original. Now, there is so much to change! Create a new folder in your X:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl (X for your drive letter) and call this new folder gamedata. If you have not already browsed through your gamedata_original folder, do so now. So many files and sub-directories! Whenever you edit a file, Notepad ++ will create a .bak of the original in the folder it was edited so you always have the file as it was when it worked (or before changes). To make this .bak work, all you must do is rename the extension back to .ltx or whatever it was before.

If you can't see extensions and are on Windows XP, open up a folder and go to Tools - Folder Options and click on the View tab. Uncheck hide extensions for known file types.

Editing your first file

Notepad++ and Windows Notepad are only capable of editing essentially word files. These extensions include .ltx and .xml and .script. (Notepad++ handles .xml and .script files much cleaner than Windows Notepad) An easy first change to STALKER is changing how much you can carry, your weight limit. When STALKER was first released there were mods that were entirely based on just doing that. It isn't any big mystery how it's done now, but it is still sometimes done improperly. There are a total of 3 lines of code that need to be edited to make the new weight limit official. 2 of them are in actor.ltx and one of them is in system.ltx:

  • C:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl\gamedata\config\creatures\actor.ltx
  • C:\Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl\gamedata\config\system.ltx

You see now both of these files have gamedata\config in common, so browse to your STALKER gamedata folder which is looking very empty right now, and create a new folder called config inside. System.ltx will land right in there, but actor.ltx goes a bit deeper. Create another folder inside config and name it creatures. Keep the gamedata folder open and go to the gamedata_original folder. Browse first to gamedata_original\config and copy system.ltx to your STALKER gamedata\config folder. Open it up and you should see something like this:

Notepad++ viewing system.ltx
Notepad++ viewing system.ltx

Hit Ctrl+F and search for weight and you will hit upon a line with max_weight in it. Change the value to say 120 or whatever value you want. 1 = 1 kg in game. Save it, you are done with system.ltx.

Now copy over the actor.ltx from gamedata_original and paste it in gamedata\config\creatures. Open it up and you will see something resembling this:

Notepad++ viewing actor.ltx
Notepad++ viewing actor.ltx

Search for max_item_mass. It's visible without searching with Ctrl F, around line 20. Once you find that, change the number it equals to 120 or whatever you changed the number in system.ltx to. Now do a search for max_walk_weight. This one is up to your judgment. The other two are bound together to control how much weight you can move this while being able to run. If you want to just be able to carry 120 kg and then stop dead at that limit, you can also put this number to 120 kg. However, if you would like to be able to carry stuff after 120 kg but not be able to run, just walk, set it to something like 140.

This means you can carry stuff and run up to 120 kg, but you can also carry stuff and still be able to at least walk up to 140 kg. Save it and exit.

Setting your mod to run

STALKER works by basically interrupting original content with your edited stuff. To make this happen, look inside your STALKER root directory and you will find a file called fsgame.ltx. Open it up and it should be the second line you need to edit. It will appear (If you haven't edited it before) like this:

$game_data$ = false|true|$fs_root$|gamedata\

This is telling the game to ignore everything and just read the game files in the database archives. We need to change that. Change that line to appear as:

$game_data$ = true|true|$fs_root$|gamedata\

Now it will load any files you have in the gamedata folder instead of the same named files in the databases. Simple? Save and exit. Start up STALKER and you can enjoy your new weight carrying limit.

Personal tools