WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!
-
@ben_lubar because CMD is evil.
-
@pie_flavor said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar because CMD is evil.
What's the PowerShell equivalent to
set episode=%~n1
, anyway?
-
@ben_lubar
$env:episode = gci $args[0] | % {$_.BaseName}
-
@pie_flavor said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar
$env:episode = gci $args[1] | % {$_.BaseName}
How much Perl did the PowerShell devs smoke before they made that?
-
@ben_lubar It's perfectly sensible; it just takes putting some pieces together, rather than the CMD way of 'enumerate everything you can do into individual commands, and good luck doing anything else'.
$env:<var>
is environment variables.gci
is short forGet-ChildItem
, i.e. fully resolve string into path.$args
is an array of the current function's args, if you decided not to bind them to variables viaparam
. At this point, we're equivalent to%~f1
, though%~n1
requires just a bit more. So, next segment.%
is short forForEach-Object
, a cmdlet that acts like aforeach
loop on the pipeline.$_
represents the current pipeline value. AndBaseName
is the .NET property for a filename without an extension (the difference betweenf
andn
in CMD).Actually, I misspoke. That would return the non-fully-qualified name. You'd probably pipeline it to
% {$_.Directory.FullName + '\' + $_.BaseName}
instead. Of course TR is using something that would require such an input format in the first place.Edit: Oh, I see. Interesting, I didn't know you could use that for folders. In that case you'd simply use
$env:episode = rvpa $args[0]
(rvpa
being short forResolve-Path
.
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
By the way, did anyone notice something that's in EP16's thumbnail that wasn't in other episodes so far?
Edit: TIL:
"I See Dead People in Boats" is a musical theme composed and conducted by Hans Zimmer for Pirates of the Caribbean: At World's End.
-
The series resumes on Monday:
- January:
- Monday: Episode 9
- Wednesday: Episode 10
- Friday: Episode 11
- Monday: Episode 12
- Wednesday: Episode 13
- February:
- Friday: Episode 14
- Monday: Episode 15
- Wednesday: Episode 16
- January:
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
I wonder if I recorded these with a higher bitrate than normal...
How big are the files?
I recently did some compression with 35 CRF and still did not see any artifacts. The size was ~900MB / 30mins.
-
@adynathos I think I use 18 CRF with x264 and 25 CRF with NVENC and I get around the same quality (2-3GB for 30 minutes).
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
18 CRF
I wonder what it would be for the default 23 CRF.
If your upload is a big bottleneck, a compromise may be in order.
-
@adynathos said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
18 CRF
I wonder what it would be for the default 23 CRF.
If your upload is a big bottleneck, a compromise may be in order.I may be misremembering. All I know is that NVENC and x264 have very different "middle" CRF settings.
-
XCOM 2: Worse than Failure: episode 9 – 28:41
— Ben LubarEpisode 9: Operation Sleeping Grin
Appearing: Flynn Gordon, Mike Goulis, @DCon, @Sentenryu, @MathNerdCNU, @Jarry
-
@zecc said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
Edit: TIL:
"I See Dead People in Boats" is a musical theme composed and conducted by Hans Zimmer for Pirates of the Caribbean: At World's End.
And if those boats are, in fact, nice, we've reached an old meme.
-
XCOM 2: Worse than Failure: episode 10 – 22:31
— Ben LubarEpisode 10: Operation Cursed Knife
Appearing: @Nagesh, Jane Bailey, @Erufael, @JBert, @mikeTheLiar, @JazzyJosh
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@pie_flavor said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar why would you do that instead of a PS1 file?
To run a single command with some very basic variable substitution? Why does it matter?
It's literally a two-line script (I removed the
pause
).You should have seen the backlash I got when I made a little script to call ffmpeg on a folder of files...
-
Oh yeah, I still gotta watch these. :D
-
XCOM 2: Worse than Failure: episode 11 – 20:00
— Ben LubarEpisode 11: Operation Spider Beast
Appearing: @Julmu
-
XCOM 2: Worse than Failure: episode 12 – 36:57
— Ben LubarEpisode 12: Operation Wolf Strike
Appearing: @Kuro, @blakeyrat, @Dragnslcr, @boomzilla, @homoBalkanus, @Sentenryu, @MathNerdCNU, @Adynathos
-
@ben_lubar said in Episode 12:
Where is Boomzilla?
...
I am going to save and exit and then go straight back in ... and hopefully that will make at least a few things make more sense?!That was a great episode, thanks :)
-
XCOM 2: Worse than Failure: episode 13 – 28:02
— Ben LubarEpisode 13: Operation War Fall
Appearing: @Salamander
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
Episode 13: Operation War Fall
Alternative thumbnail (1:40)
-
XCOM 2: Worse than Failure: episode 14 – 33:03
— Ben LubarEpisode 14: Operation Hammer Prince
Appearing: @mikeTheLiar, @JBert, @Erufael, @Rhywden, Jane Bailey, @Nagesh, RubĂŠn DĂaz
-
@ben_lubar the fuck is this and why am I tagged
Oh wait. Ben L. Never mind, answered my own question.
-
@ben_lubar You made brief mentions about having made a mod for the game, something related to recruit management? What does it do, exactly?
-
@zecc said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar You made brief mentions about having made a mod for the game, something related to recruit management? What does it do, exactly?
The mod I made was just some string changes like AVATAR PROJECT -> DISCOURSE PROJECT. The mod I was probably talking about in that moment was this one.
Here are all the mods used in the LP:
-
XCOM 2: Worse than Failure: episode 15 – 21:42
— Ben LubarEpisode 15: Operation Hell Tooth
Appearing: Mike Goulis, lethosor, @reverendryan, @locallunatic, @Grunnen, @Jarry
-
XCOM 2: Worse than Failure: episode 16 – 29:04
— Ben LubarEpisode 16: Operation Winter Hound
Appearing: @Luhmann
-
Spoiler
Damn, that was a close one.
-
@pleegwat said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
Spoiler
Damn, that was a close one.Spoilerer
My previous post about the dead people in the thumbnail was proven correct.I thought we were going to lose Luhmann.
-
Spoiler
Actually, I think this is the one girl who survived?.
-
Reliops
I think it's her in the thumbnail, yes. And Luhmann isn't shown, which just added to the tension.I don't know if Ben did that on purpose.
-
@zecc said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
Reliops
I think it's her in the thumbnail, yes. And Luhmann isn't shown, which just added to the tension.I don't know if Ben did that on purpose.
Relpy
Nah, I did it because there's a very limited number of frames of each video where there aren't any UI elements on screen and it looks nice for a thumbnail.
-
XCOM 2: Worse than Failure: episode 17 – 31:00
— Ben LubarEpisode 17: Operation Sky Stank
Appearing: @Boner, Brad Morgan, @Yamikuronue, @obeselymorbid, @PleegWat, @Adynathos
-
This post is deleted!
-
2 new episodes !!!
FileUnder: Yeah, I know you double-posted
-
Error making YouTube API call: googleapi: Error 503: Backend Error, backendError
[retries; hours pass]
dial tcp: lookup www.googleapis.com: no such host
dial tcp: lookup accounts.google.com: no such hostWell, that's not good...
-
@miketheliar Holy shit admin abuse?
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
Error making YouTube API call: googleapi: Error 503: Backend Error, backendError
[retries; hours pass]
dial tcp: lookup www.googleapis.com: no such host
dial tcp: lookup accounts.google.com: no such hostWell, that's not good...
DNS has been really shoddy for me the last few days...
-
XCOM 2: Worse than Failure: episode 18 – 20:29
— Ben LubarEpisode 18: Operation Foolish Blade
Appearing: @JazzyJosh, @Kuro, @Dragnslcr, @homoBalkanus, @Sentenryu, @DCon, Flynn Gordon, @Circuitsoft
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
Error making YouTube API call: googleapi: Error 503: Backend Error, backendError
[retries; hours pass]
dial tcp: lookup www.googleapis.com: no such host
dial tcp: lookup accounts.google.com: no such hostWell, that's not good...
Fun fact: the Google implementation of the YouTube API for Go doesn't handle resuming uploads correctly. Even though it has a function named "ResumableMedia" and a function named "ResumableUpload", neither of them actually support resuming an upload in the case of any error.
Thankfully, their spec writers are better: https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol
The resumable upload API is pretty cool. I wonder why zero external applications I've ever seen use it in any meaningful way.
-
@ben_lubar Because zero external applications are designed for MilwaukeePC use.
-
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
Error making YouTube API call: googleapi: Error 503: Backend Error, backendError
[retries; hours pass]
dial tcp: lookup www.googleapis.com: no such host
dial tcp: lookup accounts.google.com: no such hostWell, that's not good...
Fun fact: the Google implementation of the YouTube API for Go doesn't handle resuming uploads correctly. Even though it has a function named "ResumableMedia" and a function named "ResumableUpload", neither of them actually support resuming an upload in the case of any error.
Thankfully, their spec writers are better: https://developers.google.com/youtube/v3/guides/using_resumable_upload_protocol
The resumable upload API is pretty cool. I wonder why zero external applications I've ever seen use it in any meaningful way.
Update: Exponential backoff worked correctly, but it happened on success instead of only on failure, so:
Uploading file 'xcom0020.mp4'... 2018/02/12 18:16:41 resuming from byte 110362624 of 3087570930 Progress: 0.05 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:42:01 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:42:01 waiting 500ms and trying again Progress: 0.02 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:42:02 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:42:02 waiting 1s and trying again Progress: 0.01 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:42:04 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:42:04 waiting 2s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:42:06 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:42:06 waiting 4s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:42:10 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:42:10 waiting 8s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:42:18 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:42:18 waiting 16s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:42:34 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:42:34 waiting 32s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:43:06 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:43:06 waiting 1m4s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:44:10 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:44:10 waiting 2m8s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:46:18 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:46:18 waiting 4m16s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:50:34 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:50:34 waiting 8m32s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 03:59:07 video upload request failed temporarily with http status: 200 OK 2018/02/13 03:59:07 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 04:14:07 video upload request failed temporarily with http status: 200 OK 2018/02/13 04:14:07 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 04:29:07 video upload request failed temporarily with http status: 200 OK 2018/02/13 04:29:07 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 04:44:07 video upload request failed temporarily with http status: 200 OK 2018/02/13 04:44:07 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 04:59:08 video upload request failed temporarily with http status: 200 OK 2018/02/13 04:59:08 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 05:14:08 video upload request failed temporarily with http status: 200 OK 2018/02/13 05:14:08 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 05:29:08 video upload request failed temporarily with http status: 200 OK 2018/02/13 05:29:08 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 05:44:08 video upload request failed temporarily with http status: 200 OK 2018/02/13 05:44:08 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 05:59:09 video upload request failed temporarily with http status: 200 OK 2018/02/13 05:59:09 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 06:14:09 video upload request failed temporarily with http status: 200 OK 2018/02/13 06:14:09 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 06:29:09 video upload request failed temporarily with http status: 200 OK 2018/02/13 06:29:09 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 06:44:09 video upload request failed temporarily with http status: 200 OK 2018/02/13 06:44:09 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 06:59:10 video upload request failed temporarily with http status: 200 OK 2018/02/13 06:59:10 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 07:14:10 video upload request failed temporarily with http status: 200 OK 2018/02/13 07:14:10 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 07:29:10 video upload request failed temporarily with http status: 200 OK 2018/02/13 07:29:10 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 07:44:10 video upload request failed temporarily with http status: 200 OK 2018/02/13 07:44:10 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 07:59:10 video upload request failed temporarily with http status: 200 OK 2018/02/13 07:59:10 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 08:14:11 video upload request failed temporarily with http status: 200 OK 2018/02/13 08:14:11 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 08:29:11 video upload request failed temporarily with http status: 200 OK 2018/02/13 08:29:11 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 08:44:11 video upload request failed temporarily with http status: 200 OK 2018/02/13 08:44:11 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 08:59:11 video upload request failed temporarily with http status: 200 OK 2018/02/13 08:59:11 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 09:14:12 video upload request failed temporarily with http status: 200 OK 2018/02/13 09:14:12 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 09:29:12 video upload request failed temporarily with http status: 200 OK 2018/02/13 09:29:12 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 09:44:12 video upload request failed temporarily with http status: 200 OK 2018/02/13 09:44:12 waiting 15m0s and trying again Progress: 0.00 kbps, 3087570930 / 3087570930 (100.000%) ETA 0s2018/02/13 09:59:12 video upload request failed temporarily with http status: 200 OK 2018/02/13 09:59:12 waiting 15m0s and trying again
-
@ben_lubar hey, it actually did something useful the second time around:
D:\Videos>youtubeuploader -resume -filename xcom0021.mp4 -metaJSON xcom0021.json -thumbnail xcom0021_thumb.jpg -ratelimit 500 -limitBetween 08:30-01:00 Uploading file 'xcom0021.mp4'... 2018/02/13 10:06:19 resuming from byte 786432 of 3056121328 Progress: 493.02 kbps, 679048932 / 3056121328 (22.199%) ETA 10h41m29.38s 2018/02/13 13:07:49 video upload request failed temporarily with http status: 502 Bad Gateway 2018/02/13 13:07:49 waiting 500ms and trying again Progress: 218.66 kbps, 679123932 / 3056121328 (22.202%) ETA 19h14m16.2s 2018/02/13 13:07:50 resuming from byte 678952960 of 3056121328 Progress: 498.95 kbps, 742552960 / 3056121328 (24.282%) ETA 10h18m28.32s
-
@ben_lubar How can you get a 2nd laser rifle?
-
@adynathos said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar How can you get a 2nd laser rifle?
Screenshot from one of my other saves:
-
@adynathos said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar How can you get a 2nd laser rifle?
You can just build/buy those.
There's only a few items you can only get one of. Like that dumb freeze grenade...
-
@blakeyrat said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@adynathos said in WTDWTF gets murdered by aliens and it's all Ben Lubar's fault!:
@ben_lubar How can you get a 2nd laser rifle?
You can just build/buy those.
There's only a few items you can only get one of. Like that dumb freeze grenade...
The items you can only get one of are:
- Avatar corpse (you only encounter four avatars in the whole game, and the mission where you find the last three goes straight to the end credits when you complete it)
- [Alien Hunters DLC] The three alien ruler suits* (each requires a unique boss corpse to produce)
- [Alien Hunters DLC] Four weapons: Bolt Caster*, Frost Bomb*, Shadowkeeper*, Hunter's Axe* (obtained at the start of the DLC)
- [War of the Chosen DLC] The five weapons used by the Chosen (again, unique boss loot)
* these are upgradable
-
So, which statistic about episode 22 is a lie?
-
@ben_lubar Makes sense to me, if it's 0% uploaded then I doubt most advertisers would want to pay for putting ads on it.
-
@ben_lubar YouTube knows it's going to be inappropriate just from the name, thumbnail, description, and uploader's account alone; it doesn't need any of the actual video data.
Filed under: actually just uploader's account, dwarf fortress isn't advertiser suitable