User talk:Bcode

From NetHackWiki
Jump to: navigation, search



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 18:09, 12 Aug 2017 (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 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, 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 ? 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)


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)

No. All rooms are conected. (again, except for vaults, which doesn't matter.) Please don't force me to prove that by finding the relevant bit of source code. In your case, there might have been a secret door somewhere; in this case, search. —bcode talk | mail 21:38, 16 February 2013 (UTC)
Indeed, all rooms on a dungeon level are guaranteed to be connected. The thing that ensures this is the smeq array (decl.h, line 174), in which all non-vault rooms get an entry when they're created (sp_lev.c, line 517). The idea is that if two rooms have the same smeq entry, they're connected in some way. If they're not (mklev.c, line 331, mklev.c, line 336), they're joined by corridor (mklev.c, line 314). --Tungtn (talk) 00:53, 17 February 2013 (UTC)


I Checked The Source Code The Sunsword Script Was Removed And It Doesn't Directly Reference The Astral Plane File:Astral Plane.gif But The Guardian Does Have The Same Appearance As Ashikaga Takauji --Rancalred (talk) 00:18, 17 February 2013 (UTC)

That doesn't change that it isn't a NetHack variant, though. Right now it just seems to be a game that might be NetHack themed; but it doesn't even seem to run correctly, actually. You should probably get it to a point where it's more comparable to NetHack before creating a page for it.
(Also, having the same appearance doesn't matter; the Ashikaga Takauji article is about that monster, not characters in your game that might look like Ashikaga Takauji.) —bcode talk | mail 00:33, 17 February 2013 (UTC)

New Release: Nexthack 0.8 Based Your Reaction To Version 0.6, Iv'e Decided To Run It By You Before I Recreate The Article ok? --Rancalred (talk) 20:24, 17 February 2013 (UTC)

It's still not a NetHack variant. As far as I can tell, it just has a changed background.
I can't actually keep you from recreating the page, but I think it's very likely someone will just delete it again. —bcode talk | mail 21:21, 17 February 2013 (UTC)

I Added Excalibur To The Game.. That Background , Along With Other Ones Were In The Code But Had No Reference To Them in the code. What's The Minimum Criteria For This Game To Get It's Own Page --Rancalred (talk) 00:52, 18 February 2013 (UTC)

The problem is that this wiki is about NetHack, and making a game that's only vaguely like NetHack probably doesn't qualify it for here. (Actually making a game sufficiently similar to NetHack, without starting from its codebase, would take years or decades.) Ais523 (talk) 01:07, 18 February 2013 (UTC)
It might at some point be considered fan labor and be noted on that page if it turns out similar to NetHack, I guess. However, it's unlikely it would get its own page; also, it doesn't even seem to be working yet. —bcode talk | mail 01:24, 18 February 2013 (UTC)
Regarding minimum criteria: Our goal is to be useful or appealing to NetHack players. In my opinion, something deserves an article if (1) it's related/similar to NetHack in terms of actual game-play, or (2) if it has traction with the NetHack fan base. Some examples: (1) Angband, @Play, moria, variant, Kingdom_of_Loathing (2) Screen, Facebook, Bot, Fan_labor, Talk:NetHack_quaffing_game.
Personally, I'm open to articles about offshot creations. I tried out NextHack, but sadly, all I could do was scroll the inventory list and restart the game. Until you can show us a complete game, maybe Roguebasin ( would welcome your article. --Tjr (talk) 10:49, 18 February 2013 (UTC)

New Release Nexthack 0.9 I Added a new starting class (Metalworker) That Can Craft Item's Out Of mithril . See What Kind Of Gameplay that gets you. --Rancalred (talk) 15:49, 18 February 2013 (UTC)

I Need Feedback To Know if can recreate the article i will assume This is okay if You Do not Reply Within 3 Days. --Rancalred (talk) 22:47, 24 February 2013 (UTC)

It's unlikely to be a good idea unless/until the game is finished, or at least in a releasable state. It takes a lot of work to get a game up to that state. Ais523 (talk) 23:34, 24 February 2013 (UTC)

From Your tone seems to suggest that it is Not in a Releasable State Please List The Features Or Source Code Bits That would be Required to make it so. --Rancalred (talk) 23:47, 24 February 2013 (UTC)

Putting alternate tilesets in articles

Conversation moved to Template_talk:Alternate_tilesets

Djinn clairvoyance issue

Sorry bcode! I hope we already resolved this on freenode irc, but just in case we didn't, let me just say that, no I wasn't trying to vandalize, that, I thought I remembered that happening to me before in a previous game of nethack, I must have gotten clairvoyance from some other method....very sorry. I will be much more cautious in making any other edits in the future. Again, my apologies. Also, it was my very first wiki edit of anything, in my life, and I truly thought I was helping -- it was exciting to think that I might be able to contribute to this great website. I was rather disappointed to find out that I made quite the mistake. Thanks for not flaming me horribly or anything. Thanks, rphoffm-- 12:57, 9 August 2013 (UTC) —— 13:01, 9 August 2013 (UTC)

Resolving this via IRC was fine, but it's probably good to also have that here for future reference.
Don't worry, everyone makes mistakes sometimes :) Don't let that scare you away from wiki editing. —bcode talk | mail 03:36, 10 August 2013 (UTC)

The right wiki

That is a very good argument, and I don't have a very good response to that. However, I do not wish to revive the old wiki. I wish to use the old wiki because wikia just. wont. delete. it.

My idea was to turn the old wiki into a wiki for NetHack FanFictions. That way, the 'right' wiki would be this one, and the one for Reading stories would be the other. also, content that is known for Fact in NetHack would be effectively separated from content that is fanfiction, and might be wrong.

Also, WikiHack is a great name.

--WaveDivisionMultiplexer (talk) 06:50, 12 January 2014 (UTC)