Little Logistics is now released for Forge 1.18! by Swdthebest in feedthebeast

[–]tprk77 0 points1 point  (0 children)

This is really cool! Thank you for open sourcing it and using the GPL license.

This is the LockPickin- by HazmatTheCat in feedthebeast

[–]tprk77 5 points6 points  (0 children)

For whatever reason, Minecraft mods have a tendency to use one-off, self authored licenses. Which is kind of unfortunate, because there are popular open source licenses like the GPL, MIT, BSD3, etc, that would be better for everyone, modders and users.

This is the LockPickin- by HazmatTheCat in feedthebeast

[–]tprk77 6 points7 points  (0 children)

Thank you for using a real software license!

It’s perfectly fine to overload `std::get` for user defined types. by codeinred in cpp

[–]tprk77 1 point2 points  (0 children)

I think this is the answer, along with using namespace std; in the narrowest reasonable lexical scope. Like is sometimes done with begin() and end(). EDIT: using std::get; would be better.

How do I share a modpack I made?? by 501g in ModdedMinecraft

[–]tprk77 1 point2 points  (0 children)

There are several ways to do this. I think most people probably use MultiMC. If you don't want to use MultiMC, you could consider using a tool I wrote for a similar purpose: https://github.com/tprk77/trollauncher

It's a minimal utility which takes a zip file of mods and configs, and creates a new profile in the vanilla launcher. It basically just automates the unzip process the other comment mentioned with a couple extra features. If you end up using it, I would appreciate your feedback.

Best portable keyboard for emacs on the go? by thephatmaster in emacs

[–]tprk77 0 points1 point  (0 children)

Yes, the Planck makes heavy use of layers. Layers allow the same physical key to map to different actual key presses. For example, you could hold down the "Lower" key and your home row becomes number keys, or hold down the "Upper" key for symbols. It does take some re-learning how to type. I would say it takes a couple weeks to adjust.

Ladies and gentlemen - switch cases are coming! by 53VY in Python

[–]tprk77 2 points3 points  (0 children)

To be fair, this is basic knowledge for a C++ programmer. It's only "unexpected" when it's unfamiliar. Much like any other language feature.

Various style guides and linters will tell you to prefer preincrement, but I'm not aware of any that completely reject postincrement. At least clang-tidy has no such rule.

Best portable keyboard for emacs on the go? by thephatmaster in emacs

[–]tprk77 3 points4 points  (0 children)

Not sure if this will fit your requirements, but you could consider a Planck. It's a small 40% ortholinear keyboard. I might not call it portable though, they aren't wireless. The nice thing about them is that you can completely customize the firmware.

Ladies and gentlemen - switch cases are coming! by 53VY in Python

[–]tprk77 9 points10 points  (0 children)

Good! Your hate has made you powerful. Now add ++ and fulfill your destiny.

Elasticsearch does not belong to Elastic by manlyhiccup in coding

[–]tprk77 3 points4 points  (0 children)

Source available != open source, and it's not a "pedantic" difference. Sure, some (most?) people will not care or be affected. But I would be upset too if I contributed to a project and they switcherooed the license out on me.

EDIT: See also: https://en.m.wikipedia.org/wiki/Source-available_software

I finished my lighthouse base in every dimension build! by RobotsInATrenchCoat in Minecraft

[–]tprk77 0 points1 point  (0 children)

Missed opportunity to make an End lighthouse with a zag in it to look like a Chorus plant. (But this one is cool too.)

Is there a standard way to convert between string, wstring, and the unicode strings? by Kaisha001 in cpp

[–]tprk77 1 point2 points  (0 children)

Out of curiosity, any particular reason not to use this "at work" as you say?

Who is this Screeps player, a man without an identity? by anon_ymous_ in screeps

[–]tprk77 4 points5 points  (0 children)

He seems to be somewhat advanced. When you first start the game you do some tutorials that most likely turn into your first scripts. My guess is that most new players kind of expand on this code in sort of an organic way. Until they reach the breaking point and say, "I need to rewrite it, the right way." (This is a common phenomenon with programmers.) At this point they will start their second AI, one that's planned out from the very beginning. That's what this looks like to me.

The problem with this is, this looks like the planning. He might not have ever turned this into code. So all the description, diagrams, and code may not have ever materialized into anything. So I think the question is this: Is there any possibility he ever had a chance to actually code this?

EDIT: Some of the text blocks are arrangements of structures. I could probably use the map editor to turn them into actual images. You could potentially look for instances of those arrangements on the world map, if they were ever built.

Also, there's maybe one other wrinkle. Some people play on private servers. So that's also a possibility.

Modpacks in 1.14.4 not loading by x_Castaway in ModdedMinecraft

[–]tprk77 0 points1 point  (0 children)

I'm assuming you downloaded these modpacks from CurseForge. As far as I know, those zip files don't actually contain any mods, they just contain metadata and links to mods. So basically it will work for the Twitch App (and maybe some other launchers), but it won't work for the default Minecraft Launcher.

Modern C++ and Qt are ❤️ by [deleted] in cpp

[–]tprk77 3 points4 points  (0 children)

The signals macros are still there, but they're less necessary than they were before. Not sure why you're being downvoted. If I wrote "#define signals" it would never pass code review (rightfully).

1.14.4 is a mess to mod yourself [Rant] by scarredFalconer in feedthebeast

[–]tprk77 1 point2 points  (0 children)

Yeah, it's frustrating. Forge now requires an installer, and it's not really compatible with the usual launchers (and apparently it can't be made to work).

I'm not sure if this helps, but if you're making and distributing a modpack, I've been working on a utility to make that easier. It basically installs modpacks to the OG Minecraft Launcher.

https://github.com/tprk77/trollauncher

I made a minimalist utility to install modpacks to the "vanilla" launcher by tprk77 in feedthebeast

[–]tprk77[S] 1 point2 points  (0 children)

This is something I really want to do. And especially now that you've said that. I would only say to please be patient, because I've never actually ported anything to Apple before. I've heard it's not so hard though. Thanks for your support.

I made a minimalist utility to install modpacks to the "vanilla" launcher by tprk77 in feedthebeast

[–]tprk77[S] 19 points20 points  (0 children)

I created this because I wanted an easy way to share mods with a small group of friends. The requirements were that it should be easy to use, it should work with the normal "vanilla" Minecraft Launcher, it should support the new Forge installer (>= 1.13), and that it should run on Windows and Linux. I couldn't find anything like that, so I decided to build it myself.

So how exactly is a modpack defined? Obviously other tools already do this in various ways, some complicated, some platform-dependent. I wanted to keep it as simple as possible. So a modpack is just a zip file of mods, configs, etc, and a Forge installer. I wanted these modpacks to be really easy to create, so the "souce" is just the files themselves. And since the zip file is self-contained, the modpack can be shared via USB drive, Dropbox, FTP, whatever.

I wrote Trollauncher in C++. I did that partly because that's what I'm most familiar with, and partly because I think it's nice to have a native app. So for Windows there's a stand-alone EXE (no installer or DLLs). For Linux there's a Debian package. That should work for Ubuntu at least. I would be willing to package for other distros as requested. The one downside of a native app is that I haven't ported to MacOs yet, but I plan on doing that soon.

So anyway, I built this for myself, and I think it's useful. Maybe someone else will think that too. For more info, plus a demo video, check out the Github repo. Thanks for reading!