Full concept MODIFICATION of S.T.A.L.K.E.R. Call of Pripyat that touches every game aspect including textures, sfx, music, weapons, A.I., items, weather, mutants, difficulty and much much more!

Forum Thread
  Posts  
Persistent trader inventory mod (Games : S.T.A.L.K.E.R.: Call of Pripyat : Mods : MISERY : Forum : Mod optimization : Persistent trader inventory mod) Locked
Thread Options
Apr 9 2017 Anchor

I'm thinking about making a modification which I think would benefit the gameplay.

As I understand, currently all the trader inventory is controlled via trade_*.ltx files and it refreshes every time the game is reloaded/some times passes.

However is it possible to make the trader inventory persistent via lua scripting, and force it to refresh every X days, similar to how artifacts are refreshed after emissions?

That would, in my opinion, make the gameplay more engaging, as players would have to control their ammo usage more carefully and use different weapons, should their main weapon ammo become out of stock at traders.

I know Lua and, after reading some articles understand the basics of engine/lua interaction in Stalker, but still unsure if this is achievable and where should I dig. Any hints/insights would be much appreciated.


jasper34
jasper34 MISERY PR Lead
Apr 9 2017 Anchor

Not sure if it's possible (IDK LUA LOL). I would like it though. It would, as you say, eliminate the reload exploit and limit available ammo.

Apr 13 2017 Anchor

Finding what you need to edit is often the hardest I find. I don't recall stumbling on what you would need, have you tried using the findstr command to look for stuff you think would likely be in that file?

Oh it's also possible that the file you need to edit is not in misery. You can extract everything from the game's original files though. I think the file I used is called COP_DATAFILES_UNPACKER.exe. If you cannot find it let me know I can upload it for you.

Apr 19 2017 Anchor

maybe the file you are looking for is "trade_manager.script under gamedata/scripts.

Oct 11 2017 Anchor

On a MOL equal note...

Misery - Editing Starting Inventory

I downloaded Misery 2.2 for the first time a couple weeks ago.
Interesting but difficult.
I want to change the gear I'm assigned on mission start, specifically the suit and money and after spending several hours searching I came up with the file...
gamedata/scripts/axr_misery.script.ltx

---- Class specific items
if (ActorClass == "assaulter" then
create_items("identity_card_assaulter"
create_items("container_tool"
create_items("con_checker"
if (MiseryBlackRoad) then
create_items("wpn_axe"

else
create_items("wpn_ak74u"
create_items("roubles",70000)
create_items("scientific_outfit"

But after altering the suit and rubles values no change takes place in any class even after rebooting the entire game.

What am I doing wrong?

jasper34
jasper34 MISERY PR Lead
Oct 11 2017 Anchor

Compare the syntax of the before and after files and looks for mistakes. Make sure you edited the installed files for your class, not the ones in the unpacked MISERY 2.2 folder.

Oct 28 2017 Anchor

Jasper...
Thx for the hint.
Turns out I was in fact, in the wrong directory ( MISERY 2.2).

I found my trader data in...
C:\Program Files (x86)\bitComposer Games\S.T.A.L.K.E.R. - Call of Pripyat\gamedata\configs\misc\trade

I abandoned modding the starting gear in favor of camping in a well positioned place and killing/looting everybody that came by for several days.
I'd wack/loot the guys then stash their loot in a pack nearby to keep my guy nimble.
End of the day I'd grab up what loot I could carry and make my way back to the Skadvosk.
Between Beard and Owl, I made out pretty good reselling the loot and was able to upgrade pretty quick.


Reply to thread
click to sign in and post

Only registered members can share their thoughts. So come on! Join the community today (totally free - or sign in with your social account on the right) and join in the conversation.