Jump to content
CamDawg

Toss your semi-useful WeiDU macros here

Recommended Posts

@Ardanis

Could you have a look at the following piece of code? It seems there's a problem with your ADD_SPELL_HEADER/FJ_SPL_ITM_REINDEX....

Spoiler

CREATE    "SPL"    "GTPENAL"
    WRITE_LONG 0x018 (BIT14 | BIT25)  // Castable when Silenced, Ignore Dead/Wild Magic
    WRITE_SHORT 0x01c 4               // Innate ability
    WRITE_LONG 0x034 1                 // Spell level

    LPF ADD_SPELL_HEADER
    INT_VAR
        type = 1         // Melee
        location = 4      // Ability
        target = 1         // Living Actor
        range = 1
        required_level = 1
        projectile = 1       // NONE
    END

 

This is the error:

Spoiler

ERROR: cannot convert hs or %hs% to an integer
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.
Stopping installation because of error.

ERROR Installing [Revised Items ---> BG:EE], rolling back to previous state
[Item_Tweaks/backup/0/UNSETSTR.0] SET_STRING uninstall info not found
Will uninstall   0 files for [ITEM_TWEAKS/ITEM_TWEAKS.TP2] component 0.
Uninstalled      0 files for [ITEM_TWEAKS/ITEM_TWEAKS.TP2] component 0.
Unable to Unlink [Item_Tweaks/backup/0/READLN.0]: Unix.Unix_error(Unix.ENOENT, "unlink", "Item_Tweaks/backup/0/READLN.0")
Unable to Unlink [Item_Tweaks/backup/0/READLN.0.TEXT]: Unix.Unix_error(Unix.ENOENT, "unlink", "Item_Tweaks/backup/0/READLN.0.TEXT")
ERROR: Not_found

 

 

Edited by Luke

Share this post


Link to post

The function checks file's extension to determine its type (spl or itm), and CREATE action doesn't seem to provide one.This works

CREATE    "SPL"    "GTPENAL"
    WRITE_LONG 0x018 (BIT14 | BIT25)  // Castable when Silenced, Ignore Dead/Wild Magic
    WRITE_SHORT 0x01c 4               // Innate ability
    WRITE_LONG 0x034 1                 // Spell level

COPY_EXISTING "GTPENAL.SPL" override
    LPF ADD_SPELL_HEADER
    INT_VAR
        type = 1         // Melee
        location = 4      // Ability
        target = 1         // Living Actor
        range = 1
        required_level = 1
        projectile = 1       // NONE
    END

 

Share this post


Link to post
Guest
You are commenting as a guest. If you have an account, please sign in.
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.


×