ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Shadow of Chernobyl Forum » Mod discussion
Can not find items in trader

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  22:55:45  12 August 2007
profilee-mailreply Message URLTo the Top
ripperswarm
(Novice)
 
On forum: 08/12/2007
Messages: 5
Can not find items in trader

Hi all, just joined the forums and modding for S.T.A.L.K.E.R. I just made a new gun and added it to the first trader in the along with some ammo. When I started a new game it worked fine I could buy the gun and ammo but after I completed the first mission he gave me I couldn't buy more ammo for my gun even though there was alot left over from what I had bought. No anything I add to him I can't buy since it does not appear in his inventory. I have tried all the section supplies_start
supplies_after_fabric and trader_generic_buy. So does anyone have any ideas on how to fix this?
  00:14:50  13 August 2007
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
Messages: 4263
It's possibly just an odds thing. Or there's something you missed.

Here's a generic example for an ammo type.

In the trade_trader.ltx file, you would place the item in stock in each of the [supplies_*] sections:

    [supplies_start]
    ammo_9x19_pbp = 5, 0.8  ; 5 boxes, 80% chance of each

    [supplies_after_fabric]
    ammo_9x19_pbp = 10, 0.5  ; 10 boxes, 50% chance of each


and then set the selling price in the [*_sell*] sections:

    [trader_start_sell]
    ammo_9x19_pbp  = 1, 3  ; sell at 2X the cost

    [trader_after_fabric_sell]
    ammo_9x19_pbp  = 1, 1.2  ; sell at 1.1X the cost


It could be " = 3, 5" to have it between 3 to 5 times the cost in the ammo's description. From what I've seen, it is always the average. (I think they originally meant to vary it based on your rep or whether you were friends or not.)
  00:27:35  13 August 2007
profilee-mailreply Message URLTo the Top
ripperswarm
(Novice)
 
On forum: 08/12/2007
 

Message edited by:
ripperswarm
08/13/2007 0:28:48
Messages: 5

---QUOTATION---
It's possibly just an odds thing. Or there's something you missed.

Here's a generic example for an ammo type.

In the trade_trader.ltx file, you would place the item in stock in each of the [supplies_*] sections:

    [supplies_start]
    ammo_9x19_pbp = 5, 0.8  ; 5 boxes, 80% chance of each

    [supplies_after_fabric]
    ammo_9x19_pbp = 10, 0.5  ; 10 boxes, 50% chance of each


and then set the selling price in the [*_sell*] sections:

    [trader_start_sell]
    ammo_9x19_pbp  = 1, 3  ; sell at 2X the cost

    [trader_after_fabric_sell]
    ammo_9x19_pbp  = 1, 1.2  ; sell at 1.1X the cost


It could be " = 3, 5" to have it between 3 to 5 times the cost in the ammo's description. From what I've seen, it is always the average. (I think they originally meant to vary it based on your rep or whether you were friends or not.)
---END QUOTATION---

ammo_5.45x39_fmj = 10000, 3 this is the ammo i'm trying to add, so far I have it under supplies_start, is there a certain section where he will have it in his inventory all the time of do I have to add it to every section because I can get my stuff into the game when I start a new game but after I leave its not there anymore. I am also trying to add some armor, not a custom armor just a standard one but it never seems ot be there.
  00:52:37  13 August 2007
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
 

Message edited by:
NatVac
08/13/2007 1:08:45
Messages: 4263
Simple answer: Yes, you have to have it in every section. Please read my answer and try my suggestion. Just replace ammo_9x19_pbp with ammo_5.45x39_fmj in my example above.

Why have 10000 boxes? His supply is always refreshed after a bit, and definitely when you come back from another level. A very large number might crash your PC.

The reason the armor might not be there is the same as the answer I gave: The odds are against you.

The [supplies_*] section entries each have two numbers. The first number is the quantity the game will try to add to the trader's stock. The second number is the odds each unit has of being added to the stock.

Consider this example:

    stalker_outfit			= 2,	0.5


The game will try to add two stalker suits. Each time it "flips a coin" (0.5 means 50% chance either way) to see if the suit is available. This means that there could be no suits, one suit, or both suits available when you visit the trader.

If you always want the item to be there, make it 1 instead of 0.5 in all the [supplies_*] sections, like so:

    stalker_outfit			= 2,	1



EDIT: And make sure there is only one entry per item in each section! There should be no following line in the same section with the same item.

This is a no-no:

    [supplies_after_fabric]
    stalker_outfit			= 1,	1 ; always stock one
    stalker_outfit			; NO TRADE  ; this is WRONG

  04:41:53  13 August 2007
profilee-mailreply Message URLTo the Top
ripperswarm
(Novice)
 
On forum: 08/12/2007
Messages: 5
thanks for the help, i'll try and see it it works and the reason I has 10000 boxes is because I believe in extreme overkill when it comes to my ammo supply lol. Also because i'm a little dense if I add something to supplies_start it will stay in his inventory?
  05:19:35  13 August 2007
profilee-mailreply Message URLTo the Top
NatVac
Senior Resident
 

 
On forum: 06/15/2007
 

Message edited by:
NatVac
08/13/2007 5:20:44
Messages: 4263

---QUOTATION---
if I add something to supplies_start it will stay in his inventory?
---END QUOTATION---


As I indicated earlier, every time you visit him after a sufficient delay or after leaving and re-entering the level, the trader's inventory is replenished based on the numbers and percent chance of each.

For your particular situation, however, you will want to make sure your changes are in the [supplies_after_fabric] and [trader_after_fabric_sell] sections, because they are the ones that apply after you give Nimble's flash drive to Sidorovich the Cordon's trader.

It doesn't hurt to have them in the [supplies_start] and [trader_start_sell] sections as well. Fifty boxes is 1500 rounds of that kind of ammo, enough for a few days in the Zone...

Edit: Whoops. I messed you up with removing my reply for edit. Glad you got it going.
  06:48:43  13 August 2007
profilee-mailreply Message URLTo the Top
ripperswarm
(Novice)
 
On forum: 08/12/2007
Messages: 5

---QUOTATION---
if I add something to supplies_start it will stay in his inventory?
As I indicated earlier, every time you visit him after a sufficient delay or after leaving and re-entering the level, the trader's inventory is replenished based on the numbers and percent chance of each.

For your particular situation, however, you will want to make sure your changes are in the [supplies_after_fabric] and [trader_after_fabric_sell] sections, because they are the ones that apply after you give Nimble's flash drive to Sidorovich the Cordon's trader.

It doesn't hurt to have them in the [supplies_start] and [trader_start_sell] sections as well. Fifty boxes is 1500 rounds of that kind of ammo, enough for a few days in the Zone...

Edit: Whoops. I messed you up with removing my reply for edit. Glad you got it going.
---END QUOTATION---

ah ok thought I was seeing things when I didn't see our post after mine. Yep its working now got my armor my umlimited ammo supply and gun now thanks for everything.
 
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-2019 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.