Icewind Dale: ToEE - Total Conversion

Discussion in 'Icewind Dale Total Conversion' started by Allyx, May 7, 2016.

Remove all ads!
  1. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    Two of the Gods I listed with the War domain use the Longsword as preferred weapon, the additional Halfling God (21?) has the War domain and Shortsword prefered weapon, is that something to be done later in Temple Plus?
     
  2. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    The longsworders are the same in ToEE so no need to change their preferred weapon code.
    Affirmative about 21.
    BTW my intention of using those non-selectable deities was for NPCs, not Temple+. For Temple+ it's possible to add an unlimited amount of deities.
     
  3. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,740
    Likes Received:
    374
    The existing extras - Lolth and Ralishaz and such - do they have everything set up, domains and such?

    Also, what about the extra powers clerics get, like Death Touch and such?
     
  4. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    They have deity specs just like the rest of the gods. I don't know how accurate they are but here it is:

    Code:
    .rdata:102726F8 00 00 00 00+ dd ALIGNMENT_NEUTRAL; alignment
    .rdata:102726F8 00 00 00 00+ dd Domain_Earth, Domain_Animal, Domain_Plant, Domain_Sun, 3 dup(Domain_None); domains
    .rdata:102726F8 00 00 00 00+ dd 7 dup(0); races
    .rdata:102726F8 00 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 01 00 00 00+ dd          0; [20].isEnabled
    .rdata:102726F8 0A 00 00 00+ dd ALIGNMENT_CHAOTIC_EVIL; alignment
    .rdata:102726F8 03 00 00 00+ dd Domain_Plant, Domain_Fire, Domain_Earth, Domain_Air, Domain_Water; domains
    .rdata:102726F8 07 00 00 00+ dd 2 dup(Domain_None); domains
    .rdata:102726F8 14 00 00 00+ dd 7 dup(0); races
    .rdata:102726F8 15 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 00 00 00 00+ dd          0; [21].isEnabled
    .rdata:102726F8 00 00 00 00+ dd ALIGNMENT_CHAOTIC_EVIL; alignment
    .rdata:102726F8 00 00 00 00+ dd Domain_Chaos, Domain_Evil, Domain_Trickery, 4 dup(Domain_None); domains
    .rdata:102726F8 00 00 00 00+ dd 7 dup(0); races
    .rdata:102726F8 00 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 00 00 00 00+ dd          0; [22].isEnabled
    .rdata:102726F8 00 00 00 00+ dd ALIGNMENT_CHAOTIC_EVIL; alignment
    .rdata:102726F8 00 00 00 00+ dd Domain_Chaos, Domain_Destruction, Domain_Evil, Domain_Trickery, 3 dup(Domain_None); domains
    .rdata:102726F8 00 00 00 00+ dd 7, 6 dup(0); races
    .rdata:102726F8 00 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 07 00 00 00+ dd          0; [23].isEnabled
    .rdata:102726F8 08 00 00 00+ dd ALIGNMENT_NEUTRAL; alignment
    .rdata:102726F8 0B 00 00 00+ dd Domain_Water, Domain_Trickery, Domain_Air, 4 dup(Domain_None); domains
    .rdata:102726F8 0F 00 00 00+ dd 7 dup(0); races
    .rdata:102726F8 00 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 00 00 00 00+ dd          0; [24].isEnabled
    .rdata:102726F8 00 00 00 00+ dd ALIGNMENT_CHAOTIC; alignment
    .rdata:102726F8 00 00 00 00+ dd Domain_Luck, Domain_Trickery, Domain_Chaos, 4 dup(Domain_None); domains
    .rdata:102726F8 00 00 00 00+ dd 7 dup(0); races
    .rdata:102726F8 00 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 00 00 00 00+ dd          0; [25].isEnabled
    .rdata:102726F8 00 00 00 00+ dd ALIGNMENT_EVIL; alignment
    .rdata:102726F8 01 00 00 00+ dd Domain_Fire, Domain_Evil, Domain_Trickery, 4 dup(Domain_None); domains
    .rdata:102726F8 00 00 00 00+ dd 7 dup(0); races
    .rdata:102726F8 0D 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 10 00 00 00+ dd          0; [26].isEnabled
    .rdata:102726F8 13 00 00 00+ dd ALIGNMENT_CHAOTIC; alignment
    .rdata:102726F8 00 00 00 00+ dd Domain_Luck, Domain_Trickery, Domain_Chaos, 4 dup(Domain_None); domains
    .rdata:102726F8 00 00 00 00+ dd 7 dup(0); races
    .rdata:102726F8 00 00 00 00+ dd 0Ch dup(stat_strength); classes
    .rdata:102726F8 00 00 00 00+ dd          0; [27].isEnabled
    
    Where
    {20}{Old Faith}
    {21}{Zuggtmoy}
    {22}{Iuz}
    {23}{Lolth}
    {24}{Procan}
    {25}{Norebo}
    {26}{Pyremius}
    {27}{Ralishaz}

    I just tested by giving Bertram 16 WIS, and indeed when levelling him up as a Cleric, he gets the Trickery, Air and Water domains as possible choices.

    The special powers are given on a per-domain basis, so Death Touch and whatever should apply as usual.[/code]
     
  5. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    I think I have edited the .dll to include the changes to the preferred weapons as instructed... the post above this confuses me so I didn't do any of that bit. I couldn't find where to edit the domains or alignments or class restrictions for worshipping each of the deities though (races should be the same as the default). Where would I find that? and how to edit it?
     
  6. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,740
    Likes Received:
    374
    Al, vis-a-vis my previous suggestions about using Reputations to indicate this and that which is covered by the journal in IWD - did you have any particular plans for the reputations, or do you mind me giving my suggestions a try? Just to see what it looks like.
     
  7. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    That's contained in my prevuous post here:

    http://www.co8.org/community/index....ee-total-conversion.11868/page-39#post-142843

    To clarify:
    There is a bigass table starting at hex offset 0x2726F8 in the dll.
    Each deity has an entry that's 112 (0x70 in hex) bytes long, starting with deity "None" (so the first "real" deity is at 0x2726F8 + 0x70 = 0x272768).
    The internal structure of each entry is
    Code:
    struct DeitySpec{
       Alignment alignment; // the character's alignment must not oppose this
       Domain domains[7];
       Race races[7]; // races that can always pick the deity regardless of anything else; matches obj_f_critter_race; race_human doesn't count
       Stat classes[12]; // classes that can pick the deity provided the alignment is unopposed; see stat_level_X enums
       int isSelectable;
    };
    Where each value is a 4 byte integer.
    This means that within each entry you'll have:

    • Alignment - first 4 bytes. See previous page for each alignment's numerical value.
    • Domains - an array of seven elements, 4 bytes each. See mes\spell.mes for the domains numerical values.
    • Races - again a 7 element array, 4 bytes each. I don't remember the mapping to numerical values, but it should be identical to race_x from the console codes.
    • Classes - a 12 element array, 4 bytes each. Follows the stat_level_x enums (e.g. IIRC stat_level_barbarian is 7. Or was it 8?)
    • IsEnabled - a single integer that indicates whether a deity is selectable. Should be 1 for all the normal deities.

    An example deity entry would look like this:
    Alignment CE: 10
    In hex: 0A 00 00 00
    Domains: Luck, Protection (13, 21)
    In hex:
    0D 00 00 00 15 00 00 00
    And then 5 more sets of 00 00 00 00
    Races: same principle as above (IIRC it will only check the first race though; also race_human doesn't count )
    Classes: again, same principle
    IsEnabled: 1
    In hex: 01 00 00 00

    And after that the next deity should start.

    You can use tge windows calculator (in programmer mode) to calculate the start of a particular deity.

    Hope that helps. If it's still unclear, you should probably leave it to Ted...
     
    Last edited: Jun 11, 2017
  8. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    @Shiningted Umm, reputations... like the butcher of Easthaven (Hommlet) reputation? I hadn't had any particular plans for them yet beyond that one, anything that *should be noted* in the journal that doesn't currently, which also doesn't qualify as a quest could be added as a reputation though.

    @Sitra Achara Yeah that's probably a bit too much for me, I'm struggling to enter the new details into help.tab currently, though I did fill out deities.mes already. :)
     
  9. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    In case it helps, I've posted the bit from deities.mes.

    Code:
    {1000}{Agnostic or Atheist. In either case, nothing is coming to help you in your time of need.}
    {1001}{The god of merchants, Waukeen (wau-KEEN), is neutral. Her titles include the Merchant's Friend, Liberty's Maiden, and the Golden Lady. Waukeen is a lesser deity who promotes everything related to commerce and the accumulation of wealth through free and fair trade, as well as the beneficial use of wealth to improve civilization. Her domains are Knowledge, Protection, and Travel. The nunchaku is her favored weapon.}
    {1002}{The god of elves, Corellon Larethian (Core-eh-lon lah-reth-ee-yen), is chaotic good. He is known as the Creator of the Elves, the Protector, Protector and Preserver of Life, and Ruler of All Elves. Corellon Larethian is the creator and protector of the elven race. He governs those things held in highest esteem among elves, such as magic, music, arts, crafts, poetry, and warfare. Elves, half-elves, and bards worship him. The domains he is associated with are Chaos, Good, Protection, and War. His favored weapon is the longsword. Gruumsh is his nemesis, and it is because of Corellon's battle prowess that Gruumsh is called "One-Eye."}
    {1003}{Chauntea (Chawn-TEE-ah), goddess of life, is neutral good. She was believed to be one of the eldest gods in Faerûn. Some of her worshipers claimed that her divine glimmer gave life to the natural world, and some contended that she was the creator and source of all mortal races. In some sense, Chauntea was the manifestation of the earth itself—the avatar of the twin worlds Abeir-Toril. The domains she is associated with are Animal, Good, Plant, and Sun. Her favored weapon is the scythe.}
    {1004}{The Storm Lord, Talos (TAAHL-ose), is chaotic evil. He was the Faerûnian greater deity of storms and destruction. His dogma was self-serving, demanding utter obedience from his priests and instructing them to spread destruction where they might. His followers were known as Talassans. The domains he is associated with are Chaos, Evil, Destruction, and Fire. His favored weapon is the spear.}
    {1005}{Silvanus (sihl-VANN-us), the Forest Father, was the neutral god of nature, though formerly considered only the god of wild nature and druids. Silvanus was one of the oldest and most prominent deities in Faerûn, and the wilder counterpart to Chauntea the Earthmother. His worshipers protected places of nature from the encroachment of civilization with vigor and were implacable foes of industrious peoples. The domains he is associated with are Animal, Protection, and Plant. The maul is his favored weapon.}
    {1006}{The god of gnomes, Garl Glittergold (garl gliht-er-gold), is neutral good. He is known as the Joker, the Watchful Protector, the Priceless Gem, and the Sparkling Wit. Garl Glittergold discovered the gnomes and led them into the world. Since then, he has been their protector. He governs humor, wit, gemcutting, and jewelrymaking. The domains he is associated with are Good, Protection, and Trickery. Garl's favored weapon is the battleaxe. He is renowned for the jokes and pranks he pulls on other deities, though not all his victims laugh off his jests.}
    {1007}{Gruumsh (groomsh), god of orcs, is chaotic evil. His titles are One-Eye and He-Who-Never-Sleeps. Gruumsh is the chief god of the orcs. He calls on his followers to be strong, to cull the weak from their numbers, and to take all the territory that Gruumsh thinks is rightfully theirs (which is almost everything). The domains he is associated with are Chaos, Evil, Strength, and War. Gruumsh's favored weapon is the spear. He harbors a special hatred for Corellon Larethian, Moradin, and their followers. In ages past, Corellon Larethian put out Gruumsh's left eye in a fight.}
    {1008}{The Maimed God, Tyr (TEER), was a lawful good greater deity of law and justice and part of The Triad. His dogma was primarily concerned with the punishment of wrong-doers, and the general furthering of law and good in the world. Not coincidentally, these values are among those held by most paladins, many of whom were more than likely to follow The Triad, as the patron of paladins Torm is one-third of the coalition. The domains he is associated with are Good, Law, Knowledge, and War. His favored weapon is the longsword.}
    {1009}{The Black Lord, Bane (BAIN), was the evil and malicious greater deity of fear, hatred and tyranny and ruler of Banehold. Preferring to plot and scheme, Bane rarely appeared to act in a direct manner; instead acting through his worshipers and other various agents. His ultimate goal was to eventually control all of Faerûn. When summoned he had a dark and rather shadowy appearance with a resemblance of dark armor and his tell-tale jeweled dark gauntlet. He emanated an aura of vast power and cruel intelligence. The domains he is associated with are Destruction, Evil, Law, and War. His favored weapon is the spiked gauntlet.}
    {1010}{Selûne (seh-LOON-ay), also known as Our Lady of Silver and the Moonmaiden, was the goddess of the moon. She was also venerated in Faerûn as a goddess of light, stars, navigation, navigators, wanderers, questers, and goodly lycanthropes. The domains she is associated with are Chaos, Good, Protection, and Travel. Selûne's favored weapon is the heavy mace.}
    {1011}{The god of dwarves, Moradin (moar-uh-din), is lawful good. His titles include the Soul Forger, Dwarffather, the All-Father, and the Creator. Moradin forged the first dwarves out of metal and gems and breathed life into them. He governs the arts and sciences of the dwarves: smithing, metalworking, engineering, and war. The domains he is associated with are Earth, Good, Law, and Protection. His favored weapon is the warhammer.}
    {1012}{Auril (AW-rill), is neutral evil. also known as The Cold Goddess, The Frostmaiden, Icedawn, and the Goddess of Winter, was a fickle, vain, and evil deity, who was primarily venerated out of fear. The few among the Iulutiuns of the Great Glacier who worshiped her called her Saukuruk. The domains she is associated with are Air, Evil, and Water. The battleaxe is her favored weapon.}
    {1013}{Oghma (OGG-mah), also known as The Lord of Knowledge, was the neutral greater power of bards, inspiration, invention, and knowledge in Faerûn. Oghma was the leader of the Deities of Knowledge and Invention and his home plane was the House of Knowledge. His symbol was a blank scroll. The domains he is associated with are Knowledge, Luck, Travel, and Trickery. His favored weapon is the longsword.}
    {1014}{Tempus (TEM-pus), is chaotic neutral. also known as the Lord of Battles, was the god of war. His dogma was primarily concerned with honorable battle, forbidding cowardice and encouraging the use of force of arms to settle disputes. The domains he is associated with are Chaos, Protection, and War. The Battleaxe is his favored weapon.}
    {1015}{Lathander (lah-THAN-der),  whose title was The Morninglord, was a deity of creativity, dawn, renewal, birth, athletics, spring, self-perfection, vitality and youth. He favored those who dispelled the undead and blessed those who planted new life. Lathander was also the god called upon to bless birth and fertility related ceremonies. Some saw him as the neutral good aspect of Amaunator but the two were considered separate deities again after the Second Sundering. The domains he is associated with are Good, Protection, Strength, and Sun. The mace is his favored weapon.}
    {1016}{Helm (HELM), is lawful neutral. Also known as the Vigilant One and The Watcher, was the god of guardians, protection, and protectors. He was worshiped by guards and paladins both, long being seen as a cold and focused deity who impartially took the role of defender and sometimes also enforcer. His activities in the Time of Troubles caused the folk of Faerûn to look differently on the Watcher. The domains he is associated with are Law, Protection, and Strength. His favored weapon is the bastard sword.}
    {1017}{Myrkul (MEER-kul), also known as the Lord of Bones, was one of the Dead Three and the god of the dead. His cowled skull head was known in nightmares all over Faerûn, and he was the one deity that almost all human mortals could picture clearly. Myrkul took care that all mortals thought of him often - he was even known to materialize beside open graves, scythe in hand, just to gaze around at gathering mourners for a few silent seconds before fading away, in order to remind everyone that he was waiting for them all. The domains he is associated with are Evil, Luck, and Death. Myrkul's favored weapon is the scythe.}
    {1018}{Mystra (MISS-trah),  the Mother of all Magic, was a greater deity and the second incarnation of the goddess of magic after her predecessor Mystryl sacrificed herself to protect the Weave from Karsus's Folly. Mystra tended to the Weave constantly, making possible all the miracles and mysteries wrought by magic and users of magic. She was believed to be the embodiment of the Weave and of magic itself (though this was known to be false in the wake of the Spellplague). The domains she is associated with are Knowledge, Good, and Magic. Her favored weapon is the shuriken.}
    {1019}{Brandobaris (BRAN-dobar-iss), was the halfling deity of thievery and an exarch of Sheela Peryroyl. He was the misapprehensions of halflings held by most races in divine form. He was constantly scheming and meddling, as he was curious and with a short attention span. Where the tall races would add more interest in one's purse than his character, Brandobaris cares for character more. Brandobaris had few enemies, as his charm and wits allowed him to escape from trouble. The domains he is associated with are Luck, Travel, and Trickery. The dagger is his favored weapon.}
    {1020}{Urdlen (URD-len, also known as the Crawler Below, was a chaotic evil gnome deity. It took the form of a white mole, blind, hairless, sexless, but with claws of steel. A mindless force of evil and destruction, Urdlen was the only evil gnome deity. It was allowed to remain part of that pantheon by its leader Garl Glittergold as a reminder to all gnomes of the dangers of greed and bloodlust. It's domains are Chaos, Earth and Evil and it's favored weapon is the claw bracer.}
    {1021}{Avoreen (avo-REEN), also known as The Defender or The Wary Sword was the closest the halflings had to a war god, but he was actually the halfling pantheon's deity of defense, guardians, and watchers. Arvoreen was strict and preached aggressive watchfulness but only to react to aggression. He didn't support starting conflicts unless it was done to stop evil practices. Arvoreen never attacked first and didn't hold thieving to be dishonorable as long as it was against a foe. However, it was extremely forbidden to steal from the Hin (halflings) or their allies. His domains are Good, Law, Protection and War and his favored weapon is the shortsword.}
    {1022}{Bhaal (Beh-HAAL), the Lord of Murder, was originally a mortal and one of the Dead Three. Along with Bane and Myrkul, Bhaal took the portfolios of the ancient deity Jergal. Despite his most common title, Bhaal was the god of death, but he especially favoured violent or ritual deaths. While originally he was the patron of assassins and their victims, it wasn't long before common murderers used a claim of his worship to justify their sadistic actions, warping the manner of his worship. As a result, Bhaal was feared throughout Faerûn, especially in the island realm of the Moonshaes. His domains are Death, Destruction, and Evil and his favored weapon is the dagger.}
    {1023}{Lolth, known as the Queen of Spiders or the Queen of the Demonweb Pits, was the most influent goddess of the drow, within the pantheon of the Dark Seldarine. She drove the drow into heavy infighting under the pretense of culling the weak, while her real goals were to hold absolute control over the dark elves, prevent the rise of alternative faiths or ideas, and avoid complacency (even though she found amusement in the strife that plagued her followers' communities). However, in the long run her influence proved to be an obstacle to the growth and success of the drow, preventing them from unifying against common enemies or for a common cause. Her domains are Chaos, Destruction, Evil, and Trickery, her favored weapon is the dagger.}
    {1024}{Ilmatar (Ihl-MAY-ter), was an intermediate deity of the Faerûnian pantheon whose portfolio included endurance, martyrdom, perseverance, and suffering. He was the god of those who suffered, the oppressed, and the persecuted, who offered them relief and support, encouraged them to endure, and who encouraged others to help them, to take their burdens or take their places. He was called the Crying God, the Broken God, the Lord on the Rack, and the One Who Endures. To the Iulutiun people of the Great Glacier, he was known as Ayuruk, and to the Angulutiun people he was Itishikopak. His domains are Good, Law, Healing and Strength and his favored weapon is the unarmed strike.}
    {1025}{Dumathoin (DO-muh-THOE-in), was the patron of Shield dwarves, and the dwarven deity of mining and underground exploration and was known as the Keeper of Secrets Under the Mountain. He was also the protector of the dwarven dead. His holy symbol was a cut, faceted gem inside a mountain. His domains are Earth, Knowledge and Protection and his favored weapon is the maul.}
    {1026}{Umberlee (Uhm-ber-LEE), also referred to as The Bitch Queen, was the evil sea goddess in the Faerûnian pantheon. She was most often worshiped by sailors or people traveling by sea, out of fear of her destructive powers. She controlled the harshness of the sea while reveling in her own power and was not hesitant to drown people, if she so pleased. Her domains are Chaos, Evil, Destruction and Water, her favored weapon is the trident.}
    {1027}{Yurtrus (YURT-rus), was an orc god of death and disease. Where Shargaas symbolized the fear of what lurked in the bowels of the earth, Yurtrus embodied the constant threat of death and plagues with which the orcs lived every day. His domains are Death, Evil and Destruction, his favored weapon is the unarmed strike.}
    
     
  10. Shiningted

    Shiningted I changed this damn title, finally! Administrator

    Joined:
    Oct 23, 2004
    Messages:
    12,740
    Likes Received:
    374
    Ok, I'll add a few reputations as per my idea and you can see how they go in game in Kuldahar.
     
  11. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    Ok I think I understand how to hack the domain changes into the .dll, so I'll give it a crack once I've mapped the domain entries (and figured out the classes/races allowed).

    Another question, how would I go about editing the calendar? Grayhawk's calendar has 7 day weeks, and months consisting of 4 weeks and 1 week of celebration per month and 12 months in each calendar, while Faerun has 3 ten day long weeks in each of their 12 months and 5 other 1 day long holidays. would it be possible to code that?
     
  12. Sitra Achara

    Sitra Achara Senior Member

    Joined:
    Sep 1, 2003
    Messages:
    3,622
    Likes Received:
    538
    Personally, I wouldn't waste any time on that...
     
  13. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    Ok, I found how to edit the day and month names though, calendar.mes I can settle with 7 day weeks with the correct month names, even if the celebration days turn into weeks.
     
  14. Allyx

    Allyx Master Crafter Global Moderator Supporter

    Joined:
    Dec 2, 2004
    Messages:
    5,009
    Likes Received:
    254
    The deity related edits are done, and it doesn't crash! I have rolled up a new patch but have yet to upload it, which I will after a bit more testing.

    It will also include the localised sounds in Easthaven, the lowered CR for quests, and a minor loot reballance, and Hildreth's beard.
     
    Last edited: Jun 20, 2017
  15. FDR4PREZ

    FDR4PREZ Established Member

    Joined:
    Apr 10, 2007
    Messages:
    520
    Likes Received:
    80
    I normally play with the sound muted, so now I'll need to pump up the volume [​IMG]
     
Our Host!