How to import an external library (I want pcre)
Kahenraz
Member Posts: 70
When I work with regular expressions I want them to be pcre (Perl Compatible Regular Expressions) and this requires importing a library; rex_pcre in this case.
The library imports fine with a normal Lua interpreter but trying to add it to UI.MENU causes BG to crash:
Edit:
I just realized that this may be due to my building the library for the wrong version of Lua. Does anyone know what version specifically is used in BG? I had originally compiled for 5.1.
The library imports fine with a normal Lua interpreter but trying to add it to UI.MENU causes BG to crash:
regex = require("rex_pcre")
--------------------------- Error --------------------------- There was an error. A crash report was saved to: C:\Users\Matthew D'Onofrio\Documents\Infinity Engine - Enhanced Edition\crash\dump.2.3.67.3.0008.dmp Please contact support@beamdog.com --------------------------- OK ---------------------------Is it not possible to import external libraries?
Edit:
I just realized that this may be due to my building the library for the wrong version of Lua. Does anyone know what version specifically is used in BG? I had originally compiled for 5.1.
0
Comments
That's too bad. I really, really want my Perl regular expressions to filter item drops.