XCOM 2
Grimy's Loot Mod WOTC
Ginger  [개발자] 2017년 10월 5일 오전 10시 49분
Adding support for Grimy Loot Boxes to your mod
Add a file to the config folder of your project and name it XComGrimyLootModWOTC.ini. In it, add the lines:

---

[GrimyLootModWOTC.GrimyLoot_Research]
.AR_T1=“[AssaultRifleTemplateName]”
.SG_T1=“[ShotgunTemplateName]”
.SR_T1=“[SniperRifleTemplateName]”
.LMG_T1=“[CannonTemplateName]”
.SMG_T1=“[SubMachineGunTemplateName]” ;LW SMG Mod, for example
.VR_T1=“[VektorRifleTemplateName]”
.BP_T1=“[BullpupTemplateName]”

.Pistol_T1=“[PistolTemplateName]”
.Sidearm_T1=“[TemplarSidearmTemplateName]”
.SGauntlet_T1=“[SkirmisherRipjackTemplateName]”
.TGauntlet_T1=“[TemplarShardGauntletTemplateName]”
.Gremlin_T1="[GremlinTemplateName]"
.PA_T1="[PsiAmpTemplateName]"
.GL_T1="[GrenadeLauncherTemplateName]"

.MA_T1=“[MediumArmorTier1TemplateName]”
.LA_T1=“[LightArmorTier1TemplateName]” ;No templates exist in vanilla
.LA_T2=“[LightArmorTier2TemplateName]”
.LA_T3=“[LightArmorTier3TemplateName]”
.HA_T1=“[HeavyArmorTier1TemplateName]” ;No templates exist in vanilla
.HA_T2=“[HeavyArmorTier2TemplateName]”
.HA_T3=“[HeavyArmorTier3TemplateName]”
.RA_T1=“[ReaperArmorTier1TemplateName]”
.SA_T1=“[SkirmisherArmorTier1TemplateName]”
.TA_T1=“[TemplarArmorTier1TemplateName]”

.SparkRifle_T1=“[SparkRifleTemplateName]”
.SparkBit_T1=“[SparkBitTemplateName]”
.SparkArmor_T1=“[SparkArmorTemplateName]”

---

Replace what’s after the equals signs ( the = signs) with the actual names of the templates. If you add more than 1 template to a certain type of item, you need to copy that template line as many times as it takes to add all of your templates. Remove any lines you don’t use. (For example, if your mod adds 50 shotguns and nothing else, your file will have 50 lines starting with .SG_T1= and no other lines)

You only need to do T2 or T3 for light/heavy armors, because those don't have what's called a BaseItem that references other the other light/heavy armors. Other than that, just throw all your tier 1 weapons under T1 and then configure your tier 2 and tier 3 weapons as upgrades of the tier 1 weapons and the game will figure it out.
Ginger 님이 마지막으로 수정; 2018년 6월 18일 오전 1시 53분
< >
전체 댓글 57개 중 1~15개 표시 중
Ginger  [개발자] 2017년 10월 5일 오전 10시 50분 
I forgot what the array names for grenade launchers and psi amps were off the top of my head, and I’m at work and can’t check right now. I’ll update this later.
Valkynaz 2017년 10월 5일 오전 11시 09분 
Aren't they this?:
+PA_T1 =
+PA_T2 =
+PA_T3 =

+GL_T1 =
+GL_T2 =
Got them from an mod that used to support Grimys Loot Mod, not sure if they've changed since you ported them too WotC
Lanmark 2017년 10월 5일 오후 12시 11분 
@Ginger
I can in the same way add weapons and armor WOTC to the file XComGrimyLootModWOTC.ini? (found them in the comments you answered.)
Or it should only have unique values (in the block EQUIPMENT TABLES)?
Or have they already been added?
Lanmark 님이 마지막으로 수정; 2017년 10월 5일 오후 12시 12분
Ginger  [개발자] 2017년 10월 5일 오후 12시 39분 
@Lanmark those items have already been added. I added support for the WOTC items, like, 8+ updates ago.

@Valkynaz I couldn’t remember if it was PA and GL or something like PsiAmp and Launcher. The secondary weapons use a different naming convention mostly so I couldn’t remember if they followed he primary weapon naming convention or secondary weapon naming convention.

Also the T# only matters for armors. Everything else uses T1, and the mod figures out which upgraded version it should use on its own. This is because the template assignments are different for armors than they are for anything else. Specifically the template names. T1 armor is KevlarArmor and T2 medium is MediumPlatedArmor, whereas all the weapons are the same template name but have a CV for tier 1, a MG for tier 2 and a BM for tier 3.

For example, look in GrimyLootModWOTC’s XComGrimyLootModWOTC.ini - there’s no tier 2 or 3 for the vanilla items, other than armors.

That’s not to say you *can’t* add T2 or T3 lines. Just that they won’t do anything.

Also if you set your weapons to tiers other than 1, 2, or 3, they will be ignored. This is why you don’t get Resistance Firearms out of the loot crates. E3245 did his tiers weird. Probably for good reason, but it means most of those weapons you’ll never pull out of a loot box because the game thinks you shouldn’t have access to those tiers yet.
Valkynaz 2017년 10월 5일 오후 1시 21분 
Ahh, that explains why I never got no fancy G36Cs
Ginger  [개발자] 2017년 10월 5일 오후 1시 49분 
Yep. E3 did a whole bunch of weird things with Resistance Firearms that just... don’t function outside of his specific use cases.

Oddly enough, some of his pistols are set up properly, so if you choose Build Pistol or Build Sidearm, you’ll sometimes get a Resistance Firearms pistol.
TadsJ2 2017년 10월 7일 오전 1시 42분 
@Ginger hey, i added this to my mod but one of the users reported this :

" but I'm trying to use it with the WOTC Grimy's Loot Mod and when I get weapons from the boxes it just shows an XPad icon (the gray pentagon thing) and I don't actually get the weapon."

I added templates names, as u said , and if i understood correctly :

`CREATE_X2TEMPLATE(class'X2WeaponTemplate', Template, 'WP_CAR_SMG');

my template name which i should add as an SMG would be WP_CAR_SMG , am i correct ?
TadsJ2 님이 마지막으로 수정; 2017년 10월 7일 오전 1시 44분
Ginger  [개발자] 2017년 10월 7일 오전 9시 49분 
Yes, that’s the template name. It’s possible the game isn’t resolving your templates into your weapons correctly.

If he bought tier 3 of the weapon’s base type (e.g. if he was pulling an assault rifle, and he had purchased Beam Assault Rifles) then the game would pull the tier 3 version.

I use your mod, but I only have access to the tier 1 weapons even though I researched tier 2 and 3. If he’s like me, then he may not be getting the tier 2 and 3 because the game may not *have* a tier 2 and 3 to pull.

I’ll see if I can figure out about rolling a new template name if the current one can’t be resolved, but all that will do is keep him from getting your weapons out of loot boxes unless something can be done about the missing templates.
Lanmark 2017년 10월 8일 오후 2시 20분 
@Ginger
Thanks for the answer.

But I meant the Chosen weapon (Arashi, Katana, Disruptor Rifle, Darklance, Darkclaw) and armor in the Alien Hunter DLC (Icarus Armor, Serpent Suit, R.A.G.E. Suit)?
Or you did not add so as not to spoil the game's ENT? =)
Ginger  [개발자] 2017년 10월 8일 오후 2시 32분 
Yeah those weapons are designed to be unique. I'd have to add stuff to ensure that you didn't pull them before you researched their corresponding techs, plus there's the question of "why would a random dude be carrying around a weapon that's better than the ones designed for the ultimate warriors?"

Also, those weapons would be stupidly overpowered if given to your normal troops. Auto-crits on psionic enemies? Auto-hit melee attacks? Every sniper being able to move and shoot in the same turn?
TadsJ2 2017년 10월 8일 오후 11시 21분 
One dude wrote on my mod:
"Hi. I've figured out the issue with the Grimy's Loot integration. You need to remove all of the double quotes and square brackets from around the weapon schematic names. "

Could this be true? @Ginger
Ginger  [개발자] 2017년 10월 9일 오전 12시 48분 
Yes, it is. I'm sorry, I guess I should've made that more clear.

Here's an excerpt from the XComGrimyLootModWOTC.ini that comes with this mod:

.AR_T1 = AssaultRifle_CV
.SG_T1 = Shotgun_CV
.LMG_T1 = Cannon_CV
.SR_T1 = SniperRifle_CV
.SMG_T1 = SMG_CV
.VR_T1 = VektorRifle_CV
.BP_T1 = Bullpup_CV

As you can see, there are no brackets or quotes.

I'm used to certain places on the internet where quotes and brackets mean that a phrase the writer is using is a stand-in for a phrase that he doesn't know. The reader knows it, and is supposed to put the phrase in there, while removing the brackets and quotes. But, of course, not everyone has seen brackets and quotes used in that way.
Ginger 님이 마지막으로 수정; 2017년 10월 9일 오전 12시 48분
TadsJ2 2017년 10월 9일 오전 4시 02분 
kek, dat explains why it is not working properly , nvm man, thx for doing this :)
Chazzle Dazzle 2017년 10월 9일 오후 7시 54분 
Thanks so much
Innominatam 2017년 12월 11일 오전 11시 29분 
So did I do this right?

I named the ini file GrimyLootModWOTC

I have the Ini file in the mods config folder in the workshop section

[GrimyLootModWOTC.GrimyLoot_Research]
.Sword_T1 = SpecOpsKnife_CV
.Sword_T2 = SpecOpsKnife_MG
.Sword_T3 = SpecOpsKnife_BM
< >
전체 댓글 57개 중 1~15개 표시 중
페이지당 표시 개수: 1530 50