neverwinter.nim
neverwinter.nim copied to clipboard
CLI tools and nim library used in Neverwinter Nights: Enhanced Edition development
I tried installing this both on Windows and Linux through nimble and I get the same error about sqlite. Here's a copy of the verbose response on Linux ```bash $...
I don't know why this was disabled originally. Needs more testing before merging, leaving here as a WIP so others can test too. ## Testing Test suite, plus disassembly. More...
Just code cleanup, we have a lot of cases such as: ```c++ // Add the case statement to the list. if (m_nSwitchLabelNumber >= m_nSwitchLabelArraySize) { int32_t *pNewIntArray = new int32_t[m_nSwitchLabelArraySize...
```c++ class CScriptParseTreeNode { ... CExoString *m_psStringData; ... CExoString *m_psTypeName; ... ``` There's really no need for these to be pointers that are then nullchecked and realloced everywhere. Just embed...
As done with `EmitModifyStackPointer()`. There's about 90 such cases left, and some 40 different opcodes. Stuff like add/sub/mul/div/etc can probably all go into the same function though. Whatever ends up...
Sample script ```nss void main() { if (1) { string s = "AAA"; } } ``` gets compiled down to ``` 0 JSR, 8 6 RET 8 CONSTANT, TYPE_INTEGER, 1...
```nwscript void main() { int a = -1; int b = +1; // ERROR: UNKNOWN STATE IN COMPILER int c = +a; // ERROR: UNKNOWN STATE IN COMPILER } ```...
Currently, the for loop syntax is ``` for (expression_opt; expression_opt; expression_opt) statement ``` , but it should be ``` for (statement; expression_opt; expression_opt) statement ``` Specifically, this should be possible...