saitotech / saito-lite Goto Github PK
View Code? Open in Web Editor NEWA cross-platform javascript saito implementation
Home Page: https://saito.io
A cross-platform javascript saito implementation
Home Page: https://saito.io
Take a look at the log. First, USSR triggers Decolonization and places 1 each in Somalia, Nigeria, Burma and Indonesia. On USSR's following AR, They get to place inf in any African or SE Asian country even if there's no adjacency.
In this case I played Warsaw Pact for 3 ops and placed 1 each in Thailand, Zaire and SE African States.
add more info about network in logs
Quoting Duke:
when having another window open on the arcade, same browser/wallet (was doing it for chat)
it desyncs games in a weird way, as in, you can play normally, but if you refresh after a certain point, it takes you back to the start of the game, or some arbitrary checkpoint of sorts
console looks normal on the side playing the game, but it looks like this on the one idling at the arcade
Should be noted that since chat doesn't work in-game, it's necessary to open the arcade in another window or tab, which causes games to stop functioning correctly in case of the latter.
Chat seems to work fine on the arcade but it doesn't show up at all when playing games.
Tried to cancel a game against Telechris but couldn't. Same happens to him.
This is what the console looks like rn:
Also uploaded the whole console so you can take a look at it if you want to:
WbConsole.txt
Credit to the great JAN for this find. Korean War's code only counts the modifiers from Japan and Taiwan, thus making it possible for NK to win the war even if USA controls the 3 adjacent countries.
Added identicons and cleaned up UI for visibility ad niceness.
Title. None of the VP counters work. Hovering the mouse over them doesn't show you the VPs
npm install
npm WARN deprecated [email protected]: This package is no longer supported. It's now a built-in Node module. If you've depended on crypto, you should switch to the one that's built-in.
npm WARN deprecated [email protected]: core-js@<3 is no longer maintained and not recommended for usage due to the number of issues. Please, upgrade your dependencies to the actual version of core-js@3.
Add function to send legacy email.
the newGame function sets the game id to a random number:
newGame(game_id = null) {
if (game_id == null) { game_id = Math.random().toString(); }
Bur the save function rejects this:
if (this.game.id.length < 25) {
console.log("Apparent Error: " + this.game.id);
process.exit();
}
in game template
Starting a TS match sends you to this url: http://saito.io/twilight_struggle - which is blank.
The good ol' Ortega has no option to skip the coup attempt, which can be taken advantage of by the US if CMC is active, thus leading to USSR suicide.
Various issue occur when attempting to sync blocks:
Not going to do a super thorough job documenting as there are many errors trying to sync to nodes. These should be obvious trying to run two nodes in tandem.
On node tying to sync:
(node:29602) UnhandledPromiseRejectionWarning: ReferenceError: tmperr is not defined
at Peer.sendRequestWithCallback (/home/richardp/projects/saitotoo/saito-lite/lib/saito/peer.js:283:16)
at Network.sendRequestWithCallback (/home/richardp/projects/saitotoo/saito-lite/lib/saito/network.js:283:21)
at StorageCore.loadTransactionsByKeys (/home/richardp/projects/saitotoo/saito-lite/lib/saito/storage.js:119:22)
Node being synced from:
edge case with unordered blocks...
block is not on the longest chain...
ERROR 620394: block does not exist on disk that should. terminating
comment what this mapping is
https://github.com/SaitoTech/saito-lite/blob/master/lib/saito/blockchain.js#L868
Clicking on the Backup Wallet button does nothing. Shouldn't it download a .JSON file?
The reset your account button in the new arcade currently resets your account immediately as soon as you press it and it could pose a danger to people that have yet to backup their wallets.
Adding an "Are you sure you want to reset your account" prompt should be good enough to fix this!
Proposing adding a delete script to deploy - wanting to verify what we should delete on chain reset...
rm -f ./data/explorer.sq3
is all I am seeing now.
Open four browsers with clean wallets with cash.
In one start any game.
Wait till the invitation is open in all browsers.
Accept the invitation in all non-inviting browsers.
All can join game - irrespective of number of players needed.
(This is only possible for a short time - as when the game has sufficient players and initialisation is started, the invitation is cleared correctly from the browser.)
Bugtesting game against myself. Couped Argentina as the US and the game got stuck at this screen:
The other player sees this tho. The OK button works fine and the game can be continued on his side so it must be an interface bug.
Took a look at the console and deleted this element:
Deleting it fixed the issue, game went back to normal and I kept on playing:
Clear browser and open the AppStore. Select a module to install and click "install". The server will not successfully compile the bundle.
Something about file paths being incorrect, etc.
Note -- correct design should reflect the possibility that multiple users will attempt to create bundles at the same time. All modules should be unzipped into a temporary folder specific to the bundle being compiled -- not a shared folder "mods".
Tucho's here, let's kill some bugs.
Clicking on http://saito.io/chat/ sends you to a blank page where you can't do anything
Simple yet very important bug. US gets the bonus from Vietnam Revolts when playing China.
Take a look:
USSR headlines Vietnam Revolts and then USA plays the China card for 6 ops in Thailand, getting both China's and VR's bonuses.
This only affects China and doesn't apply to the rest of the cards:
Played all of East European Unrest's ops into SE Asia and didn't get the bonus
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.