The cheat option "Unlock All Focus Schools" is not working. #2730
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the OpenWF WebUI, the cheat option "Unlock All focus Schools" failed to work, with the following error message:
2025-08-31T20:27:37:442 [0.1.0] error: ValidationError: Inventory validation failed: FocusXP.AP_TACTIC: Cast to Number failed for value "NaN" (type number) at path "AP_TACTIC" while processing /api/focus.php request
at Document.invalidate (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\document.js:3358:32)
at Subdocument.invalidate (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\types\subdocument.js:229:12)
at SingleNested.$set (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\document.js:1480:12)
at SingleNested.set [as AP_TACTIC] (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\helpers\document\compile.js:205:19)
at focusController (C:\Users\Administrator\SpaceNinjaServer\src\controllers\api\focusController.ts:46:50)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-08-31T20:27:37:444 [0.1.0] http: POST /api/focus.php?accountId=689f4fdef6afc67753eb41fe&nonce=3108496735571240&op=2 500 170.876 ms - -
The issue hasn't been resolved after updating the code. Here are the details:
2025-09-01T18:08:13:478 [0.1.0] error: ValidationError: Inventory validation failed: FocusXP.AP_TACTIC: Cast to Number failed for value "NaN" (type number) at path "AP_TACTIC" while processing /api/focus.php request
at Document.invalidate (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\document.js:3358:32)
at Subdocument.invalidate (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\types\subdocument.js:229:12)
at SingleNested.$set (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\document.js:1480:12)
at SingleNested.set [as AP_TACTIC] (C:\Users\Administrator\SpaceNinjaServer\node_modules\mongoose\lib\helpers\document\compile.js:205:19)
at focusController (C:\Users\Administrator\SpaceNinjaServer\src\controllers\api\focusController.ts:46:51)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-09-01T18:08:13:479 [0.1.0] http: POST /api/focus.php?accountId=689f4fdef6afc67753eb41fe&nonce=130598855440276&op=2 500 5.739 ms - -
Attached server error log:
I wasn't able to reproduce your issue before or after, so it is very likely that your inventory is just corrupted.
I attempted to empty the original database content and deleted the openwf data from the database. I then recreated openwf and established new accounts and roles. However, when clicking "Unlock All Focus Schools," an error still occurs. The error message is as follows:
2025-09-01T19:20:53:535 [0.1.0] error: TypeError: Cannot read properties of undefined (reading 'AP_TACTIC') while processing /api/focus.php request
at focusController (C:\Users\Administrator\SpaceNinjaServer\src\controllers\api\focusController.ts:46:36)
at process.processTicksAndRejections (node:internal/process/task_queues:105:5)
2025-09-01T19:20:53:536 [0.1.0] http: POST /api/focus.php?accountId=68b57d2c405b4dca0e23334d&nonce=5659337620052587&op=2 500 4.707 ms - -