Skip to content

Instantly share code, notes, and snippets.

<script src="https://cdn.jsdelivr.net/webtorrent/latest/webtorrent.min.js"></script>
<script>
var client = new WebTorrent()
var xhttp;
if (window.XMLHttpRequest) {
xhttp = new XMLHttpRequest();
} else {
// code for IE6, IE5
xhttp = new ActiveXObject("Microsoft.XMLHTTP");
}
'use strict';
module.exports = {
load: function (request, reply) {
const template = require('../template.js')
const WebTorrent = require('webtorrent-hybrid')
const fs = require('fs')
const sqlite3 = require('sqlite3').verbose()
var client = new WebTorrent()
var file = 'test.db'
magnet:?xt=urn:btih:c3ac6be00f67c88118c71e4971d12c793b99b954&dn=LtUxcQ1.jpg&tr=udp%3A%2F%2Fexodus.desync.com%3A6969&tr=udp%3A%2F%2Ftracker.coppersurfer.tk%3A6969&tr=udp%3A%2F%2Ftracker.internetwarriors.net%3A1337&tr=udp%3A%2F%2Ftracker.leechers-paradise.org%3A6969&tr=udp%3A%2F%2Ftracker.openbittorrent.com%3A80&tr=wss%3A%2F%2Ftracker.btorrent.xyz&tr=wss%3A%2F%2Ftracker.fastcast.nz&tr=wss%3A%2F%2Ftracker.openwebtorrent.com&tr=wss%3A%2F%2Ftracker.webtorrent.io
var download = request.payload
console.log('infoHash of torrent to download: ' + download)
var opts = {
path: './storage/' + download + '/',
announce: ['ws://localhost:8080']
}
client.add(download, opts, function (torrent) {
console.log('added torrent')
torrent.files.forEach(function (file) {
console.log('Started saving ' + file.name)
@Tercus
Tercus / Bannerlord.md
Last active April 27, 2020 12:04
Bannerlord linux

Disclaimer and Thank-yous

This guide is pieced together with information collected in this very long github issue. There is no guarantee for this to make Bannerlord work on your particular system, because one thing the github issue showed was that hardware and software configurations can have a large effect on the stability of the game. You should also be prepared for crashes, even when the game seems to be running fine. Make sure to save frequently.

This guide was made possible by all the people in the github issue that tested things out and reported back. I would also like to thank VictorRogers, YellowApple, Metal079, allquixotic, lboklin, ptkato for their great suggestions and corrections and all the others in helping getting Bannerlord to work!

Curr

Tests

Plans

I tried testing out some of the suggestions we've seen so far. I will try some more combinations tomorrow, which might include using an fsync enabled kernel. I will also try to extend testing on some of the more promising solutions, such as changing graphics settings without crashing and general gameplay stability. I will update this post, but it can also be viewed in this gist.

The setup

My current way of testing is incredibly basic. I create a new prefix and run the game once to get steams basic setup done. Then I add the components I want to test. If the new test includes the previously tested components, I skip the creation of a new prefix (no new prefix when I changed from vcrun2019 to vcrun20190 + dotnet472). I then start the game, start a new campaign, run around in the training area, leave it, run around in the world-map and lastly save the game once. I will extend the testing for the most promising solution