u/WorkingMansGarbage

▲ 24 r/lua

Is Lua fit to use for general, personal use scripting of basic things (as replacement for Bash)?

Sometimes I have to automate a basic task, such as running some commands on files in my music library, bulk renaming, moving things, etc; and like anyone, I tend to try and use Bash for things like that, because that's what I was taught. The problem is that I don't like Bash scripting at all and I have to look up the stupid syntax for every little thing every god damn time. From what I've seen, other shells aren't too much better in my opinion, and in general, I actually don't like relying on shell commands within my scripts for things that would be simpler in a 'normal' programming language.

I've tried using Python as a replacement, but I don't like having to make a venv. It's bulky and annoying. I'd like to just have one script file I can run in one command whenever and not have to go through hoops.

I've been eyeing Lua just because it sounds cool but I've never had a reason to actively learn it. Would it be fit for this usage? Or is it solely a language for "project use", so to say?

reddit.com
u/WorkingMansGarbage — 3 days ago

Where could I buy Guilty Gear merch from Europe?

My best friend's birthday is coming up and I've been wanting for a long time to get them some cool merch.

They play I-No so I wanted to get them something related. My first thought was a print of hungryclicker's art but I couldn't find posters for their I-No illustrations; they seem to sell artbooks on Melonbooks, but that's all I could find. Then I looked at ArcshopUS but they apparently don't ship outside of America (and the prices are a bit much).

I'm not usually someone who buys merch for things so I'm kind of lost on this. All I need is for it to reach France and for it to be made and sold with the artist's permission (so not Displate/redbubble stuff made by people grabbing art off the web, unless it's confirmed to be approved by the artist). I don't need it to be official ArcSys merch. Is there anywhere like that? Thanks in advance for any answers.

reddit.com
u/WorkingMansGarbage — 9 days ago

Is there a utility that can send arbitrary key inputs?

As a formality, I am using EndeavourOS.

Here's my current problem: I'm trying to use a mod for Guilty Gear Strive (running through ProtonGE). It allows the use of multiple costume slots on the character screen. The mod's author made it so switching to different costumes is done either with a button combo on a controller, or with the top number row keys on a keyboard, and only those keys. Because of technical constraints, this mod has no key rebinding.

Problem. I use an French AZERTY keyboard*. My top number row key is different: it goes &é"'(-è_ç, etc, and I access the numbers with Shift. Be it because of the game, UE4's input classes, Proton or something else, these keys are not recognized as the same keys as the 123 QWERTY top row and thus do not work for changing costumes. If I switch to the English (US) layout in Plasma's settings (sorry I have no idea if there's a more specific name for the module that handles keyboard layouts), it works, but only if the game is started with the layout set to US (does Wine/Proton handle the keyboard layout in its own way, maybe?), and then for some reason, every time I've tried this, I've found that my list of layouts is reset to just French AZERTY without my knowledge later, likely whenever I restart, possibly due to Fcitx5 interfering in some way. (Also, obviously, this makes my layout become QWERTY which I don't want)

If it wasn't for needing to restart the game every time to change the layout, I'd have been OK just switching on and off from QWERTY when I'm selecting my costume, but now I have to find an alternative. Hence my thought: is it possible for me to send to the game an arbitrary keyboard input using some existing utility? If I could, it wouldn't be hard to set up something that sends a 1-5 key press when I press a specified key. Is this something that exists? Will it work through Wine/Proton?


* I will not switch layouts. I've typed on AZERTY for my whole life and it might have its issues but it's still better for French than QWERTY.

reddit.com
u/WorkingMansGarbage — 10 days ago

I've been doing some game jams in the past year or two as a programmer and it's been an awesome way to develop my skills, but there's been a bit of a problem. Somehow, in most jams I did with a team, I somehow ended up taking the biggest share of the coordination and 'leadership' workload, so to say. No one stepped up to put together a master doc to align our vision around, most didn't know how to use Git, and I didn't see anyone asking where the others were at. I don't blame them, I was with other relative beginners and not everyone has those skills. Obviously, I stepped up to fill the need.

The problem is that I'm not exactly good at this stuff either, seeing as I have ADHD-PI. I have some knowledge in disciplines outside my own which helps me understand others' workloads a little bit better, and I have basic project management knowledge from my CS/IT education, but I have bad time management and mediocre organizational capacities. In the end, I'm only slightly better than the people around me at this task and it's not enough to keep projects from going fucky wucky. The one jam I did where that responsibility was split more evenly went visibly better. Even if we were short on time by the end of it, so far, it's the only one I've done where we had a properly playable game by the end of the period.

Because of this, I've had the desire to do a few more jams in teams where someone else is leading. Preferably with people that have more experience than me. I obviously don't plan on leaving the hard work to others but it feels like it'd be a way to learn these management skills better from other people, as opposed to throwing crap at the wall by taking on the responsibility myself and struggling, and also focus on programming more within the more rigid framework provided by someone more capable. Then I'll be more capable in a coordination role afterwards.

But I'm not confident as to how to get there. Last time, I tried just posting a 'looking for team' message on the jam's Discord and stating roughly what I said here, but got virtually no replies, which made me think maybe it was too bold of an approach (perhaps people read it as "I want to join a team where other people do the hard work and I have no responsibilities!!1!" but I wouldn't know as no one really said anything). I tried asking various partially formed teams, of course, but the ones that seemed experienced already had too many programmers and a lot of them worked with engines I don't know how to use (while I can use a number of languages, Godot is the only engine I have experience with; this is admittedly something I need to solve), so bad luck there.

Is there a better way? It seems like the best way would be to reach out to experienced devs doing jams regularly directly, instead of looking only relative to specific upcoming jams. I don't really know how to approach that, though. I'm worried I'd either be seen as deadweight or an opportunist, neither of which I intend to be. Or maybe I am thinking about this wrong and it's a disrespectful thing to look for?

Bit rambly post. I hope I'm not being too vague?

reddit.com
u/WorkingMansGarbage — 19 days ago