SeaAngel | Date: Tuesday, 2011-12-06, 9:24 AM | Message # 1 |
3D Modeling
Group: Administrators
Messages: 972
Awards: 1
Reputation: 42
Status: Offline
| This is a community project to get all the hardcoded stuff from all the files into 1 thread, so people can check it. I'll check back on this thread once in a while, and edit this post to include everyones additions. So if you know about hardcoded stuff, post it! Tell us what it is and exactly what part is harcoded, or give us more insight to a previous addition if you have it. I'll keep each thing under it's related file's heading as best I can. Also, please point out wrong info!
Generic equipement stuff:
Item Files incl ItemTypes, Weapons, Armor, Misc: WeaponDescs are hardcoded to specific itemtypes. swor = WeaponDescSword, jave = WeaponDescJavelin, etc. Blunt Undead Damage is badly hardcoded. - RicFaith You can move and rearrange entreis in weapons, armor and misc.txt - RicFaith Weapons can get block, but you need to add animations for it and may need to use a state like weapon block - Char Autostacking in belt: Health/Mana/Rejuvpotions are hardcoded to allow stacking even if not same type. - Kingpin Weapons.txt and Armor.txt can have more then 1024 entries, but equipment racks are hardcoded to only look for weapon/armor entries up to 1024, so code editing is needed - Myhrginoc, in the txt file limits thread (Here) There is a list of item codes that need to exist, as the ancients are hardcoded to wear equipment with those codes. The horadric cube uses a pspell function. Any other item given this pspell will also open up to the exact same cube space, you can't create new space with new cubes, without code editing. Also, the cube itself is the only item hardcoded to locate items inside itself when you drop an item on it, further cube items won't do this. Ethereal is an item flag. It can be set to true, but it can't be unset without CE.
Skills.txt:
Teleport is hardcoded to read certain values from it's original line in skills.txt, even if you clone it. the weapon masteries for barbs use hardcoded stats that update all the time, and only those mastery stats update like that. the curses and auras used by monsters need to be on their original line, as the game uses hardcoded references with the cursed and aura enchanted properties. Monsters can't summon! Hydra is an exception obviously, but generally monsters can't summon anything without assertions, so don't try. Blizzard had to make special code for hydra to work properly. Same deal with blade sentinel and traps, as they are essentially summons.
TreasureclassEX.txt
gold needs to be the first line
Levels.txt
the moo moo farm level is hardcoded to its line - volf
hireling.txt
the descriptions for the hireling subtypes are hardcoded and use hardcoded references to the .tbl files. some of the strings seem to be hardcoded to string.tbl.[strhirespecialX], others to expansionstring.tbl.[StrMercExXX] - Char
itemstatcost.txt
elemental damages:the display of "adds XX-XX fire damage" and the others are hardcoded to use certain .tbl entries. the entries are found in string.tbl.[StrMod(element)DamageRange]. - Char all the passive_mastery_something stats seem to be badly hardcoded. they cannot accept negative values, and it seems like you cannot base op stats on them either for some reason i do not understand. there is probably quite a lot of hardcoded stuff in that file though, since the damagepercent line for example has to enhance the weapon damage, which is probably done by some hardcoded routine - Char for +to fire..poison e.tc skills you need to use same entry in itemstat. It's hardcoded to look into this specific stat. - kingpin
itemtypes.txt
The h2h2 row and some (or all) lines before it have hardcoding, so don't remove them, and rearranging them may give errors. - Char
charstats:
first item gets bonus in startskill no starting items can be magic, set, rare, unique, automagicked, etc. - RicFaith
Levels:
Waypoints can be added as long as the list isn't full, and they can be moved around as much as you want, just remember to remove them from the ds1's. - Kingpin
Skilldesc:
lots of the desclines have hardcoded text or hardcoded calcs. Here is more skilldesc stuff - RicFaith Certain skilldesc functions are hardcoded to read a table entry "like average firedamage over XXX seconds". - kingpin
States:
Freeze row is hardcoded to only work in the row its located in - kingpin
Sets:
The cow king set is hardcoded to only be findable in the secret (ha) cow level - Brother Laz
Sounds:
There are groupings for sounds which are hardcoded so you can't insert sounds. You can't rearrange them either. - RicFaith sound effects that are played hardcoded like Akara's Ring sound is reading a hardcoded row. The effect it will have to rearrange the sounds will be that all hardcoded sounds will play wrong sound. - kingpin Also, in this file there is a limited range from rowX to end that are hardcoded to play music on client. I have wrote a thread in CE forum how to change this in past. - kingpin
Credits: Doombreed-x @PhrozenKeep
|
|
| |
Verkas | Date: Tuesday, 2012-06-12, 10:33 AM | Message # 2 |
Generalissimo
Group: Mediator
Messages: 1308
Awards: 3
Reputation: 32
Status: Offline
| Very useful thanks for this, are you sure kingset is the only set thats hardcoded?
|
|
| |