Category Archives: Basternae and ModernMUD

Posts about the Basternae MUD and/or the ModernMUD codebase.

A Dazzling Array of Spell Fixes

I spent much of the day working on spells, and more than 90 of them have been made to work.

Anti-Paladin

* Fear

Sorcerer

* Sleep
* Minor Paralysis
* Faerie Fire
* Celestial Sword
* Weaken
* Melfs Acid Arrow
* Prismatic Spray
* Immolate
* Shield

Air Elementalist

* Haste
* Wall of Force
* Airy Smith
* Conjure Windsabre
* Wall of Mist

Earth Elementalist

* Wall of Stone
* Wall of Iron
* Earthquake
* Earthen Smith
* Bombard
* Disintegrate

Fire Elementalist

* Identify
* Fiery Smith
* Wall of Fire
* Wall of Sparks
* Flashfire
* Conflaguration

Water Elementalist

* Wall of Ice
* Aquatic Smith

Cleric

* Heal
* Full Heal
* Cure Light
* Cure Serious
* Cure Critical
* Mass Heal
* Create Food
* Vigorize Light
* Vigorize Serious
* Vigorize Critical
* Preserve
* Blindness
* Remove Poison
* Summon
* Cure Blindness
* Cure Disease
* Curse
* Remove Curse
* Continual Light
* Darkness
* True Seeing
* Power Word Blind

Druid

* Barkskin
* Create Spring
* Nourishment
* Lesser Herbal Remedy
* Herbal Remedy
* Soothe Wound
* Moonwell
* Lightning Curtain
* Poison
* Creeping Doom
* Faerie Fog
* Purify

Ranger

* Blur

Shaman

* Lesser Mending
* Mending
* Spirit Ward
* Wellness
* Sustenance
* Etherportal
* Ravenflight
* Pythonsting
* Greater Pythonsting
* Greater Spirit Sight
* Purify Spirit
* Spirit Armor
* Greater Spirit Ward
* Earthen Grasp

Illusionist

* Illusion of Prowess
* Illusion of Incompetence
* Illusionary Wall
* Mirror Image
* Ultra Death Ray
* Nightmares
* Shadow Monsters
* Demi Shadow Monsters
* Shades
* Shadow Shield

Psionicist

* Wormhole
* Energy Drain
* Awe

Enchanter

* Negate Luster
* Illumination

Chances are some of them aren’t perfect, so as always, let me know if you find any glitches.

More Spells Working

I spent a while pushing spell code around today. The following spells have been made to work:

Sorcerer

* Strength
* Dexterity

Cleric

* Bless
* Armor
* Vitality

Shaman

* Fire Ward
* Cold Ward
* Wolfspeed
* Hawkvision
* Pantherspeed
* Bearstrength
* Snailspeed
* Molevision
* Lionrage
* Elephantstrength
* Mousestrength
* Shrewtameness

Anti-Paladin

* Wither

Air Elementalist

* Deny Air

Earth Elementalist

* Miners Intuition
* Deny Earth
* Stoneskin
* Stonestrength

Fire Elementalist

* Deny Fire

Water Elementalist

* Deny Water

Let me know if you find anything strange about any of them.

Working on Psionicist Abilities

I spent a good part of the past week traveling from the midwest to the west coast and back (5 flights total). During airport layovers I took a look at some of Tiu’s psi reports. Since I hadn’t touched psionicist spells/abilities yet it was no surprise that most of them were pretty borked.

I made changes to these spells:
Aura Sight
Biofeedback
Combat Mind
Displacement
Energy Containment
Enhanced Strength
Flight
Inertial Barrier
Intellect Fortress
Mental Barrier

These haven’t been tested thoroughly and may not all work as intended since they were done half-distractedly in various airports (LAX and MSP mostly). No fix for mana use or cast lag yet.

The intent for all psionicist buffs is that they are self-only, don’t stack amount or duration, and you have to wait until they wear off to refresh them. If any of them don’t work that way, let me know.

As always, let me know what’s still broken.

Crash Fixes

* Fixed crash with monk class mobs and barehanded damage skill checks.
* Fixed crash with mob tracking. Track mobs probably don’t work yet, but at least we won’t have crashes because of it.
* Fix for spell learning when players advance levels. This may or may not have caused crashes (was a little unclear from the logs). This means that psionicists and clerics and such should auto-learn spells as they level.

Some Fixes

Made a couple fixes for things mentioned by Tiu:

* Enslaver races added to creation screens.
* Printing move point values twice when they’re low has been fixed.
* Will and sing command processing has been fixed.

There’s still a shortage of connected zones with teacher mobs and a bunch of other things still unfixed…

Zone Format XML Schema

I used the Microsoft XSD.exe tool to generate an XML schema file from the zone classes. That probably means nothing to most readers of this blog, but here’s the .XSD for the Basternae 3 zone format:

Basternae 3 Zone Format XSD

No reason really, just in case someone might be an XML tinkerer and wants to try running it through some of their tools, or if some masochist wants to browse it. I’m pretty sure there are some tools out there that will generate a data editor based on an XSD file format, but I’ve never had my hands on one. I have heard that Java and Eclipse have some pretty good XML tools.

Don’t Forget To Multiplay!

Nothing much to report today, but if you’re doing some testing feel to play as many characters as you like, including on different sides of the racewar. No better way to test grouping and fragging and all that related stuff than to stage a 6v6 PvP battle all made up of characters controlled by you. 😛

Bots are cool too, of course. Anything that exercises more of the code more often is all good in my book.

More Zones Attached To The Map

These zones have been attached to the world map:

L’ristrizzen (Drow Elf HT)
Ixxillian (Enslaver HT)
Malch’hor Ganl (Goblin HT)
Autumnglen (Centaur HT)
Plateau of the Temple
Court of the Muse

Editor Version 0.54 Update

Using the editor has inspired a fresh new batch of improvements. Here they are:

Mob Editing

* New mobs now default to having memory.
* Fixed a navigation bug with creating new mobs.
* Fixed a problem that would prevent setting mob sex.
* Added a clone button for ease of creating similar mobs.

Room Editing

* Added the ability to delete room exits from the exit editing screen.
* Increased the size of the title and description text boxes on the room edit dialog.
* Added a clone button for ease of creating similar rooms. This does not clone exit data because things could get confusing very quickly if it did.

Object Editing

* Added a clone button for ease of creating similar objects.
* Added a language selector for objects of type note in the value editing screen.
* Added a flag editor for container flags on objects of type quiver or container in the value editing screen.

Map View

* Added ‘shift map’ buttons to move the location of the room graphi in the map view north, south, east, or west in case it doesn’t all fit on the screen. Since the map view starts at the first room found, puts it in the middle of the screen, and draws the rest of the rooms from there, it may be necessary to shift the map to see what you are looking for.
* Now resizes properly when you click the ‘maximize’ button on the main window.

Walkthrough Mode

* Added ‘look <mob>’ command that shows you the description and any items equipped or carryied by a mob in the current room.
* Added ‘look <object>’ command that shows you the description of an object in the current room.
* Text input and output controls now resize properly when you click the ‘maximize’ button on the main window.
* Text output control now resizes properly when you drag the window size larger or smaller.
* Added the equip command in walkthrough mode. It lets you load an object and equip it on a mob in the current room. This generates an “equip” reset so the object will be loaded and equipped at boot time.
* Added the give command in walkthrough mode that lets you load an object and give to to a mob in the current room. This adds a “give” reset so the mob will be given the object at boot time.

Other

* Added word wrap to the description preview in the extra description edit window.
* Removed the “not implemented yet” message from the renumber command. It worked, but would still display that message, wrongly giving the impression that it didn’t work.

You can get it here.

Zones Converted and Connected

Nauraki was actually the first one to give zone permissions when the Basternae 3 project started, but the converter wasn’t working well enough to convert them way back then. These zones by Nauraki have been converted:

The Plateau of the Temple
Court of the Muse
L’Ristrizzen (Drow Elf HT)
Phiadnae Flats

The Village of Shadowfall by Zaeru has also been converted.

I’ve started connecting zones to the surface and underground maps. Here’s what’s connected so far:

Village of Stoneward
Cavern of the Worms
Ice Tunnel Shaft
Thannik’Tzil (Thri-Kreen HT)
Kobold Village (Kobold HT)
The Minotaur Stronghold
Sarmiz’Duul
The Buffalo Tribe (Barbarian HT)
Kragthor (Ogre HT)
Phiadnae Flats (Minotaur HT)

That leaves a little over two dozen more that are approved and converted that need to be connected.

None of these zones have zone markers on the map. I’m not sure whether I want to place zone markers — it might be more fun to leave them off and force exploration. The number/strength of reasons for and against zone markers are about even, so that’s something to be decided later. My guess is that hometowns will be marked and other zones won’t.

None of the hometowns have player spawn points set yet, so everyone still starts in the Kobold village. Once all of the zones we have area attached I’ll worry about adding repops.

More Fixes

* Fixed a crash bug with automatically combining piles of coins when a corpse containing them decays or when someone drops them.
* Item auto-pricing has been enabled.
* Fixed a bug that would cause forage to always fail.
* Changed messages for a few commands.
* Coins were not saving in player files. This has been fixed.
* Fixed the deposit and withdraw commands. Banks are working now.
* Made the economy command immortal-only.
* Added spellbook and light support to the compare command.
* Changed adding objects to a room so they are added at the beginning instead of the end a room. This fixes an issue that caused the second mob killed in a room to end up as 2.corpse instead of 1.corpse.
* Changed adding mobs to a room so they are added at the beginning instead of the end of the room. This means that the second troll to walk into a room will now be 1.troll instead of 2.troll. This is the behavior everyone should be used to.

One thing that’s nice about the Basternae 3 engine is that a player-issued command is incapable of crashing the MUD directly. The only crashes that can and will happen are when the database gets corrupted or otherwise out of whack. Autonomous mob activity and object/room/weather updates are the only places that contain any danger anymore, and those are getting sorted out pretty quick.

In the past week, average uptime has increased from 2d7 hours to 2d20 hours.

Hurry up, break it while you still can!

By the way, “turbo level” mode is on — which means you gain ten levels for every one level you would normally gain. Should help with testing.

Connecting Rooms Made Easy

In Bast1 and Bast2, when a zone was added, one had to edit both zones, adding an exit to each room. When a zone was moved or connected in a different direction, the old exits had to be deleted and replaced with exits in the new direction.

This wasn’t too bad, but I always found it annoying having to edit *two* files. Worse yet, if you weren’t very familiar with a zone it could result in poking around a bit before you found what exit connected where.

This could also create “hanging” exit data when one zone was unload or disconnected from another without deleting both exits. Many of the Bast2 zones have exits pointing to the old map even though those room numbers don’t exist. This doesn’t break anything, but it’s ugly data.

Well, the “old way” of connecting zones still works on Basternae3, but I’ve also added a very simple way of connecting zones. It’s a ZoneConnections text file in the area directory that gets loaded. It has nothing more complex than:

First Zone’s Room Number, Exit Direction, Second Zone’s Room Number.

So, for example, one line reads
“200,south,1200”

This means that when the MUD boots and it loads that line of the file, it creates an exit leading from room 200 south to room 1200, and also creates an exit in the opposite direction, leading north from room 1200 to room 200.

If either of those two zones does not exist or is not loaded, the exit is not created.

This is a fun little solution that makes it way easier to connect zones to the world map, so you’ll see zones on the map pretty soon.

Editor Version 0.53 Update

This editor update is mainly about making it easier to edit load commands and object values.

Here are the changes:

Reset Editing

* Object, room, mob, equipment slot, door state, and direction selector buttons have been added to the reset editing screen to make it easier to choose values.

Object Editing

* Added select buttons for weapon damage kind and weapon type to the object value screen for weapon.
* Added totem type (sphere) selector to values screen for totems.
* Added target room selector to values screen for teleports.
* Added liquid type selector to values screen for drink containers.
* Added room and exit direction selectro to values screen for switches.

Walkthrough Mode
* The purge command has been implemented in walkthrough mode (clears objects and mobs from the room).
* The load command has been implemented in walkthrough mode (lets you load an object or mob into the room).

Other
* Added more info to the help file.

As always, save early and often if you’re working on a serious zone project, and let me know any glitches or suggestions for improvement.

You can download the new version of the editor here.

Client Version 0.17 – Attack of the Programmer Art

This update adds worldmap support.

Here are some examples:

Map Window Screenshot 1

Plains between the southeastern swamp and the blast crater.

Map Window Screenshot 2

On the road in the western forest.

Map Window Screenshot 3

Underground near the river crossing.

Map Window Screenshot 4

East of the mountains where the desert runs north into tundra and then glacier.

Map Window Screenshot 1 in Wintin

As a reference image, here’s the first map location in WinTin.Net

I guess the first three aren’t too bad aside from some tile banding and edge mismatches, but the fourth one looks like hell. I could do better if I spent more time on creating the tiles, but there’s probably a pretty solid limit to what I can do. If you’d like to try your hand at replacing some of the uglier tiles, you’re certainly welcome to.

If you download and install the client, there’s a “tiles” directory that contains the graphics for the map tiles, the equipment screen background, and the health/move meters. They’re loaded at startup, so if you replace any of the images with those of the same name and dimensions, they’ll be used instead.

This doesn’t do much good yet since no zones are attached to the map yet, but they will be soon.

You can download it here.

EDIT: I tried the client on Fedora 12 and it gave some library mismatch errors, so I created a static build. The new Linux build was created on Ubuntu 9 and ran fine for me on a clean install of Fedora 12. Let me know your results if you try it.

Tossing A Few Bugs In The Fire

I spent a while doing various fixes.  Here’s what it added up to:

* The dice command has been fixed.
* The visible command has been implemented.
* Drag corpse has been fixed.
* Fixed an issue where mobs would sometimes fail to ride mounts they’re supposed to be on according to the zone file.
* Fixed or improved a handful of immortal commands.
* Fixed or improved messages for a bunch of commands, including track, whirlwind, report, sleep, split, practice, disembark, forage, and train.
* Fixed a bug with moon phases that caused the world data file not to save.
* Made some fixes to and enhanced carve corpse.
* Fixed a problem that would cause people to show up on the who list more than once.
* Fixed an issue that would prevent a player from being able to follow a mob.
* The compare command has been fixed.
* Fixed a problem that would sometimes cause renting to fail.
* Fixed a problem that was preventing shops from being associated with their shopkeeper mobs when they load.

Client Version 0.16 Update

I spent some time with window layout, changing where windows open so things aren’t stacked on top of each other.  Now they open in locations that make more sense when you run the app.  You can still move windows elsewhere or close them if you want.

I also worked on the group window.  Now it should display info about the group you’re in, if any.  Here’s what it looks like now:

Basternae Client v0.16 screenshot

All of these extra windows — status, group, room, and equipment — don’t refresh unless the server sends data to refresh them.  The status window works pretty well because it updates every time the prompt is sent and the room window works pretty well because it updates every time you enter or look at the room.  For equipment and group windows, it’s only when you type the “eq” or “group” commands, which may not be often at all.

At some point I’m going to make these update more regularly, probably on a timed interval for the group window, and probably when you “wear” or “remove” equipment for the equipment window.

You may notice from the screen layout that the client works best on systems with a resolution of 1280×800 or higher.  You can probably use it on systems with less, but I wouldn’t recommend it.

You can get it here.

I’ve also posted a Linux binary. It was built on an Ubuntu 9 system and requires wxGTK. I haven’t learned how to create a .deb or .rpm installer package yet, so it’s just a gzipped tar. Please report any problems/glitches.

Testing With Multiple MUD Clients

Tiu mentioned in a comment the other day that text was all goofy and formatted wrong via telnet, so I did some investigation.

Bad:
Using telnet from a Linux box, everything looked screwy just like he said.
Using telnet from a Windows box, everything looked screwy just like he said.
Using Gnome-Mud, everything looked screwy just like he said.

Good:
Using Tintin++ from Linux, everything looked OK.
Using WinTin.NET (normally my main client), everything looked OK.
Using Mudlet, everything looked OK.
Using the Basternae Client (becoming my main client as it evolves), everything looked OK.
Using Zeta Telnet everything looked OK, but is in black-and-white.

Plain old telnet reacted differently to a carriage return / linefeed pair than MUD clients did.

After figuring out what the deal was I changed line endings in the server code and it looks like all terminal programs behave correctly now. Your mileage may vary.

A Pile of Bug Fixes — And Help Needed

I came up with a pretty good pile of fixes over the past day or two. Here’s the list:

* Fixed a crash bug in checking fall chance for mobs.
* Fixed a crash bug with creatures that leave no corpse (undead, elementals).
* Fixed a crash bug with decaying/disintegrating containers.
* Fixed an intermittent crash bug with removing a character from memory after they log out.
* Fixed a nasty bug where a player’s race wasn’t being saved.  This meant you would come back as a Human after logging out.  Ewww.
* Fixed a bug with memorization that prevented displaying which spells were memorized.
* Fixed a bug with memorization that caused classes to receive the wrong number of spell slots.
* Non-mana classes no longer start with mana.
* Fixed the fraglist command.
* Fixed the consent command, making groups possible.
* Fixed a problem with being able to see other players in the same room.
* Fixed message for the follow command.
* Fixed a bug with the ‘look self’ command.
* Fixed the ‘drop all’ command.
* Fixed selection of elementalist classes during character creation.
* Message added to the group all command.
* Change password from menu is working now.
* Delete self from menu is working now.
* Improved logging so we always see what caused a crash.
* Fixed disappearance of room title when brief is turned on.
* Fixed the way max hitpoint values were sent to the client.  This was causing hitpoint meters to be inaccurate for anyone without a race-modified constitution of exactly 100.
* The spells ‘sense spirit’, ‘elemental sight’, and ‘spirit sight’ are working now.

There are still a few major bugs on the table (especially that nasty death bug) and quite a lot of spells to work on, but the MUD engine itself is getting noticeably more stable, going from 1d3 hours average uptime to 2d7 hours. Of course, that is with close to no players and it’s players what finds glitches. Thank you to Potius, Zrun, Tiu, Veytre, and others who have reported issues before.

If you’d like to help a bit with testing and bugfinding, I could use it. Send me an email at my Yahoo address and I’ll set you up with an immortal-pro-tem and you can poke around and find me some more work to do. 🙂

Version 0.15 Client Update

I’ve spent some time on the client. Here are the changes for version 0.15:

* Fixed a bug with alias saving and loading.
* Added hotkey saving and loading to alias save/load.
* Improved room/map window, adding zone name, exits, and better word wrap for room description. It doesn’t show color yet, though.
* Added some fixes to the equipment window and it works now. It doesn’t show color yet, though.

In the process of working on the equipment window in the client, I fixed a bug on the server with the equipment command and one with the wear command.

You can download the new version here.

As always, let me know if and which bugs you find.