Skip to content

Failure to create a file during patch (inline patch) #37

@mleduque

Description

@mleduque

Hi Mickaël!
Sorry to barge in on this issue, but I can't figure out why I'm getting this same error for my config. Could you take a look please?

- name: tressets_instant_trap_spells
  components:
    - 0 # Install files into override
  location:
    http: https://forums.beamdog.com/uploads/editor/hz/nx6s3cxlbhmz.zip
    rename: Instant_Trap_Spells_Tresset_20230403.zip
    layout:
      strip_leading: 0
      layout_type: single_dir
    precopy:
      command: sh
      args: [ "-c", "mkdir tressets_instant_trap_spells && mv *.PRO tressets_instant_trap_spells/" ]
    patch:
      inline: |
        --- /dev/null
        +++ tressets_instant_trap_spells.tp2
        @@ -0,0 +1,11 @@
        +BACKUP ~weidu_external/backup/tressets_instant_trap_spells~
        +AUTHOR ~Tresset~
        +VERSION ~0.1~
        +LANGUAGE ~english~
        +BEGIN ~Install files into override~ DESIGNATED 0
        +  COPY_EXISTING ~DFIREBL.PRO~ ~override/DFIREBL.PRO~
        +  COPY_EXISTING ~ICEGLYP.PRO~ ~override/ICEGLYP.PRO~
        +  COPY_EXISTING ~TRAPGLYP.PRO~ ~override/TRAPGLYP.PRO~
        +  COPY_EXISTING ~TRAPSKUL.PRO~ ~override/TRAPSKUL.PRO~
        +  COPY_EXISTING ~TSKULLNP.PRO~ ~override/TSKULLNP.PRO~
        +END

Error: Attempt to patch file not in game directory
"/dev/null" not in "/mnt/lakshmi/bg/BG2EE_original"

Originally posted by @YTheon in #3

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions