Jump to content

Idobek

Retired Gibberlings
  • Posts

    982
  • Joined

  • Last visited

Posts posted by Idobek

  1. Here's an example of how to scan weapprof.2da to find your kit's column and update the values with those taken of the parent class. This will take into account all mods which change these values, no checks required.

    COPY_EXISTING ~weapprof.2da~ ~override~
      READ_2DA_ENTRY 2 53 1 "kitname"
      FOR (column = 53; "%kitname%" STRING_COMPARE_CASE "IK_ADVENTURER" != 0; column = column + 1) BEGIN
        READ_2DA_ENTRY 2 column 1 "kitname"
      END
      FOR (row = 11; row < 35; row = row + 1) BEGIN
        READ_2DA_ENTRY row 7 1 "thief"
        SET_2DA_ENTRY row column 1 thief // Adventurer
      END
    BUT_ONLY_IF_IT_CHANGES

  2. he would have already selected his racial enemy
    I would prefer to think that a ranger's racial enemy selects them. So, gnolls became Minsc's racial enemy when they kidnapped his witch and liches became Valygar's racial enemy following his mothers conversion.
  3. A good one for Z.Freud: So, Valygar Corthala, your racial enemy is your mother's latest incarnation on the Material Plane? And you have killed her? And your father whom she turned into a zombie? Uh-huh... Do you see a peculiar if faint connection? Do you hate her or not? I think he does not hate her though, I think it is rather an open quarel that never get resolved.

    Not his mother, perhaps, but all other liches? Yes, I think he might have an issue with them. I feel his mother being a lich enforces the argument for them to be his racial enemy. I see it as an extension of his strained relationship with magic.

  4. Don't be like that. You posted your ideas and your arguments for them. We posted our arguements against. This is what a discussion board is for. Also notice that nobody has yet disagreed that something has to be done with Anomen. Including myself and I have a mod that tries to correct this.

  5. Thanks, it looks promising because what I have noticed that ALL original spells have the offset 0x54:

     

    7f 96 98 00

     

    Then in my opinion it cannot be "the IDed description offset is 0x54 (also 4 bytes)".

    It doesn't matter in the slightest what is there--the offset isn't used in spells. A lot of files have junk in them.
    If I use DESC than it is really written into 0x54 (4 bytes).
    As it is supposed to, yes.
    Also there are only a few values appearing at offsets 0x44 and 0x58 which might be evaluated then by changing them.
    Possibly yes, but that discussion belongs in the IESDP forum.
  6. IIRC this might have been brought up earlier ~ so it's possible to have 2 kits in a dualclass active at the same time?

    Only one kit at a time is ever active. Kit abilities may remain but the description will be gone and you will no longer level up in a kit that you have subsequently overridden.

    So when some character duals from... say a Kensai to a Priest, it is possible to disable the Kensai kit (the name/description, but NOT the bonuses, abilities, etc.) by making a dialogue come up for the character when he/she duals?

    I haven't tried.

  7. Cam's excuses for not having done any coding get more and more filmsy. No furniture? What kind of excuse do you call that? Tables and chairs are not requirements for modding. Is the floor not good enough for our esteemed leader? Pah!

  8. This tutorial is designed to help people play their romance love songs using a WAV file without the game music playing over the top of it.

     

    NOTE: If you are planning to use an ACM for your music none of this applies.

     

    There have been problems in the past with adding music to mods. While the game's ACM music format is smaller than WAV, it is much larger than MP3 or OGG files, leading to longer downloads. The main problem is that game music will play over the love song if it is not switched off somehow. The current method of switching off the game music for the duration is to add a blank entry to the songlist, using WeiDU's ADD_MUSIC, facility to make use of the blank music file that BioWare kindly provided. Unfortunately there is a problem with this method in that the songlist has limited space, (a total of 100 song slots of which 84 are already filled by the game) and several mods adding blank music entries is not a good thing.

     

    Help is at hand, there is an entry is the songlist that is not currently used by the game or other mods. If you look at row 0 of songlist.2da you will see **** listed as the resource, if we replace this with a mus file that plays blank.acm we can have a universal entry for a blank song.

     

    Here's what you need to do. First you need a mus file that plays blank.acm here is an example:

    Blank

    1

    A @TAG END

    It doesn't have to be called j#blank.mus, this is just an example. Second we need to copy it to the music folder and then add it to the songlist, here it the tp2 code to do this:

    COPY ~mymod/j#blank.mus~ ~music~

    COPY_EXISTING ~songlist.2da~ ~override~

    SET_2DA_ENTRY 0 2 3 ~J#BLANK.MUS~

    Now to play your love song without the game music running over it simply use PlaySong(0) before using PlaySound("LOVESONG"). Here is an example I lifted (and then altered) from Kelsey:

    IF

      PartyRested()

      Global("J#KelseyMatch","GLOBAL",1)

      See(Player1)

      CombatCounter(0)

      Global("J#LoveTalk","LOCALS",25)

      !Global("Chapter","GLOBAL",5)

    THEN

      RESPONSE #100

        PlaySong(0)

        MoveViewObject("J#Kelsey",INSTANT)

        IncrementGlobal("J#LoveTalk","LOCALS",1)

        PlaySound("FWKSong")

        RealSetGlobalTimer("J#KelseyRomance","GLOBAL",1)

        Interact(Player1)

    END

    To finish, a bit of basic sound file stuff. The best way to package your sounds is as 22 Khz mono OGG files, quality level 4 is usually sufficient for both voice and music. To install them use oggdec to covert them to WAV files. This is quite simple, here is a quick overview:

    COPY ~mymod/audio~ ~override~

    AT_INTERACTIVE_EXIT ~mymod/install-audio.bat~

    AT_INTERACTIVE_UNINSTALL ~mymod/uninstall-audio.bat~

    @echo off

    mymod\oggdec override\mymod*.ogg

    del mymod*.ogg

    @echo off

    del override\mymod*.wav

    In this example oggdec is kept in the MyMod folder and the ogg files are held in the MyMod/audio folder.

     

    Useful Links

    For encoding: http://winlame.sourceforge.net/

    For oggdec: http://www.rarewares.org/ogg.html

  9. As well as changing the spell type to innate you should also set the spell level to 1 (WRITE_LONG 0x34 1). Otherwise if you try to cast it via script you will crash the game. This is the reason for the Scriptable Spells mod, several vanilla innates also have this issue.

     

    Why are you changing the spell icon bam? It makes no difference in-game, the icon from the ability is used. The spell icon is only used in the spell book/scroll. Another anal retentiveness example? :D

     

    I really should clean up this thread.

×
×
  • Create New...