Howdy, Stranger!

It looks like you're new here. If you want to get involved, click one of these buttons!

Categories

We need your feedback on the new forum text editor switch.
Neverwinter Nights: Enhanced Edition has been released! Visit nwn.beamdog.com to make an order. NWN:EE FAQ is available.
Soundtracks for BG:EE, SoD, BG2:EE, IWD:EE, PST:EE are now available in the Beamdog store.
Attention, new and old users! Please read the new rules of conduct for the forums, and we hope you enjoy your stay!

New Update Breaks DMFI Scripts With /" Escapes

WhitegraveWhitegrave Member Posts: 35
Below is an image of the error now caused by the ability for quotations be be escaped in NWScript.

https://imgur.com/a/axGytn8

Anyone know how I can fix this?

Comments

  • ShadowMShadowM Member Posts: 366
    edited June 1
    comment it out , how often do you use Leetspeak ? or extend the " " out so " /\/\"; or replace them with other symbol/number/letter.

  • WhitegraveWhitegrave Member Posts: 35
    For anyone who stumbles across this with the same issue, you can correct it as so:

    case 12: return GetStringLeft("/\/\ ", 4); case 38: return GetStringLeft("/\/\ ", 4);

  • dTddTd Member Posts: 162
    I tried this with some horse naming scripts, no joy. I also added it to a module heartbeat to log a \ to the serverlog, no joy. Workaround for me was to use an external compiler.

  • nivniv Member, Moderator, Developer Posts: 304
    We're aware of this and fixing it. Unfortunately, DMFI wasn't a case we tested against (booooohhh). Escape rules are rather particular, so something like "\" will never work correctly if you want to be able to escape ". It will likely have to be "\\" in a upcoming patch, to be consistent with every other language out there. We'll advise in future patch notes at the very least.

    IMO, for the added functionality this allows, a oneliner script change is bearable, even if it breaks compatibility. It's just not possible to have both.

Sign In or Register to comment.