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; I been wondering on the "X_sell" part how the calculation is done so I can fix some of my 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
  #41  
Old June 27th, 2008
mrchris's Avatar
Mainstream music sucks!
 
Join Date: April 14th, 2006
Location: North Babylon, NY
Posts: 118
Rep Power: 0
mrchris is a n00b
Send a message via AIM to mrchris Send a message via Yahoo to mrchris
Default Re: Tutorial: How to edit the trader files

I been wondering on the "X_sell" part how the calculation is done so I can fix some of my traders selling stuff at base price.

5,7 equals what?

Last edited by mrchris; June 27th, 2008 at 03:36 PM..
Reply With Quote
Remove advertisements
Advertisement
Advertisement Sponsored links

  #42  
Old June 27th, 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

5,7 == (5+7) / 2 == 6

If you want him to sell at base brice, use 1,1 .
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #43  
Old June 27th, 2008
Abandonator's Avatar
Darth Taxi
 
Join Date: April 14th, 2008
Location: Belgium
Posts: 2,658
Rep Power: 6
Abandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a Moderator
Default Re: Tutorial: How to edit the trader files

ok, i just started to make a new trader file for the new trader, i copied the barman.ltx, so that saves my serious typwork, but now comes my question:
i changed the line
Quote:
buy_condition = killer_generic_buy
and all the
Quote:
barman_start_sell
etc to
Quote:
[killer_star_sell
but where do i have to add the info that strativaski should use this trader file?

i think that the sell and buy condition can remain the same
__________________
Reply With Quote
  #44  
Old June 27th, 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 abandonator View Post
but where do i have to add the info that strativaski should use this trader file?
In his logic. Where you also set his animation, etc. You have to create a new logic file for him.

You could put something like this into a file like gamedata\config\scripts\ros_trader.ltx:
Code:
[smart_terrains]
none = true
 
[logic]
active = remark
combat_ignore = combat_ignore
trade = misc\trade_YOURTRADER.ltx
 
[remark]
;target = actor
anim = guard
no_move = true
combat_ignore_cond = always
 
[combat_ignore]
And this into some ltx file, where NPCs are defined:
Code:
[rostok_trader]:stalker
character_profile = ros_trader
visual     = actors\...YOURMESH.ogf
corpse_visual   = actors\..THESAME.ogf
immunities_sect  = stalker_immunities
custom_data = scripts\ros_trader.ltx
And this into character_desc_bar.xml (There is no rostok/Wild Territory file):
Code:
<specific_character id="ros_trader" no_random = "1">
    <name>pri_trader_name</name>
    <icon>ui_npc_u_stalker_bandit_veteran</icon>
    <map_icon x="0" y="0"></map_icon>
    <bio>pri_trader_bio</bio>
 
    <class>ros_trader</class>
    <community>trader</community>
    <money min="100000" max="110000" infinitive="1"></money>
    
    <rank>700</rank>
    <reputation>50</reputation>
    <visual>actors\oblivion\stalker_pripyat_trader</visual>
    <snd_config>characters_voice\human_01\stalker\</snd_config>
    <crouch_type>-1</crouch_type>
    
    <supplies>
      [spawn] \n
      stalker_outfit \n
      [logic]
      trade = misc\trade_kanyhalos.ltx
      inv_max_weight = 10000000
    </supplies>
          
    #include "gameplay\character_dialogs.xml"
    
  </specific_character>
As you can see I only marked the things that could/should be changed in your case. Don't want to make things too easy.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #45  
Old June 27th, 2008
Abandonator's Avatar
Darth Taxi
 
Join Date: April 14th, 2008
Location: Belgium
Posts: 2,658
Rep Power: 6
Abandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a Moderator
Default Re: Tutorial: How to edit the trader files

woow useless post

no "end" needed in the ros_trader script?
__________________

Last edited by Abandonator; June 27th, 2008 at 05:32 PM..
Reply With Quote
  #46  
Old June 28th, 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 abandonator View Post
no "end" needed in the ros_trader script?
That's no script boy, it's ltx.

There is another script folder in config and OF COURSE it doesn't contain scripts, but ltx'.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #47  
Old June 28th, 2008
Abandonator's Avatar
Darth Taxi
 
Join Date: April 14th, 2008
Location: Belgium
Posts: 2,658
Rep Power: 6
Abandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a ModeratorAbandonator is as cool as a Moderator
Default Re: Tutorial: How to edit the trader files

oh kay, lol PWND


well i'm going to work further on it ^^
__________________
Reply With Quote
  #48  
Old June 30th, 2008
Lord Pariah's Avatar
Forlorn Hopes Crusader
Soldier
 
Join Date: June 10th, 2008
Location: England
Posts: 302
Rep Power: 0
Lord Pariah is nobody special
Default Re: Tutorial: How to edit the trader files

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.
__________________
высвобождение через социалистический виток
Reply With Quote
  #49  
Old July 1st, 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 Lord Pariah View Post
I would like to balance up prices with out editing every line of every trader. thanks in advance.
Yes, everyone would like to do that, but it's the way how trader files work. Annoying editing of every single line.

Recently there was an attempt to integrate a multiplier that changes the prices dynamically by rank, but I think it didn't work out. I can't find the thread anymore.
__________________
S.T.A.L.K.E.R. My Mods on FileFront | How to edit trader files | Mod Wiki
Reply With Quote
  #50  
Old July 13th, 2008
I'm too cool to Post
 
Join Date: July 13th, 2008
Posts: 13
Rep Power: 0
isbent is a n00b
Default Re: Tutorial: How to edit the trader files

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.
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.