ProjectsWhat's NewDownloadsCommunitySupportCompany
Forum Index » S.T.A.L.K.E.R.: Clear Sky Forum » Mod discussion
weapon mods/upgrades

Posted by/on
Question/AnswerMake Newest Up Sort by Descending
  06:26:48  20 August 2012
profilee-mailreply Message URLTo the Top
moose3
(Novice)
 
On forum: 08/20/2012
 

Message edited by:
moose3
08/20/2012 6:29:36
Messages: 2
weapon mods/upgrades

Since the installed scope upgrades are broken, I thought I would try some modding and make variants of the IL86, FT-200M, and the GP37 and edit the default FOV for the sniper or assault variants so they are permanent.

I edited the descriptions and got them in game using the clear sky complete mod's wish granter, but they are not upgradeable even after moding the 'stalkers_upgarde_info.ltx' to add the variants (wpn_l85a and wpn_l85s were my test mods) to each tech's upgrade lists (also copied over the initial l85 false upgrade path blocks).

What am I missing?

I originally tried leaving the upgrade section in the 'w_l85a.itx' file alone so it was the same as 'w_l85.ltx', but nothing. Then changed each of the entries to "up_gr_**_l85a" and copied/renamed the 'w_l85_up.ltx' file to 'w_l85a_up.ltx' with a 'find and replace' of each instance of l85 and added the #include "upgrades\w_l85a_up.ltx" line in 'weapons.ltx' file but still nothing. Also tried starting a new game in case the tech list was hard coded somehow in the save game, but still nothing.

Am I stuck with deciphering the upgrade trees and applying them to the default file also?

Thanks.
  06:40:44  20 August 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6342
You need to add the section names to inventory_upgrades.ltx as well.

The upgrades aren't broken, they work fine, its just that those upgrades aren't reapplied by the engine on game load, resulting in them reverting to their default zooms.
  08:51:55  20 August 2012
profilee-mailreply Message URLTo the Top
moose3
(Novice)
 
On forum: 08/20/2012
Messages: 2

---QUOTATION---
You need to add the section names to inventory_upgrades.ltx as well.

The upgrades aren't broken, they work fine, its just that those upgrades aren't reapplied by the engine on game load, resulting in them reverting to their default zooms.
---END QUOTATION---



True, they do work for that current map, or until you add a higher tier upgrade Regardless, that info worked, thanks for the help!

Though I needed to set the upgrade path back to the original settings and deleted any upgrade l85a_up references and files as I was getting an error log of :

! [LUA][ERROR] ERROR: line "cost" does not exists in section up_sect_a_l85a

even though it was listed in the w_l85a_up.ltx file.

But that's not really a concern for me since I'm fine with the default upgrade path of the weapons.

Another bug i created: the sell price was not reduced like normal items. But again, like the unique upgrade path issue, not something really important for me at least as it's a mod for my own personal use.
  09:02:09  20 August 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6342
You need to add the upgrade file to configs/item_upgrades.ltx as well.

To reduce the price, you need to add the weapons to the trader files as well.
  12:09:54  20 August 2012
profilee-mailreply Message URLTo the Top
smoq2
Forklift operator
(Resident)

 

 
On forum: 09/08/2008
Messages: 2433

---QUOTATION---
The upgrades aren't broken, they work fine, its just that those upgrades aren't reapplied by the engine on game load, resulting in them reverting to their default zooms.
---END QUOTATION---



By any chance, have you checked if those upgrades are listed in the upgraded weapon's packet data after reloading a level? If they "vanish" from that list, then there is a way to fix this. If they don't, well... This would mean that the upgrade is in fact loaded, but just this one parameter is not overwritten upon upgrade load.
  12:13:33  20 August 2012
profilee-mailreply Message URLTo the Top
SetaKat
Ex modder, Zones only ferret and will someday release a game
(Resident)

 

 
On forum: 02/20/2010
Messages: 6342
No, I haven't. But considering that it remains in the upgrades list in the hoverbox on load might suggest that the parameter isn't correctly overwritten. We'll need to test and find out.
 
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.: Clear Sky Forum » Mod discussion
 

All short dates are in Month-Day-Year format.


 

Copyright © 1995-2021 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.