User:Darkid/Code

From Team Fortress Wiki
< User:Darkid
Revision as of 18:47, 2 September 2012 by Darkid (talk | contribs)
Jump to: navigation, search
Nothinghere.png
Add me!
Add me!
If you need help with templates, those I've written or not, please do not hesitate to send me an email, add me on steam, or leave me a message on this wiki.
[hide]User:Darkid
  • Where I put everything User Page
  • Where I get complimented or yelled at (softly) Discussion
  • Where I talk about those things I haven't done Projects
  • Where I make TF2 easier Scripting
  • Where I categorize those things I've done Achievements
Has a clue as to what he's doing and how the wiki works
— W
I mean, I'm rather surprised that this English-speaking man/machine doesn't have a cap yet
— A
In short, he gets shit done. !endlog
— I
User Darkid Profile3.jpg This is me.
Good evening, User Darkid Checked Checkbox.pngFRIEND/User Darkid UnChecked Checkbox.pngENEMY,

User Darkid Checked Checkbox.pngWELCOME TO/User Darkid UnChecked Checkbox.pngGET AWAY FROM my userpage. This is where I put User Darkid Checked Checkbox.pngRANDOM FACTS/User Darkid UnChecked Checkbox.pngSTATE SECRETS. I am primarily an English User Darkid Checked Checkbox.pngEDITOR/User Darkid UnChecked Checkbox.pngBLOODY CASUAL who looks for things to User Darkid Checked Checkbox.pngFIX/User Darkid UnChecked Checkbox.pngBREAK on this wiki. At last count, I have User Darkid Checked Checkbox.pngEDITED/User Darkid UnChecked Checkbox.pngBROKEN 20,538 pages on this wiki. I tend to focus on templates, as they remind me of my main User Darkid Checked Checkbox.pngLOVE/User Darkid UnChecked Checkbox.pngHATE in life, programming. The rest of my work is spent doing menial things, such as categorization or consistency edits.
I look forward to User Darkid Checked Checkbox.pngWORKING WITH YOU IN THE FUTURE/
User Darkid UnChecked Checkbox.pngPUMMELING YOU TO DEATH WITH MY BARE HANDS.

User Darkid Checked Checkbox.pngSINCERELY/User Darkid UnChecked Checkbox.pngUP yours,
This just got signed by SAXTON HALE!
BLUicon.gif This user is an employee of BLU.
User Medic.png This user is a Medic.
“Zat, vas doctah assisted homicide!”
User LordKelvin Spycheck.png This user HATES Spies.
Apple Logo.png There's a Mac at this user's home.
Backpack Mann Co. Supply Crate Key.png This user refuses to buy Mann Co. Supply Crate Keys as a matter of principle.
Poker Night Icon.png This user plays poker with a gamer, a support specialist, a wrestleman, and a lagomorph.
L4D2.png This user fought off the zombie apocalypse with a gambler, a coach, a rambling mechanic, and a reporter.
Sam and Max The Devil's Playhouse.jpg This user loves the episodic adventures of the Freelance Police.
en This user has a native understanding of English.
es-3 Este usuario tiene un conocimiento avanzado del español.
Backpack Crusader's Crossbow.png

"I'm not a doctor; I'm a medic"
Epic Crossbow - Kills: 6700
Fires special bolts that heal teammates and deal damage based on distance traveled
No headshots
-75% max primary ammo on wearer
"A doctor cures people. A medic just makes them more comfortable while they die."

Medic Mercenary.png This user is a Mercenary.
Hire Date: Apr 19, 2011 (23:52:57 GMT)


Dueling Medal Silver.png This user owns a Silver Dueling Badge which is Level 25, requiring roughly 250 more duel wins to upgrade it.
Max's Severed Head.png This user bought a rabbit hat and got a game for free.
Achieved.png This user has earned 495 of the 520 TF2 achievements. That's 95%!
Dead Ringer.png This user has spent 4694 hours of his life playing Team Fortress 2!
Tf scout long distance runner.png This user enjoys Team Fortress 2 at 60 frames per second.
World.jpg This user has spammed IRC so hard they crashed Spacenet...
4 times.
{{ }} This user knows how to edit templates and can create them too.
D No, this user didn't organize his userboxes in any particular way; this is just an optical illusion.
Dead Heat Icon.png As of 24 December, 2024,
I have been a Team Fortress Wiki member for 13 years, 3 months, 7 days (since 17 September, 2011).


Scout Soldier Pyro
Wiki Cap Max's Severed Head Earbuds Scattergun Pistol Boston Basher Wiki Cap Max's Severed Head Earbuds Rocket Launcher Gunboats Escape Plan Wiki Cap Max's Severed Head Earbuds Degreaser Shotgun Axtinguisher
Demoman Heavy Engineer
Wiki Cap Max's Severed Head Earbuds Grenade Launcher Stickybomb Launcher Pain Train Wiki Cap Max's Severed Head Earbuds Minigun Sandvich Gloves of Running Urgently Wiki Cap Max's Severed Head Earbuds Shotgun Wrangler Jag
Medic Sniper Spy
Wiki Cap Max's Severed Head Earbuds Crusader's Crossbow Medi Gun Übersaw Wiki Cap Max's Severed Head Earbuds Sniper Rifle SMG Tribalman's Shiv Wiki Cap Max's Severed Head Earbuds Ambassador Dead Ringer Conniver's Kunai

Contents

Script for finding projectile speeds.

On Template:List of projectiles, at the bottom of the page, a "script to find correct values" is mentioned. It appears that there was meant to be a link, but there is not one. I ask you, Darkid, because it was your edit (in May of 2016) that added this line. Do you still have a link to this script? Stack man (talk) 06:19, 3 May 2020 (UTC)

Sorry about that! I suspect it got removed by the spam filter. Here's the link: [1]. I've also added it to the page. Darkid « TalkContribs » 07:41, 3 May 2020 (UTC)

New availabilities

Hey. Could you please add new availabilities in Template:Availability for Pile Of Curses, and Crafting (expired)? It's for items received from it. User Denied signature.jpg Denied (Talk) 17:16, 21 May 2020 (UTC)

Ah, I see. That's currently just directly using {{Tooltip}}, and you want it in the module?
It looks like there's a common string which is similar to this, distributed-expired. (See Template:Dictionary/common strings/distributed-expired).
Do you think it'll be sufficient to change all the prefixes there to [[Crafting{{if lang}}|{{common string|crafting}}]]?
Darkid « TalkContribs » 01:26, 22 May 2020 (UTC)
pile-of-curses redirecting to Pile Of Curses and crafting-expired redirecting to Crafting + this tooltip added next to it like it looks like in distributed-expired.
Done. Darkid « TalkContribs » 06:36, 22 May 2020 (UTC)
Thanks. Could you only please change word "Crafting" to "Craft" for consistency? craft-expired and Craft. The preceding unsigned comment was added by Denied (talk) • (contribs)
If you add your proposed change to the sandbox, then I can just take it ;) Darkid « TalkContribs » 19:32, 22 May 2020 (UTC)
Well, I changed the dictionary string. Darkid « TalkContribs » 01:50, 23 May 2020 (UTC)

Help with dictionary

Could you please help me again? I can't figure out how to fix Template:Dictionary/blueprints for Santa's Little Accomplice and Public Enemy. User Denied signature.jpg Denied (Talk) 15:36, 2 June 2020 (UTC)

What seems to be not working? It looks like you did this correctly to me. Darkid « TalkContribs » 00:04, 3 June 2020 (UTC)
Looks like Wiki is messing with me. Then the only problem is that the Pretty Boy's Pocket Pistol is not showing as crafting ingredient, next to the Baby Face's Blaster. User Denied signature.jpg Denied (Talk) 05:23, 3 June 2020 (UTC)
Looks like we're missing some template code. I'll see what I can do. Darkid « TalkContribs » 07:28, 3 June 2020 (UTC)
Well, I fixed up the template, but I don't think this looks quite correct: [2]. When the ingredient is not part of a set, the name is wrong. Darkid « TalkContribs » 06:08, 4 June 2020 (UTC)

3D viewer

Hello, I've been trying to reach you whether on steam (Overlord S7) or through e-mail but to no avail. I'm an admin in Inkipedia, a wiki about Splatoon (shooters game from Nintendo) and I'm interested to know about the 3D viewer and if I can try to implement a simpler implementation of the 3D viewer to our infoboxes. I saw that you maintained the module so I thought to ask for advice on how to implement it. I'd be happy if you could chat with me through e-mail or discord (Shahar#3810). Thank you! Shahar (talk) 11:41, 29 April 2021 (UTC)

Hey, sorry about that -- I get a lot of adds on steam, so someone with 0 rank and a private profile is usually a spammer :)
The core of the implementation is actually dead simple. If you take a look at, e.g. Scattergun, and use "inspect" (should be available in most major browsers), you'll see this:

<div class="viewer-3d-frame" data-id="0" style="height: 152px; background: url("https://wiki.teamfortress.com/w/images/b/bd/Scattergun_3D.jpg?20180821160906") -11807px 0px no-repeat; left: 25px; top: 64px; width: 197px;"></div>

First and foremost, take a look at the image here: File:Scattergun_3D.jpg. It's actually quite a wide image, containing all of the possible rotations.
Second, take a look at the styling: style="height: 152px; background: url(...) -11807px 0px no-repeat; ..."
All that's happening here is that the image is being shifted and cropped. Essentially, the "3D" image is just a bunch of 2d images all next to each other, and the "3D viewer" is just changing the offset into the main image.
If you look at the contents of Scattergun_3D.jpg, you can see a large list called "map" as the template argument. This is where the actual offsets are stored.
I don't know too much more about the intricacies of the template, but the code to generate the file is here -- though it uses HLMV, sorry, you'll need to hack at it to use a different viewer.
Darkid « TalkContribs » 09:14, 30 April 2021 (UTC)
Hey, thanks for helping me out. I got all the modules, templates, JS and CSS changes to display the 3D viewer with the Minigun (It was similar in design to the Splatlings so I thought it was a good example). I also got one of the Splatoon models into HLMV with partial texture. What I'm stuck at is that I can't get the script to work. I've tried to follow Team Fortress Wiki:3D Models but with no success. Shahar (talk) 14:21, 7 May 2021 (UTC)
Well, as I mentioned, the code was written specifically for HLMV, a valve-based model viewer. If you want it to work with Splatoon, you'll need to change the code which interops with HLMV to talk to your program instead. You'll need to be able to change the weapon's rotation, translation, and the scene background color (to compute transparency).
I can't really help you with the specifics there, since it's going to depend on the model viewing options available to you.
Darkid « TalkContribs » 15:30, 8 May 2021 (UTC)
Hey, I got the script to work but the model doesn't rotate. [Image]. I'm currently on Python 2.7, packages from python 2 and I ran the command setup.py so that wikitools will recognize parts of itself such as wiki, api, page, etc... I'm also worried about getting the offsets for the images without uploading it to TF2 wiki cause Inkipedia doesn't currently have API. Shahar (talk) 18:34, 18 May 2021 (UTC)
I fixed the rotation issue, new version is up on Github. If inkpedia doesn't have an API, you can always just upload it to your sandbox page (User:Shahar/Sandbox). Darkid « TalkContribs » 13:37, 20 May 2021 (UTC)
Hey, I'm trying to excecute the code but it says that "mem.exe" is not compatible with 64-bits versions of Windows. Could you resolve that? · Ashe (talk) 16:16, 20 May 2021 (UTC)
Can you give me the exact error message? Ideally, the entire terminal window (and your system information). I'm not sure why this is happening, since my computer is 64-bit. Darkid « TalkContribs » 16:22, 20 May 2021 (UTC)
This. It's in spanish but it says something like "16-bits app incompatible ... Cannot start or run due to incompatibility with 64-bit versions of Windows". My specs are Windows 10 Pro 64 bits, 16 GB RAM, AMD Ryzen 5 3600.

────────────────────────────────────────────────────────────────────────────────────────────────────The error is "Unsupported 16-Bit Application", and it seems to be a remnant of mingw. I've tried recompiling with g++ instead of gcc -- if that doesn't work I'll need to port the exe to a real compiler, which will take some time. Darkid « TalkContribs » 16:38, 20 May 2021 (UTC)

Template:Item infobox/Sandbox Requested Addition

Hi,

I'm currently prototyping some things on the item infobox sandbox page for use on an experimental page. Essentially, I'd like for it to generate 3D viewer-like buttons that allow you to preview wears on an item if the item type is war paint or warpaint.

It would be great if you could help with this, because I have no idea of how to go about that and don't want to break anything. Thanks. ~ Boba 21:16, 28 October 2021 (UTC)

I don't really have any bandwidth to help develop templates on the wiki. I'm can help debug things if they mostly work, and I'm happy to double-check your work, but I can only offer advice right now.
For example, the 3D viewer uses custom javascript to make the tab switching work (see MediaWiki:Common.js). The main trick would be to support this ask with the least amount of additional javascript, and the least amount of new, complex modules.
Darkid « TalkContribs » 20:07, 21 November 2021 (UTC)

Banana Bay/ko

Hi Darkid!

I want to delete the Banana Bay/ko page.

As a member of STS, I can say that page is awful like google trans. The text in korean is not makes sense and some grammar errors in there.

Joeun (talk) 16:35, 30 November 2021 (UTC)

Hi Joeun! Thank you for following up. I am deleting the page now. Darkid « TalkContribs » 17:03, 30 November 2021 (UTC)

Move Blap Bash page to BlapBash

Hey Darkid, Please can you move Blap Bash to be BlapBash (and all sub-pages) as the event name does not contain a space. I can't do it due to my account limits. Thank you in advance. - Jon, Blapature Co. Organiser BlackOutJon (talk) 12:08, 12 December 2021 (UTC)

Done, thanks for the heads up. Darkid « TalkContribs » 12:13, 12 December 2021 (UTC)

/en

Why does your bot create a list of articles with the prefix /en, if all articles are written without it? Far (talk) 08:12, 13 December 2021 (UTC)

Can you be more specific? It's possible that there is a bug with one of the reports, I did have to make some updates to the scripts to get them working again.
Which report seems to be misbehaving, and how would you expect it to behave? Darkid « TalkContribs » 12:20, 13 December 2021 (UTC)
In the general list of English articles, your bot writes them with the prefix /en. You can see this for yourself by going to Team Fortress Wiki:Reports/All articles/en.Far (talk) 16:21, 13 December 2021 (UTC)
I'm not sure what you mean, when I go to Team Fortress Wiki:Reports/All articles/en I don't see any links which say "/en". The page title says "/en", and I can change that if you want, but the article list itself seems correct.
Image
Darkid « TalkContribs » 18:21, 13 December 2021 (UTC)
-> [3]Tark 18:29, 13 December 2021 (UTC)
Oh, thank you. Will fix. Wait, why is windbot still editing this? Or did you give it a kick for me? Darkid « TalkContribs » 19:17, 13 December 2021 (UTC)
Fixed, reaching out to wind to get WindBOT to stop updating these pages Darkid « TalkContribs » 15:11, 14 December 2021 (UTC)

Mmmph/hu redirect request

Hello! I'm Kevin and I'm one of those fews, who translate the hungarian TF2 wiki, I have question rather a request if I may. Can you have the time to redirect the page, Mmmph/hu to Phlogistinator/hu. I tried to redirect it but I'm not a administator nor moderator on this wiki.

Greetings, Vinzesco (talk) 19:41, 7 January 2022 (UTC)

You should be able to do this yourself, the page is free to edit for anyone and redirects aren't restricted to staff.
GrampaSwood (talk) 19:45, 7 January 2022 (UTC)
Done: [4] Darkid « TalkContribs » 19:51, 7 January 2022 (UTC)
Thanks for the help, Vinzesco (talk) 14:02, 8 January 2022 (UTC)

"HLMV - Missing Folders Fix" pack has been updated.

Hi. I don't know if you have any plans in using it, but just letting you know that I updated the pack with the latest patch (January 5, 2022 Patch). It was missing several folders from items from latest "major" updates, such as Halloween, Summer and Smissmas updates. Before sending this post, I tried loading some of the new items on HLMV, and none of them had any problems loading (no errors trying to find the directory). Because of the new link structure I have set on Help:HLMV, I don't need to edit the page again everytime I update the pack fix, as the link will directly go to the latest revision on my GitHub repository. User Gabrielwoj Signature Icon.png - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 14:51, 8 January 2022 (UTC)

Template:QuAD/list

Hello darkid! I don't really understand the template that well but I was trying to add "Halloween Package" and "Halloween Transmute" to the list, and there is a problem. In Template:Dictionary/quad, you can only use "=special" parameter once, and there are actually some items that have two for some reason. For example the Boston Boom-Bringer, this is what happens, only "Unlocked Cosmetic Crate".

There is another problem with the Scream Fortress 2014 items, which already use "scream fortress vi" (Unlocked Creepy Crate + Halloween Gift Cauldron), and would require more "special" parameters (like special2 , special3, special4, etc). Example for the Nugget Noggin cosmetic: unique: {{quad/list|store=y|special=scream fortress vi|special=transmute|special=halloween package}}

I was thinking to add like a "special2" parameter at first, but I saw this edit on the history and as you said: "it would force quad to have ordering, which leads to user errors.". So, is there another way to add more "special" parameters? Thanks! Mgpt (talk) 23:58, 4 February 2022 (UTC)

I'm not honestly sure why we use special over just adding parameters to the top-level list. Feel free to sandbox your changes and I can take a look before you push them.
Darkid « TalkContribs » 00:43, 5 February 2022 (UTC)
This edit is similiar of what I was trying to do, then I saw your comment and well... it won't work I guess D: Mgpt (talk) 00:58, 5 February 2022 (UTC)
So, I was picturing you could just add another parameter like {{{unlock}}} or {{{promo}}}. That way you wouldn't need a special2, you'd just put something like {{QuAD/list|craft=y|drop=y|halloween-package=y}}. Special was originally for dynamic strings which needed a dictionary lookup -- that has become very muddied.
Originally, it was this:
{{#switch:{{{special|}}}
|unusual={{dictionary/items/mann co. supply crate}}
|botkiller weapons|dueling minigame|pile of ash|pile of curses|polycount pack|quakecon bundle|strange bacon grease={{dictionary/items/{{{special}}}
|#default={{dictionary/common strings/{{{special}}}}}
}}}}
Anyways, I think we can just add top-level parameters, but I'm not 100% sure and so it would be good if you could sandbox that before changing everything.
Darkid « TalkContribs » 08:51, 5 February 2022 (UTC)
Hello darkid, I added the template to my User:Mgpt/sandbox. Could you check what I need to add? (you can edit the page if you want) Thanks :D Mgpt (talk) 02:45, 11 February 2022 (UTC)
  1. Traditionally, we test out templates on a sandbox page relative to the template, i.e. Template:QuAD/list/Sandbox.
  2. There, you can add whatever you want to change to try and make your scenario work.
  3. Then, you should test out your changes, e.g. go to one of your sandbox pages (User:Mgpt/sandbox) and try using the template as you would in the dictionary, to see what it looks like. Here, you'll invoke the sandboxed template, e.g. {{QuAD/list/Sandbox|craft=y|drop=y|my-new-parameter=y}}
  4. Make changes to the sandboxed template until your sandbox looks like what you want.
  5. If you feel confident in your changes at this point, update the main template. If not, ask me for a review.
Darkid « TalkContribs » 10:34, 13 February 2022 (UTC)
Hi! I made some changes - Template:QuAD/list, I also changed the order to match with the availability text in cosmetic pages. Is it okay? Thanks. Mgpt (talk) 02:42, 5 March 2022 (UTC)
Seems fine, just try to avoid making so many changes in the future, it causes wiki lag. Also, watch out for using (), other languages have different parenthesis (notably japanese and chinese). Darkid « TalkContribs » 05:16, 10 March 2022 (UTC)
19:08 <Mgpt> hello Darkid! With my latest edits I added the missing cases to the Quad template and added the Quad/series template, It works, at least for me. Could you take a look at it?
19:11 <Mgpt> [[Template:QuAD/list/Sandbox]]
19:11 <@Spacenet> Template:QuAD/list/Sandbox: https://wiki.tf/Template:QuAD/list/Sandbox
19:11 <Mgpt> [Template:QuAD/series]]
19:11 <Mgpt> [[Template:QuAD/series]]
19:11 <@Spacenet> Template:QuAD/series: https://wiki.tf/Template:QuAD/series
I can look again but not this weekend Darkid « TalkContribs » 03:04, 19 March 2022 (UTC)
  1. {{QuAD/series}} should be a dictionary string. There's no reason to make a separate template for it.
  2. I would recommend keeping the direct dictionary invocations ({{dictionary/items/name tag}}) for performance reasons.
  3. Be careful with strings like {{item name|Select Reserve Mann Co. Supply Crate}} {{QuAD/series|60}}. Not every language will want the words in this order. You may consider making the QuAD/series string take a second parameter, e.g. {{QuAD/series|60|Select Reserve Mann Co. Supply Crate}}, so that each language can customize the order if needed.
  4. I would recommend putting the "Series 60" text in parenthesis. Compare:
Select Reserve Mann Co. Supply Crate Series 60
Select Reserve Mann Co. Supply Crate (Series 60)
5.Can you please put in some noinclude section headers to make future editing easier? Ala the dictionary:
-->{{#if:{{{crate5|}}}|{{!}}{{item name|Mann Co. Supply Crate}} {{QuAD/series|{{{crate5}}}}}}}<!--
-->{{#if:{{{crate6|}}}|{{!}}{{item name|Mann Co. Supply Crate}} {{QuAD/series|{{{crate6}}}}}}}<!--
-->{{#if:{{{crate7|}}}|{{!}}{{item name|Mann Co. Supply Crate}} {{QuAD/series|{{{crate7}}}}}}}<noinclude>
## Crate series
</noinclude>{{#if:{{{series6|}}}|{{!}}{{item name|Festive Winter Crate}}}}<!--
-->{{#if:{{{series22|}}}|{{!}}{{item name|Refreshing Summer Cooler}}}}<!--
Darkid « TalkContribs » 20:22, 10 April 2022 (UTC)
Hello, I created the string and added it to the template, could you check? About adding the parenthesis, the official name is Mann Co. Supply Crate Series #123 so I think we should keep how it is. Thank you for all the help :D Mgpt (talk) 02:21, 14 April 2022 (UTC)
The template looks reasonable, I would just remove the 1= and 2= and just write Template:Dictionary/common strings/crate-series
I agree with your point about (4), feel free to leave out the parenthesis.
Also, it looks like my suggestion for (5) doesn't work, so you can take those back out again. Sorry :/
Darkid « TalkContribs » 04:13, 14 April 2022 (UTC)
I removed them and added the new string to the crate parameters, Edit 1 Edit 2. Everything seems to work :D I also removed the "lc" from gift parameter (not needed right?) and replaced default "case" with {{ns:0}} Mgpt (talk) 02:03, 15 April 2022 (UTC)
{{lc:}} was being used because of a direct dictionary call. I've reinstated those calls where it makes sense, although it does make the template less readable. Once you've deployed the changes we can reevaluate the template cost (for things like the hat avail table).
Overall, looks good to me. If you have the time, can you also investigate why two of the qualities are causing template redlinks?
{{common string|winter 2016 cosmetic crate}} and {{common string|bioshock infinite season pass}} are somewhere in the quad dictionary, but the strings don't exist anymore.
(see TFW:Reports/Wanted templates). Darkid « TalkContribs » 05:38, 15 April 2022 (UTC)

Template request

Hi there,

In response to this talk page entry, would it be possible to change the {{pronounce}} template to support a different IPA link?
GrampaSwood (talk) 16:18, 1 June 2022 (UTC)

Done, I feel like you could've tackled this one :) Maybe next time? Darkid « TalkContribs » 16:33, 1 June 2022 (UTC)

Style Guide/ru

Hi there! I've noticed that you moved the russian translations for the FAQ and Wiki Cap guidelines under the main namespace back in April.

I was recently approached by a /ru member, who told me that translations of this kind were removed a few years ago, in compliance with some unbeknown-to-me decision.

By any chance, as of now, can the localized version of the Style guide be moved back in as well?

-User Foxbite avatar.jpgfoxbite (talk) ⨯ (contribs) 14:11, 10 June 2022 (UTC)


Untranslated Templates Specification Possibility?

Hi there, you(r bot) created this list: 368 templates missing German translation ;; this is nice, but it isn't as helpful for me as at seems. ; f.e. Template:Backpack item has 35928 uses and is missing 1 translation <- i cant find the specific place where the translation is missing, cause these templates are complex and big and if i scroll through them i can easily miss it. Since your bot knows there is something missing can't it mark the general/specific area and make a note in the untranslated template report? This would help every language a lot and make the templates very accurate and complete very fast. Thanks for any feedback. Magicalpony (talk) 14:20, 23 July 2022 (UTC)

Should be better now. Thanks for the suggestion! Darkid « TalkContribs » 18:05, 13 August 2022 (UTC)

Broken weapon preview template?

It seems like the template for the weapon previews on pages appears to be broken.

Like the 2D images are supposed to have both RED and BLU variants that you can toggle, but for some reason it only shows the RED image, causing the BLU images to go completely unused.

If you could look into this and hopefully fix it, that'd be pretty swell of you

Thanks.--ShadowMan44 (talk) 23:15, 8 September 2022 (UTC)

This is a long-standing bug that I am not fixing. Sorry. Darkid « TalkContribs » 00:47, 9 September 2022 (UTC)

3D view advanced module

Hello, I was wondering how I could port this template, and any JS/CSS it has over to another wiki, if you use discord, please add me at FreshYoMama#2077, as I am not familiar with IRC. FreshYoMama (talk) 04:16, 22 September 2022 (UTC)

As I mentioned on discord, you should get familiar with JS/CSS before trying to port anything. Darkid « TalkContribs » 05:31, 25 September 2022 (UTC)

3D Models Script

Hi. I'm posting this to your Talkpage so you probably will get notified on your e-mail or something. I recently made this topic on the 3D Models page regarding using the script under Windows 10 64bits. It seems that it's not possible to run the script using a 64bits Operational System due to the usage of mem.exe. I would like to know if the program would work under a Virtual Machine of Windows 10 32bits, so I could try that instead. I have Python 3.9 installed, but I'm mostly sure the wikitools and poster is only needed to automate uploading process, and not the actual 3D preview itself. Even so, I don't think mem.exe would open even if I had Python 2.x installed. Headphones style when? - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 18:13, 28 September 2022 (UTC)

Replied over there. Thanks for the ping, I'm watching that page now. Darkid « TalkContribs » 18:59, 28 September 2022 (UTC)

Team Color Infobox for Community MVM Tour Medals

Community MVM tours are beginning to utilize custom painted medals with team colors. The default item infobox doesn't flow well on a page describing an entire campaign rather than a single item, however; so what I would like to have happen is to extract the team color section of the item infobox, exactly the way it currently is, and have it be a separate template I could use in the Rewards section of operation pages, to showcase custom team colors on their own.

As per your instruction, I've began a sandbox page as a rough idea of what I want: I'd like for this infobox to retain the team color functionality it has at the moment, but remove the need for a header image, and all the things from Basic Information down. When it's finished, I would like it to begin with RED and BLU headers, and showcase the team color images alone, sort of like this, and of course, continuing down to showcase them all.

Team color images already exist for these medals, as partially used in the example, as well as all existing medals that utilize custom team colors so far. They can be easily redirected to suit the team color infobox. That part isn't a problem; I just need the template, and I can take things from there. — User ThatHatGuy Signature Icon.png User ThatHatGuy Signature Talk.png User ThatHatGuy Signature Contribs.png 04:28, 14 October 2022 (UTC)

Okay, so I'd recommend using inspect element to figure out which html tags you want to keep -- and then deleting the others from the template. I'm happy to check your work but don't have much time to spend right now, sadly. Darkid « TalkContribs » 04:42, 14 October 2022 (UTC)

Random Tark question

heya!
I have a few queries regarding {{Item infobox}} that are a bit too advanced for me to handle. I was wondering if you could spare some time to assist me with thisthe requests are essentially aimed at reducing the amount of manually added text by translators to prevent pages from becoming outdated. I recently added "released-major" (under /sandbox) to automatically translate and format the "released" information ("{{Patch name|9|30|2010}}<br>([[Mann-Conomy Update]])") - defaults to "released" if not set, so it shound't break existing pagesbut there are a few issues that I haven't been able to resolve yet: specifically, the "used-by" section would benefit from a template that automatically generates the class list, similar to how {{avail}} functions

oh yeah, I have added most game attributes to Template:Dictionary/attributes, but I'm not sure if there is a better way to incorporate this into the infobox itself (that is, without having to include multiple {{attribute|token}} in the att-*/item-flag fields)

- Tark, on steam

Hello, Tark helped me with it and I've already added the changes to the main template, the only "issue" I have are the categories, for example this page, now in a page like "Fireproof Secret Diary/infobox" which is a subpage, is there a way to hide the categories or includeonly is the only way? I think its better to have the infobox shown instead of hidden. There's also a discussion if it helps. Thanks! Mgpt (talk) 04:32, 12 March 2023 (UTC)
{{#ifeq:{{BASEPAGENAME}}|Template:Item Infbox|{{ns:0}}|[[Category:whatever]]}}
Would this work? Darkid « TalkContribs » 04:35, 12 March 2023 (UTC)
The categories are added because of the parameter, the example I gave adds the Action items category (type = action) to the page. I think its only possible by adding a function to the main template only for pages ending with /infobox Mgpt (talk) 04:59, 12 March 2023 (UTC)
Yep, you'd need to add something to the main page, but yes, you could do something based on the subpagename too. Darkid « TalkContribs » 06:52, 12 March 2023 (UTC)

Slander at my user page

1 Opv (talk) 01:38, 30 April 2023 (UTC)

Slander is a pretty heavy accusation. I'd appreciate you responding on your talkpage about your concerns, rather than splitting the discussion here. Darkid « TalkContribs » 01:38, 30 April 2023 (UTC)
I don't speak about slander. Opv (talk) 01:40, 30 April 2023 (UTC)
I'm not sure how to help you then, other than informing you that your behavior is not acceptable, and encourage you to edit in more acceptable ways. Darkid « TalkContribs » 01:43, 30 April 2023 (UTC)
Police and doctors will help you. Not me. Opv (talk) 01:45, 30 April 2023 (UTC)

Translation table troubles

Hello Darkid, this is a special request. I have already discussed this with Mikado and Swood. The issue was that the Translation progress table seems to track some pages that could be subtracted as they simply cannot be touched by localization teams; some pages affect the listed categories but also the overall progress bar; there should be a way to ignore these, so the main function of the table can truly shine. One very good example is, WebAPI which is an untranslatable page; categories are also affected Category:Lists to be expanded or Category:Custom maps unreleased stubs/lang. It could be nice to have a whitelist we can all work on; comparing categories together could be an added perk, but I already personally do this manually using software. Let me know your thoughts!
Luno 🪐🌕 Talk / Contributions / Team 20:35, 26 August 2023 (UTC)

I saw the discussion (wikipedia has a new "you were mentioned" feature, if someone links to my user) -- I can get started on making you a whitelist. Darkid « TalkContribs » 22:12, 26 August 2023 (UTC)
Okay, I've added an exclusion for WebAPI -- it should now be reflected in the template (the raw count is now adjusted via {{Translation progress/count}}). You mentioned some categories needing adjusting too -- you should just be able to add/adjust the offsets on {{Translation progress/stats}}.
Please let me know if you run into any bugs/have any other concerns. Darkid « TalkContribs » 22:44, 26 August 2023 (UTC)
Damn, you were quick on the draw. Well, there are still a lot of exclusions to add. Having to compare missing pages with overall progress is going to be tough, as it's pretty much a one-sided effect, but it should work. It would be nice to expose the whitelist somewhere on the template as a shortcut or something. As for category offsets, that's a bit much for me; if there is no better way, you'll have to show me an example. Thank you.
Luno 🪐🌕 Talk / Contributions / Team 00:12, 27 August 2023 (UTC)
There should already be a report from the bot about missing translations -- but I guess it's not per category :/
There isn't a really good way to list the allowed/prevented pages beyond just editing the template, although I guess you could copy/paste that info somewhere if you need it.
The "offset" thing is just "set the offset value to the number of extra english pages", it's not rocket science. I've added one offset already -- you should be able to follow the example.
Darkid « TalkContribs » 01:03, 27 August 2023 (UTC)
Sorry, I accidentally removed two of your messages in an edit conflict. Restoring and responding...
I assume it would be possible to bridge that whitelist so that WebAPI stops popping up in Missing translations. On that note, there is a red link for "Missing categories in French", Is this still planned?
Luno 🪐🌕 Talk / Contributions / Team 00:24, 27 August 2023 (UTC)
this should fix WebAPI showing up, as well as the redlink. Darkid « TalkContribs » 03:31, 27 August 2023 (UTC)
I have noticed that Total progress is listing 395 remaining pages while Missing pages lists 365. That might be worth looking into?
Luno 🪐🌕 Talk / Contributions / Team 00:32, 27 August 2023 (UTC)
I have limited time to look into this stuff, the template should be relatively straightforward to play with, feel free to make a copy and play around with it. Darkid « TalkContribs » 03:31, 27 August 2023 (UTC)
No rush, thanks a bunch Darkid. I'll let you know if anything else arises.
Luno 🪐🌕 Talk / Contributions / Team 14:22, 27 August 2023 (UTC)

Duplicated pages in romanian

I saw your request on the Romanian translation progress page about the duplicated Item_sets pages. After looking at both of the pages I transferred all of the content on the correct page and updated it to be in line with the English page. However, I don't know how to delete the Item_set page witch serves no purpose now. This is the page that needs to be deleted: Item_set/ro. Thank you for bringing this issue to my attention! -Lord of Dominating (talk) 00:37, 7 September 2023 (UTC)

Thanks for the effort! For future reference, you can just use {{delete}} to request that a page be deleted, or feel free to reach out to me (like you just did!) Darkid « TalkContribs » 03:23, 7 September 2023 (UTC)

Paint Colors Handler Help

Could you help to add the paint-colors handler that's present in {{Backpack item}} to {{Item infobox}}? There is now a singular item that always drops with a custom paint color set applied, and I would like to be able to showcase a paint splat in the loadout section of the item infobox for its article. — User ThatHatGuy Signature Icon.png 04:08, 20 October 2023 (UTC)

3D model script

Hello! I was planning on updating the loose cannon's projectile model with the 3D tools but I was told that the script doesn't work, is there a workaround? Thanks!
Cheddar (talk) 19:49, 30 October 2023 (UTC)

What doesn't work about the script? Did HLMV offsets break again? Darkid « TalkContribs » 02:12, 31 October 2023 (UTC)
Hopefully this thread is still new enough that I can post it. First of, thank you for updating the scripts to work on Python 3+. I think I got all the necessary steps done before running, but, once I run automate.py, it activates the HLMV window, a yellow background shows up, and HLMV crashes. I am not sure what the issue is. I want to mention that I'm using the mem.exe I compiled by my own about a year ago, as the one from the repo doesn't work as it's 32bits, while I run Windows 10 64bits instead. I saw that there was no changes to mem.exe, so I don't think it's an issue with it. My exact version of Python is 3.9.13. Headphones style when? - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 03:48, 19 November 2023 (UTC)
Yeah, it looks like mem.exe is broken -- which happens every time they update hlmv. I'm working on an update. Darkid « TalkContribs » 05:15, 19 November 2023 (UTC)
Praise be! Cheddar (talk) 08:41, 19 November 2023 (UTC)
Would it be possible to include a HLMV++ variant too? HLMV++ and HLMV should be identical when it comes to rotations, the only issue would be that a setting needs to be turned off before making these images called "Aspect correction" (but that should not be hard to do manually). HLMV takes a lot more time to set up than HLMV++ (such as the dxsupport.cfg change, possibly a fix for blurry images, grey cornea issue, anti-aliasing not working properly, etc.) and would be nice if that had support too.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 09:52, 19 November 2023 (UTC)
HLMV++ has different camera zoom ins and zoom outs (think like... regular HLMV zooms at 1 intervals, while ++ does at 0.5 intervals), though I think that rotating the model should be the same. If anything, both results should be compared before making a release stating they both work the same, just to be safe. Edit: The Aspect Correction thing shouldn't be necessary, if anything, it can simply be disabled before running the script, as you still have to manually load the model before running it. I use an older version of HLMV++ that doesn't has that, and I feel like script could break trying to disable something it doesn't exist. Headphones style when? - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 13:26, 19 November 2023 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── Updated for HLMV. Still working on HLMV++ support. Darkid « TalkContribs » 03:31, 20 November 2023 (UTC)

Updated for HLMV++. Let me know if you have any issues. Darkid « TalkContribs » 05:35, 20 November 2023 (UTC)
I now seem to be getting missing texturesfor the background on HLMV++ Cheddar (talk) 08:04, 20 November 2023 (UTC)
Scratch that, I just seem to have problems now with Visual C++ and the install requirements, "msvcp140.dll" is missing even with it installed, not to mention the other scripts needed. Cheddar (talk) 09:13, 20 November 2023 (UTC)
To add to that, I'm stuck on the install, as well. I seem to not really understand the installation process after downloading the required programs. H20verdrive (talk) 09:22, 20 November 2023 (UTC)
To add onto this further, we did make progress but H20 and I are getting thisissue now. 10:47, 20 November 2023 (UTC)
Can you please post your entire error output to somewhere like pastebin? I can recompile the C++ redistributable but it's much harder for me to fix python errors. Darkid « TalkContribs » 12:10, 20 November 2023 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────Thisis the full log Cheddar (talk) 12:23, 20 November 2023 (UTC)

On "requirements.txt", remove the "-r TFWiki-scripts/requirements.txt" line, and run it. I was getting similar errors and this fixed it (if I recall correctly). You may get an error after installing Pillow (but it will work properly). Simply remove the two first lines and only keep the one for "pywin32==304", then, you should have all libraries installed properly. Additionally, if either or both steps doesn't work, run CMD as Administrator. Haven't tested the new version yet, though, but I had this issue prior to posting my initial comment. Headphones style when? - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 22:22, 20 November 2023 (UTC)
Just tried this and was getting errors on installing pywin32==304 saying that it could not find a version that satisfies the requirement. H20verdrive (talk) 22:38, 20 November 2023 (UTC)
The versions shouldn't matter too much -- you can just install all the dependencies by hand:
pip install pywin32 numpy Pillow requests
If you downloaded the source from github you probably didn't get the TFWiki-scripts submodule, which means you won't be able to upload anything. Darkid « TalkContribs » 00:27, 21 November 2023 (UTC)
Don't know if anyone else is getting this issue, but it seems I'm missing some .dll files from mem.exe. (VCRUNTIME140D.dll, VCRUNTIME140_1D.dll, MSVCP140D.dll, ucrtbased.dll) H20verdrive (talk) 02:15, 22 November 2023 (UTC)
Try pulling from github again -- I uploaded a new mem.exe there earlier. If not, I've got some other fixes I made to help Cheddar and I'll push them later. Darkid « TalkContribs » 05:17, 22 November 2023 (UTC)
Weird, now it's saying it can't run on the 64-bit version of Windows. H20verdrive (talk) 06:33, 22 November 2023 (UTC)

────────────────────────────────────────────────────────────────────────────────────────────────────Updated once again. Please try downloading the latest zip and following the instructions in the readme. Darkid « TalkContribs » 06:53, 23 November 2023 (UTC)

Thank you, Darkid! After some finagling, I've gotten it to work. I'm thankful for everything you've done to update it and enable us to update and create new 3D images for the Wiki. (Happy Thanksgiving!) H20verdrive (talk) 23:41, 23 November 2023 (UTC)
You're welcome! Let me know if any of your finagling should be added to the FAQ. Darkid « TalkContribs » 00:24, 24 November 2023 (UTC)
Whenever I try to use automate.py, HLMV will change its rotations and will finish, however when I go back to Powershell it gives this error. I am using version 3.3 of the script and Python 3.7.9, any idea on how to fix this?
Andrew360 Edit icon.png Speech typing.png Photo Badge Decal Example.png 23:31, 25 November 2023 (UTC)
Ah, sorry -- that means the automatic cropping is failing. See "The 3D image is not removing the HLMV window borders" in the FAQ. I can improve the error message too. Darkid « TalkContribs » 05:00, 26 November 2023 (UTC)

Crate template

{{Crate series table}} doesn't properly translate names, it only links to the correct page. I've tried looking at it but it seems like it's more complicated than just adding item name.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 14:36, 9 December 2023 (UTC)

All done. I've done some extra cleanup and added some comments, hopefully it all makes sense to you now. Darkid « TalkContribs » 17:57, 10 December 2023 (UTC)

Help with changing my username

Hello, Darkid. I need some help with this username I chose before and I want to change it from EinTheReal to PinRouge. Any help would be greatly appreciated, thanks in advance. Cordially yours, EinTheReal PinRouge (talk) 15:39, 19 December 2023 (UTC)

This task can only be performed by Administrators, you would have to contact Tark or Wookipan.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 16:38, 19 December 2023 (UTC)
Pictogram tick.png Done. For future reference, please refer to Help:Group rights for a complete list of staff members and their abilities/permissions. — Wookipan (talk | contribs) 21:47, 19 December 2023 (UTC)
Thanks for monitoring my talkpage for me, folks :) Darkid « TalkContribs » 01:27, 20 December 2023 (UTC)

Module talk:Availability

Hello, can we add the unusual-expired parameter? I made a topic on the discussion page. Maybe we should go with "Uncrate (Unusual) (expired)" (text taken from HazMat Headcase) Mgpt (talk) 15:09, 27 December 2023 (UTC)

If you have a proposal, it saves me a lot of time if you can just put it on the sandbox page (and add appropriate tests on the sandbox docs) Darkid « TalkContribs » 18:30, 27 December 2023 (UTC)
Done, its working (there was a space missing but I fixed it) Mgpt (talk) 19:10, 27 December 2023 (UTC)
All done. Please add usage examples on the sandbox docs page next time -- that's how you can test that it looks correct. Darkid « TalkContribs » 09:50, 29 December 2023 (UTC)

Help with Template

Hello. Could you help me with something related to the Template:Painted variants? I'd like if there was a new parameter called override-title. Using this parameter would add a title in the same vein when default= or style= parameters are used (I'm talking about the "Style 1" that appears above "Single colors" and below "Painted variants - Style 1"). Additionally, if default= or style= is used in conjunction with override-title, whatever is put with override-title= will replace whatever value was put into either default= or style=. Lastly, the text for override-title= wouldn't be linked to the {{item name}}, as the idea is to put any title on it, however, it should still be possible to use {{item name}} when using a name on the dictionary.

I'd like to use this parameter for the Gibus pages (not the Galvanized Gibus page), by including each of the styles as tabs on the Painted Variants table. The idea is to add these paint variants using override= with the name of the other styles, so there's no need to re-upload them or make a huge amount of redundant redirects. However, doing so currently causes no text to be visible on top (the text between "Single colors" and "Painted variants -..." does not show up), because I am unable to use style=, doing so causes the filename to be different, therefore the images does not show on the table. Feel free to use this code for testing, though you'll have to move it to Ghastlierest Gibus page and Show Preview for a better, well, preview. Once the parameter is added, I will add the tabs to that page, the other Gibus pages, and the rest of the languages as well. Thanks! Headphones style when? - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 01:17, 28 December 2023 (UTC)

Which of these 3 boxes are you trying to change? Can you make an MSPaint mockup of what you're looking for, and/or give me a sandbox page of how you *want* to call the template (but that doesn't work)? Darkid « TalkContribs » 09:57, 29 December 2023 (UTC)
It would be the letter "C". Here's some screenshots to help you. Right now, the pages look like this: https://imgur.com/a/43eplWu. The idea would it to be look like this instead, please see this mock-up: https://imgur.com/a/lJ0ynUw. Just to keep things clear. The reason I'm not using "style=" on the second album is because, if I do, the filenames change, and the images don't show up. Someone suggested me just using redirects instead, but that would be approximately 111 pages worth of redirects. I think it's a bit redundant doing so, and I would say the override-title method would be much more ideal. Thank you! Headphones style when? - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 10:32, 29 December 2023 (UTC)
Hello, I just wanted to ask / remember if you have any plans in making this parameter available on the template. I don't think it should be too difficult to make, even though I tried many times but I ain't a pro when it comes to templates. Thank. Headphones style when? - User Gabrielwoj Signature 1.pngUser Gabrielwoj Signature 2.png - User Gabrielwoj Signature 3.png 12:58, 7 February 2024 (UTC)
Maybe I'm not understanding correctly, but it looks like that's controlled by this code (which is the sole use of the 'default' parameter). I think you should just be able to add a further override, or change this #if statement as you need.
{{#if:{{{hh|}}}|{{ns:0}}|{{#if:{{{default|{{{style|}}}}}}
| {{!}}+ style="text-align:left; font-size:1.5em; padding:0.5em 0em" colspan="4" {{!}} {{#if:{{{name|}}}|{{item name|{{{name}}}}}|{{item name|{{{default|{{{style|default appearance}}}}}}}}}}
}}}}
I see that there's a sandbox page set up, I've added some more docs samples, hopefully you can take it from here.
Darkid « TalkContribs » 03:49, 12 February 2024 (UTC)

Speed table metric units

I believe I asked a few years ago about adding Metric units to the {{Class speed table}} (preferably in the order of Metric -> Imperial -> Hammer units), but I never made a talk page entry for it. It looks very complicated so I understand it won't be done any time soon, but I thought I'd leave it here regardless for if you're ever bored :^)
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 14:09, 2 January 2024 (UTC)

This content is actually generated by {{Class speed table/top row}} (and mid row, etc). It looks like the kph math is already there, even -- it's just only in use on non-english pages.
I'd recommend making (another) sub-template for the tooltip (maybe {{Class speed table/tooltip}}?) and then you can consult editor preferences, or whatever. Darkid « TalkContribs » 18:22, 2 January 2024 (UTC)
Tooltip subtemplate created. Feel free to play around with it (in a sandbox) until it looks good to you, lmk if you need help with that but it should be very straighftorward. Darkid « TalkContribs » 21:47, 10 January 2024 (UTC)
Thank you, I will try some stuff in a sandbox soon.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 21:55, 10 January 2024 (UTC)

About 3D module

Hi! I'm A22, Inkipedia ES bureaucrat, and Inkipedia and Animal Crossing Enciclopedia (wiki in Spanish) interface staff.
I'm contacting you to ask if you can give the green light for Animal Crossing Enciclopedia to use the 3D module you have available on your wiki, as happened with Inkipedia in an earlier discussion.
I would also like to know if in the future it is necessary to contact you every time a wiki wants to add your 3D module to their wiki (if so, it would not be necessary to contact you every time a wiki wants to add it).
Thanks! A22PG (talk) 16:09, 2 January 2024 (UTC)

I'm not an admin, so I don't have the final say on what you can/can't do. That said, the wiki contents are licensed, as long as you follow that license you don't have to ask for permission.
It's also not "my" 3D module -- I only own the latest copy of the automation scripts -- there has been a lot of work from a lot of editors to make the whole pipeline work -- much of which is in the actual 3D models template.
I *definitely* don't have the bandwidth to help every new wiki set up this template/workflow, so no, you definitely don't have to ask me every time.
Darkid « TalkContribs » 18:20, 2 January 2024 (UTC)

Userbox template request

Currently, the {{Userbox}} template adds it to a category based on the namespace, but if the URL is "User:Username/Template:Templatename" it adds it to the "Template:" namespace category instead of the "User:" one. Is there a way to prevent this?
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 17:53, 10 January 2024 (UTC)

You'll have to do some manual fixups, but you should be able to determine if the SUBPAGENAME startswith "Template" and recategorize. Darkid « TalkContribs » 18:13, 10 January 2024 (UTC)
Would simple adding another check after the "User:" check work?
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 18:13, 10 January 2024 (UTC)
I don't understand what you mean -- currently it's checking for {{#ifeq:User | User ; you'll need to add a different kind of check. Darkid « TalkContribs » 21:21, 10 January 2024 (UTC)
I mean putting another #ifeq inside the existing one for the "User" namespace check. So it would be smth like {{#ifeq:{{NAMESPACE}} | User | {{#ifeq:{{NAMESPACE}}| Template | X | Y}} | Z }}. Basically making it so if it's on "User" it also checks if it has "Template" then add categories based on that, rather than checking both namespaces separately.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 21:55, 10 January 2024 (UTC)
You can think of {{NAMESPACE}} as a template with no parameters -- its value won't change if you call it a second time. You'll need to use some other magic word (like {{SUBPAGENAME}}) to determine if the subpage is a template.
So, something like {{#ifeq: {{NAMESPACE}} | User | {{#if: <condition representing your request> | [[category 1]] | [[category 2]]}} | [[category 3]] }}
w:Help:Magic words is a good starting point.
Darkid « TalkContribs » 00:49, 11 January 2024 (UTC)

Redirects

Hello, could you provide the same list with redirects? I'm fixing the ones without {{R lang}} and a few were different from the original (english) (Zombie/ru for example). Thanks Mgpt (talk) 17:04, 9 February 2024 (UTC) Team Fortress Wiki:Reports/Pages with no english equivalent

Here it is (as a one-off generated report). Let me know if you need something else. Darkid « TalkContribs » 04:08, 12 February 2024 (UTC)
User:Darkid/Reports/Pages_with_no_english_equivalent
Oh, I see -- you're asking for "non-english redirects which don't go to the same place as english". I can build something for that. Darkid « TalkContribs » 04:09, 12 February 2024 (UTC)
Thanks, that was fast :D I will check them soon Mgpt (talk) 16:56, 12 February 2024 (UTC)
Updated report is here, should update on monday. Darkid « TalkContribs » 07:33, 14 February 2024 (UTC)

Some template issue I'm facing

Hi Darkid,

I've been struggling to find a way around an issue I have with this template: User:GrampaSwood/Template:ReservationUpdate. I have a {{{contents}}} parameter that's intended to contain the text found on the Weapon Demonstration talk page, but an issue with this is that any kind of vertical bar (|) will obviously create issues on the template. Do you happen to know any way around this? My own signature uses vertical bars in it which is the main issue, I changed this but obviously I'd like to future-proof the template without forcing everyone to use {{!}} instead of |.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 17:25, 14 February 2024 (UTC)

Just making sure I understand the issue -- someone is invoking the template like this:
{{User:GrampaSwood/Template:ReservationUpdate|content=Hello|world}}
and then the template reads the | as a second parameter? Darkid « TalkContribs » 17:29, 14 February 2024 (UTC)
Yeah, though there are some more parameters preceeding the "content" one, Hello|world is supposed to show up as "Hello|world" but instead it's "Hello".
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 17:33, 14 February 2024 (UTC)
Good news, this is a classic programmer problem -- sanitizing user input. Bad news, it's intractable :)
It is not possible to prevent users from inputting bad data -- and since there is no limit to how bad the data they input is, you will have to lower your expectations. (what if, e.g., a user's signature contained }}?)
I would recommend just adding error text if you detect the presence of (or 3, or 4) and tell the user how to fix it ("replace | with {{!}}").
Darkid « TalkContribs » 04:14, 15 February 2024 (UTC)
I'll look into it, though the template is taken from {{Doc begin}} with just the colour changed, maybe there would be a way to have the template function similar to that? Simply put {{ReservationUpdate}} at the top with some parameters, then have a template at the bottom that ends the coloured box. I'm not sure if that is possible, though.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 10:58, 15 February 2024 (UTC)
I've found a fix for this, I took it from {{Discussion close}}. Basically, giving it a switch statement which takes "begin" or "end", with "end" being a simple closing div tag.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 21:22, 7 April 2024 (UTC)

Some requests regarding 3D models

I believe I requested this in IRC before, but forgot to put this on your userpage. I wouldn't consider it a very high priority thing, but Half-Life Asset Manager is a program similar to HLMV but to run GoldSrc models (TFC's engine). I tried to open up GoldSrc models in HLMV, but it either crashes the program or simply gives an error with the model, so I suspect regular HLMV can't open these models.

With that, I'd like to request you to look into making the 3D models script compatible with HLAM. Like I said, I imagine this would be very low priority but I'd like to get 3D views for those out at some point. Related to 3D views, do you think that they could be added to {{Hazard infobox}} and {{Pickup infobox}}? And perhaps the creation of a standalone 3D viewer that's similar to {{Team colors infobox}} (i.e. just the buttons and viewer, as if taken straight from the infobox. It would mainly be used on building pages because they have no infobox)?

These are quite a few requests, but I think I could manage the last few ones if you could leave a small explanation of how to implement 3D views into infoboxes.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 00:08, 18 February 2024 (UTC)

HLAM is on my backlog (though likely not any time soon). The standalone 3D viewer should just be at Module:3D viewer advanced, you can just treat it like it's any other sub-template. Darkid « TalkContribs » 00:26, 18 February 2024 (UTC)
An update on this, though it would still be appreciated to make this work on a model viewer like HLAM, I have found a way to display Classic models in regular HLMV.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 22:39, 3 May 2024 (UTC)

3D Images

Hello! I would like to get started on making 3d images! You're the best person I can talk to, so please give me advice.


Slimyboi500 User Slimyboi500 Profile.jpg Talk Speech voice.png Contribs Wrench IMG.png

Steam Steam tray.png 00:08, 18 February 2024 (UTC)

TFW:3D Models is a good starting point. There are also a couple of folks on the IRC who have worked on this project (and could help). I don't have time to give you a complete walkthrough of the process (and besides, the guides should be good enough), but do let me know if you have specific questions I can help with. Darkid « TalkContribs » 00:22, 18 February 2024 (UTC)

Back and forth

Hey Darkid, I added you on Steam a few days ago, but it doesn't seem like you use it much.

I wanted to discuss a few things, but it might also flood your talk page, so I thought it was a good idea. Luno 🪐🌕 Talk / Contrib. / Team 18:37, 26 February 2024 (UTC)
Ah, sorry, I kept getting spam bot adds :( I don't mind talkpage flooding but I can check my steam adds this evening. Darkid « TalkContribs » 21:41, 26 February 2024 (UTC)
Sent you a message there some time ago, hopefully you received it. Luno 🪐🌕 Talk / Contrib. / Team 17:22, 29 February 2024 (UTC)
Talked a bit on steam -- I think I've fixed the miscategorization bugs, and I'll log a feature request for "missing dictionary translations". Darkid « TalkContribs » 06:22, 8 March 2024 (UTC)

Wrong category on some of your pages

This page and also this page is tagged for Category:Secondary weapons, Category:Primary weapons, Category:Melee weapons (and probably more other tags), I checked the page, its because the bots don't add ":" before category links causing the page in wrong category. Profiteer the tryhard (talk|contribute) 01:57, 3 March 2024 (UTC)

Should now be fixed. Thanks for the bug report! Darkid « TalkContribs » 06:21, 8 March 2024 (UTC)
"Thanks!"
— Profiteer
Profiteer the tryhard (talk|contribute) 12:40, 8 March 2024 (UTC)
Fixing indentation Darkid « TalkContribs » 04:10, 11 March 2024 (UTC)

WindBOT filter broken

10:23:38 AM <Mgpt> hello darkid can you change this script a bit? https://wiki.teamfortress.com/wiki/User:WindBOT/Filters#File_categorization_.28Add_.7B.7BNo_category.7D.7D_or_.7B.7BUser_image.7D.7D.29 Just needs these lines after "  if title[:10].lower() == 'file:user ':   "
10:23:49 AM <Mgpt> https://www.irccloud.com/pastebin/CQVDlDde/
10:25:09 AM <Mgpt> It sent as a link, should be this:  # Check for audio or text files
10:25:09 AM <Mgpt>  if not title.lower().endswith(('.mp3', '.wav', '.ogg', '.txt')):
10:26:15 AM <Mgpt> So it doesn't do this: https://wiki.teamfortress.com/w/index.php?title=File:User_ThatHatGuy_Demo.mp3&action=history

Darkid « TalkContribs » 16:44, 6 March 2024 (UTC)

Done. Darkid « TalkContribs » 10:03, 11 July 2024 (UTC)

Template loop

Under Cover/ro is doing something bad with the dictionary, idk. Darkid « TalkContribs » 08:46, 7 March 2024 (UTC)

fixed Mgpt (talk) 20:16, 14 March 2024 (UTC)

Patch name edits

Hi there,

I would like to request a quick check to see if the edits I made to the Patch name's sandbox would mess up anything currently on the Wiki. The main changes here are to add the "(Major update)" bit to the template, as well as the "[Patch] #1" bit. For pt-br and pt, this is at the start of the template and not the end, as well as requiring the "in-the" parameter at all times. These should all be added now, the only thing I want is to add some comments for translators and make the language switches more readable for them.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 13:44, 7 April 2024 (UTC)

Hmm, it doesn't seem like you're doing this right. From the template, it looks like the 4th parameter is supposed to be for the game -- e.g. "beta", "classic", etc.
If you want to subtly alter the text, I'd recommend following the pattern of {{dictionary/common strings/patch-{{#ifeq: {{{date|}}}|true|date-}}, where you point to a different dictionary string based on a named parameter, not the unnamed 4th parameter.
This should avoid a lot of subtle bugs to do with extra parameters.
You also need to continue supporting the {{{lang}}} and {{{force}}} params -- for this reason, I'd recommend using a {{#switch:{{{lang|{{SUBPAGENAME}}}}}}}|en=|pt=|pt-br=}} if you're unable to use dictionary strings for some reason. I would still strongly recommend using dictionary strings wherever possible.
Make sure you document your changes thoroughly -- if there's no delta on an english page, use the lang parameter to show the behavior change, e.g.:
* {{tlx|patch name|04|15|2011|in-the|6=lang=pt-br}} produces: {{patch name/sandbox|4|15|2011|in-the|num=1|lang=pt-br}} (compare to {{patch name/sandbox|4|15|2011|default|num=1|lang=pt-br}})
Darkid « TalkContribs » 10:25, 11 July 2024 (UTC)
IIRC Tark took over and added some of the things mentioned, like the dictionary-based string. Take a look here. Sorry for not updating the talk page msg.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 11:23, 11 July 2024 (UTC)
Looks like tark is just implementing {{{major}}}, not the "in-the" string you wanted. Darkid « TalkContribs » 11:28, 11 July 2024 (UTC)

Linking to a category in a template

I'm updating {{Update trans}} to support all non-main namespaces instead of just templates (mainly for usage on Categories). I started on {{Update trans/sandbox}} but so far, I can't get the categories to link properly. Adding ":" on its own makes it behave like an indent and adds a <br>. Adding it with nowiki tags results in [[:Category:categoryname]]. I even tried using a separate template similar to {{!}} but it didn't work either. Any ideas on what I could use?
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 19:47, 7 April 2024 (UTC)

I'm pretty sure this works:
"[[:{{NAMESPACE}}:{{BASEPAGENAME}}]]" ([{{fullurl:{{NAMESPACE}}:{{BASEPAGENAME}}|action=edit}} view source])
no additional arguments needed.
I threw up a sample on my sandbox, but don't have the time right now to go update the full template -- let me know if this works, though.
Darkid « TalkContribs » 10:33, 11 July 2024 (UTC)

Problems with the 3D script

Hello!, not to sure if the 64 bit update broke it for others but my 3D script seems to have stopped working, here is the error message, Thanks!
CheddarTalk 10:40, 27 April 2024 (UTC)

64 bit update to what, exactly? Yes, that would very likely break the sigscans, but I can make them work again. Are you using HLMV or HLMV++? Darkid « TalkContribs » 18:17, 27 April 2024 (UTC)
The newest version of HLMV++ which goes under the new 64bit directory as the 64bit update broke the standard HLMV I've been using the updated version of ++, "Team Fortress 2\bin\x64" not sure if that new path causes it to break.
CheddarTalk 18:34, 27 April 2024 (UTC)
The April 18, 2024 Patch upgraded TF2 from 32-bit to 64-bit.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 18:39, 27 April 2024 (UTC)
Yeah, 32->64 would break the scans. Let me update the HLMV++ sigscans and I can push. Darkid « TalkContribs » 00:55, 28 April 2024 (UTC)
Okay, pushed an update. There's still some risk that it breaks if there's significant updates to the x64 HLMV++, but y'all can let me know if it goes wrong again. Darkid « TalkContribs » 01:25, 29 April 2024 (UTC)

Wikichievement Unlocked!

Wikichievement Awarded by Reason
Tf spy fyi i am a spy.png

Show Me Your War Face!
Create a damn fine user page.

Mediarch Wikichievement unlocked!

Mediarch User Mediarch PFP.pngTalkMy Edits 19:08, 27 April 2024 (UTC)

Tark had an idea

01:02:00 PM <+Tark> wish we had a general page for discussions, i keep missing stuff
01:02:22 PM <+GrampaSwood> [[TFW:Discussion]]?
01:02:23 PM <@Spacenet> TFW:Discussion: https://wiki.tf/TFW:Discussion
01:03:11 PM <+GrampaSwood> I wish there was a way I could get a notif on the Wiki or email or smth
01:03:15 PM <+GrampaSwood> For each talk page edit
01:03:30 PM <+Tark> a report page
01:03:41 PM <+Tark> something like "here's some recently posted stuff that nobody has replied to yet"
01:04:06 PM <+GrampaSwood> Hmmm, you could maybe get a report page like that
01:04:13 PM <+Tark> maybe
01:04:15 PM <Mediarch> I think that's darkids music
01:04:21 PM <+GrampaSwood> Check for talk pages edited in the last week that have 1 signature under == ==?
01:04:38 PM <+Tark> cc darkid 
01:04:54 PM <+GrampaSwood> Put it on his talk page
01:05:06 PM <+Tark> im lazy

Darkid « TalkContribs » 08:05, 1 May 2024 (UTC)

Wikichievement unlocked!

Wikichievement Awarded by Reason
Tf scout lifetime kills.png

The Practical Problems
Address content issues for both English and other languages across the Wiki.

GrampaSwood Wikichievement unlocked!
For the occasional cross-language edit fixing minor, but important, details!

BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 16:47, 3 May 2024 (UTC)

Users by edit count report

Seems that the Users by edit count report has failed to update for this month and is still showing the data from April. Any ideas for what could be causing that? Mediarch User Mediarch PFP.pngTalkMy Edits 20:10, 3 May 2024 (UTC)

Ah, sorry, the bot timed out on the 1st and I'm not 100% sure why. Let me trigger a re-run. Darkid « TalkContribs » 02:22, 4 May 2024 (UTC)
Re-ran and manually copied the reports that failed. I'll keep an eye on next month's run and see if it hiccups again. Darkid « TalkContribs » 07:18, 4 May 2024 (UTC)
perfect, thank you so much. I appreciate it. Mediarch User Mediarch PFP.pngTalkMy Edits 10:30, 4 May 2024 (UTC)
Hmmm, I might just be being impatient but it seems like it didn't automatically update for June either. Mediarch User Mediarch PFP.pngTalkMy Edits 15:48, 1 June 2024 (UTC)
No it definitely failed again, and I'm definitely working on it. I think I have a fix, just copying over.
For future reference, you should be able to see the most recent status and run from the bot's userpage: User:DarkBOT Darkid « TalkContribs » 22:49, 1 June 2024 (UTC)
Good to know, Thanks for doing the manual update. Mediarch User Mediarch PFP.pngTalkMy Edits 00:12, 2 June 2024 (UTC)
Seems to be finally working by itself, the update went through this month. Darkid « TalkContribs » 10:35, 11 July 2024 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── I did see that. I appreciate you investigating and getting it fixed. Many thanks Mediarch User Mediarch PFP.pngTalkMy Edits 12:28, 11 July 2024 (UTC)

Replacement request for HLAM

A while ago, I made a request for HLAM. I've since found a way to convert GoldSrc to Source 1 models. Though it would still be nice to have a GoldSrc model viewer supported, I think a bigger priority would be perhaps a Quake model viewer. I found one here. I do realise this would be equally as low-priority as the GoldSrc model viewer one, but I thought I'd leave the request nonetheless.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 16:56, 4 May 2024 (UTC)

I did a little bit of experimenting today with HLAM but there's two big problems:
1. While the UI looks the same, the backend code is completely different. In fact, Qt (the UI engine) is particularly resiliant to sigscans, so I'd have to use pointer offsets. This isn't a huge deal (since the program is at EOL), but it's still a bit more work to write up.
2. I am not 100% sure that the rotation and translation code works the same way. Again, I've been digging, I think it's not *too* different, but it would take some more tweaking (and I don't have all that much time right now). Again, this is probably because of the QT backend.
The best help at this point would honestly be the compilation symbols; unlike HLMV we actually have source code but I can't line it up with the binary since I don't have the time to set up and build it from scratch. If you can build it (or get someone else to build it) and provide .pdbs that would be excellent.
Darkid « TalkContribs » 22:41, 4 May 2024 (UTC)
If it's easier, the VDC provides three other model viewers for GoldSrc models (IIRC, the first one is even an early version of HLMV).
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 22:47, 4 May 2024 (UTC)
Got it working with Jed's viewer (the more recent of the remaining options). Please let me know if that's working for you. Darkid « TalkContribs » 07:23, 14 May 2024 (UTC)
Works for me, except for the cropping. It seems like the imageprocessor.py was changed, my old one had some specific return values in find_minimum_bounds. Is there any way to change these now? I set them to 100 (left), 50 (top), 1920 (right), and 800 (bottom) respectively.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 14:13, 14 May 2024 (UTC)
The manual override code is still present, it doesn't live in imageprocessor.py. [5] Darkid « TalkContribs » 15:16, 14 May 2024 (UTC)
Perfect, it works now after some adjustments.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 17:02, 14 May 2024 (UTC)

Request for Missing translations reports

Hi there,

Do you think it's possible to update how the missing translations reports are generated to include the amount of links similar to Special:WantedPages? Preferably also a way to sort them with the most links or alphabetically.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 12:53, 7 May 2024 (UTC)

The article and category reports /are/ alphabetically sorted right now, but I can add the 'whatlinkshere' count to them, if you like. It might be a little expensive, and this is a daily report, so I might just make a secondary report which lists by count. We'll see. Darkid « TalkContribs » 07:33, 14 May 2024 (UTC)
Perhaps updating the links counter once a week instead of every day could also work, just a general indicator would be the main goal, as the translations don't get made too often so a super up-to-date count is not even necessary imo. With "a way to sort them with the most links or alphabetically" I meant a way to toggle between sorting them alphabetically or with the most links, but if that's too much work then I understand it will not be possible.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 14:37, 14 May 2024 (UTC)
It took about 3.5 hours to run the link count for /every page on the wiki/, so this isn't something I can run regularly without overstressing the wiki. I've generated a one-off report here but I don't think this is something I can get you without causing undue load. Darkid « TalkContribs » 07:06, 16 May 2024 (UTC)
Thank you for trying regardless, though do you think you could create one for Dutch at some point as well?
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 07:09, 16 May 2024 (UTC)
There's one for each language -- I just linked a random one. Darkid « TalkContribs » 08:07, 16 May 2024 (UTC)
Oh, my bad (in my defence it's morning and I haven't woke up yet...)
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 08:12, 16 May 2024 (UTC)
A more permanent home: User:Darkid/Reports/Missing_translations_by_count since the main scratch pages get overwritten from time to time. Darkid « TalkContribs » 08:28, 18 May 2024 (UTC)

──────────────────────────────────────────────────────────────────────────────────────────────────── err, something is wrong with the report right now. I will keep editing. Darkid « TalkContribs » 08:31, 18 May 2024 (UTC)

3D viewer changes

Hi there,

Is there any possibility to add a TFC viewer to the list of 3D viewers? The only change it would need is the addition of a yellow and green button, for the yellow and green teams in TFC (they will only be used on class pages).
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 20:59, 22 May 2024 (UTC)

Take a whirl with the changes I made at Module:3D viewer advanced/Sandbox. You'll need to make some changes to add the colors to Common.css -- I did a hack with my user CSS to test it out.
https://imgur.com/ap8Dbnt
https://wiki.teamfortress.com/w/images/f/fc/Sandvich_Festive_RED_3D.jpg?1701676162.79497313357,280,217,3,0,210,98,171,215,99,342,210,100,513,212,98,676,216,99,839,211,98,1003,213,90,1158,215,97,1307,212,92,1461,213,83,1627,213,97,1788,212,86,1958,213,80,2144,211,100,2319,212,84,2508,213,81,2698,209,99,2878,213,85,3070,213,72,3263,208,83,3453,214,86,3639,212,57,3835,208,67,4028,213,80,4206,211,44,4398,209,53,4585,212,67,4758,209,35,4937,210,44,5111,210,47,5281,208,26,5451,210,27,5623,208,29,5792,207,14,5962,209,14,6129,206,16,6293,205,9,6462,208,9,6631,204,10,6798,205,8,6976,207,8,7149,202,8,7325,204,9,7511,205,8,7684,202,8,7867,204,20,8045,203,19,8206,202,18,8383,205,41,8540,202,36,8680,203,38,8837,205,24,9020,201,17,9195,203,19,9369,206,12,9583,202,4,9792,204,6,9983,206,8,10215,204,0,10445,205,1,10658,207,13,10892,208,5,11133,207,7,11369,208,30,11602,210,22,11843,208,24,12080,209,59,12291,213,52,12507,209,54,12722,209,84,12908,215,82,13097,210,82https://wiki.teamfortress.com/w/images/c/cf/Sandvich_Festive_BLU_3D.jpg?1701676318.94506713357,280,217,3,0,210,98,171,215,99,342,210,100,513,212,98,676,216,99,839,211,98,1003,213,90,1158,215,97,1307,212,92,1461,213,83,1627,213,97,1788,212,86,1958,213,80,2144,211,100,2319,212,84,2508,213,81,2698,209,99,2878,213,85,3070,213,72,3263,208,83,3453,214,86,3639,212,57,3835,208,67,4028,213,80,4206,211,44,4398,209,53,4585,212,67,4758,209,35,4937,210,44,5111,210,47,5281,208,26,5451,210,27,5623,208,29,5792,207,14,5962,209,14,6129,206,16,6293,205,9,6462,208,9,6631,204,10,6798,205,8,6976,207,8,7149,202,8,7325,204,9,7511,205,8,7684,202,8,7867,204,20,8045,203,19,8206,202,18,8383,205,41,8540,202,36,8680,203,38,8837,205,24,9020,201,17,9195,203,19,9369,206,12,9583,202,4,9792,204,6,9983,206,8,10215,204,0,10445,205,1,10658,207,13,10892,208,5,11133,207,7,11369,208,30,11602,210,22,11843,208,24,12080,209,59,12291,213,52,12507,209,54,12722,209,84,12908,215,82,13097,210,82https://wiki.teamfortress.com/w/images/f/fa/Sandvich_3D.jpg?1701675677.9229810243,200,280,3,0,257,54,143,267,56,286,261,58,428,259,48,571,268,53,713,263,50,860,261,36,1009,270,48,1151,266,42,1302,262,28,1448,272,47,1581,268,36,1730,264,24,1871,273,49,1989,270,33,2127,265,26,2272,275,55,2390,271,34,2526,266,32,2664,275,64,2773,271,36,2907,266,45,3030,275,53,3146,271,39,3275,266,28,3417,276,35,3541,269,42,3666,266,16,3818,276,21,3948,269,28,4083,265,7,4236,275,11,4375,269,16,4513,263,4,4660,273,5,4801,267,7,4938,261,1,5082,272,2,5223,265,3,5365,259,1,5524,269,0,5673,264,0,5828,257,6,5992,267,3,6141,261,0,6302,255,13,6463,265,8,6606,260,4,6767,254,25,6915,263,19,7043,258,13,7195,252,32,7330,262,30,7439,257,29,7573,252,28,7703,261,26,7813,255,28,7945,252,28,8086,261,26,8220,255,28,8349,253,30,8503,261,31,8649,255,30,8789,253,28,8953,262,40,9101,255,31,9252,254,32,9416,263,47,9563,256,37,9718,256,40,9875,265,50,10022,258,47https://wiki.teamfortress.com/w/images/c/ca/Sandvich_Alt_3D.jpg?1701675821.43084310230,200,280,3,0,257,54,143,266,56,286,260,58,428,259,48,571,268,53,713,263,50,860,261,36,1009,270,48,1151,265,42,1301,262,28,1447,272,46,1580,268,36,1728,263,24,1868,273,49,1986,270,33,2124,264,26,2269,274,55,2386,271,34,2522,265,32,2660,275,64,2769,271,36,2903,266,45,3026,275,52,3142,270,39,3271,266,28,3413,275,35,3537,269,42,3662,266,16,3814,275,21,3944,269,28,4079,264,7,4232,274,11,4371,268,16,4509,263,4,4655,273,5,4795,267,7,4932,261,1,5076,271,2,5216,265,3,5358,259,1,5516,269,0,5665,263,0,5819,256,6,5983,267,3,6132,261,0,6293,255,13,6454,265,8,6597,260,4,6758,253,25,6906,263,19,7034,258,13,7186,252,32,7321,262,30,7430,256,29,7564,252,28,7693,261,26,7803,255,28,7934,252,28,8074,261,26,8207,254,28,8336,252,30,8490,261,31,8636,254,30,8776,253,28,8940,261,40,9088,255,31,9239,254,32,9403,263,47,9550,256,37,9705,256,40,9862,264,50,10009,258,47
Darkid « TalkContribs » 10:52, 11 July 2024 (UTC)

Avail

Sup. Could you update the module to handle more dynamic strings? By dynamic, I mean being able to pass text as a parameter instead of only numbers. There are many single-use availabilities and I believe this would be better than infinitely expanding the current list for items with a "non-standard" availability type. Something like this:

  • promo-ostbox-[boxname] -> calls {{common string|avail ostbox [boxname]}} -> generates Promotional
  • promo-grant-[org] -> calls {{common string|avail grant [org]}} -> generates Distributed (awarded)
  • etc.

I'd personally be fine with using the existing system and using something like special1 where 1 is the "id" of the dictionary entry ({{common string|avail special [id]}} - it would work just fine), but it's a bit harder to understand. — Tark 22:22, 4 June 2024 (UTC)

I'm in favor of the idea in general, but can you be a bit more specific about what these special strings are? Maybe you could suggest a list of current avail strings that we'd want to collapse down?
Technically speaking, this is quite easy to do, I just want to know a bit more (since it might change how we do it).
Darkid « TalkContribs » 10:55, 11 July 2024 (UTC)

Apologies

Sorry about Smokey Sombrero and Mann-O-War. I should have caught that. I'll make sure to double check before saving when I add full for the other languages. Mediarch User Mediarch PFP.pngTalkMy Edits 05:01, 8 July 2024 (UTC)

Not a problem, that's what the reports are for. Darkid « TalkContribs » 06:20, 8 July 2024 (UTC)

Module:Availability/Sandbox

Hi, could you implement the changes I made here: Module:Availability/Sandbox? Should be fine, but you can also see each diff. Thanks Mgpt (talk) 20:08, 19 July 2024 (UTC)

This is the topic I mentioned, Tark also has one above, mine are just fixes for now (irc request) Mgpt (talk) 20:00, 11 October 2024 (UTC)

Wikichievement Unlocked!

Wikichievement Awarded by Reason
The extinguished gentleman.jpg

Tron-o-Matic
Provide technical edits to the Wiki in the form of bots, configuration, or complex styling.

Mediarch Wikichievement unlocked!
For making the automatic paint upload script! Will be extremely helpful.

New script version

So I tested the new version of the script and it seemed to work great. Only issue I noticed is that for items with styles the style name and "BLU" were switched around so "File:Painted {Item Name} E6E6E6 BLU {Style Name}.png" instead of "File:Painted {Item Name} E6E6E6 {Style Name} BLU.png". Pretty sure I can fix that on my end by tweaking that section of the script but just so you're aware.

Also, seems that it added the {{Model info}} template just fine to new uploads (Example:Here) but the template doesn't show up for new versions of existing files (Example:Here). I'm pretty sure that's not an issue with the script and is more of a wiki issue because that's I think that's just how the wiki handles edit summaries on files. That might be fixable with a bot or something, not really sure.

Also, Also, GrampaSwood has requested the Paint Can name in the Model info template if possible. So have it say "An Extraordinary Abundance of Tinge" instead of "E6E6E6".

Anywho that's all I got I think. Thanks again for working on the script I really really appreciate it. Mediarch User Mediarch PFP.pngTalkMy Edits 16:33, 30 September 2024 (UTC)

Pushed a new version to address all 3 concerns. Thanks for testing + feedback! Darkid « TalkContribs » 17:09, 30 September 2024 (UTC)
I tried the new new version and it seems to have a slight issue. It's making new pages without the File: prefix. Like this one here Painted Troublemaker's Tossle Cap 808000.png. When I ran the script it's giving me a "WARNING: Failed to edit" error. Mediarch User Mediarch PFP.pngTalkMy Edits 17:46, 30 September 2024 (UTC)
Well that's not good. Please go back to the previous copy and I'll try to fix it this evening. Darkid « TalkContribs » 17:55, 30 September 2024 (UTC)
will do, thanks Mediarch User Mediarch PFP.pngTalkMy Edits 17:57, 30 September 2024 (UTC)
Should be fixed now -- thanks for the bug reports. Darkid « TalkContribs » 04:18, 2 October 2024 (UTC)

Painted Variants Full template missing Override Unpainted handler

I posted about this on Tark's page, but he's on break right now, so I thought I'd ask you too: an upcoming community MVM tour is anticipated to have medals that would require use of the Painted Variants Full template, to show team-colored variants on the single paints as well. But that template lacks a handler that the regular Painted Variants template has, override-unpainted, to show different unpainted images, while displaying all the other existing images. Would you be able to fix that? — User ThatHatGuy Signature Icon.png 00:06, 12 November 2024 (UTC)

It's really hard to build from a text description, if you have a sample (even MSPaint) of what you want, and the template input / images / etc you have, I can try to make you something. No promises, I'm also a bit slow to work on wiki projects. Darkid « TalkContribs » 04:45, 12 November 2024 (UTC)
This is the function on the regular template. I need Paint Table Full to have the same override-unpainted handlers, to accept replacement unpainted images. Outwardly, the template won't look different until it's actually called. You can test it with {{Painted variants full|default=Style 1|override = Memes vs. Machines Baked Potato 2019|override-unpainted = Ghoulish Gambit Poisonous Potato 2024|h=0|width = 84x84px}} and see if the unpainted images show as red links. If they do, it should be good. — User ThatHatGuy Signature Icon.png 08:16, 12 November 2024 (UTC)
Sorry, I'm still not sure I follow what you need. If you already know what code you want changed, try sandboxing it and show me where it breaks? Darkid « TalkContribs » 08:24, 12 November 2024 (UTC)
The problem is I don't know what I'm doing. That's why I asked you. This should work, in theory, but now I don't know how to call it or what I need to do to check, or anything. — User ThatHatGuy Signature Icon.png 09:11, 12 November 2024 (UTC)
An update to this: I have created a sandbox for the template, and it almost works. However, because I copied the code from the single Unpainted image box in the regular Painted Variants template, as you can see from my sandbox test, currently the RED team image uploads to a file path for a base unpainted image -- not a RED team image file path -- and the BLU team unpainted image box appears to be on another column entirely. — User ThatHatGuy Signature Icon.png 15:33, 12 November 2024 (UTC)

3D models thing isn't working

When I try to run the 3D models automation script (specifically the command python automate.py), it gives me this message:

Traceback (most recent call last):
  File "automate.py", line 37, in <module>
    'vertical_offset': None
  File "C:\path\3D-Models-automation\HLMVModel.py", line 89, in __init__
    raise ValueError('Sigscan mismatch for both HLMV and HLMV++')
ValueError: Sigscan mismatch for both HLMV and HLMV++


I do have another version of HLMV++ installed, but can you figure out what's wrong?
User Slimyboi500 Logo.png User Slimyboi500 Profile.jpg Talk Speech voice.png Contribs Wrench IMG.png Steam Steam tray.png 20:11, 23 November 2024 (UTC)

Report request

I would like to request a new type of report, a few times over the last few days I've seen edits that are correcting {{Lang}} instances that have duplicate en = parameters and replacing them with the correct es = parameter. Is it possible to have a report that lists these instances? This most often happens with Spanish and causes the English text to be replaced with Spanish text, but it has happened with other languages too.
BLU Wiki Cap.png | s | GrampaSwood Praise the Sun! (talk) (contribs) 15:24, 29 November 2024 (UTC)

Pictogram info.png Current

{{#invoke:Backpack item/format|format_string|{{{1}}}|festivized={{{festivized|}}}|filter={{{filter|}}}|item_name={{{item_name|}}}|killstreak={{{killstreak|}}}|quality={{{quality|}}}|prefix={{{prefix|}}}|suffix={{{suffix|}}}}}

Pictogram wait.png Forever

Color-changing crosshair


alias Red "resetColor; incrementvar cl_crosshair_red -256 255 128; alias resetColor redReset"
alias redReset "incrementvar cl_crosshair_red -256 255 -128"
alias Orange "resetColor; incrementvar cl_crosshair_red -256 255 128; incrementvar cl_crosshair_green -256 255 64; alias resetColor orangeReset"
alias orangeReset "incrementvar cl_crosshair_red -256 255 -128; incrementvar cl_crosshair_green -256 255 -64"
alias Yellow "resetColor; incrementvar cl_crosshair_red -256 255 128; incrementvar cl_crosshair_green -256 255 128; alias resetColor yellowReset"
alias yellowReset "incrementvar cl_crosshair_red -256 255 -128; incrementvar cl_crosshair_green -256 255 -128"
alias Green "resetColor; incrementvar cl_crosshair_green -256 255 128; alias resetColor greenReset"
alias greenReset "incrementvar cl_crosshair_green -256 255 -128"
alias Blue "resetColor; incrementvar cl_crosshair_blue -256 255 128; alias resetColor blueReset"
alias blueReset "incrementvar cl_crosshair_blue -256 255 -128"
alias Purple "resetColor; incrementvar cl_crosshair_red -256 255 64; incrementvar cl_crosshair_blue -256 255 128; alias resetColor purpleReset"
alias purpleReset "incrementvar cl_crosshair_red -256 255 -64; incrementvar cl_crosshair_blue -256 255 -128"
alias Lighten "incrementvar cl_crosshair_red -256 255 32; incrementvar cl_crosshair_green -256 255 32; incrementvar cl_crosshair_blue -256 255 32"
alias Darken "incrementvar cl_crosshair_red -256 255 -32; incrementvar cl_crosshair_green -256 255 -32; incrementvar cl_crosshair_blue -256 255 -32"
bind 1 "slot1; Green"
bind 2 "slot2; Blue"
bind 3 "slot3; Red"
bind w +Qforward
bind a +Qmoveleft
bind s +Qback
bind d +Qmoveright
alias +Qforward "+forward; Darken"
alias -Qforward "-forward; Lighten"
alias +Qmoveleft "+moveleft; Darken"
alias -Qmoveleft "-moveleft; Lighten"
alias +Qback "+back; Darken"
alias -Qback "-back; Lighten"
alias +Qmoveright "+moveright; Darken"
alias -Qmoveright "-moveright; Lighten"
Friend Achievements Taunt Achievements Pacifism Achievements
Agent Provocateur
Agent Provocateur
Backstab your Steam Community friends 10 times.
Full Spectrum Warrior
Full Spectrum Warrior
Ignite 3 enemy players using your Rainblower taunt.
First Do No Harm
First Do No Harm
Play a full round without killing any enemies, and score the highest on a team of 6 or more players.
Honky Tonk Man
Honky Tonk Man
Smash an enemy player's head in with your guitar.
No-Hitter
No-Hitter
Steal and then capture the enemy intelligence without firing a shot.
Family Practice
Family Practice
ÜberCharge 5 of your Steam Community Friends.
OMGWTFBBQ
OMGWTFBBQ
Kill an enemy with a taunt.
Foundry Force Five
Foundry Force Five
Play in a game with five or more players from your Friends list.
Out of the Park
Out of the Park
Bat an enemy 25 meters.
House Call
House Call
Join a game that one of your friends is in and then deploy an ÜberCharge on him.
Scotch Tap
Scotch Tap
Glory in the slaughter of your enemies using the Eyelander.
With Friends Like These...
With Friends Like These...
Play in a game with five or more players from your friends list.
Shafted
Shafted
Stab an enemy with an arrow.
Flight Crew
Flight Crew
Play in a game with five or more players from your Friends list.
Show Trial
Show Trial
Kill an enemy with a taunt.
Brotherhood of Steel
Brotherhood of Steel
Complete a mission with 5 people on your Friends List.
Spray of Defeat
Spray of Defeat
Use a grenade to gib a player.
The Man from P.U.N.C.T.U.R.E.
The Man from P.U.N.C.T.U.R.E.
Stab an enemy while fencing.

Wikichievements


Wikichievement Awarded by Reason
Tf scout kill from behind.png

Taskmonkey
Contribute to the Wiki by doing a lot of "manual edits" (such as migration of data to templates).

Dispenser (GianAwesome) Wikichievement unlocked!
For actually having patience to replace patch links with Patch name, congratulations! =D
Wikichievement Awarded by Reason
The extinguished gentleman.jpg

Tron-o-Matic
Provide technical edits to the Wiki in the form of bots, configuration, or complex styling.

Eels Wikichievement unlocked!
Because you're pretty damn good at this technical stuff. Keep it up!
Wikichievement Awarded by Reason
Lenin A Hand.png

Helping Hand
Help other users to improve the Team Fortress Wiki with constant tips and coordination.

Lexar Wikichievement unlocked!
Helping me to use the dictionary quad properly
Wikichievement Awarded by Reason
3D-O-Vision.png

3D Wizard
Create a 3D image for the 3D Models project.

Redconer Wikichievement unlocked!
You used so much magic with those bot killers that you need an award for that.
Wikichievement Awarded by Reason
3D-O-Vision.png

3D Wizard
Create a 3D image for the 3D Models project.

Gabrielwoj Wikichievement unlocked!
For creating tons of Australium, Botkiller and missing 3D Images, you simply deserve another one.
show;hide