Jump to content

mickabouille

Members
  • Posts

    510
  • Joined

  • Last visited

Posts posted by mickabouille

  1. 2 hours ago, DavidW said:

    As of v35.11, string @3 in spell.tra should just be the complete description of Protection from Fire (i.e. duration 1 turn per level),

    Do you mean it should be the old one (pre-stratagem) or the new one?

     

    EDIT: ah obviously the new one (1 turn/lv is the new one)

  2. There is a somewhat similar issue for use_iwd_protect_from_fire_duration
    (I think) It does

    REPLACE_TEXTUALLY "%duration_text%.*" "%duration_text% %new_duration%"

    But then in french we need to have `duration_text` be a regex

    @3="Dur[^e]e[^:]:"

    I suggest this could instead be


    REPLACE_TEXTUALLY "\(%duration_text%\).*" "\1 %new_duration%"

    Or maybe the `Duration:` prefix could be integrated inside of @4 (new_duration)...

     

    (Sorry for the formatting, the forum citation and code insertion seem broken for me since some time)

  3. Quote

    But I am adding a component: component 95, 'Multiclass Specialists,'

    Was it maybe that 95 used to be something else at some point? This  interacts strangely with Fnp multi shaman component (92) that contains in system_fnp_spontaneous.tpa :

     

    // bonus WIS casting slots____________________________________________________________
    //
    ACTION_IF (MOD_IS_INSTALLED ~tomeandblood.tp2~ ~95~) BEGIN
    LAM semi_wis_slots
    END

     

    This fails because semi_wis_slots doesn't exist (since the split/redispatch of sd mods I think)

    It think this wasn't apparent because there was no TnB 95 anymore?

    (Why two posts? G3 forum appears to do strange things with quotes today... 😕 )

     

    EDIT: and... one more strange forum thing, no idea how to fix this post :O

  4. Ah, I was unable to find why subtled_spell_tweaks from didn't detect faerie fire from SCS : it searched it from spell.ids under the CLERIX_FAERIE-FIRE and.. well it wasn't here and that's why it isn't?

  5. You can add --use-lang en_US (only once is needed) to set the _game_ language in weidu.conf

    Only once is needed but I add it on every call anyway (but then the parameter value shoud not change!) for example

    https://github.com/mleduque/modda/blob/54a299326d44122c16e98bac2d866140c031c38d/src/run_weidu.rs#L52

    setup-stratagems.exe --language 0 --force-install-list 2050 2060 2080 --use-lang en_US
  6. Hi, I think something similar already happened for a previous 35.x and was fixed (maybe with some other tra).

    When trying to install component 2050 "IWD-inspired changes to BG(2) spells" in french, the install fails because @48 from spell.tra is not (yet) translated.

    We will come to it (this failure let us know about those untranslated strings) but I think you said the english fallback was supposed to take place so I report it here.

     

    I single-out 2050 but I suspect many other components below 2000 will have the same issue.

  7. 50 minutes ago, DavidW said:

    special characters that occur in other languages but not in English, that my LUA regexps aren't reliably catching

    Not sure if that helps, but following some tests with regexps in iwdification, weidu (in fact ocaml) regexes are byte-oriented and not "character"-oriented... at least when using utf8.

    So a non-ascii (first 127 characters in all western encodings, and in utf8) match correctly, but any character after that will not because they actually are multiple bytes.

    I had to workaround detecting for example "Inconvénient :" as "Inconv[^n]+nient[^:]*:" (ad-libbing, not sure those are the exact cases)

    (Maybe there was an easier way with a better internal understanding of the regex engine but I got fed up)

×
×
  • Create New...