Zangband Borg

Yes, there is a Zborg. It is designed to run on Zangband 2.4.0. It is still in development but it works decently. Adam Goodman provided assistance on this project, and it probably could not have gotten off the ground without him. Some points to note:

So if you really want try it out. Here is the link. Zborg240.zip. or Zborg Windows executable.


For basic Zborg compiling:

Before you compile it, you must extern the player_flags() from files.c, and uncomment the ALLOW_BORG in z-config.h, add the object files to your makefile. If you want to use graphics then add ALLOW_BORG_GRAPHICS in z-config.h somewhere.

Screen Saver:

If you want the ScreenSaver to work, then replace the main-win.c with the one provided in the distribution. You will need to copy the zangband.exe to the windows directory and place a copy of a zangband.ini into the widows directory. That zangband.ini file only needs to contain 3 lines.:

[Angband]
AngbandPath="d:\games\zang240\" (Where your copy of Zangband 240 is located)
SaverFile="Saver" (Or whatever you want to name of the screensaver file)


Current Crashes:
Some related to being in the mote, southwest of town.
Some related to updating the known lit grids. Again most likely an out of bounds call to borg_grid.

Current Bugs/Annoyances:
Z240 does not have an auto_more option so the borg is getting stuck trying to inscribe artifacts with long names (like the Cap Thengel).

If you have a borg that is bouncing between two goals (like 'flow item' and 'flow dark-4') please check if there are any messages in between those statements. Look for something "tracking take 'foo'" or "tracking monster 'foo'".

The borg may still drowns on rare occassions, like when his STR is drained.


Recent Fixes
Nov 25, 2004 1) Spell address issues for Sorcery; borg thought that spell 1,8 was Stone to Mud.

Aug 19, 2004, 1) Borg will risk the use of Teleport Level if on Depth 1 and starving. 2) monks are encouraged to go bare handed.

Aug 4, 2004, 1) Yesterday's borg update was crashing on my comp at work but worked fine on the laptop. New update here.

Aug 3, 2004, Will return to dungeon quickly if he has nothing to sell and no money to buy stuff. This reduces risk of town death. 2) Insect swarm is scaryguy. 3) keypresses displayed in the ^P log.

July 15, 2004, Zborg needed some improved flow to the town gates to help avoid that goofy flow to the water after entering town. 2) Default, the zborg will not save the game at each level, thus saving your harddrive wear and tear. Turn it back on with ^zfs.

July 14, 2004, Zborg Vampires needed reinforcement that the Phial could harm him if he did not have res_lite;

July 12, 2004, Zborg needed to know that his Precognition skill would count towards ESP.

July 11, 2004, Zborg is updated with a few items: 1) Mindcrafter mana not effected by gloves, 2) Mindcrafters spells updated and improved utilization, 3) More power for using a ranged weapon, 4) Borg able to shoot at monsters' last known position, instead of having current, perfect sight. June 23, 2004, Added an 'Encumbered' warning to the borg_status screen. This will help in debugging the drowning the problems with borgs. Also made a correction to calculation of encumbrance to help avoid drowning.

October 7, 2003, Repaired the realm selection problems with Rangers, Warrior-mages. Repaired one of the possible reasons why the borg has way too many Phantasmal Servants. Removed the forced internal delay factor of 1.

July 22, 2003 Fixed a problem with racial commands being attempted while confused.

July 17, Fixed the problem with the Nature spell of Whirlwind and Call Void.

June 8, Fixed some issues with respawning and magic realms being messed up. Fix ed a few zborg.txt issues related to vanilla randarts and the Terror Mask.

May 21, Fixed a problem where the borg was cheating to know the charges on staves that he could not gather from the inscription.

May 15, Fixed a problem with Dimension Door and not getting the landing zone entered correctly.

May 14, The trait Reflecting was given a greater reward (30% higher).

May 9, More fixes to Dim Door to escape a bad grid.

May 8, Borg needed better handling of phasing off of a lava or water grid.

Apr 21, Vamp branding given greater bonus. Teleport Level will be attempted instead of Phase Door, when in extreme danger. Trump borgs will limit their Servants to 3 known ones, to help keep mana under control.

Apr 20, Few more bounds checks corrections. Zborg will carry a few more *heals* if lower than depth 60.

Apr 19, Borg was getting stuck trying to buy two items at a time.

Apr 16, Zang has some nasty curses so the borg is forbidden to wear items that are not ID'd because those items my have a curse (no magic, anti teleport).

Apr 15, Borg was still overflowing on quarreling monsters (especially while resting). Made some fixes to avoid this. Borg will now try to max his speed at +35. Greater penalty for having the anti-magic curse.

Apr 11, Fixed a problem where the borg was drowning because he thought he was stronger than he really was. Possible problem with a C_KILL and C_MAKE in borg3.c. It may effect the respawning of the borg.

Apr-9, Improved the handling of 'monster aaa attacks bbb.' Repaired a food storage problem for the races (thx steve). Mindcrafters will now ID rings if they pseudoID'd them as {average}. Mindcrafters will be more liberal in using the ID ability on items.

Apr 6, Mindcrafters will use their psychometry skill to pseudo ID items. They are also allowed to sell items that are not ID'd or pseudo-ID'd. Minor cosmetic fix to the 'spell dump' command.

Apr-4, Added a bounds check to cut down on grid crashes.

Apr-1, Attempting to handle "monster aaa attacks monster bbb." Currently this causes the borg to overflow the messages and unhook. But it must still ignore the messages which contain 'hits the' since missiles shot at mosters have this same text and the borg might think that the Iron Shot (+2,+3) is a monster.

Mar-31, Borg will not chase monsters that are located outside of town while he is in the town walls.

Mar-30, Added better support for use of Rod of Illumination. Bless Weapon utilized for Priests. If they have the spell they will bless weapons. This may help them in their selection of weapons for use in combat or for resistances.

Mar-25, Repairs to the borg defence calcuations for elemental attacks and PFE. Repaired the launch and close message of Invulnerability.

Mar-24, No Magic Curse only penalizes non Warriors. Fixed a unhook problem with perma-spell 'hero', and defence 'bless'. Fixed a problem with rods of recall and resetting recall depth. Restrictions on racial attacks to make sure the borg does not do these while low on HP. Stores won't buy cursed items.

3-23, Fixed a possible equip loop when dealing with + stats items. Allowed borg to delete a monster which he thought was on a grid, but it was really a door. This problem can arise with prismatic mushrooms or what ever they are called.

3-22, Branding of bolts repaired. Borg is able to escape from the Pet Command Menu if he accidently enters it from a Sync problem. Borg will not try to swap in items if the current slot is cursed. Fixed a typo which caused the borg to not recognize the Hand of Doom as an attack. Borg will collect (but not use New Life potions). I attempted to remedy some problems relating to Hallucination. The borg will now not convert monsters to new items/monsters when under the influence of hallucination. I did not test it, so keep and eye on it for abnormal behavior. Lastly, non LOS monsters will induce fear at least equal to the depth level.

3-14, 2002, Borgs can now teleport off a nasty grid (lava, water) if he is not able to walk off.

3-7, Addressed some problems with studying Arcane Magic. Keep an eye out for problems with Arcane magic. I also attempted to fix a problem related to the borg's short leash and bouncing next to a stair. Some door destroying spells needed a direction instead of blowing up adjacent doors. I also fixed a huge starvation problem. The arcane spell of See Invis was being called instead of Sat. Hunger.

3-6, Some randarts inscriptions which were plain will now be listed as 'boring' instead of {}.

2-24, Vacation over. Fixed the problem with unhooking while performing defence type 7. Also repaired some problems with the borg correctly understanding the fail rates on the racial activations.

1-29, Fixed the problem with the borg liking to wear two rings of RLite and RDark. Also fixed a problem with activating racial commands and unhooking. I added support for realm selection on respawning borgs. You may now influence the choice of realms from editing the zborg.txt. Mimic Doors also coded.

1-28, Potions of Resistance now used in defence, and now stored in the home. Potions of Invuln now stored in the home. Fixed the 'filthy street urchin unique' bug.

1-26, Borg needed to ignore some uniques for diving deeper. Some uniques live in special locations (Giganto, et al).

1-25, Fixed a severe bug with respawning borgs: They were learning negative numbers of spells. Fixed a remaining bug with the ^zd: Only one realm was being displayed.

1-23, I had to update the monster spell messages. Some spells were not being read correctly. The most common one was the Culverin. Also the launch message for Stone Skin needed fixing. I fixed the ^zd problems. Well, most. The Mindcrafters are not supported yet.

1-20, Support added for Anti Teleport and Anti Magic.

1-19, fixed a nasty problem which I caused from yesterdays 'fixes' with the #-monsters. Few more fixes on potential crashes with bounds issues. Mindcrafters need to be able to use the Psychometry spell.

1-18, Addressed a potential crash problems by addings a bounds check to the borg_grids called in zborg6 line 696. I added support for Mindcrafters and DimDoor that happens with Minor Displacement at clevel 40. Zborg will be more careful about using racial powes if his HP are under 60%. Gnomes are allowed to go to 30% since they use teleport as a racial power. Repaired some cheats for identifing and locating goofy monsters like '#' '*' and '.'

1-17, Attempted to fix the 'bounce between two flows' behavior by only reseting the 'goal = 0' if non ESP and the goal is a 'take'. I doubt this would effect the low level borg bounces. Fixed a problem that had the borg flowing through perma rocks. Fixed a problem where the borg will sometimes misread the Star and Jewel for Quartz veins.

1-16, Corrected an ineffeciency with 'backing up to a safer grid.' I think I fixed the 'resting to die' thing.

1-13, Addressed a problem with drowning and lava burning deaths.

1-10, Few more spell fixes. Working pretty good.

1-7, Fixed bugs related to respawning. Flasks had a cost 0, would not stack, and could not be sold to the stores. Also, they were not getting their realm books after respawning. All classes who start with a Healing potion will sell it straight away. It was coded for only priests, monks needed this too.

1-6, Fixed an over reward for vampires sucking blood. Removed that 'reset on the shop entrance while waiting for recall' bug.

1-4, Fixed a few Magic Numbers. Fixed a monster overflow bug relating to wall type monsters like 'Vampiric Mist' and such. The borg now understands that he is on a randome dungeon quest. He knows who the quest monsters are, and that they should be priority targets. He will attempt to stay on the level longer and not flee until the quest is complete. The Borg Status screen has been updated to report some of this quest information.

1-3, Programmed the spell Demension Door.

1-2, Zborg ran all night without crashing. That is a first. Fixed a nasty bug relating to buying Remove Curse scrolls, and one rare one related to power calcuations.

1-1, 2002, Tried to get the borg to stop flowing to the mote before entering the town, by having it flow to a magic location called 'town gate.' Offscreen monsters handled better (Z does not give them the '(offscreen)' suffix). Antimatter hasseled me to fix some double format problems (he wrote the fixes).

12-31, 2001 Fixes to how the borg deals with having cursed inventory. Added reward for having poison branded. Tried to get rid of the Magic Numbers. Tried to fix a few screen crashes in the wilderness. Added a fewixes relating to inscriptions. Fixed the problems the borg was having with WoR scrolls and resetting the recall depth. Added more support for reserve mana on the different realms. Racial special abilities added. Removed the // marks from within the code. Added better support for the Resist Fear flag. Added a penalty for carrying a corpse. Fixed some problems related to Friendly Uniques and Wilderness Uniques. Attempted to fix the low dlevel flow loops. Fixed the 'flow through a wall to get to the door' bug. Greater hell beast is a scary guy. Agent of the Black Market is a scary guy. Fixed a few bugs with racial abilities to make sure they don't try it if the cost is too great.