Posts for Nach

Post subject: Even more updates!
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Code when used with a filename can be downloaded. Let me know if there are any mime type issues. Code now has long lines word wrapped. [left], [right], and [center] has been added to the list of posting buttons, which have also been reordered a bit. Demonstration: Download image_factory.cpp
Language: cpp

//Based on idea from http://insanecoding.blogspot.com/2010/07/time-to-shutdown-factory-for-code.html and http://insanecoding.blogspot.com/2010/07/simplifying-bootstrapping-for-virtual.html by the way, did you know that this is a really really really really really long line? template<typename T> struct Array256x256of: public Array256x256of_Base { public: T data[256*256]; public: Array256x256of() { } virtual ~Array256x256of() { } public: virtual uint32 GetLive(unsigned method, unsigned index, unsigned timer) const { return (data[index].*(T::methods[method]))(timer); } virtual uint32 GetStatic(unsigned index) const { return GetLive(bgmethod, index, 0); } virtual void Set(unsigned index, uint32 p, unsigned timer) { data[index].set(p, timer); } };
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Warp wrote:
Brushy wrote:
 cout << "Please insert the number of beers you had the day before yesterday: " <<endl>> day1;
std::cout has no support for operator>>(). Or is this a case of the bbengine botching the code?
It's a case of the HTML engine botching the code. Turn it off!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Bisqwit wrote:
I have to wonder... Why did you not use the already existing syntaxhighlighting class that is behind the SRC_EMBED code in the main site?
1) I didn't know about it. 2) It doesn't seem to highlight enough
Bisqwit wrote:
It has a great coverage of different languages (and a cooler color theme selection!)*.
It misses crucial things like AVISynth. I believe what I'm doing has more language support. If there's a language you'd like to see, and I don't support, just let me know.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I agree with adelikat, you have to think about the site as a whole, not just what OoT fanatics want. In this situation, best to go with 320x240, and also whatever other size the fans agree on.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
arflech wrote:
the quick fix is to click "Disable HTML in this post"
In fact, it's the only fix.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Personman wrote:
Confession #1: I've never watched a TAS longer than 20-30 minutes, and that only on rare occasions.
You don't know what you're missing. We have several excellent longish TASs. If you're a Zelda fan, we have several excellent Zelda runs that are all long (but short compared to how long it should take). I highly recommend Swordless Link's Link's Awakening run.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
adelikat wrote:
Get out of here with your crazy talk. Everybody calls them long pieces.
The manual calls them Tetris pieces. That's what I call them too. But now I think the manual is wrong, as Acmlm proved it's possible to get Tetrises with other pieces too. Nice job Acmlm!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Thanks to lots of testing from Raiscan and some good ideas from him, some issues have been resolved, and the code tag now allows specifying a filename instead of a language. Then the filename will appear in the code block, and the language for highlighting will be automatically detected from the extension of the filename. Example: Download fork.bat
Language: batch

@echo off :fork echo Fork start fork goto :fork
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Okay, while testing this along with Brushy and Raiscan, we noticed that phpBB's HTML engine screws with posts that contain < (less than) or > (greater than) and deletes segments of them before the post even hits the database or my bbcode engine. If you want to include < (less than) or > (greater than) in a post, especially when you're displaying code, make sure you check: "Disable HTML in this post" in the posting options. Note, you can't do it after you've already posted, by going back to edit your post, as phpBB will already have destroyed the post at that point.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Post subject: Forum Updates
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Our forum had a significant overhaul over the past few days. For the most part, it still looks the same, although the staff now has access to improved tools for managing the forum, and everyone now has access to a lot more BBCode than ever before. The new BBCode allows for anyone to display videos from YouTube, Google Video, DailyMotion, Viddler, or Archive.org in posts or private messages. The code tag now also offers the option to syntax highlight the code within. Useful if you want to share Lua scripts with other player, or AVISynth scripts with encoders. There's a frame tag now in the forum to match the new frames module the wiki has. With it, you can specify a number of frames and have it appear in a human readable timestamp of hours, minutes, and seconds. The original amount of frames still appears on hover. Use it in your submissions or discussions to signify how many frames you saved in your latest run. You can read about all these changes, and others in appropriate thread.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Language: lua

local c={} c.Y=1 while true do joypad.set(1, c) end
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I made a huge commit today:
Very experimental! Replacing custom bbcode regex based parser with a handwritten recursive descent parser, as the former seemed to die with complex bbcode. Added support for superscript and subscript via sup and sub. Added syntax highlighting for several different languages (C, C++, D, Java, Lua, JavaScript, PHP, Python, Perl, BASIC, AVISynth, Makefiles, BASH, DOS, SQL, Diff, HTML, CSS, INI Files, Windows Registry) to code. Added email, like url, but for E-Mail. google for links to searching, also supporting Google Image Search and Google Code Search via parameter. Lastly, added support for tables (table, tr, td). New engine is now case insensitive, and extremely extensible.
The new video width and height syntax matches that of images, use the following:
[video=160x144]URL[/video]
The code tag takes the following parameters for syntax highlighting: c, c++, d, java, asm, make, lua, js, php, py, sql, diff, xml, dos, bash, perl, css, html, basic, ini, reg, avi. And some aliases of those. Google takes the optional parameter images or code. Enjoy!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Fantastic TAS. Nice to see the author is a fan of Super Smash Bros, and Nintendo.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Okay, I made some cosmetic improvements, and now [ s ] Strikethrough Text[ /s ] is also supported.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
1285M obsoletes 450M by 3:59:47.85.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Lower limit now locked to 160x144. Upper limit now locked to 800x600. Test: [video width=2000 height=10]http://www.archive.org/download/GbcLinksAwakeningDxIn10002.68BySwordlessLink/linksawakeningdx-tas-swordlesslink_512kb.mp4[/video]
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Brushy wrote:
Now, how about some better moderating tools, such as possibility to merge threads? :)
It's in the pipeline, be patient.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Post subject: Introducing support for Archive.org
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Warp wrote:
Nach wrote:
Do we currently support any bbcode which consists of only an open and not a close tag?
I suppose not. I just can't see the reason why XML ideology must be imitated, as it only adds useless clutter. (OTOH, even XML supports single tags in the form of <tag />.) But I suppose that if it would require an extensive refactoring of the phpbb engine to support single tags, it's not worth it.
Well, you'll be happy to know that the new frames module that was added to the Wiki at the same time as this does not require a close tag. Hopefully authors will make use of it in new submission notes.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Warp wrote:
About the syntax... Is it really necessary to have an opening and a closing tag? Wouldn't it be simpler if you could just write eg. [ frames 12345 ] ?
Do we currently support any bbcode which consists of only an open and not a close tag?
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
I added two new bbcode tags. Frames and video. Frames was created with the help of OmnipotentEntity. Here's some samples: 01:00.02 01:00.00 00:59.98 The amount of frames appears in human readable format. Hover over it, and it'll display the original amount. Just place a number between [ frames ] and [ /frames ]. You can also control the frames per second used for conversion. Default is 60. Specify another by adding @60.1 to the end of the number, or whatever amount you like. Like so: 06:40.00 which was made with: [ frames ]20000@50[ /frames ]. The other new tag, video, allows embedding video from YouTube, Google Video, DailyMotion, and Viddler. I'll try to add support for Archive.org/Flowplayer/MP4 some other day. For now, just place the full URL from the site into video tags like so: [ video ]http://www.youtube.com/watch?v=gKvaWShi-oI[ /video ] Here it is in action: Dailymotion: Link to video Viddler: Link to video YouTube: Link to video Google Video: Link to video You can also specify custom width and heights. Like so: [ video width=800 height=600 ]http://www.youtube.com/watch?v=gKvaWShi-oI[ /video ]. Sample: Link to video Enjoy!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
some pickles wrote:
Nach wrote:
While I thought the goombas in 8-1 was cool, couldn't you wall jump?
I could have wall jumped, but I would have grabbed one of the coins doing it.
Not enough speed? Okay... And in 1-1, why not go into the coin room, and go under the coins? You know, through the wall/floor?
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
While I thought the goombas in 8-1 was cool, couldn't you wall jump?
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Derakon wrote:
Aren't image signatures banned in the "Nach will come over to your house and introduce you to several novel uses for a jackhammer" sense?
Indeed. Problem fixed.
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.
Emulator Coder, Experienced Forum User
Joined: 3/9/2004
Posts: 4588
Location: In his lab studying psychology to find new ways to torture TASers and forumers
Flygon: Do that, and someone will finally be more hated than I!
Warning: Opinions expressed by Nach or others in this post do not necessarily reflect the views, opinions, or position of Nach himself on the matter(s) being discussed therein.