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

« Previous 10 events | 1 2 | All Messages
Posted by/on
Question/AnswerMake Oldest Up Sort by Ascending
  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: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.
  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
  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.
  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
 
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-2021 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.