This shows you the differences between two versions of the page.
Both sides previous revision Previous revision Next revision | Previous revision | ||
faq [2022/09/02 16:04] leaf Replace check in with commit in summary text |
faq [2024/05/20 15:32] (current) leaf Merge in changes from the wiki-data FAQ page |
||
---|---|---|---|
Line 353: | Line 353: | ||
=== 3.2.7 What is item_power? === | === 3.2.7 What is item_power? === | ||
- | See the [[dev:objects#item_power_item_power|item power field]]. | + | item_power measures how powerful and item is. This information is only relevant for items that are equipped - one time use items, monsters, walls, floors, do not use this. |
+ | |||
+ | When a player tries to equip something, the code goes through all the objects the player currently has equipped and sums up their item_power. The item_power of the object the player is trying to equip is also added. If this total exceeds the characters level, he is not allowed to equip the item. | ||
+ | |||
+ | In simple terms, the sum of all the players equip items item_power must be less than the characters level. The skills ('skills) command will display your current and maximum item_power. For instance: Your equipped item power is 25 out of 101 | ||
+ | |||
+ | Left click on an identified item to see it's item_power. For instance: That is cloak of intermediate protection (ac+2)(item_power +1) | ||
+ | |||
+ | Powerful items have a higher item_power value. This basically acts as a way to balance the items. It also prevents gifts from high level characters to newbies from being very useful - the item_power may prevent the low level character from equipping this items. | ||
+ | |||
+ | === 3.2.7.1 How is item_power calculated?=== | ||
+ | |||
+ | For items automatically generated by the treasure code, the following formula is used: | ||
+ | |||
+ | |^# Enchantments ^Power| | ||
+ | | 0 | 0 | | ||
+ | | 1 | 0| | ||
+ | | 2 | 1| | ||
+ | | 3 | 2| | ||
+ | | 4 | 3| | ||
+ | | 5 | 5| | ||
+ | | 6 | 8| | ||
+ | | 7 | 11| | ||
+ | |||
+ | An enchantment is: | ||
+ | * Each plus an item has. (+1, +2, +3, etc.) | ||
+ | * Each point an item increases an ability. (Str +1, Dex +2, etc.) | ||
+ | * Each 20% protection an item gives (rounded normally, eg 0-9 counts as nothing, 10-29 counts as one, etc) | ||
+ | * Each attacktype a weapon has. (Fire, Cold, Weaponmagic, etc.) | ||
+ | * Spell path adjustments (Attuned: summoning, etc.) | ||
+ | |||
+ | While the item_power field in the object structure is signed, in general, there should not be objects with a negative item_power. However, negative effects an item has may reduce the item power. Eg, a 'sword +4 (str +2)(wis -3)' would really be 3 enchantments. | ||
=== 3.2.8 How does an Improvement Potion work? === | === 3.2.8 How does an Improvement Potion work? === | ||
Line 489: | Line 520: | ||
* If you are still lagging and if no one else is lagging, then start troubleshooting your network connection. | * If you are still lagging and if no one else is lagging, then start troubleshooting your network connection. | ||
+ | ==== 3.5 General Questions ==== | ||
+ | |||
+ | === 3.5.1 What does "killed by a dungeon collapse" message mean in the hiscore list? === | ||
+ | |||
+ | When checking the higscore list in the game, you may see a listing like this: | ||
+ | |||
+ | 36 351708075 Asgoth the human was killed by a dungeon collapse on map Reception, Fire Level 3 <299><246><76> | ||
+ | |||
+ | First, the player has not actually died! So, no loss of experience or stat points happened. | ||
+ | |||
+ | This message could mean any of the following: | ||
+ | * The map was reset while the player was disconnected to the server | ||
+ | * The player left the game without use a Bed to Reality | ||
+ | * FIXME - other events cause this? | ||
===== Chapter 4 - Server Questions ===== | ===== Chapter 4 - Server Questions ===== | ||
Line 588: | Line 633: | ||
The first set of digits relates to the tagged release (i.e., 1.12 or 1.75.0) | The first set of digits relates to the tagged release (i.e., 1.12 or 1.75.0) | ||
- | The last string of text indicates a subversion (marked with a 'r') commit (i.e. r17660M) while the letter 'g' indicates a git commit (i.e, gc8d4b6). | + | The middle number of informationi (i.e. 1046) includes a commit number. FIXME - This is the number of commits since the tagged version release. That way the versions can still be sorted in chronological order |
+ | |||
+ | The last string of text indicates a subversion (marked with a 'r') commit (i.e. r17660M) while the letter 'g' indicates a git commit (i.e, gc8d4b6). Note: The project is no longer using subversion | ||
To look up the specific git commit related to that version, exclude the letter 'g' from your search. | To look up the specific git commit related to that version, exclude the letter 'g' from your search. | ||
Line 601: | Line 648: | ||
If you installed the server using one of the many distro specific packages, that will automatically start the server once the install is complete. | If you installed the server using one of the many distro specific packages, that will automatically start the server once the install is complete. | ||
+ | ==== 4.7 How long is a tick in game terms? ==== | ||
+ | |||
+ | Server time tracking is found in: | ||
+ | | ||
+ | include/config.h says "#define MAX_TIME 120000". | ||
+ | |||
+ | This is in microseconds. Therefore: 120ms or 8.3ticks/second. | ||
+ | |||
+ | So, for instance, a spell that has a duration of 2 ticks would last around 16 seconds. | ||
===== Chapter 5 - Maintenance Questions ===== | ===== Chapter 5 - Maintenance Questions ===== | ||