Posts for Dromiceius


Experienced Forum User
Joined: 10/3/2005
Posts: 1332
You might already know about the length operator:
print(#u)
In your example, #u is 5 probably because Lua begins counting from 1, and stops when it hits nil. You'll also find that this happens:
local u = {1, 2, [42]=3, 4}
print(#u) -- => 3
Index 42 exists, but is ignored because index 4 is nil. I guess it's for efficiency. You can define your own length function like so:
function getLen(tbl)
    local len = 0
    for i in pairs(u) do len = len + 1; end
    return len
end
...So that getLen(u) returns 6.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
I laughed so I hard, I had to pause the movie for a minute. Yesyesyesohnoowngoal?! vote.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Ferret Warlord wrote:
One time even combined these two, with a shower stall being behind a door inside a coat closet found in this new part of the apartment.
Yeah, that's the general kind of thing I'm talking about— mental tension insistently presenting itself in the abstract. Maybe in your case it was the want of privacy? ;)
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Someone on the internet was wrong, Ferret. It doesn't matter if the internet in question only existed in your subconscious! I haven't been dreaming much lately. A few exceptionally grotesque nightmares that were interesting mainly as evidence that my mind is capable of concocting such potently disgusting imagery. The odd school dream pops up occasionally, as well. Apparently, this is a common experience among all sorts of people. Mine have been mostly variations on me forgetting which classes I've enrolled in. I've wandered the halls, been attacked by Terminator-like menaces, gone home, and occasionally sat in on lectures for random courses to see if the material is useful, comprehensible, inane... More than a few times, I've considered my surroundings in a quasi-lucid state and thought, "oh good, I'm at a school for some reason. I almost thought it was that stupid dream I keep having." So I'm interested in hearing what other people have to say— does anyone else here get these kinds of dreams?
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Happy Festivus, one and all. Here's some holiday cheer as only AmazingSuperPowers can provide...
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
moozooh wrote:
"Doragon"?
I don't know what you're referring to, but I thought I'd also express my anticipation for that encode— I can't wait to see Birry and Bimmy in action again!
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
andymac wrote:
For what purpose? what exactly do you want to know?
From the discussion, it looks like you'd want to hook whatever byte(s) represent the enemies' dead/alive state. Reproduce the "shyguy drops dead for no reason" glitch, then break on write, and backtrace until things start making sense.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Randil wrote:
Cool video (that language they're speaking is Swedish if anyone's wondering). :)
Ah. I kind of assumed it was German. Not that I was listening too closely. Here are katterna I just found: Engineer's guide to cats, and an in-depth guide to cat yodeling. Also, the "Maru" referred to in a recent xkcd.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Huh. Seems they do. Though, you couldn't rightly call this pike 'indiscriminate.'
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
FODA wrote:
1 - not getting rid of every block on the big boo fight
That had occurred to me as well, but I figured it might have something to do with managing fade-out lag... and checking the submission writeup, that seems to be the case. I agree about the wobbling, though. That and the 30hz mushroom release/grabbing seemed gratuitous or somehow "unartistic". Not that it detracted from the video in any meaningful way. And speaking of gratuitous: I vote Yes!
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Maybe somebody should hack together some unit tests using Lua so that end users don't trip over these kinds of bugs? for rom in ListOfRomsToTest do start recording to a movie file generate random input for N frames, saving and reloading furiously, and checking that the memory state is deterministic... Provide useful debug info on memory state mismatch Just a thought.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Lua has a set of file I/O functions, which you can find in the manual First open a file in write mode, and assign it to a variable:
myfile = io.open("somefile.txt", "w")
Then you can write stuff to it:
myfile:write("words!")
mynum = memory.readbyte(somebyte)
joydata = joypad.read(1)
myfile:write(string.format("\n%d\t%s", mynum, joydata.A)
Note that I haven't written any EmuLua code in months, so that example probably has problems, but I think the idea is pretty clear. Also, I don't think writing an excel file would be trivial. A quick google didn't reveal a library for that... edit: and yeah, you should probably close the resource when you're done with it. I guess Lua would clean up after itself when the emulator closes, but if you re-execute the script, something bad could conceivably happen without this call:
myfile:close()
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Classic Star Trek TNG scene: Darmak and Gilad at Tanagra Related: a reading (with images) of The Epic of Gilgamesh
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Diablo II. Four players start fresh, hardcore Barbarians. Their goal: to run as far as they can get from the Rogue Encampment without using any items, equipment, or shrines. The last ~3 minutes is blank for some reason.
Warp wrote:
At least one comment was unusually ingenious: "Norma Neufner: Policewoman That should be a TV series."
I'm not sure what you mean by 'ingenious', since primetime has been saturated with cop dramas for years. Though, maybe if Norma were a raging homophobe... :p
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
mklip2001 wrote:
If this game teaches us all anything, it's that in the dangerous world of pizza delivery, rival pizza deliverymen will try to kill you, multiple times, to get rid of the competition. This game actually reminds me of the other pizza-eating game we have here, Yo Noid.
Everything is trying to kill him. I was thinking, "minimum wage is worth all this?" and then it turns out he's only doing it to get head from "Betty" who you just know is screwing around with "Nick" behind his back. Poor bastard. Unintentional social satire notwithstanding, I enjoyed this for reasons mentioned above. Yes vote.
Post subject: How about a "planet tasvideos"?
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
There's a pattern among some communities to aggregate relevant RSS feeds into one site. The site usually has the word "planet" in it. For example, Planet Lisp contains blog posts written by Lisp users, news about meetups and software, trials, tribulations, and things of that sort. That way, relevant information can be centralized and kept current without having to do everything manually. I bring this up not because it's a fantastic, ground-breaking idea, but because I noticed that Bluetoaster is out of date. I'm not blaming the maintainer of that page for not keeping it up to date, since that is mostly a machine's job, and IIRC, that site was created before all the emulators went into code repositories, so its purpose is also more or less obviated now. In other words, this seems like an opportunity to trade up, and enhance the site. So, what could go in planet TASVideos? Here are a few ideas: ♥Updates to emulators and other tools, via Googlecode and Sourceforge RSS feeds ♥New submissions/publications ♥Feeds to relevant YouTube, Nicovideo, etc profiles ♥Site news, policy updates, and other words from our Fearless Leaders ♥Other things of possible interest... TASer blogs/wiki userpages, maybe? You'll notice there's some overlap with the TASVideos front page, and indeed it would probably be better as a replacement of, or addition to the front page instead of an actual "planet" subdomain. But that's just my 2¢. Edit: I ♥ UNICODE.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Zombie to right of him, Zombie to left of him, Zombie in front of him Boldly he TAS'd and well. Yes vote. I assume those shots that (apparently) didn't hit anything were there to burn off RNG states or somesuch. Also, I was thinking of "Nemesis" as a proper noun. Y'know, like "Bagginses."
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
*Kill everything
My favorite goal! Christmas comes early. I think I remember you talking about this on IRC— the run with two Nemesises with RLs? /me waits for encode
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
The girls' version, surprisingly enough, is more sensible. The comments in both are pretty disturbing, though. Some can't resist the urge to trot out a lot of homophobic rhetoric, while others seem swayed by some kind of circular logic that "stupid movie is stupid", and therefore the world is actually free of sociopaths. Or is that appeal to ridicule? Either way, those videos somehow led me here. By god, it was worth the trip. On another note, here are some tutorials on musical scales and such. Jazz; piano Bossa Nova; guitar After hearing a few chords of that second video, I had to look up a hunch, but it seems the similarity is coincidental.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Ah, early Mad TV. Anyone remember Antonia? Now for something completely different: The Fourier Transforms and its Applications
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Flygon wrote:
Frenchmen use DailyMotion
Fixed. Speaking of racism, Peter Chao.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
I used XP for a couple years without reinstalling, or having any noticeable problems. I also spent a lot of time exploring (and grooming) Windows' internals using Sysinternals, IceSword, and three or four registry cleaners. Maybe a coincidence, maybe not. As for Windows vs Linux, here's my take: Linux is full of surprises for a passive user from Windows-land, but persistence pays off, and it doesn't take long to develop a sense of how things work. Learn C, the shell tools, a good editor, and skim the Autotools and GCC docs. Builds may fail, but you'll know why. Segfaults happen, but you have GDB. I could go through a litany of cases where doing something on Linux was easier, or less expensive, or less intractable than on Windows, but that would be like comparing two houses, room by room, and noting all the minor differences without noticing that one of the houses is on fire. Linux is open. Windows isn't. Linux does what you tell it; Windows tells you what to do. I get why Windows is more appealing to people who don't need a lot of control, but I wish I'd switched sooner.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Hell yeah, SkiFree. Doubly so if it's possible to categorically escape the monster, rather than evade as most of us probably did in junior high. ...Also, maybe one of the mods should go ahead and split off the inevitable deluge of wishlist posts now?
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Being a fan of Lufia II, I tried playing this game more than once, and also tried watching one or two realtime runs, but... my god, it's so boring. A TAS that can skip all the grinding, and make a mockery of the game in general might be very watchable, so I'll be interested to see any WIPs posted here.
Experienced Forum User
Joined: 10/3/2005
Posts: 1332
Ah, Conker. Haven't played that since it was new. It seems there's a half-decent Let's Play of it on YouTube. Better than the other five I looked at, anyway. The player doesn't behave like a jackass, even if he doesn't quite know what he's doing.