Jump to content

No free item mod?


lamenameman

Recommended Posts

Hi guys, Im playing EW-LW and just got into modding.

I wanted to make every items not-free. So I have to buy all items first. Grenades,medikit, rifles....

 

First 25 soldiers have free armory and rest is i have to buy lol. Guess DGC.ini isnt where it is.

Link to comment
Share on other sites

Can you guys point me to the right directions? I guess easist way would be

 

- make every items must researched first

 

-make every items buyable

 

sounds super easy but I spent like 12 hours trying it and failing. Im suck at modding, all I can do is tweak some stuffs.

Link to comment
Share on other sites

Yeah it sounds terribly unrealistic that Xcom have to buy pistols. But im tweaking lots of stuffs, all weapons higher dmg, most enemies lower HP but higher def. +5% crit for all weapons.

 

With this mod loosing Rookies would be not fun.

 

Primary weapon - SMG 5 cash

Secondary weapon - Pistol 5 cash

Item 1 - Alien trophy 10 cash (+1 mobility, +1 crit)

Item 2 - Ap Grenade 10 cash (no mobility penalty)

 

So loosing 1 rookie will be -40 cash atleast. LMG,Rocket launcher will be more expensive.

 

Also all items need 1-7 day build (order time)

Link to comment
Share on other sites

Take a look at the "How to DIY common mod solutions" wiki article.

 

If what you need isn't in there or the included documentation of LW, then it's probably not going to be as simple as some INI tweaks. But be advised that LW has rewritten or repurposed some 600 functions. Trying to change their design concepts means you have to have an in-depth understanding of what they have done, at least in the area you want to change. It's going to be a time intensive learning curve. Most of that information, what there is of it, can be found in various threads in the "forums section" of the LW download page. Start with the "Customizing LW" thread.

 

-Dubious-

Link to comment
Share on other sites

P.S. There's an edit button, so triple posting is a bit weird.

Your comment really gave me hope....

 

 

Take a look at the "How to DIY common mod solutions" wiki article.

If what you need isn't in there or the included documentation of LW, then it's probably not going to be as simple as some INI tweaks. But be advised that LW has rewritten or repurposed some 600 functions. Trying to change their design concepts means you have to have an in-depth understanding of what they have done, at least in the area you want to change. It's going to be a time intensive learning curve. Most of that information, what there is of it, can be found in various threads in the "forums section" of the LW download page. Start with the "Customizing LW" thread.

-Dubious-

 

Thanks, I guess your right and its not within ini I guess.

Link to comment
Share on other sites

The main function that sets items as infinite is XComStrategyGame.upk >> XGStorage.Init(). You'd need to remove all the calls there as a first step.

 

You'd also have to edit all the items in the ini to have a cost greater than -1.

 

Not having infinite items can screw up the game, however. The game looks for weapons and armor to autoequip XCOM units. IF those aren't there and you start a tactical mission, the game will usually lock up.

Link to comment
Share on other sites

The main function that sets items as infinite is XComStrategyGame.upk >> XGStorage.Init(). You'd need to remove all the calls there as a first step.

 

You'd also have to edit all the items in the ini to have a cost greater than -1.

 

Not having infinite items can screw up the game, however. The game looks for weapons and armor to autoequip XCOM units. IF those aren't there and you start a tactical mission, the game will usually lock up.

 

Oh thank you. Maybe I'll make one item free? one SMG and one pistol is equipped to all rookies. After that point I have to buy LMG, Sniper and rifles?

 

Thanks again mate.

Link to comment
Share on other sites

LOL I kinda made it and thanks to johnnylump.

I edited some god know what UPK and made everyitems has 100 quanity.

After that edited their value to 0.1 and sold almost everything.

Now I have only few ballistic weapons and laser weapons.

 

I have to buy weapons and flashbangs now.

Link to comment
Share on other sites

The 100 of the infinite items are granted in XGFacility_Engineering.GrantInitialStores()

 

Alien Grenades are made infinite elsewhere, IIRC -- somewhere foundry-related.

 

Remember using consumable items (rockets, grenades) on missions won't reduce the numbers in stores. Making that happen was deemed too huge an undertaking to even attempt.

Link to comment
Share on other sites

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...