News & Gossip VII: For Blood and Headlines

image

2 Likes

Going into the directory of a full romset and running a script that launches a random game from there is one of the greatest ways to play. Nothing else compares. I have a long draft half-finished to start a thread about it actually that this conversation is making me feel like I ought to wrap up and post.

In general, I feel like much of the world has been driven out of their minds by the malign religious ideals of money and intellectual property, and as a result we have a media environment that actively seeks to destroy some people’s lives and presents an immense volume of a kind of dreary grey sequels-and-reruns paste to everyone else in a horrifying simulacrum of an organically-thriving culture. It’s amazing how far everyone has dragged art, one of the most precious aspects of human life, into such a dismal pit of greed and emptiness, with seemingly only faint complaints from distant corners. Luckily art itself is still wonderful, in the broadest sense, and no one can take that from anyone.

25 Likes

if rockstar games was cool they would join the ransomware group so they can pay their developers more to make their dope and badass games

10 Likes

would love to read this if only to ask about what your script looks like cos we’ve been doing this at my house for a while now by generating a random number and choosing the corresponding game from a big pile.

@Echo Off
Set "SrcDir= C:\Papers\"
Set "ExtLst=*.pdf *.epub"
Set "i=0"
For /F "Delims=" %%A In ('Where /R "%SrcDir%" %ExtLst%') Do (Set /A i+=1
    Call Set "$[%%i%%]=%%A")
Set /A #=(%Random%%%i)+1
Call Start "" "%%$[%#%]%%"

If on windows, I have one. My batch file for random open papers, change the SrcDir or ExtLst to your rom folder and rom file types

the premise is that you have specified the executable program for the file type

4 Likes

god i gotta learn to write bat scripts i still can’t read them very well. gotta learn to write python scripts too. :weary:

i thiiink the miyoo onion os has a random game function

With pleasure!! ^^ It is in my draft for that post, so it’ll appear there too, but in any case, I’m more than happy to share it.

Just to quickly state how it works at the get-go, the way I actually use it is like, at the shell, I navigate to a directory with roms in it, then enter either mednarand (for Mednafen) or msxarand (for openMSX). This launches the respective emulator with a random file from the current directory (excluding 7-zip archives), and prints the filename to the console for future reference. It’s very convenient but took a bit of setting-up, which I’ll describe.

The script itself is in Ruby, a lovely ā€œscripting languageā€ which I think a lot of people with an interest in Python might also consider checking out. The script is short and kinda quick-and-dirty, without error handling or anything:

#!/usr/bin/env ruby

require 'shellwords'

args = {
  emulator: ARGV.first,
  file:     `ls | grep -v \'\\.7z$\' | shuf`.lines.first,
}

puts args[:file]

escaped = args.map {|k, v| [k, Shellwords.escape(v.strip)] }.to_h

`#{escaped[:emulator]} #{escaped[:file]}`

This is designed to run in the kind of command-line environment that Linux and macOS have (Unix-style). Linux and macOS also usually have Ruby installed by default, and this only uses the Ruby standard library, so in those sorts of places this script should ā€œjust work.ā€ On Windows, it’s harder to use for two reasons: you have to install a Unix-style environment and configure it which takes a bit of doing for the uninitiated, and also, this script passes the name of the rom file to the emulator as a command-line argument which many Windows graphical programs aren’t made to cope with. You can use emulators that run in a Unix-style environment and they will accept the file as a command-line argument almost certainly, but your favorite emulator in Windows might not be one of those. I started writing up a guide for Windows users on how to use this script, but I kind of realized it’s not exactly a walk in the park for these reasons; if you’re a Windows user and you really want to use this, though, let me know and I can help you. I always like to introduce Windows users to the beauty of the Unix command line :stuck_out_tongue: it makes it way easier to do all sorts of fun things like this.

Anyway, I have this script in a file called emurand on my PATH (meaning I can run it from the command line no matter where I am in the filesystem by typing emurand). It takes one argument, the name of a command that launches an emulator; for example I could run it by navigating to a directory with roms in it and then entering emurand mednafen, which would launch Mednafen (on my system) with a random rom from the directory.

Because I mainly use this script with Mednafen and openMSX, I have two aliases defined as part of my shell config:

alias mednarand="emurand mednafen"
alias msxarand="emurand openmsx"

With these, I can enter mednarand at the command line and it’s exactly as if I entered emurand mednafen.

Using this script has been one of my favorite ways to play games for some years now. When I was a kid I used to do it by just scrolling up and down in a big list of roms with my eyes closed, which was basically just as good (this approach is only a little more convenient and strictly random). Either way, you discover all sorts of amazing things, it’s a whole wild experience ^^

5 Likes

Kenji Eno doc is up with subs

17 Likes
8 Likes

after my own heart

try ChatGPT, easily to rewrite script in different languages

i would NOT recommend using ChatGPT to write code in a language you don’t already know.

10 Likes

4 works better now, even now I don’t know any of Dart language but already work with some products by GPT. The point is know how to feed the error message, manual and some sites you think of helpful, it will work perfectly.

Ora.ai is one of the best pre tool, highly recommend it.

1 Like

PS1 aesthetic horror game about giving people colonoscopies. Full credit for original concepts.

7 Likes

.

11 Likes

i found it really handy to generate boilerplate code for talking to amazon web services (i was able to give it commands like ā€œgive me the above but with fewer nested callbacksā€ to refine the code, which was nice) and also to spit out a python script to help prepare an app for internationalization. (it was basically a glorified find and replace and i didn’t want to have to look up how to interact with basic python apis for talking to the operating system.) i expect to be able to do this with a llm that runs locally at some point, maybe a viable option exists now, i just haven’t investigated it yet. it’ll probably fuck up the industry beyond recognition at some point

2 Likes

the industry will finally be free from the shackles chaining them the the whims of people who’ve read the manual documentation for os.walk

5 Likes

i know i read it like 10 years ago but don’t have eidetic recall

Yes, but none of them is a good deal right now, mostly, Llama-2 liked 7B require one A100 40gb, 180B needs 4 at least.

all the progress depend on Jensen now.

1 Like