Heikki Aitakangas
521889b027
Fix Steam version trying to record every achievement player has every second
2022-01-14 23:40:59 +02:00
Martin Fournier
8192ab09ef
Handle greenworks.init() errors gracefully
...
Since we are only using it to track achievements, we can still launch
the game if it fails to initialize, we just have to not run the
achievements interval.
Adds a dialog that tells the user to fix the issue & restart the game to
enable achievements.
2022-01-14 06:06:59 -05:00
Martin Fournier
63413a646a
Prevent external files to be opened by electron
2022-01-11 11:04:58 -05:00
Olivier Gagnon
ab15481cd6
try to fix the game hanging
2022-01-09 14:11:33 -05:00
hydroflame
060224182f
Merge pull request #2365 from MartinFournier/fix/achievements-timer
...
Include electron-log in achievements file
2022-01-06 11:26:27 -05:00
Martin Fournier
674d8a3f06
Include electron-log in achievements file
...
When the timer throws an exception, it tried to log the error but log
was not defined.
2022-01-05 14:17:54 -05:00
Martin Fournier
1d89dd9d41
Add 'host' config for electron api server
...
Only tweakable through the config, this can allow external
access to the server (ie - if running through a VM or WSL)
2022-01-05 14:15:40 -05:00
Martin Fournier
0b88922ab7
Add zoom to electron app
2022-01-04 21:20:42 -05:00
Martin Fournier
de8e5ef441
Fix unresponsive handler being attached many times
2022-01-04 18:16:07 -05:00
Martin Fournier
6d8df6744e
Add toasts & terminal funcs to electron app
...
Attach functions to the window object so that the wrapper can executeJs
to display messages to the player
2022-01-03 10:32:01 -05:00
Martin Fournier
bdef14b029
Add API server information menu item
2022-01-03 10:29:56 -05:00
hydroflame
a2d75ae10c
Merge branch 'dev' into feature/alert-close-browser
2022-01-02 11:44:47 -05:00
Martin Fournier
b402cc7f6e
Add warning on game close if user launched browser
2021-12-31 04:22:04 -05:00
Martin Fournier
bc0791840f
Add launch option to directly export save game
...
If --export-save is set, it will not launch the index.html and instead
launch a blank page. It then reads from the IndexedDb to fetch the
bitburnerSave value and prompts a save file dialog.
2021-12-30 11:51:15 -05:00
Martin Fournier
bf1a2b56ba
Use global references for electron event handlers
...
I messed up the handlers reference in the last commit so the events
were not properly attached. Changed it to use global variables for now.
2021-12-30 09:12:55 -05:00
Martin Fournier
a098289856
Refactor electron app into multiple files
...
Gracefully handle http-server start error & cleanup logs
2021-12-29 08:46:56 -05:00
Martin Fournier
5d7d72a3e2
Add authorization token to file system api
2021-12-28 15:37:22 -05:00
Martin Fournier
ea03889082
Crash render process when javascript won't execute
...
Prevents the renderer process staying up when the user scripts are
waiting for an unresolved promise.
2021-12-23 07:48:01 -05:00
hydroflame
bfdfee2a68
Merge branch 'dev' into mychanges
2021-12-22 16:16:24 -05:00
Olivier Gagnon
d2d6c33fc8
mychanges
2021-12-22 16:15:56 -05:00
Martin Fournier
6363c704db
Handle electron process uncaught exceptions
...
Handling the exceptions and closing the app seem to properly kill the
dangling processes that appear at launch in Windows 10. Without this, if
an exception is throw before the window is active (ie: no
steamapp_id.txt file), there will be remaining processes.
Added electron-log to additionally log to a text file.
2021-12-22 15:28:55 -05:00
Martin Fournier
9ce8bdd29b
Add dialog when app is unresponsive to reload
...
Checks the electron event 'unresponsive' and triggers a reload / cancel
dialog. Allows all scripts to be killed, checked by default.
Also adds a warning to the terminal when noScript has been executed.
2021-12-22 15:14:03 -05:00
Olivier Gagnon
b2b682fa04
fix editor not loading files
2021-12-21 13:44:18 -05:00
Martin Fournier
3b99da8474
Lint current problems & fix ignore paths
2021-12-19 13:17:44 -05:00
Olivier Gagnon
21191e0b8d
re-add noscripts
2021-12-18 10:44:22 -05:00
Olivier Gagnon
1368e468bb
Merge branch 'dev' of github.com:danielyxie/bitburner into dev
2021-12-18 10:31:59 -05:00
Olivier Gagnon
5bb304caff
rm console log
2021-12-17 16:33:55 -05:00
hydroflame
b122cebc98
Merge pull request #1972 from MartinFournier/feature/electron-background-color
...
Fix #1902 : Set default electron color to black
2021-12-17 12:55:32 -05:00
hydroflame
c6843b231a
Merge pull request #1962 from MartinFournier/feature/exit-process
...
Attempt to fix processes that stay up after closing app
2021-12-17 12:13:50 -05:00
hydroflame
196086cc13
Merge branch 'dev' into feature/exit-process
2021-12-17 11:49:58 -05:00
Olivier Gagnon
36fd3c5d68
try kill again
2021-12-17 11:38:00 -05:00
Martin Fournier
6d94ee0c2c
Fix #1902 : Set default electron color to black
...
If loading of the index.html is slow, there should be no white
background anymore.
2021-12-17 05:52:31 -05:00
Olivier Gagnon
6c5842d2e7
noscripts backup
2021-12-17 01:33:35 -05:00
Olivier Gagnon
795df0ed69
only exit?
2021-12-16 23:13:05 -05:00
Martin Fournier
63f7775804
Remove process handler when doing a hard reload
2021-12-16 20:21:25 -05:00
Olivier Gagnon
99f3566e52
bugfix
2021-12-16 20:09:19 -05:00
Martin Fournier
dc21a5b87b
Attempt to fix processes that stay up after closing app
2021-12-16 18:26:20 -05:00
Olivier Gagnon
1cca819f87
disable browser throttling
2021-12-16 15:48:40 -05:00
Olivier Gagnon
e3a0caf50f
fix killall steam not working
2021-12-14 22:34:09 -05:00
Olivier Gagnon
de9fb24156
Fix scripts dying of weird causes.
2021-12-13 22:26:22 -05:00
Olivier Gagnon
cdeabfec0e
Steam enable debug
2021-12-12 13:25:28 -05:00
Olivier Gagnon
eb77bf352c
fullscreen for steam
2021-12-12 12:58:57 -05:00
Olivier Gagnon
c845fb4203
reload n kill on steam
2021-12-12 12:48:42 -05:00
Olivier Gagnon
3ed0e7c9cb
more electron files
2021-12-03 10:38:21 -05:00
Olivier Gagnon
773f50ba67
doc n steam copypaste
2021-12-02 18:42:30 -05:00
Olivier Gagnon
ffd1bd3ab0
build theit pr
2021-12-02 12:43:00 -05:00
Olivier Gagnon
7ee5d8d71a
more achievements
2021-11-28 23:51:01 -05:00
Olivier Gagnon
e262c9bb38
achievements
2021-11-27 15:07:25 -05:00
Olivier Gagnon
5d37eecdd6
electron debug flag
2021-11-05 00:19:41 -04:00
Your Name
74739af031
ok
2021-11-05 00:14:11 -04:00
Olivier Gagnon
c5fb5155f3
work on making sure all the functions are accounted for
2021-11-03 18:16:10 -04:00
Olivier Gagnon
b0f20c8c8f
lint
2021-09-25 01:26:03 -04:00
Olivier Gagnon
cdd9c174e7
electron always dev tools
2021-09-23 13:15:27 -04:00
Olivier Gagnon
c3ac16f330
electron open pages in external browser
2021-09-21 13:32:06 -04:00
Olivier Gagnon
c564de40b3
add f5f8 to electron
2021-09-21 13:29:16 -04:00
Olivier Gagnon
8b7723338b
change electron so it works.
2021-09-20 22:30:11 -04:00
Olivier Gagnon
ac80be1b40
electron build
2021-09-16 18:10:27 -04:00