Commit Graph

47 Commits

Author SHA1 Message Date
Martin Fournier
855a4e622d Add Electron preload script to allow communication
Adds a channel to communicate between the main process & the renderer
process, so that the game can easily ship data back to the main process.

It uses the Electron contextBridge & ipcRenderer/ipcMain.

Connects those events to various save functions. Adds triggered events
on game save, game load, and imported game. Adds way for the Electron
app to ask for certain actions or data.

Hook handlers to disable automatic restore

Allows to temporarily disable restore when the game just did an import
or deleted a save game. Prevents looping screens.
2022-01-26 03:56:19 -05:00
Martin Fournier
974344545d Move import save functionality into SaveObject
Adds a lot of metadata to be able to easily compare the new save to the
current player.

- Adds lastSaved & identifier to the PlayerObject
- Includes a hash method used to generate an identifier
2022-01-26 03:42:52 -05:00
Martin Fournier
8a2cad6c4a Reset styles for html changelogs in getUpdateText
Adds an optional sxProps to the DialogBox component.
2022-01-25 10:20:36 -05:00
Olivier Gagnon
07fe3c1906 update scam msg 2022-01-20 23:53:33 -05:00
Olivier Gagnon
a3c599e6c5 update to prevent scam 2022-01-20 23:43:19 -05:00
nickofolas
ab841f7530 Refactor for ... in loops 2022-01-15 18:45:03 -06:00
Martin Fournier
b22eb58aba Add option to exclude running scripts from save 2022-01-11 16:48:00 -05:00
Martin Fournier
2220286062 Fix sleeves brachiblades aug with save migration 2022-01-09 05:57:50 -05:00
Martin Fournier
3562671772 Add SaveTimestamp to saveString, used in import 2022-01-07 09:02:35 -05:00
Martin Fournier
46fe8cc94c Change SuppressSaveToast to only work on auto-save
Before this, this setting also suppressed the toast for the manual clicks.
2022-01-05 14:56:28 -05:00
Olivier Gagnon
d0214c1fed fix some weird eval 2022-01-02 12:41:54 -05:00
Olivier Gagnon
5dc9ac040a toast time config 2021-12-20 13:29:04 -05:00
Martin Fournier
733f04c343 Add an option to suppress the 'Saved Game' toast 2021-12-18 08:01:15 -05:00
Olivier Gagnon
ed821617c0 save files are now chronologically named 2021-12-08 18:27:57 -05:00
Olivier Gagnon
632de50a73 convert BN13 to a more conventional one. 2021-11-18 15:38:19 -05:00
Olivier Gagnon
c69eb34341 v1.0.1 2021-11-17 19:56:17 -05:00
Olivier Gagnon
56ddcd9a45 more work on bn13 2021-11-13 22:44:17 -05:00
Olivier Gagnon
3112dc60c0 few more bugfixes 2021-11-11 23:28:08 -05:00
Olivier Gagnon
9d435bbe47 fix corp not loading 2021-11-11 22:43:40 -05:00
Olivier Gagnon
9799d2f33b dont run the migration every time 2021-11-10 12:36:15 -05:00
Olivier Gagnon
9fe817daf2 fix backup_ folder not working 2021-11-10 12:34:56 -05:00
Olivier Gagnon
7cc2a1b49a fix mc 2021-11-09 23:57:44 -05:00
Olivier Gagnon
57cec546f0 some documentation 2021-11-09 23:46:22 -05:00
Olivier Gagnon
c87e9bdf84 v1.0.0 changes 2021-11-09 23:42:36 -05:00
Olivier Gagnon
d0eb8aaab9 added v1.0.0 cutover msg 2021-11-08 09:27:11 -05:00
Olivier Gagnon
88b4a7d862 bugfix 2021-11-05 17:12:52 -04:00
Olivier Gagnon
0bee743b47 v1.0.0 migration guide 2021-11-02 22:49:46 -04:00
Olivier Gagnon
b2bf3fc21f v1 api breaks 2021-11-02 22:11:22 -04:00
Olivier Gagnon
8f097ebb32 v0.58.0 2021-10-27 15:16:16 -04:00
Olivier Gagnon
eb846c1318 merge dev 2021-10-14 02:12:15 -04:00
Olivier Gagnon
e245c2d3a7 fixed a few things 2021-10-14 02:07:05 -04:00
Olivier Gagnon
3f1d4875e7 Added toast function 2021-10-13 17:25:58 -04:00
Olivier Gagnon
e436d7f3a0 up to date omg 2021-10-13 02:27:55 -04:00
Olivier Gagnon
6543e73f6f Fix blade corp gang equal 0 2021-10-12 19:23:36 -04:00
Olivier Gagnon
87c63cde59 merge v0.56.0 2021-10-12 01:35:30 -04:00
Olivier Gagnon
83137a2364 v0.56.0 2021-10-12 00:29:16 -04:00
Olivier Gagnon
8d7f0488f8 merge dev 2021-10-07 17:58:32 -04:00
Olivier Gagnon
7d0536a4d2 finish convert to hostname 2021-10-07 17:55:49 -04:00
Olivier Gagnon
a7dfb1a537 more convertion from ip to hostname 2021-10-07 16:56:01 -04:00
Olivier Gagnon
be29481689 unexport AllServers 2021-10-07 16:04:04 -04:00
Olivier Gagnon
c5e29dafc4 fix mc 2021-10-04 22:31:07 -04:00
Olivier Gagnon
c47a5bc8cc added grow, weaken, and time compression 2021-10-04 19:58:34 -04:00
Olivier Gagnon
793d9b34ce update BN13 for new UI 2021-09-25 17:21:50 -04:00
Olivier Gagnon
06f716c0fa moved a bunch of files 2021-09-25 14:42:57 -04:00
Olivier Gagnon
97624395c1 convert game saved to snackbar, index.html is nearly empty now 2021-09-25 14:10:32 -04:00
Olivier Gagnon
b0f20c8c8f lint 2021-09-25 01:26:03 -04:00
Olivier Gagnon
a32b8eabe3 SaveObject in ts 2021-09-24 18:40:17 -04:00