Editor for the game niamondo.
Add /ui to the service URL to get the editor !
It covers following functionalities:
backup and restore of sqlite DB to/from our network drive.card editorproduction card editorcountry cards generatorgame support cards generatorAllows to backup and restore the SQLite DB to/from our network drive which should be mounted to mount point /nfs in the container.
So when changes are made by the card editor or production card editor they can easily be copied to our network drive (Western Digital).
Note that by using the following make command on my build machine (macbook) they can be copied from our network drive to my build machine for checkin in github and building the images with new sqlite DB.
make local_db
Allows to create new cards and edit existing cards of the deck.
It is possible to paste a clipboard image in the File Upload box but this only works on Chrome with https !
Allows to create and edit production cards based on the statistics downloaded from the sites:
When clicking on CHECK button it might report code_mismatches like
{
"code_mismatch_entity": true,
"update_needed": false,
"update_possible": true,
"code_mismatches": [
{
"Entity": "Czechia",
"Code": "CZE",
"Year": 2022,
"total": 115140,
"percentage": 1,
"code_matches_entity": false
}
],
"cannot_be_updated": [
null
]
}
So this means that entity name Czechia is not an existing country name (the proper name is Czech Republic), in this case it has specified Code CZE which is indeed the proper country code.
By clicking on UPDATE PERCENTAGES it will update the percentages using the proper country name.
/countries to the domain name.Destination = save as PDF.scaling to 100% (don't use option "photo" with borderless printing as then 3 mm at the left and 3mm at the top will be missing) !Allows to generate a html page that can be printed for supporting the game play. Following html pages can be generated this way:
/income_total to URL : prints 6 cards on a page that allows the player to keep track of his current total income of all country cards./production_tariff_card to URL : prints 6 cards on a page summarizing the rules for a production card./end_score_cards to URL : prints 6 cards on a page that helps calculating the end score for all players.So you can print those html pages to PDF and then print these PDFs on your printer. When printing the PDF on your printer:
countries ~> | $ | (
$capital_coord := (capital_location~>$eval()).geometry.coordinates; /* [60.91640625,-48.89926757812499]; */
$longitude := $capital_coord[0];
$latitude := $capital_coord[1];
{
"capital_direction" : capital_direction=null ? "bottom" : capital_direction,
"capital_coord" : $capital_coord,
"capital_magellan_coord" :
/* latitude part. e.g. "5 N" or "7 S" */
($latitude > 0
? (((($latitude/10)~>$floor())+1)~>$string()) & "N "
: ((((-$latitude/10)~>$floor())+1)~>$string()) & "S " ) &
/* append longitude part (1-36) */
( (((( $longitude < 0 ? $longitude+360 : $longitude)/10)~>$floor())+1)~>$string())
}
) |
TO BE DONE
janvda/node-red-sqlite:4.0.2-22 (not for arm v7 architecture)janvda/node-red-sqlite:3.1.0-18/end_score_cards that helps calculating the end score, #37 for gas, oil and coal show MWh electricity and kg CO2/person, geography tab added, country card stores also map bounds and zoom level, many more changes./income_total and get /production_tariff_card to generate game supporting cards.web page tab for creating production by state statistics + added production by state statistics (33 in total): oil, gas, wind, solar, water power, nuclear, bio fuels, uranium, rare earthsproduction_by_state and populated it already with some data, also displayed production by state information on production card.janvda/node-red-sqlite:3.0.2-16Content type
Image
Digest
sha256:b47fd2e97…
Size
308.4 MB
Last updated
over 1 year ago
docker pull janvda/niamondo-editor