Tutorial: How to edit the trader files

This is a discussion on Tutorial: How to edit the trader files within the S.T.A.L.K.E.R. SoC Modding, Mapping and Editing forums, part of the S.T.A.L.K.E.R. Shadow of Chernobyl category; Usually you don't have to leave the level. You can just quicksave/-load. Also, if only a few items like medkits ...

S.T.A.L.K.E.R. SoC Modding, Mapping and Editing Want more info about a Mod? Making a Mod? Looking for Modders, Mappers, Skinners, etc.? This is your Spot!

Reply
 
LinkBack Thread Tools Rating: Thread Rating: 1 votes, 5.00 average. Display Modes
  #71  
Old September 4th, 2008
Atrocious's Avatar
Oblivion Lost supplier
Bloodsucker
 
Join Date: March 24th, 2008
Location: Germany
Posts: 1,438
Rep Power: 5
Atrocious should make some friends
Default Re: Tutorial: How to edit the trader files

Usually you don't have to leave the level. You can just quicksave/-load. Also, if only a few items like medkits and ammo show up, but no weapons, then the trader file is probably broken.

About the correctness of the formula I don't know.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

  #72  
Old September 5th, 2008
FourAces's Avatar
Addicted to GF
Mutant Dog
 
Join Date: July 15th, 2008
Posts: 281
Rep Power: 0
FourAces should make some friends
Default Re: Tutorial: How to edit the trader files

No, the save/load did not work, but I was not editing the stock, just the formula for prices. It must be stored in the save game data. The formula that I posted about the purchase price (from another thread) seems to be correct, since the ".2, .8" I have means that a hostile Sakharov offering me about 25% of the value for my items (not 50%) is correct. Bartender was offering me more due to the fact that he is not hostile and his range for the same item is ".2, .5".
Reply With Quote
  #73  
Old September 6th, 2008
FourAces's Avatar
Addicted to GF
Mutant Dog
 
Join Date: July 15th, 2008
Posts: 281
Rep Power: 0
FourAces should make some friends
Default Re: Tutorial: How to edit the trader files

I need some help with the buy and sell conditions at the top of the trader files. Specifically what does this mean exactly?
{+bar_darklab_document_done} bar_after_darkvalley_sell

I know that for barman this is the condition that must be met before the
bar_after_darkvalley_sell portion of the file will be activated and used. What I need to know is why, when I add a modified version of that to my Ecologist's sell line, it does not work properly.

{+bar_darklab_document_done} ecolog_after_darkvalley_sell
This makes Sakharov act as if he is being attacked, and then somehow lets him phase though the window and out into the hallway of the mobile lab. I thought that it was a simple flag that means that as long as the darkvalley documents were returned to barkeep then this would be activated. Obviously I was wrong, and I can find no decent descriptions of how, or why.

Is there another way trigger new buy&sell points along the main story, so that I can add some variety to my traders?

Thanks!
Reply With Quote
  #74  
Old September 7th, 2008
Atrocious's Avatar
Oblivion Lost supplier
Bloodsucker
 
Join Date: March 24th, 2008
Location: Germany
Posts: 1,438
Rep Power: 5
Atrocious should make some friends
Default Re: Tutorial: How to edit the trader files

Quote:
Originally Posted by FourAces View Post
Is there another way trigger new buy&sell points along the main story, so that I can add some variety to my traders?
It's the right way of doing it - just do it right.

When traders act stupid, you have a syntax error in your trade file.

Sell condition:
sell_condition = {+yan_kill_brain_done} ecolog_after_brain_sell, ecolog_start_sell

Translated (the stuff in brackets represents the meaning of the word in ltx configs):
if ( { } ) info portion yan_kill_brain_done is given ( + ) then go to section (in this file - would probably even work with different files) ecolog_after_brain_sell else ( , ) go to section ecolog_start_sell.

Example with a new section:
sell_condition = {+yan_kill_brain_done} ecolog_after_brain_sell, {+bar_darklab_document_done} ecolog_after_darkvalley_sell, ecolog_start_sell

So it's: if X16 done then ... else if X18 done then ... else default.
Note that you have to create the whole new section ecolog_after_darkvalley_sell because it doesn't yet exist!
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #75  
Old September 7th, 2008
Supernatur4L's Avatar
Resident Stalker
 
Join Date: July 22nd, 2008
Location: Toronto, Canada
Posts: 605
Rep Power: 3
Supernatur4L should make some friends
Default Re: Tutorial: How to edit the trader files

Everyone thank Admiral for stickifying this
Thank you sir.
__________________

--If only you knew where I've been and what I've seen.--
Reply With Quote
  #76  
Old September 9th, 2008
FourAces's Avatar
Addicted to GF
Mutant Dog
 
Join Date: July 15th, 2008
Posts: 281
Rep Power: 0
FourAces should make some friends
Default Re: Tutorial: How to edit the trader files

Quote:
Originally Posted by Atrocious View Post
It's the right way of doing it - just do it right.
I just wanted to confirm that my reading of the logic behind the structure of the flags was correct. Thanks!
Reply With Quote
  #77  
Old September 17th, 2008
FourAces's Avatar
Addicted to GF
Mutant Dog
 
Join Date: July 15th, 2008
Posts: 281
Rep Power: 0
FourAces should make some friends
Default Re: Tutorial: How to edit the trader files

Well I have just worked out that the equation for the Sell sections is

[someone_sometime_sell]
item_name = A, B

where ((A+B)/2) * 100% = the price the trader will sell item_name for.

It was that illogical multiplication that was confusing me. I just thought that I would spell it in case anyone else is having problems.

Atro, I understood your explanation of A+B/2 = C% but I thought that C% was added not multiplied to the base price (100%).

Cheers for the guide!
__________________
Every man for himself, only God takes care of everybody. Read the FAQ for OL, or...

See my website for my latest mods for OL2.2 and CS.
Reply With Quote
  #78  
Old September 18th, 2008
WARCATT's Avatar
I'm Working on it!!!
 
Join Date: September 14th, 2008
Posts: 424
Rep Power: 3
WARCATT is a n00b
Default Re: Tutorial: How to edit the trader files

Ok I'm going to try this out.....on OL.....
__________________
SOC is awsome, its all about choice really, like the real ending. the real ending you choose is the real ending for you, regardless.....so there are no fake endings..
Reply With Quote
  #79  
Old November 14th, 2008
I'm too cool to Post
 
Join Date: November 14th, 2008
Posts: 1
Rep Power: 0
Acid81 is a n00b
icon_question Re: Tutorial: How to edit the trader files

Could someone please take a look at this trader file here and tell me why the items iv modded doesnt show up after "fabric" ?

I have no clue what could be wrong here.

Attached Files
File Type: zip trade_trader.zip (3.1 KB, 5 views)
Reply With Quote
  #80  
Old March 1st, 2009
xArcadianx's Avatar
I don't spend enough time here
 
Join Date: January 11th, 2009
Posts: 25
Rep Power: 0
xArcadianx is a n00b
Default Re: Tutorial: How to edit the trader files

Can somebody upload a trader mod so traders sell EVERYTHING ? i MEAN INCLUDING QUEST ITEMS SUCH AS DOGTAILS,BLOODSUCKER JAWS, ARTIFACTS.. etc PLEASE ! thank you !
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -7.