A downloadable game

In conjunction with its predecessor, Caverns of Xaskazien II has been in development since 1995.  It is a completely playable game, but will continue to receive free updates for the foreseeable future.

Game Features:
- A rich, graphical game, with loads of animation and dynamic, coloured per pixel lighting.
- An exclusive orchestral soundtrack created for the game by professional film scorer, Dave Coleman.
- A full sound environment with close to 1000 unique sound effects, volume keyed to the source’s distance from your character.
- An intuitive keyboard and mouse interface.
- An easy to understand UI that ensures all information any player could want on any topic is only a mouse hover away.
- 300 visually distinct monsters, each with a dozen+ variants (including named boss types), and robust AI that differs by monster intelligence level.  Summoning and Charm methods allow you to raise your own monstrous army to fight for you, too.
- Merchants and NPCs to deal with, as well, each of which can run afoul of the monsters, just like you.
- More than a hundred unique booby traps for the unwary, most of which may be set by players to ensnare monsters, too.
- 125 base weapons and 75 base armour pieces, each with thousands of possible enchantment combinations and legendary variants.
- Hundreds of unique magic items, mundane items, potions, scrolls, staves, wands, rods, food items, etc.
- More than 200 unique spells.
- Play as either sex in any combination of 38 Classes and 13 Races, and customize your character as you see fit through the upgrading of both Attributes and Skills.
- A new Religion system in which you vie for the affections of dozens of gods and goddesses, and where you can devote yourself exclusively to one of 13 different religions.
- Procedurally generated dungeons utilizing multiple methods of generation to create caves, structured areas, labyrinths and even forests, supplemented by occasional pre-generated dungeons called Legendary Lands.
- Hundreds of unique environmental features to interact with and use to your tactical advantage (or detriment).
- Both random and scheduled special Events to mix up gameplay.
- A comprehensive user's manual in the docs folder.
- All for the low, low price of free :)

Rated 4.3 out of 5 stars
(4 total ratings)
AuthorVirtua Sinner
GenreRole Playing
Tagsdungeon, Dungeon Crawler, Fantasy, Procedural Generation, Roguelike
Average sessionAbout a half-hour
InputsKeyboard, Mouse


Caverns of Xaskazien 2 Ver. 1.03.69.zip 696 MB
COX2 1.02.87 to 1.03.69 patch.zip 4 MB
COX2 1.01.53 to 1.02.87 patch.zip 3 MB
COX2 1.00.84 to 1.01.53 patch.zip 4 MB
COX2 0.99.61 to 1.00.84 patch.zip 3 MB
COX 2 0.98.33 to 0.99.61 patch.zip 5 MB
COX 2 0.91.70 to 0.98.33 patch.zip 8 MB
COX 2 0.89.31 to 0.91.70 patch.zip 3 MB
COX 2 0.89.30 to 0.89.31 patch.zip 2 MB
COX 2 0.87.20 to 0.89.30 patch.zip 3 MB
COX 2 0.87.02 to 0.87.20 patch.zip 2 MB
COX2 0.85.28 to 0.87.02 patch.zip 3 MB
COX2 0.79.91 to 0.85.28 patch.zip 3 MB
COX2 0.78.94 to 0.79.91 patch.zip 3 MB
COX2 0.76.66 to 0.76.89 patch.zip 3 MB

Install instructions

For the game: Download, unzip, run the .exe.  (Alternatively, read the manual in the docs folder or the readme file in the main folder, first.  That's what I'd do).

For any new patch: Download, place the new zip file in your main Caverns of Xaskazien 2 folder and unzip it.  Answer yes to copying over any previous files it asks about.  The updated game should then run normally.

Development log

View all posts


Log in with itch.io to leave a comment.

Got a weird bug on floor 1: A stack of items was choked full of dozens of Unknown Potions that sell for 10 gems. Tried one and it put me to sleep and healed me for 5. Console prints "yes, still getting in checkspace", then spams New Check <some number between 1-5> when I go on the potions' square and confirm to retrieve discarded items.

Time to sell all of that :D

Weird - it was just a stack laying there?  Or did you do something and then they appeared?  Never seen that before.  The one potion you drank was probably a Sleeping Draught.

They were just already laying there with no action from me and it actually happened again 8 or 10 floors after (including branches and other ladders and elevators). This time there was something like 3 unknown potions but when picking one up they multiplied until they met the stack pile limit - around 34 I think.

I quaffed several and had only one Sleeping Draught, all others were various kinds of potions. And everytime I was picking any, a new potion appeared in the pile until limit.

Could it be that I messed something up by directly updating from 0.99 to newest? I updated by unzipping in a new folder and just transferring my highscores file from 0.99. But I didn't meet any other bug so that's weird...

Huh.  I'll have to look into it...  never seen that before, though.

Oooooh.  Yeah, you updated, skipping steps.  Absolutely that'll cause mess ups.  Just download the full version.  If updating, you have to update step by step.

Alright, though I just moved my old highscores file to the new saves folder; everything else I simply unzipped in an empty folder. I'll see if it fixes itself after this character joins the highscore list at the end of this run (currently level 19 ;)

Trying to play this on a laptop with no numpad and it looks like there's no way to move down with wasd - s activates stealth mode. I'm not sure if this is a bug or I'm not understanding something.


Gah!  You're right!  WASD was implemented (though I never use it), and since I FORGOT it was implemented, I rewired the s key for stealth to be mnemonic, instead of the y key which used to be stealth.  Sigh.  I'll fix it on the next pass!  In the meantime, you can, however, still use the mouse to move - click any square that you can see a path to to move there by the shortest, most direct and safest path.  Or click any square horizontally or vertically adjacent to your character to move to that square.

This has been fixed in today's update.  Thank you so much for pointing this out.  Can't believe I missed it

Hi. Where I can download COX 1? The Windows version. is not possible from the website http://codedread.com/games.php#COX


All versions of Caverns 1 are included in the bonus folder that comes with Caverns II.  So if you've downloaded this, you've already got it!

Has anyone tried to run this on Wine in Ubuntu? It works great up until I finish the character creation.  Then I get 2/3 through the loading screen and it crashes:

Got to 13!wine: Unhandled page fault on read access to 000003F8 at address 7BC73D9D (thread 0009), starting debugger...
0031:fixme:dbghelp:elf_search_auxv can't find symbol in module

Anyway I am still trying to figure out how wine works to try to debug it or I will just set up VirtualBox.  Maybe after I get a little work done.  Just asking in case anyone has run it with Wine before.  Really nice character creation screen though.

(1 edit)

OK so I am just using VirtualBox with this tiny Win 7 iso https://archive.org/details/Tiny7#reviews.  Just need to make sure to increase the resolution in Windows to at least the minimum by right clicking and going to Screen Resolution.  Or actually it should be 1024x768 really.

Did it work?

Yes it seems to be working perfectly.  Except something about my Ubuntu resolution when I change it to 1024x768 or my monitor, the screen is slightly moved to the bottom and almost cuts off the bottom edge.  But I can still read the text and I think I can fix that by messing with my monitor or Ubuntu display settings.  Anyway its only a few pixels.

I only played for a few minutes so far but I do appreciate the amount of thought and roguelike experience that has gone into this just from initial reactions.  The wheel of fortune that spawned right next to me was a nice touch.  It was funny because I gave it all of my gold.  Also it is nice that there is a portal or whatever thing to create a new dungeon level easily in case people don't like the one that was generated or whatever.

I actually want to go back to the manual and the character creation screen for at least like 30-60 minutes before I go back to a dungeon again though.

Awesome!  Thrilled to hear it's working out! Hope you continue to enjoy it :)

Deleted post

Wow!  Thank you, so much!  Really appreciate it :)

Having a bit of trouble playing "of xaskazien." When I boot the game, I only get the inmost 60% of the screen, hence the "of Xaskazien", the rest is occluded. I get the feeling it is scaling itself far past the meat-space parameters of my screen. I'd love to give this a shot, but I can't find anything on the 'web to help me with this. Any ideas?

(2 edits)

It runs in a straight 1024*768, 4:3.  Any scaling would be done by your graphics card.  I know, for myself, I have an NVidia graphics card.  If I go into the settings, under Adjust Desktop Size and Position, there's a scaling setting with 3 options: Aspect Ratio, Full Screen and No Scaling.  I leave mine set to Aspect Ratio, to ensure that 4:3 games/videos play at that format, otherwise it stretches the game to fill the full screen.  Unless you're playing on a 4:3, the game should appear centered, with black, empty space to either side.  Could it be something to do with that?  If that doesn't solve it, the other option would be to play in Windowed mode, but that option can only be set in game, though it saves the preference thereafter - so if you're still having problems, PM me, and I'll generate and mail you a new preferences file that would default to Windowed mode.

(I suppose the other potential culprit would be if your computer is set to a lower resolution than 1024*768 - the game runs only in that resolution, so your environment would have to be at that resolution or higher).

I get this error trying to open the game:

C:\Rogues\Caverns of Xaskazien 2>"Caverns of Xaskazien 2.exe"
Couldn't set 1024x768x32 video mode: No video mode large enough for 1024x768

My device it's a portable handheld with 6" screen, but it has a 1280x720 resolution. Some idea about how to solve this?

Unfortunately, no.  It's designed for a Windows PC only.  There must be some aspect to a handheld device that it just can't grasp.   

(1 edit)

Just to be clear. It's a windows PC, just the format of the computer it's umpc. But it's an Intel m3 with intel HD 615 graphics, 8GB ram windows 10 and a max resolution of 1280

I'm just guessing that there must be something different in the processor of a portable machine.  But truthfully, I have no idea.  I've coded it on a Windows PC (desktop), seems to work on most Windows desktops and laptops, but I have absolutely zero knowledge about why it would or wouldn't work on one machine vs. another.  Sorry, man.

Hello. I think he said his vertical max was 720, but you are looking for 768. Maybe there is a way to give an option for a lower resolution or something.

Anyway this is a random question but is there a way to donate to this game or buy it or something?  For example if someone is requesting a new graphics mode or something, maybe they could buy you a coffee or something at least.

(1 edit)

https://clips.twitch.tv/VibrantCrypticLocustNerfRedBlaster Streamed Xaskazien win by Dynast! Tons of enemies are willing to walk into dangerous terrian though, you might need to check into that.

Ha! That's probably a holdover bit of legacy code from when Xaskazien was 100 percent immune to heat damage. His resistances are randomized now.

Having watched the full video (found it here: https://www.twitch.tv/directory/game/Caverns%20of%20Xaskazien/videos/all), I think you're right - maybe I'll try doubling their hesitation to enter dangerous squares.

Also spotted 8 errors in the game via his stream!  Free playtesting!  Hopefully I can repair them soon.

Thanks for calling my attention to it, and thanks to Dynast for playing and recording!

Hey! Thanks for the new patch.. Just wanted to stop by and show you someone streamed your game recently! Overall they really enjoy it and will probaly stream it again! https://www.twitch.tv/videos/465956603

Another Xas vod is up! has some good game discussion in it

Thank you! I'll check that out!

Also, there will be a new patch along potentially. I've been AFK for a while, recovering from an injury. But hopefully that's almost done. 

Ah, man, I missed it! It's already gone. Thanks though!

(2 edits)

I've been exclusively playing a Half-orc Barb of Hornan, great beginner combo I'd recommend for any new players.. Anyway, I just wanna suggest maybe buffing Hornan's Summon Orc Champion prayer? When its most effective is the first few 1-3 dungeon levels, but its cost makes it so you're not able to actually use it consistently on those floors compared to something cheaper and more appropiate like Strike prayer.

Summons as a whole from my limited experience using Hornan's prayer and wands seem rather weak and quickly become useless 4+ dungeon levels in, thoughts?

Hey, thanks for the feedback. I’m always tweaking and balancing, so good to keep an eye on what other people are experiencing. Coincidentally, the perks I’m just finishing coding are for the Warlock class, which is a spellcaster devoted to summoning. I have a Female Centaur Warlock who worships Talltioward on the go, and my fearful eye has been kept on whether or not summoning is overpowered. But through this playthrough I think I’m realizing it’s okay, at least for now. Let me answer your question with some detailed thoughts.

 Firstly, very cool that you’ve found a race/class combo you like. I hadn’t thought about it, but a Barbarian is a perfect starting class, since it pretty effectively removes spellcasting from the table, allowing a player to learn other core mechanics first. I think if someone asked for a beginner combo in the future, an Agnostic Half-Orc Barbarian might be my recommendation, since that would also remove Miracles from the list.

 If you’re exclusively playing the same character type, though, it’s important to bear in mind that the experience of other characters would vary widely, making certain things more or less useful. As an example, Hornas’ Striking miracle you mentioned, which costs only 10 Faith Points and allows you to automatically hit on your next swing - I can see how this would be especially devastating for a starting Barbarian character to use. The Barbarian starts with the most powerful weapon among all starting characters - the Small Axe. This is to compensate for their total lack of spell access, but bear in mind its massive damage of 1 to 15, and contrast this with other classes who would start with weapons that do either 1 to 3, 1 to 4, 2 to 4 or 1 to 6, and it immediately becomes clear that Striking serves the starting Barbarian better than any other class. The Small Axe also comes with a massive -18 to hit penalty, so automatically hitting overcomes a big obstacle to its use. A character starting with a Pitchfork, by contrast, has +6 to hit, so Striking, while still useful in many circumstances, is maybe not as necessary to land that blow.

 Now let’s look at Summoning spells as a whole. The purpose of summoning is, generally, to bring into play a monster that will go and kill other monsters for you, so let’s compare it to another common way to use magic, which is with direct damage spells. Invisible Hammer, in terms of raw numbers, is the most powerful Low Power direct damage spell, doing 8 to 15 physical damage at a cost of 35 Spell Points. In the early game, this is an insanely powerful spell that can kill most monsters with a single application. But it does have some drawbacks - firstly, it’s only useful against a single monster. Once you’ve cast it, the spell points are gone, and you may now be defenseless against other monsters. Secondly, it only works against the monster in your square, meaning to cast it, you have to first engage in a single round of combat, possibly taking damage, possibly even being killed before getting a chance to cast it. And thirdly, it always does physical damage, limiting its effectiveness against monsters with physical resistance, most notably various types of Golems who would be unaffected.

 For 35 Spell Points, you could instead (provided you had access) cast the Summon Minor Fiend spell. This summons a low level Diabolic monster (a monster that would most commonly reside on Dungeon Levels 1 through 10). There are some key advantages to this vs. the Invisible Hammer spell. Firstly, depending on what you summoned, it might be able to kill multiple enemies. On a particularly early dungeon level (say Dungeon Level 1 through 5), there’d be a decent chance the summoned monster would outclass everything else on the level, and could rampage through killing literally every enemy without you ever having to face them, while you still reap all the EXP rewards. Secondly, you don’t have to (in fact, can’t) cast it in a square with an enemy, so you don’t have to put yourself at risk in order to cast it, the way you would with most direct damage spells. Thirdly, the potentially summoned monsters are varied, some having attacks other than physical attacks, so while an Invisible Hammer spell could never affect a Golem, your summoned monster might be able to.

 There are drawbacks to Summon Minor Fiend, of course, and that’s that it doesn’t scale as you level up. It’s extremely useful early on, but as you progress deeper in the dungeon, it becomes obsolete. Because of its wide variation in what gets summoned, it’s even possible to use it on Dungeon Level 1 to bring into play a lowly Demonic Larvae, and have that get killed by the first thing it meets, doing no damage whatsoever, so it’s risky. Invisible Hammer isn’t going to kill anything with a single cast beyond a certain depth, either, but it will still do some damage. (Of course, even the Demonic Larvae could get lucky and get a single hit on a Dragon before it dies, but it’s not as sure a thing as Invisible Hammer).

 So they both have advantages and disadvantages to balance each other out. Finally let’s compare Summon Orcish Champion to Summon Minor Fiend. With the Miracles, I always did my best to correspond Faith Point costs to the Spell Point costs of an equivalent spell, if one exists, and right away we see that Summon Orcish Champion costs 40 Faith Points instead of Summon Minor Fiend’s 35 Spell Points, so it had better be more powerful, but not too much more powerful. Summon Minor Fiend brings in a monster of random power (again, between level 1 and level 10) with a median of 5.5. Orcs are a level 6 monster, so we’re pretty in line. But the Summon Orcish Champion miracle doesn’t just summon an orc, it summons a buffed up orc, a little more powerful than the average orc, putting its 40 point cost right about on the money.

 Like Summon Minor Fiend, Summon Orcish Champion only really has application in the early dungeon levels, but can be devastating there. Again, bear in mind that not every character can go toe to toe with enemies (even lowly enemies) and expect to live the way a Half-Orc Barbarian can. For some (like my Centaur Warlock), summoning monsters to do the dirty work, while fleeing or luring enemy monsters back to where the summoned monster lurks may be the only way to survive

I can see where you're coming form, and it all makes sense to me. Looking at it this way summons themself do seem to be in a good spot, what seems to be more of the issue is that 40 Faith is extremely hard to come by whereas your character can start with the spell points needed to cast a summon spell, and by the time you have it; summoning an Orc Champion isn't as useful as it should be.

Maybe this is more of an issue with Faith gain? 

I'll keep an eye on the miracle as I continue to playtest.  I don't want Faith to become common - it's meant to be a luxury you need to parse out rarely, unlike spell points which are a far more universal currency (except when it comes to  Barbarians :P) 

So I've been completely addicted to Caverns since I made my last comment here, its the most fun I've had playing a roguelike since I first discovered them. 

I was wondering if you could slightly reduce or maybe give us an option to increase/decrease the map scroll speed with the arrow keys?

Thrilled to hear it :)

I'll look into it.  In the meantime, you can also use the mouse, btw.  Just right click a square to centre the screen there.  If you hold the right mouse button, you can scroll the map around, with the speed dependent on how far the mouse is removed from the centre of the screen.

Fixed it!  It'll be in the next update, early to mid-August :)

Glad to hear it! Thank's alot! I'm currently sitting on a level 5 Half-orc Barbarian and just wanted to chime in and say the new Perk system is really cool and I love the flavor it adds to the game! Machoism giving me the occasional EXP from taking damage is really unique and my favorite perk so far.

Awesome!  Glad to hear!  I'll have more of the races and classes add back in with new perks in the next update :)

Erm, you do realize that bright pink on pink is not readable, right? :) I'm talking about the page design.

Interesting.  It looks fine on my screen.  I'll see if I can casually tweak it without making it look weird.

Looks good now, thanks!

Hello Mr.Dev, I was wondering what a good beginner race/class combo would be? common sense would say whatever swings the heaviest weapon and takes the most hits, but I wanted your opinion first. Thank you for developing such an awesome and free RL!

I usually randomize everything, to be honest.  I would avoid anything with low starting health for a beginner.  So no elvish assassins, say.  Maybe a Dwarven Warrior?  Pretty basic.

P.S.  I'm working on a massive new update.  It's been slow going, but in addition to adding more content and gameplay improvements than any previous updates, it also fixes a couple of critical bugs.  I'll get it out ASAP!

I download Caverns of Xaskazien 2 Ver. 0.78.94 and when it 91% get error

Hmmm...  Not sure what would cause this.  There's been about 500 downloads and you're the first to mention.  Have you tried more than once with the same result?


Linux port possible?

I wouldn't even know how, in truth.  If it's a simple process and someone can direct me to info on that process, perhaps.

Are you using Unity?

No.  C++.

it depeneds on the used libreries. If they are avaible on windows and linux. Do you plan to release this game as open source? 


I there a way to prevent yourself from attacking monsters? I don't like accidentally killing monsters that are faster than me that will make my god angry but it keeps happening.

There are ways to minimize the risk, but no way to just not fight.  You can unequip your weapon before encountering them, to ensure you do less damage if you do hit.  You can keep your distance where possible (especially from Animal intelligence monsters, as they won't generally approach if you don't get close).  You can take steps to discourage them from chasing you like Confusing or Paralyzing them...  that's about it, at present. 

Might be a neat idea to add a toggleable "Pacifist" button or something where you can turn off your side of the fight, though.  Never occurrred to me before.  I'll look into it.

Thanks for the idea.  I've implemented a new key/button that toggles on or off your swinging at enemy monsters, so you can turn off your side of the combat if you're engaging a monster you don't want to kill (though they'll keep hacking at you).  Will be include in the next upload in a couple days. 

Sounds awesome! Would it be too much to make a per monster configurable option or something? So maybe for example its default settings are set not to kill monsters in the categories which your god will hate you for killing?

Interesting idea.  Hadn't considered it.  At present, it'll just be a toggleable option.  Won't have time to implement something more complete before the next release.  I'll bear it in mind for later. 

Scratch what I said.  It was too good an idea to pass up, so I've implemented it.  You can now toggle your Combat State to Fight, Don't Fight, or Selectively Fight, and can select specific monster types to add or remove from your Selectively Fight list at any time.  While set to Selectively Fight, you won't swing at any monster types you've specified in the list.  The game defaults to Selectively Fight, with any monsters your deity would prefer you not to kill automatically chosen.  (It also defaults to adding Golems to this list, since you won't be able to hurt them in combat at start of game, and trying will just wear down your weapon, though you can remove them or any other monster types from the list at any time).

It works great! Thanks for implementing this.

Thank you for the idea!

Deleted 4 years ago

This stuff seems amazing, but there's a few things I wanna talk about.

1) IMO, fonts are quite bad. I know that it's stylized like this, but it makes stuff much harder to read, for me at least.

2) Why you can move only in 4 sides? Why not use classic 8-sides movement system on numpad which is used in most of roguelikes?

3) Bar buttons should be down here, not on the right side., in my mind. Also, if you moved them, you could make them larger.

4) Why not add high-res suppor instead of making it 1280x720? I mean, yeah, it's in long time development, but...

Anyway, don't take this like I didn't liked the game! It still seems amazing for me, especially when it's so full of different content. I really like it, and hopefully it will be worked on more!

Hey, Fenos.  Thanks for the comments.  In specific response:

1) The fonts initially used in the game were a deliberate attempt to match (as closely as I could) the fonts I'd used in the original Caverns.  However, a lot of people complained that they were hard to read, so it now defaults to something much easier to read (at least in most instances), with the option to toggle back to the gothic fonts if a player wishes.  The character creation menu still uses stylized fonts for the large lettering, because the feedback I was getting was that at that scale everything remained legible, even in that style.  But if enough people raise this as an issue, I'll switch the fonts on that page, too.  Wouldn't be too tricky an issue to address, I don't think.  In terms of changing the "new", smaller font (the one I already switched to to make things legible), if that was also deemed hard to read, the one problem would be that since screen co-ordinates remain absolute, and there's finite room to print things in the supplied text boxes, I would have to find something that remained pixel perfect in alignment with the old font.  If a printed sentence grew even one or two pixels longer as a result of changing fonts, it could mess up all outputted text and take dozens of hours to realign everything manually (if that was even possible). 

2) Initially movement was in all 8 directions for player and monsters.  But I hated allowing either to move diagonally between walls or other impassable obstacles (where wall corners abutted, for instance).  Imposing the restriction there ended up being a pain in the ass programming-wise, but even more so in gameplay, because players were getting confused as to why they couldn't do so, so I culled it back to 4 directions, and I've since grown used to it in game.  I've been playing some Moria lately, and I'll admit when first coming back to Caverns it was jarring for me to have only 4 directional movement, but it wore off quickly, so changing it isn't a high priority.  Players who aren't used to roguelikes also find the 4 directional movement easier to grasp, so there's an upside.

3) Not sure what you mean by "Bar buttons" or "down here."  If you mean the clickable buttons to change sidescreen tabs, that's the only screen real estate available where they won't overlap anything important.  At the bottom of the screen they would need either impinge on the view screen or the Situation Panel.  Are those the buttons you're referencing?

4) When I first abandoned Caverns in favour of starting Caverns 2 (in 2010) I was still using a 4:3 monitor.  I had recently programmed another tile based game called "The Zombie Nightmare of Fillibree County" and it used 1024*768.  Since this was a marked improvement over the original Caverns' 640*480, I just went with it.  Today I'm working on a 4K monitor and if I could go back in time, I'd make a different choice.  But, cards on the table, I'm not a savvy enough coder to know how to allow players to choose their resolution.  And I suppose there may well be some players still out there with 4:3 monitors, so 1024*768 might not be the worst choice...  And further cards on the table, screen positions are hard coded - i.e. the game checks absolute X,Y coordinates for the mouse and places things at hard coded specific X,Y coordinates, etc.  Changing the resolution now, even just to a new, single specified resolution, would mean months of work.  And since the graphics aren't going to be scalable, it would really yield little fruit.  Unless I get around to programming COX 3 in 10 or 20 years, this one almost certainly won't change.

Glad you're enjoying the game!  The one thing I can promise is even more content...  in time.

Just want to say thank you!

Thank you for playing!