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; thanks again for the great help. re: range finder binocs. Figures that the things that would be most useful would ...

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
  #61  
Old July 26th, 2008
I am alone
 
Join Date: July 23rd, 2008
Location: Bar
Posts: 16
Rep Power: 0
wildey is nobody special
Default Re: Tutorial: How to edit the trader files

thanks again for the great help.

re: range finder binocs. Figures that the things that would be most useful would be most difficult. LOL.
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

  #62  
Old August 1st, 2008
Soul_purifier's Avatar
WHY CAN'T I WIN!?!?!
Scientist
 
Join Date: July 23rd, 2008
Location: Deep in Stancia 1, inside of a pipe waiting....
Posts: 753
Rep Power: 3
Soul_purifier is a n00b
Default Re: Tutorial: How to edit the trader files

Ok this is a really useful guide. You should get this stickied.


I finally can edit those cheapskate traders to give me 10k for my exosuit

yay!!!
__________________
A pen is mightier then the sword........although it outta be a really huge pen.

And one day I'm going to snap and kill you all with said pen.....unless you have a pencil...
Reply With Quote
  #63  
Old September 3rd, 2008
MattyDienhoff's Avatar
The Hoff
 
Join Date: June 29th, 2006
Location: Australia
Posts: 234
Rep Power: 0
MattyDienhoff is a n00b
Send a message via MSN to MattyDienhoff
Default Re: Tutorial: How to edit the trader files

Question: Is there any kind of limit, weight, monetary, or otherwise, that controls how much traders can stock? I ask because I just added every single weapon in the game to a trader so I could test them all (I'm searching for bugs in a weapon mod) and only a few of them showed up in the trader's inventory.
__________________
Reply With Quote
  #64  
Old September 3rd, 2008
varuna's Avatar
The forums staffers think I'm Cool
N00b Stalker
 
Join Date: December 8th, 2007
Location: Shrewsbury Train Station
Posts: 177
Rep Power: 0
varuna is a n00b
Default Re: Tutorial: How to edit the trader files

Go to the trader stock.ltx that you want to edit and it should list stuff like

ammo_9x19_fmj = 3, 1
ammo_9x18_pmm = 5, 1
ammo_9x19_pbp = 5, 1

first number is amount so thats 20 x 3 and the second is probability of it being there if i remember so 1 = 100% 0.5 = 50% after each major event in the game the amount and percentage will change so you will have to all of them
__________________


Reply With Quote
  #65  
Old September 3rd, 2008
MattyDienhoff's Avatar
The Hoff
 
Join Date: June 29th, 2006
Location: Australia
Posts: 234
Rep Power: 0
MattyDienhoff is a n00b
Send a message via MSN to MattyDienhoff
Default Re: Tutorial: How to edit the trader files

Yes, I know all that, I read the tutorial.

The question still stands, is there any kind of limit on how many items a trader can stock, or is an error preventing some of the items from not showing? I've looked and looked for problems in the file and this isn't the first time this has happened.
__________________
Reply With Quote
  #66  
Old September 3rd, 2008
varuna's Avatar
The forums staffers think I'm Cool
N00b Stalker
 
Join Date: December 8th, 2007
Location: Shrewsbury Train Station
Posts: 177
Rep Power: 0
varuna is a n00b
Default Re: Tutorial: How to edit the trader files

like yourself the trader has a limit to how many items you can carry, i dont mean a weight limit, but an item limit, so if you put so much in then eventually yes some would not show and the trader will drop them all when the game loads which, in some mods, the trader is surrounded by items and cannot move.

Thats just my theory
__________________


Reply With Quote
  #67  
Old September 3rd, 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 just found what I believe is an error. I have the following
[ecolog_generic_buy]
wpn_fn2000_old = 0.6, 0.3
so 0.6+0.3/2= .9/2= .45 or 45% but Sakarov is paying much more than that.

The best description (and there are a lot of crackpot ideas), is this:
Spoiler:

"Okay, the numbers under [trader_generic_buy] are the minimum and maximum Trader-Buy-Price!!!!

If an Item has the standard worth (cost in item description) of 300RU
and the first number is 0,3 and the second number 0,9 in the trader_generic_buy this means you get 30% minimum if you sell the item and 90% maximum if you sell it. Minimum and maximum stands in relation with your reputation!!!! If you have a good relation you get more than the 30% but you will never ever get more than 90%.

EXAMPLE:
Antirad: 300Ru (standard) trader generic buy says: antirad = 1, 9
You get 300RU with minimum reputation and 2700RU with maximum reputation per piece.

trader_starting_sell is the same, vice versa = lower reputation higher price (first number), higher reputation lower price (second number). The second number is "the maximum discount"."
Reply With Quote
  #68  
Old September 4th, 2008
varuna's Avatar
The forums staffers think I'm Cool
N00b Stalker
 
Join Date: December 8th, 2007
Location: Shrewsbury Train Station
Posts: 177
Rep Power: 0
varuna is a n00b
Default Re: Tutorial: How to edit the trader files

that is correct, however that is in the buy.ltx and sell.ltx i was talking about the stock.ltx which is in PS but im not sure if its in OL or Vanilla
__________________


Reply With Quote
  #69  
Old September 4th, 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 varuna View Post
that is correct, however that is in the buy.ltx and sell.ltx i was talking about the stock.ltx which is in PS but im not sure if its in OL or Vanilla
Sorry, I was not respond to your message.

I was just trying to find out what the real buying equation is since (X+Y)/2=% buy price is not correct, since (6+3)/2 = 45% not the 100% I get offered in-game.

I added all the weapons to Sid (testing my mod) and sure enough some did not show up, but they were not scattered around him. I think that the trader has to have the ability to equip a weapon before they start dropping them to make room in their inventory, but I have never seen this in a game (saw a pic from Flanker about it though).

I did not see in the tutorial if it is necessary to start a new game for changes in the trader's files to take effect. Does anyone know?

Last edited by FourAces; September 4th, 2008 at 12:13 PM..
Reply With Quote
  #70  
Old September 4th, 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

For double posting. Time ran out for editing.

You need to reload the level, so I had to exit Yantar and then re-enter to get my trader changes to take effect. The quote I posted seems to be correct, and the buy numbers represent a range based on reputation with the trader's faction. That makes it much more interesting.
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.