Adding New Upgrades... -1 reply

Please wait...

Grendelin

I'm too cool to Post

50 XP

9th April 2008

0 Uploads

10 Posts

0 Threads

#1 10 years ago

Ok, been working this one for the past couple of hours and no success. I'm trying to make the 5.45x39mm upgrade available to both the vintorez and the val rifles.

made the appropriate changes in the weapon_up.ltx, these are the 3 additions necessary that I found. The addon would display in the last row in the second colum next to the ammo upgrade.

[up_sect_j_vintorez] cost = 3000 value = "5.45x39" ammo_class = ammo_5.45x39_fmj, ammo_5.45x39_ap

[up_j_vintorez] scheme_index = 1, 2 known = 1 effects = section = up_sect_j_vintorez property = prop_calibre

precondition_functor = inventory_upgrades.precondition_functor_a precondition_parameter = a & b

effect_functor = inventory_upgrades.effect_functor_a effect_parameter = something_here

prereq_functor = inventory_upgrades.prereq_functor_a prereq_tooltip_functor = inventory_upgrades.prereq_tooltip_functor_a prereq_params = money(1000), item(habar) name = st_upg_calibre_5_45 description = st_upg_calibre_5_45_descr icon = ui_wp_upgrade_21

[up_gr_j_vintorez] elements = up_j_vintorez

then, for the changes in the weapon.ltx:

i added up_gr_j_vintorez to the list of upgrades.

The game accepts the code and runs no sweat, but when i try to upgrade it, there is no such upgrade available. so i decided to mess with the upgrade_scheme_u7a and change it to u8 since there are 8 upgrades now, but then the game crashes, same for u8a which is what it would actually be with this setup.

help...anyone got this one figured out? is there some kind of standard somewhere for the upgrade_schemes?

Grendelin




norsefire

GF Pwns Me!

50 XP

9th October 2008

0 Uploads

57 Posts

0 Threads

#2 10 years ago

I don't know about modding, but place a thumbnail/upgrade option for all the mechcanics, sounds real great though




Grendelin

I'm too cool to Post

50 XP

9th April 2008

0 Uploads

10 Posts

0 Threads

#3 10 years ago

So far I don't think anyone has delved into changing the upgrade_schemes, so until someone does it won't work properly.

The workaround is to adapt a scheme from another weapon to match the one you want and come up with appropriate upgrades.

If you have any more questions on it, I posted the same question at the GSC forums and got an example on there.




Servalion

I want to be like the Admins

50 XP

6th July 2008

0 Uploads

222 Posts

0 Threads

#4 10 years ago

Well, from what I know, your original attempt worked, there was just no icon to represent the new option you added. Furthermore, I dont think there's a way to add an icon.

I found a nice little mod for the Vintorez somewhere that did just what you did, kinda. It added an option for 5.45 rounds, but it took the place of the upgrade at the bottom to add +5 rounds to each magazine. It gave the Vintorez a base of 20 rounds per mag, tho.

Actually, that sounds exactly like what you're aiming for. Was that you?




Tw33kR

Slightly cooler than a n00b

50 XP

21st September 2008

0 Uploads

48 Posts

0 Threads

#5 10 years ago

Yeah, I've been modding all the upgrades also - changing them to add things like cleaning kits, mode changes and barrel changes etc. From What I've found you can replace existing upgrades with different ones till you're hearts content, but you can't add any sort of new lines to either the weapon_up or st_items_weapons_upgrades.xml files without introducing CTD's. There must be some either filesize match issues or another file somewhere that references these which no-ones found yet.




Tw33kR

Slightly cooler than a n00b

50 XP

21st September 2008

0 Uploads

48 Posts

0 Threads

#6 10 years ago

Doh - can't edit. I mean other than weapon_upgrades.ltx and upgrades_properties.ltx - anyone know which other gamefiles reference these?