1
OXCE Bugs FIXED / [FIXED] Y-Script fails to parse hexadecimal numbers since 8.0.4
« on: February 11, 2025, 04:16:09 pm »
Since 8.0.4 y-script refuses to parse hexadecimal numbers with 'A'-'F' in them. Hex numbers with just decimal digits are fine.
logs:
Code: [Select]
extended:
scripts:
newTurnItem:
- new: INT_0x111
offset: 10
code: |
debug_log "test 0x111" 0x111;
return;
- new: INT_0x1A
offset: 10
code: |
debug_log "test 0x1A" 0x1A;
return;
- new: INT_0xAA
offset: 10
code: |
debug_log "test 0xAA" 0xAA;
return;
- new: INT_0xA000
offset: 10
code: |
debug_log "test 0xA000" 0xA000;
return;
- new: INT__0x1a
offset: 10
code: |
debug_log "test 0x1a" 0x1a;
return;
logs:
Code: [Select]
[11-02-2025_17-08-14] [ERROR] Error in parsing script 'newTurnItem' for 'Global:INT_0x1A': invalid argument '0x1A' in line: 'debug_log "test 0x1A" 0x1A;' (at 1)
[11-02-2025_17-08-14] [ERROR] for node with code at line 42 in D:/games/_openxcom-extended/user/mods/__int-literals-test/int-literals-test.rul
[11-02-2025_17-08-14] [ERROR]
[11-02-2025_17-08-14] [ERROR] Error in parsing script 'newTurnItem' for 'Global:INT_0xAA': invalid argument '0xA' in line: 'debug_log "test 0xAA" 0xAA;' (at 1)
[11-02-2025_17-08-14] [ERROR] for node with code at line 48 in D:/games/_openxcom-extended/user/mods/__int-literals-test/int-literals-test.rul
[11-02-2025_17-08-14] [ERROR]
[11-02-2025_17-08-14] [ERROR] Error in parsing script 'newTurnItem' for 'Global:INT_0xA000': invalid argument '0xA' in line: 'debug_log "test 0xA000" 0xA000;' (at 1)
[11-02-2025_17-08-14] [ERROR] for node with code at line 54 in D:/games/_openxcom-extended/user/mods/__int-literals-test/int-literals-test.rul
[11-02-2025_17-08-14] [ERROR]
[11-02-2025_17-08-14] [ERROR] Error in parsing script 'newTurnItem' for 'Global:INT__0x1a': invalid argument '0x1a' in line: 'debug_log "test 0x1a" 0x1a;' (at 1)
[11-02-2025_17-08-14] [ERROR] for node with code at line 60 in D:/games/_openxcom-extended/user/mods/__int-literals-test/int-literals-test.rul