Bobert13
Prince
- Joined
- Feb 25, 2013
- Messages
- 346
Does anyone out there have any experience with implementing an arbitrary-precision math library in Lua? I'd like to try this approach at solving floating point inconsistency issues resulting in desynchronized maps when using certain user-created mapscripts in multiplayer.
I've no experience with tarballs and makefiles and all that jazz and I can't for the life of me figure out how to build the library and make it available in the mapscript I'm working on. I have MinGW installed under CodeBlocks but was able to compile a lmapm.dll through the following command line:
I had to place this .dll in the root Civ V installation directory and the following line did recognize it, but threw a "%1 is not a valid Win 32 application" error:
[rhetorical rant]Why? WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY? Seriously, why do developers distribute software in such a, mind-numbingly inconvenient, insanely frustrating, format?[/rhetorical rant]
I've no experience with tarballs and makefiles and all that jazz and I can't for the life of me figure out how to build the library and make it available in the mapscript I'm working on. I have MinGW installed under CodeBlocks but was able to compile a lmapm.dll through the following command line:
Code:
MinGW32-gcc.exe -c C:\users\*redacted*\downloads\mapm\lmapm.c -o c:\users\*redacted*\downloads\mapm\lmapm.dll
I had to place this .dll in the root Civ V installation directory and the following line did recognize it, but threw a "%1 is not a valid Win 32 application" error:
Code:
bc = require"lmapm"
[rhetorical rant]Why? WHYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYYY? Seriously, why do developers distribute software in such a, mind-numbingly inconvenient, insanely frustrating, format?[/rhetorical rant]