User talk:Bcode

From NetHackWiki
Revision as of 21:33, 16 February 2013 by Rancalred (talk | contribs)
Jump to navigation Jump to search

Welcome!

Welcome!

Hi, Bcode! Welcome, and thanks for joining NetHackWiki!

  • The How to help and Style guide pages are excellent starting points.
  • Special:Recentchanges is a great first stop, because you can see what other people are editing right this minute, and where you can help.
  • Questions? Need help? You can ask at the Community Portal, the forum, or on the discussion page associated with each article! Just remember to sign those posts with four tildes: ~~~~. That will expand to create a signature.

You can put {{NAOplayer|NAO player account}} on your user page to link to your NAO player account. Capitalization matters.

We are really happy to have you here, and look forward to working with you!

This is an automated greeting. -- The Welcome Bot 10:50, 4 May 2024 (UTC)

Sorry about that

Sorry about accidentally reverting your first article edit; I didn't mean to, I was trying to hit the diff button and hit rollback instead. Happy editing! -Ion frigate 22:52, 20 December 2011 (UTC)

Monsters with non-unique appearance

Is it auto-generated? If yes - can you provide code used to do this? Bulwersator (talk) 17:07, 23 January 2013 (UTC)

I queried an SQL database of monsters. Here's the query, IIRC:
SELECT DISTINCT m1.name FROM monsters m1 INNER JOIN monsters m2
WHERE m1.glyph = m2.glyph AND m1.color = m2.color AND m1.monid != m2.monid
ORDER BY m1.glyph ASC, m1.color ASC, m1.baselev ASC, m1.name ASC;
I then pasted the output into the edit field and did some s/// in vim.
As for the database, I think I wrote some quite dirty scripts to read monst.c and write the database (I used an SQLite database, but it should work with anything supported by DBIx::Class, IIRC). If you want me to, I can pastebin these somewhere. (Be warned: it involves 40-line regexes…) —bcode talk | mail 17:28, 23 January 2013 (UTC)
I would be grateful, I prefer to use 40-line regexes than write new ones. Bulwersator (talk) 10:40, 24 January 2013 (UTC)
Here it is. Don't say I didn't warn you. —bcode talk | mail 18:53, 25 January 2013 (UTC)

Source code reference format

I hope that I will remember it next time. I wonder is it feasible to use bot to convert ref references to template ones? Bulwersator (talk) 05:25, 7 February 2013 (UTC)

Tjr already did part of the work (those references using <ref>{{sourcecode|...|...}}</ref>) using mw:Extension:Replace Text, but that's not everything. I've been thinking of bots for that purpose a bit, but I don't have any code that would do everything correctly at hand. —bcode talk | mail 05:37, 7 February 2013 (UTC)
Template_talk:Refsrc has a laundry list of articles that could have their references reformatted. --Tjr (talk) 19:11, 7 February 2013 (UTC)
What about refs in format like http://nethackwiki.com/mediawiki/index.php?title=Altar&diff=82767&oldid=82723 ? Is it replace ref tags in situation like this? Bulwersator (talk) 22:43, 14 February 2013 (UTC)
Template:Reffunc. —bcode talk | mail 22:48, 14 February 2013 (UTC)

Huh?

I Posted That on Monk After That Happened To Me While Playing Nethack.--Rancalred (talk) 01:36, 15 February 2013 (UTC)

(Context, for anyone else who happens to read this: [1], [2].)
The player is always placed in the room with the upstairs. There are no "closed rooms": all rooms are connected (excluding vaults, but these will not have the stairs, anyway). This means the information added in your edit was incorrect, so I undid it.
(Also, please stop capitalizing [almost] every word.) —bcode talk | mail 01:54, 15 February 2013 (UTC)

That Can't work, Because You Cant Go Upstairs on Level 1 Without The Amulet Of Yendor And No Character Is Generated With The Amulet Of Yendor In Their Starting Inventory. --Rancalred (talk) 17:35, 15 February 2013 (UTC)

I'm not sure what you think "can't work". The game places starting characters in the room with the upstairs. (See allmain.c, line 516 and u_on_upstairs in dungeon.c if you want proof.) In fact, they're placed on the upstairs. Obviously, this does work. —bcode talk | mail 17:54, 15 February 2013 (UTC)

You Cant Go Up The Upstair Without Leaving The Dungeon, Therefore You Cannot Continue the Game so It Doesn't Work --Rancalred (talk) 15:11, 16 February 2013 (UTC)

Of course it does work. You go to the downstairs and go down. The room with the downstairs is always reachable as all rooms (excepting vaults) are connected. —bcode talk | mail 15:14, 16 February 2013 (UTC)

Except In A case Like This..--Rancalred (talk) 21:33, 16 February 2013 (UTC)