ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Reoccuring Issue- Ridiculously Simple?

1 2 | Next 10 events »| All Messages
Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  06:24:12  13 September 2012
profilee-mailreply Message URLTo the Top
The_Duke
(Novice)
 
On forum: 09/13/2012
Messages: 4
Reoccuring Issue- Ridiculously Simple?

Beginner modder here, trying to achieve something basic. Cheers fellas.

Following the generic instructions for modding/implementing mods I did the following essentials:
- Created a new gamedata folder.
- Changed "false" to "true" for the gamedata line in fsgame.ltx.

Theoretically something should be uploadable now. I use 1.0005 by the way, have played it plain, and have reinstalled it multiple times in my struggle with implementing mods.

To get at the dbx files, I extracted the necessary one to an outside folder, changed a subfile (simple addition of starter money- I AM a beginner), and uploaded that single subfile, with correct path I think, into gamedata. Game will start (sigh of relief, in previous attempts it used to crash at initiation), start new game and... crash with XR_3DA not responding.
Fatal report as such:

[error]Expression : header().graph_guid() == ai().game_graph().header().guid()
[error]Function : CALifeSpawnRegistry::load
[error]File : E:\stalker\sources\trunk\xr_3da\xrGame\alife_spawn_registry.cpp
[error]Line : 167
[error]Description : Spawn doesn't correspond to the graph : REBUILD SPAWN!

Why is this coming around? Now I'll delete the gamedata folder to see if rest is ok... nope, now it persists. What on earth?

Aid would be appreciated,
Duke
  13:03:05  13 September 2012
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
 

Message edited by:
Storm Shadow
09/13/2012 13:12:53
Messages: 1430
bro, 1st of all - welcome to the forums and good to see another keen modder join our fading community.

you sound like you've made a good start. im not sure what you've edited to get that error, but the only way to change the starting amount of money is to de-compile the all.spawn, then open up alife_l01_escape.ltx and find section_name = actor, then scroll down to:
; cse_alife_trader_abstract properties
money = 80

and change that value as you see fit. then you will need to re-compile the all.spawn and start a new game for any changes to take effect.

this is quite a complex process for the beginner, but there are tutorials on it around.

which is why i will advise that the easiest way to give yourself any stuffs at the start of the game is to edit what Wolf gives you when you start the 1st quest.

to do this, open up escape_dialog.script and do a search for fox (i know this sounds weird, but the code for wolf isnt commented and its right below the code for fox, this is the easiest way to find it), then scroll down to:
function give_weapon_to_actor (trader, actor)
    dialogs.relocate_item_section(trader, "wpn_pm", "in")
    dialogs.relocate_item_section(trader, "ammo_9x18_fmj", "in")
    dialogs.relocate_item_section(trader, "ammo_9x18_fmj", "in")
    dialogs.relocate_item_section(trader, "wpn_knife", "in")     
end

and just add in any new lines of any equip that you want. if you want money, then add in the line:
	dialogs.relocate_money(second_speaker, 1500, "in")

setting the amount as you see fit.


hope this helps, shad.

PS - if you absolutely want to start with the money (or other items), then this is how i edit the all.spawn (with active pearl):
Editing all.spawn
http://sdk.stalker-game.com/en/index.php?title=Editing_all.spawn

I have heard that you can now edit it with the SDK, which might actually be a bit esier (i havnt done this my self tho):
Editing all.spawn file with xrSpawner
http://sdk.stalker-game.com/en/index.php?title=Editing_all.spawn_file_with_xrSpawner

EDIT:
to answer your question; that CTD (crash to desktop) can be caused by either:

loading a saved game from a different mod.

making certain / massive changes to your all.spawn, then loading a previous save game

using an all.spawn file from a different patch version, whether you started a new game or not (make sure that you patched your game before you extracted your db files).

maybe other reasons i cant think of right now too.
  13:59:51  13 September 2012
profilee-mailreply Message URLTo the Top
angrydog
Senior Resident
 

 
On forum: 09/01/2009
Messages: 3341

---QUOTATION---
you sound like you've made a good start. im not sure what you've edited to get that error, but the only way to change the starting amount of money is to de-compile the all.spawn
---END QUOTATION---




you don't need to edit the all.spawn to change the starting money.

open up the \gamedata\config\gameplay\character_desc_general.xml

find the
<reputation>0</reputation>
<visual>actors\hero\stalker_novice</visual>
lines in the actor section

add in this line
<money min="100000" max="100000" infinitive="0"/>
you can change the money value to whatever you like

so it looks like this:
<reputation>0</reputation>
<money min="100000" max="100000" infinitive="0"/>
<visual>actors\hero\stalker_novice</visual>

save the file and start a new game
  14:09:41  13 September 2012
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
Messages: 1430

---QUOTATION---
you don't need to edit the all.spawn to change the starting money.

open up the \gamedata\config\gameplay\character_desc_general.xml

---END QUOTATION---



yeah, you're right. i just thought that wouldnt work for moneys cos it dosnt work for items. but it does work for money, and is much simpler.
  14:32:11  13 September 2012
profilee-mailreply Message URLTo the Top
angrydog
Senior Resident
 

 
On forum: 09/01/2009
 

Message edited by:
angrydog
09/13/2012 14:38:44
Messages: 3341

---QUOTATION---
you don't need to edit the all.spawn to change the starting money.

open up the \gamedata\config\gameplay\character_desc_general.xml


yeah, you're right. i just thought that wouldnt work for moneys cos it dosnt work for items. but it does work for money, and is much simpler.
---END QUOTATION---



you can't change the start items in the character_desc_general.xml because the actor section in the all.spawn has a [dont_spawn_character_supplies] line in the custom data. if you remove that line then you can use the character_desc_general.xml to spawn starting supplies.

as you said, editing the all spawn is an advanced skill. editing the escape_dialog.script, as you suggested, is a less complicated way for beginners to mod the items you get in the opening tasks of the game; and it can be used without a restart of the game.
  14:46:07  13 September 2012
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
 

Message edited by:
Storm Shadow
09/13/2012 14:46:25
Messages: 1430

---QUOTATION---
you can't change the start items in the character_desc_general.xml because the actor section in the all.spawn has a [dont_spawn_character_supplies] line in the custom data. if you remove that line then you can use the character_desc_general.xml to spawn starting supplies.
---END QUOTATION---



good tip bro, cheers i didnt know that

mind = blown!
  07:31:05  14 September 2012
profilee-mailreply Message URLTo the Top
The_Duke
(Novice)
 
On forum: 09/13/2012
Messages: 4
What a welcome! Thanks guys.

Your suggestion to change what Wolf gives you at the beginning was spot on. I read about it here (Atrocious, 3rd post): http://forums.filefront.com/s-t-l-k-e-r-soc-modding-mapping-editing/362105-tutorial-how-edit-trader-files.html#post4342355

Really simple thing I figured, and I think I did it all correctly- got paths right and such.

"EDIT:
to answer your question; that CTD (crash to desktop) can be caused by either:

loading a saved game from a different mod.

making certain / massive changes to your all.spawn, then loading a previous save game

using an all.spawn file from a different patch version, whether you started a new game or not (make sure that you patched your game before you extracted your db files).

maybe other reasons i cant think of right now too."

Could I just have a faulty disc or something? I did none of the above, though I'll try patching and extracting in that order. Means re-installation (again). I've since updated to 1.06 and still a new game won't start, whether there's a gamedata folder or not.

Given my spawn error- should I delve into allspawn on my next go and edit a file that might fix it?

Cheers,
Duke
  08:10:12  14 September 2012
profilee-mailreply Message URLTo the Top
Storm Shadow
A machine, a Shadow Machine.
(Resident)

 

 
On forum: 11/14/2007
 

Message edited by:
Storm Shadow
09/14/2012 8:25:16
Messages: 1430

---QUOTATION---
Could I just have a faulty disc or something? I did none of the above, though I'll try patching and extracting in that order. Means re-installation (again). I've since updated to 1.06 and still a new game won't start, whether there's a gamedata folder or not.
---END QUOTATION---



We're glad to help bro. Look i really dont know what caused your crash. i would recommend:
1. uninstall
2. reinstall
3. patch to v1.0005
4. extract db files
5. start modding.

note that patch 1.0006 was recalled for being really really shit and causing errors. therefore 1.0005 is the latest official version, and the version that i use and many other modders do too. some modders prefer v1.0004 tho (seems especially Russian modders). so, its up to you which patch version you use. just dont use 1.0006.

sweet bro.


edit: maybe you fucked up your fsgame.ltx file. below is from the tweak guide:

---QUOTATION---
To use modified files with STALKER, you will first need to open your fsgame.ltx file found under the \Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl directory. Open this file with a text editor like Notepad, and find the following line:

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

Change the false to true, i.e.:

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

This will tell STALKER to first load up any game asset files which exist in appropriate subdirectories under \Program Files\THQ\S.T.A.L.K.E.R. - Shadow of Chernobyl, before loading them up from the archived .db* files. In other words this allows you to extract files from the archives, modify them, and have STALKER recognize and load them instead of the original versions. If you've downloaded a mod, follow the directions which come with each mod as to where it should be placed. Typically all you need to do is just extract it to the directory above and it will create the appropriate subdirectories.
---END QUOTATION---


http://www.tweakguides.com/STALKER_4.html
note that although the tweak guide still contains lots of usefull info, it is rather out of date now. it still recommends the 1.0006 patch, even tho that was recalled and some of its reference links are long since dead.


enjoy
  19:31:29  14 September 2012
profilee-mailreply Message URLTo the Top
SacriPan
Senior Resident
 

 
On forum: 09/20/2009
Messages: 319

---QUOTATION---
so, its up to you which patch version you use. just dont use 1.0006.
---END QUOTATION---



Hey Shad, could you be more specific about those issues, cause Ive been using this patch for some years now and I never had any weird issues with it. I already had this argument with Insanelazarez, as he reported strange behavior with Nimble in cordon (for example), but it NEVER happened to me.
I'd be happy to hear from you on that, unless you don't have the details and youve just heard of it. Or maybe a link that sum up those so called problems.

Thanks
  20:20:31  14 September 2012
profilee-mailreply Message URLTo the Top
insanelazarez
Yeah, Good Luck With That...
(Resident)

 

 
On forum: 01/31/2009
Messages: 1070

---QUOTATION---
you don't need to edit the all.spawn to change the starting money.
---END QUOTATION---




Say what?
 
Each word should be at least 3 characters long.
Search:    
Search conditions:    - spaces as AND    - spaces as OR   
 
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2020 GSC Game World. All rights reserved.
This site is best viewed in Internet Explorer 4.xx and up and Javascript enabled. Webmaster.
Opera Software products are not supported.
If any problem concerning the site functioning under Opera Software appears apply
to Opera Software technical support service.