Versteh ich nicht ganz 😅 warum nicht beim klick nen neuen Thread mit der Methode?Quote:
[Only registered and activated users can see links. Click Here To Register...]
Vielleicht kann mir wer von euch hier helfen.
Maybe someone of you can help me.
Knopfdruck -> CreateThreadQuote:
[Only registered and activated users can see links. Click Here To Register...]
Vielleicht kann mir wer von euch hier helfen.
Maybe someone of you can help me.
Die Frage wird hier alle zwei Seiten gestellt. Nostale Offi wird immer schlechter also wäre die Antwort Nein.Quote:
Nabend, eine Frage lohnt es sich noch Nostale anzufangen oder eher auf nem Privat Server?
const cryptography = require('./modules/cryptography.js');
const db = require('mysql').createConnection({
host: 'localhost', user: 'root', password: '123456', database: 'nostale'
}).connect(function(error) {
if (error) {
console.log('Unable to connect to MySql server.');
}
});
const server = require('net').createServer(function(socket) {
socket.on('data', function(data) {
const loginPacket = cryptography.decryptLoginPacket(data);
console.log(loginPacket.split(' '));
// ...
// db.query(..., function(...) {});
// ...
const loginReply = new Buffer('fail JS\n', 'binary');
socket.write(cryptography.encryptLoginPacket(loginReply));
});
});
console.log('--------------------------------------------------');
console.log('LoginServer2017 ( https://systemx64.com )');
console.log('--------------------------------------------------');
server.listen(4003, '127.0.0.1');
module.exports = {
decryptLoginPacket : function(data) {
for (var i = 0; i < data.length; i++) {
data[i] -= 0x0F;
data[i] ^= 0xC3;
}
return data.toString('ascii');
},
encryptLoginPacket : function(data) {
for (var i = 0; i < data.length; i++) {
data[i] += 0x0F;
}
return data.toString('ascii');
}
}
Not a fan of js, but thanks for sharing.Quote:
Consider using NodeJS, a wonderful language imo
[Only registered and activated users can see links. Click Here To Register...]
Code:const cryptography = require('./modules/cryptography.js'); const db = require('mysql').createConnection({ host: 'localhost', user: 'root', password: '123456', database: 'nostale' }).connect(function(error) { if (error) { console.log('Unable to connect to MySql server.'); } }); const server = require('net').createServer(function(socket) { socket.on('data', function(data) { const loginPacket = cryptography.decryptLoginPacket(data); console.log(loginPacket.split(' ')); // ... // db.query(..., function(...) {}); // ... const loginReply = new Buffer('fail JS\n', 'binary'); socket.write(cryptography.encryptLoginPacket(loginReply)); }); }); console.log('--------------------------------------------------'); console.log('LoginServer2017 ( https://systemx64.com )'); console.log('--------------------------------------------------'); server.listen(4003, '127.0.0.1');Code:module.exports = { decryptLoginPacket : function(data) { for (var i = 0; i < data.length; i++) { data[i] -= 0x0F; data[i] ^= 0xC3; } return data.toString('ascii'); }, encryptLoginPacket : function(data) { for (var i = 0; i < data.length; i++) { data[i] += 0x0F; } return data.toString('ascii'); } }
I can see a potential: cross-platform, very short code, etc.. It manages to be faster than .NET and does not require any compilation.. There is more and more but you can easy find it on Google just typing 'NodeJS'.Quote:
Not a fan of js, but thanks for sharing.
Gesendet von meinem SM-G935F mit Tapatalk
Yep totally agreeed. In my case, I've worked in a project using Node for about 3 months and basicly im not a friend of JS like I said. Node has a big future, in my oppinion, but also its a little bit overhyped.Quote:
I can see a potential: cross-platform, very short code, etc.. It manages to be faster than .NET and does not require any compilation.. There is more and more but you can easy find it on Google just typing 'NodeJS'.
As you said it uses Javascript sintax, which is studied in the early years of school. This characteristic makes the community more involved in an open source project than any other language.
Just see OpenNos, it is designed to be a free software but only few people are able to develope on it because of C#. It does not involve the whole community but only a few profiteers who work at a high price.
Danke, meine Frage kommt daher, da ich noch nie so richtig Nostale gezockt habe, daher ein Laie in dem Bereich bin.Quote:
Die Frage wird hier alle zwei Seiten gestellt. Nostale Offi wird immer schlechter also wäre die Antwort Nein.
Pserver unterscheiden sich nur in Raten/Crafting Gedöns/Mapaufbau.. soweit ich weiß ist die OpenNos Source immernoch nicht 100% absturzsicher usw. Also auch nicht.
Gesendet von meinem SM-G935F mit Tapatalk
Ich persönlich mag den Offi, aber spiele auch nur auf PvE.Quote:
Danke, meine Frage kommt daher, da ich noch nie so richtig Nostale gezockt habe, daher ein Laie in dem Bereich bin.