XCOM 2
Random Weapon Name Button
95 kommentarer
lichen93 12. dec. 2024 kl. 23:28 
wotc compatiable?
Dragon32 22. aug. 2019 kl. 10:05 
@dmc32:
Add to the nickname list in XComGame.int

Those are per class.
dmc32 21. aug. 2019 kl. 16:21 
@thade, is there a way to add names to the list of generated names?
onestrongbow GocleCD 21. aug. 2019 kl. 14:36 
@thade well i was thinking about the colors , something like puting an RBG code before generating a weapon name , so the weapon will have a RED name or blue (what ever) a bit like what we can see in grimy loot box u know , normal weapons have a green name , rare go with purple name and epic is gold .
thades  [ophavsmand] 21. aug. 2019 kl. 5:48 
Hi @onestrongbow! What do you mean? If you mean literally change the color of the letters, not without a LOT of work. If you mean "more interesting" Yes. As I recall, the weapon name gen uses the same name list as the class of soldier wielding it (or at least the one that would wield it in vanilla) so if you pull down new nickname lists or edit them yourself, you should see those pop up.
onestrongbow GocleCD 21. aug. 2019 kl. 4:11 
any way to make the new weapon nickname a colorfull one ?
Gleen Cross 19. okt. 2018 kl. 17:28 
Thank you mate =)
thades  [ophavsmand] 19. okt. 2018 kl. 16:49 
@Gleen Cross Ha! uuhhh I guess I can do that, it's kind of a lot. I'll set up a collection or something.
Gleen Cross 19. okt. 2018 kl. 16:39 
@thade can you post your mod list? Sorry to bother, I am trying some combinations, but the game still crashes =/ It worked flawless some months ago
thades  [ophavsmand] 19. okt. 2018 kl. 7:47 
Definitely still working for me with my metric ton of mods, @Gleen Cross. :( Sorry you've having trouble.
Gleen Cross 19. okt. 2018 kl. 6:24 
I tried it out with a sniper, then again with a ranger... it did not worked. It's weird because I used this mod some months ago and it worked fine, I wonder if the recent updates broke the mod. But the mod is still working for you two, so the problem is on my end it seems. I will try the troubleshooting later, I'm getting constant ctds with this game =/
thades  [ophavsmand] 17. okt. 2018 kl. 8:40 
I'm pretty sure the soldier needs to have a class (not be a rookie) as all nickname generation in XCOM 2 is tied to a charcter's class (including weapons) so if they don't have a class yet, they have no nickname table to draw on.

So...what weapon type were you trying to rename? And what character class? And do you have any other mods for weapons/weapon mods (e.g. Grimy's kind of stuff)?

@Green Cross
Dragon32 16. okt. 2018 kl. 10:20 
@Gleen Cross:
Odd, works fine for me in WotC. The weapon didn't get a name then? Does the class of soldier the weapon was equipped on have a set of nicknames defined? That seems to be where the names are pulled from.

Some of the material in these guides may help:
Troubleshooting: Mods not working properly / at all
Mod not working? Mods still have their effects after you disable them?
And if you use the Firaxis launcher: https://www.reddit.com/r/xcom2mods/wiki/wotc_modding/guides/fix_duplicateactivemod
Gleen Cross 15. okt. 2018 kl. 16:43 
I tried it out with WOTC, the button appeared... but after I clicked on it, nothing happens.
maschmelzer 15. sep. 2017 kl. 15:53 
Fabulous mod. Now I name all the weapons that get upgrades.
Dragon32 6. sep. 2017 kl. 11:22 
@bookage1:
According to the mod compatibility list on Reddit, yes.
bookage1 6. sep. 2017 kl. 9:39 
Wotc compatible?
thades  [ophavsmand] 1. apr. 2017 kl. 11:21 
Thank you, @hygorct, on both counts :)
hygorct 1. apr. 2017 kl. 8:24 
@thade
i will find a time to test...
thx.
congrats about your second son... and good lucky with your wife...
my mother finished the treatments 3 months ago...
everything is gonna be alright friend :)
thades  [ophavsmand] 30. mar. 2017 kl. 7:39 
To be honest with you, I haven't had time to really test it out; I suspect it doesn't due to the amount of changes LW2 made to the weapon mods and underlying systems there, but it might. (My wife gave birth to our second son two weeks ago and is resuming chemo treatments for breast cancer this week, so I've had perfectly zero time for hobby development.)

To test it for the community, if you feel motivated, fire up only LW2 and this mod together and see whether the button is present and whether it works. Remember it'll only work for soldiers that can themselves have nicknames, so Rookies won't see the button at all (if they do, it's a bug, and probably won't work).
hygorct 29. mar. 2017 kl. 23:12 
compatible with LW2?
dmc32 19. feb. 2017 kl. 15:22 
does this work with LW2?
thades  [ophavsmand] 11. dec. 2016 kl. 18:42 
@SirConnery, my random appearance mod actually does what you're requesting: if you lock all other attributes on the soldier but the gun, you get your desired effect.

Still, having it work on the weapons screen (for named weapon) would be neat. I won't have time to look into this in the short term, but maybe one day. :)
Sir Connery 10. dec. 2016 kl. 12:14 
Could it be possible to create a random appearance mod for weapons? Where it picks a random color + pattern.

My ideal would also be for automatic naming of weapons. Where if you pick a repeater on an Assault Rifle it always names it to a specific name, like Repeater. If you place a stock on any weapon it names it Guaranteed.
With names being configurable in the ini file.

Just some thoughts.
sargrules 3. nov. 2016 kl. 15:16 
cool
thades  [ophavsmand] 3. nov. 2016 kl. 5:45 
Historically it did, yea, thanks to assist from @/dev/null.
sargrules 1. nov. 2016 kl. 21:46 
Does this work with Mod Everything?
Dragon32 19. juli 2016 kl. 12:17 
Been working fine for me in my most recent playthrough, named a few weapons yesterday in fact.
thades  [ophavsmand] 19. juli 2016 kl. 8:54 
@Jeff George. It won't work for Rookies (i.e. soldiers who don't yet have a class designation) although it should be greyed out for those soldiers. If you find it won't work for soldiers who have been ranked up, then you've likely got a conflict on your hands, I'm afraid.
Finarfin 19. juli 2016 kl. 8:01 
That stinks. I do see the button but when I click it there is an appearance of a response but nothing ever appears in the name box.
thades  [ophavsmand] 19. juli 2016 kl. 5:03 
@Jeff George, it's working for me! haha. I was using it yesterday while playing around with all of the new LW mods. Works with my other typical mods too. You might be seeing a mod conflict, unfortunately. :\
Finarfin 18. juli 2016 kl. 17:57 
Is this working for anybody?
thades  [ophavsmand] 13. juni 2016 kl. 6:43 
This might bear additional investigation at this point on my part: maybe it's a smaller effort than I realize to leverage a custom weapons name list, but I have severe doubts. :) I'm moving in two weeks, but after the dust settles I can drill in. If anybody else does before hand and you find something, ping me!
thades  [ophavsmand] 13. juni 2016 kl. 6:43 
Hi @Dragon32.

I *believe* that the function used to generate nicknames for weapons uses the same lists that the soldier nickname function uses, which are all arranged by class in the INI file. (I forget which one offhand.) It's possible that it's a subset or has some other filter (i.e. not the full list that the soldier name function uses) but I didn't drill down far enough to know for certain beyond the "Rookies can't have nicknames" limitation that the two functions share.

Thus, neither GenerateNickname method will return a name for a Rookie or a Rookie-class assault rifle...which is an annoying engine-only difference that the player never encounters except for mods like this.
Dragon32 13. juni 2016 kl. 3:06 
A question on this quote of yours, thade, from 29th Feb:
I went in to do this thinking I'd need to leverage the soldier nickname code, which is selected for based on class and gender, randomize those things and fake it to get the nickname...then I found the weapon upgrade code actually has a function that does precisely that.

So... there isn't a list of weapon nicknames per se ? Rather, weapon nicknames are generated based on the soldier nickname list (which I've extended using a couple of mods).

Just wondering if there's a specific weapons list I could take a look at and see if inspiration strikes for adding to it.
Panopticon 31. maj 2016 kl. 10:25 
Oh sweet, gonna check if it works for me.
Arinsugu 31. maj 2016 kl. 9:12 
Your mod works with grimy's loot mod, at least for me.

Though I have to report that, for a time, it stopped Extended Character Pool from working, but I got both working after deleting my config files a few times.

Praise brute force! Praise modders! Thanks for the great mod thade :D
thades  [ophavsmand] 31. maj 2016 kl. 7:26 
@MoronicCinamun, If I'm understanding you correctly, it's possible that one or more of those custom/modified weapons are based (under the hood) upon the rookie rifle instead of the "non-rookie rifle" which might result in them being "immune" to how my button works. The button is greyed out when it's confronted with a rookie weapon, even though the rookie rifle is numerically and visually identical to the non-rookie assault rifle. (I know, it's weird.)

It's possible that if I can add weapon naming to rookie weapons that we win; I'll give that a go as soon as I have a chance.
BionicCinamun 31. maj 2016 kl. 4:18 
Well I can get back to you now: it seems to be working.
Not sure why, just somtimes the button is greyed out. For the record, I've only really used it for weapons that I modified from "scratch" (rather than ones that came in Grimy Loot Boxes), but it certainly seems to work!

I should also mention it is an amazing mod, seeing as how I have no creativity with weapon names (WH40k Orks are more clever).
thades  [ophavsmand] 30. maj 2016 kl. 10:52 
@MoronicCinamun: you can only rename weapons for soldiers that aren't rookies; the game treats rookie assault rifles as if they're different guns from non-rookie assault rifles. (I'm not sure why, but there it is.) Given that you're mid-campaing, I wouldn't expect that to be an issue though; especially if you're seeing it work inconsistently, which is very strange.

If you could get back to me after you're between campaigns (even if it's a while from now) it would be very helpful to me. :) Thanks!
BionicCinamun 30. maj 2016 kl. 8:54 
Well I am afraid I to start disabling stuff without breaking stuff mid-campaign, but it did work ONCE. For some reason often is greyed out, but it worked once on a Gremlin of all things; possible conflict with the "Mod Everything" (by Grimy, prereq for Loot Mod)?
thades  [ophavsmand] 30. maj 2016 kl. 7:24 
@MoronicCinamun: That's a severe bummer. I've got a few reports now that it has worked; maybe there's a recent Grimy patch that broke it? Have you tried my mod on its own and just the two mods together (with no other mods)? If it happens to be some third mod confusing mine, I'd be very interested to know. I'll have a look and see whether it's something else that's cropped up. :)
BionicCinamun 29. maj 2016 kl. 14:29 
(the loot mod, that is)
BionicCinamun 29. maj 2016 kl. 14:28 
Just wanted to say this doesn't seem to be working with Grimy's mod :/
thades  [ophavsmand] 26. maj 2016 kl. 9:24 
@BlackVision: glad to hear it :) feedback is appreciated! I hope you enjoy it!
The BlackVision 26. maj 2016 kl. 8:00 
Looks good! Giving it a try.
thades  [ophavsmand] 23. maj 2016 kl. 10:11 
@RealityMachina: My day's getting better and better by the minute. :) Thanks so much!
RealityMachina 23. maj 2016 kl. 9:10 
@thade It works.
thades  [ophavsmand] 23. maj 2016 kl. 6:43 
@Married Person, thanks so much! Let me know if things work and/or get weird!
Arinsugu 23. maj 2016 kl. 6:19 
I just read your comment in grimy's mod. Re-subbed to help you bug test as well as enjoy your mod again. Hopefully I won't have to report anything, and everything works completely. :D cheers!