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; Originally Posted by Lord Pariah Is there a way to adjust global pricing. I mean so you make all traders ...

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
  #51  
Old July 14th, 2008
Amraam's Avatar
I follow teh Moo!
Scientist
 
Join Date: April 29th, 2008
Location: Newcastle, UK
Posts: 741
Rep Power: 4
Amraam is a regular member
Send a message via MSN to Amraam Send a message via Skype™ to Amraam
Default Re: Tutorial: How to edit the trader files

Quote:
Originally Posted by Lord Pariah View Post
Is there a way to adjust global pricing. I mean so you make all traders buy and sell at fairer prices because frankly no one not even a total moron would sell a HK MP5 for 21 ru. It just wouldn't happen even if it was broke the parts alone are worth more. I would like to balance up prices with out editing every line of every trader. thanks in advance.
Simple, Find -> Replace All

All the lines in each section are more or less the same anyway so my suggestion worked perfectly for me. Just remember that the end number of the two. So wpn_l85 = 1, 3; means that it will cost 2 times the base price. To be fair, why they didn't just have it as wpn_l85 = 2, 2; I have no idea.

Items in the generic_buy are the price the trader buys stuff off you.

Items in the supplies_start are the amount and chance he will stock an item. the bit after the _ is the part of the game that you are after. So if you have completed the brain scorcher mission, look at supplies_after_brain.

Finally start_sell section is the price he sells things. Everything that is in the supplies_start section should be here also, but with different values to reflect the price he sells stuff at.

Quote:
Originally Posted by isbent View Post
Any way to fatten an NPC's purse in a current game?

I'm having a post edit issue, I didn't anticipate.
I wanted some quick cash, so I modified the base price of the Caffeine Drink, and use them like high priced artifacts.

It worked fantastically until the Sid and the professor started stating "NPC does not have enough Money." when I try to buy or sell. All the other traders are fine, even after attempting to bankrupt them to TS.

Their affinity to the PC changes the ratio's a little, so I copied the duty trader's ratio's, and set their purses higher keeping them infinite, which I believe will fix this issue in future games (and incidentally, anyone know what happens if you place a value inside the <money></money> tag?).

Is it possible I sold enough energy drink to drive their infinite purse into an infinitely negative value?
Is there a way to reset their base RU in a current game?
Or to have them outright re-spawn?

I've waited quite a while and traveled between the two, and still NPC does not have enough money for me to purchase item's from them.

thanks in advance.
Well the traders technically have unlimited money, but it seems when a transaction gets to a certain value, it kicks off saying they don't have enough funds.

So nope, only way to do what you want is to complete a transaction of say 100'000RU, quick save via F6, then quick load via F7. This resets his inventory, so you can carry on cheating, I mean err, selling.

Just do this everything you hit about 100'000RU in a transaction. I do this when buying ammo and medkits. At the point in the game I'm at, barman only sells 2 medkits at a time. So I buy 2, quick save/load, buy 2, quick save/load...rinse and repeat.
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

  #52  
Old July 14th, 2008
Da_Bl33darg's Avatar
Well well, what have we here?
Rat Wolf
 
Join Date: May 11th, 2008
Location: LA CA
Posts: 114
Rep Power: 0
Da_Bl33darg is a n00b
Default Re: Tutorial: How to edit the trader files

That works? Rly? He reloads items4sale on load game? Damn the engine is dumb! I mean, its just like all the stalkers when u load; stand up from their campfire, reload their weps, wander around for two seconds, and sit back down...
Reply With Quote
  #53  
Old July 23rd, 2008
I'm too cool to Post
 
Join Date: July 2nd, 2008
Posts: 2
Rep Power: 0
KaLeun is a n00b
Default Re: Tutorial: How to edit the trader files

Hello there,

so I edited the kany_supl.ltx and the kany_trade.ltx. I copied the whole kany_buy.ltx, then changed the headline to [supplies_start] and [kanyhalos_sell_start]. Then I changed all the ;NO TRADE to other values.
kany_supl.ltx now looks like:
[supplies_start]
;ARTICATS
af_medusa =0.002,0.002
af_crytal_flower =0.002,0.002
and so on, all elements from the kany_buy.ltx now have the value = 0.002,0.002
kany_trade.ltx now looks like:
[kanyhalos_sell_start]
;ARTICATS
af_medusa =10,1
af_crytal_flower =10,1
and so on, all elements now carry the value 10,1

Now I expected that Kanyhalos is selling each and every Item in the game. Unluckily he is not. I can buy all the artifacts and some amunition and thats it. No Weapons, no Food, Med-Kits or Armours.
What am I doing wrong? I thought I could change the Kanyhalos Trader to sell everything so I can test everything out in Prybiat but where is my mistake? Why is this not working?

Any help very much appreciated.

Thank you
KaLeun
Reply With Quote
  #54  
Old July 23rd, 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

Herr KaLeun,

you have set values like 0.002,0.002 in the supplies section. That means there is a 0.2 % chance that he sells 0.2% of one item. You would want to use values like 10,1 in the supplies so he would sell 10 items at 100%.

Quote:
Originally Posted by KaLeun View Post
;ARTICATS
I wonder what articats are.
You have these in STALKER?
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #55  
Old July 23rd, 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

I have the same problem as KaLeun, except that I got it right.

I set my buy for 1, 1 my sell for 3, 1 and my supplies for 25, 0.10

When I play the game Sid has only three or 4 different artifacts and nothing else. I did the same for all the traders and went to the bar and checked Barkeep and the same thing.

I had it (if it had have worked) for Sid, Ecolog, and Dolg traders to sell Soviet equipment and Barkeep, Freedom and your new guy in Pripyat to sell US equipment.

When I made changes to the Sid's file and went back into the game and went to see him he disappeared. It still showed on the map that he was there but he wasn't in his little office. I shot the chair thinking he was just somehow invisible but nope no trader.

I am using Oblivion Lost 2.1.1 and Faction Change for OL2.1.1 (1.1) and VI-NPC invulnerable for Oblivion Lost 2.1.1
Reply With Quote
  #56  
Old July 23rd, 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

@wildey: If the trader walks away it's a clear indication that the trader files are wrong. Also that he only has few supplies often happens when the files are broken. Please check your edits and make sure you didn't break anything by using non-existing items, special/reserved characters etc. Also all items in the sell file must exist in the supplies file or the other way around.

I'd suggest comparing the old files and the new ones with Winmerge or comparing the sell and the supplies files.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #57  
Old July 24th, 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

How do I know an item is non-existing?
I figured something was wrong because when I went to the bar the Barkeep just stood there and wouldn't move around like he normally does I had to kill the guy standing guard to get close enough to talk to him. With the trader disappearing and the Barkeep a zombie it's pretty much a clear indication I totally pooched it somehow.

I have checked over the files twice with a fast scan to see if it was just an error on my part (missed a comma, etc) but I guess I will have to delve into it deeper.

When I did it I just copied the whole buy section and pasted it to supplies and sell and then fixed the numbers to correspond with how they should be in each section. So all of the stuff I am selling should be in the supplies section too but I am going to double check that as well.
Reply With Quote
  #58  
Old July 24th, 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

If you copy the stuff, it is pretty sure that it exists. Only if you write new items into it, you have to watch for typos etc.

You could also try the ltx checker to automatically test your files:
GSC Game World - Official Site
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #59  
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 I will give that a try. I sort of did a work around by using Amber's Trader Mod for OL2.1.1. But I still want to see what I screwed up.

I have another couple of questions since you seem to know an amazing amount about this game. Is it possible to put the range data that you can select in normal vision into the binoculars. If yes how?

I am visually impaired, not blind mind you but pretty close to it, and the crosshair dot when I am using a weapon is way to small for me to see a lot of the time, especially in hairy situations. What file do I edit to change the size of it?
Reply With Quote
  #60  
Old July 26th, 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 wildey View Post
I have another couple of questions since you seem to know an amazing amount about this game. Is it possible to put the range data that you can select in normal vision into the binoculars. If yes how?
It should be possible but it's not easy to do. You would have to write a script that measures the range between you and the NPCs around you. Then put it on to the screen. So it probably can be done but I'm not 100% sure about it.

Quote:
Originally Posted by wildey View Post
I am visually impaired, not blind mind you but pretty close to it, and the crosshair dot when I am using a weapon is way to small for me to see a lot of the time, especially in hairy situations. What file do I edit to change the size of it?
In system.ltx under [hud_cursor] you'll find some values. cross_length sets the size and 0.015 was the vanilla value, I think.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
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.