ackvonhuelioLvl 41
Fblthp#2004
if ye want to talk to me, yell at me, ask me questions, or anything that would be more convenient on discord than this forum
Fblthp#2004
if ye want to talk to me, yell at me, ask me questions, or anything that would be more convenient on discord than this forum
nice
ackvonhuelio
I still have that server for coders
It is quite dead though
I do have a project that gives the quality ones a chance for people to see their hard work
https://studio.code.org/projects/applab/fgnIUwTHXhbFLg86HDotl-HssrCgzmZf5Su1DK2aPOY
I got brendans permission to use his project and I give him credit for it
you can request an addition of one and I'll review it, if we keep getting hackers then I'll add my anti-hack (it is still under development that is why it is not in it yet)
dang the newest update broke my anti-hack
I could use some help
https://studio.code.org/projects/applab/dHIGqRM-P_KLacpHLAYXkEY4y0rqF3XBDZ6SCYzmBYQ/view
everything is right but it is not using the != properly I am aware of the glitch I refreshed multiple times
Fluffypoopo debugging pays off you know....
timedLoop(3000, function() {
i = list[i+2] === undefined ? 0: i; // not testing ahead of time will be your downfall
var T = list[i++];
var TA = list[i++];
var TAB = list[i];
//Delete protection (under heavy development)
var rawID = getColumn(T, "id");
ID = rawID[c++];
//c++;
var rawID2 = getColumn(TA, "id") || "";
ID2 = rawID2[o++];
//o++;
var rawID3 = getColumn(TAB, "id");
ID3 = rawID3[u++];
console.log(ID);
console.log(ID2);
console.log(ID3);
//i += 2;
// GARBAGE?
if (1 == 2) { // I NEED SOME BLEACH AFTER THIS
if (ID != ID2 || (ID != ID3 || ID2 != ID3)) {
if (ID == ID3) {
readRecords(T, {id:ID}, function(records) {
for (var i =0; i < records.length; i++) {
createRecord(TA, records);
}
});
} else {
if (ID == ID2) {
readRecords(TA, {id:ID2}, function(records) {
for (var i =0; i < records.length; i++) {
createRecord(TAB, records);
}
});
}
if (ID2 == ID3) {
readRecords(TAB, {id:ID3}, function(records) {
for (var i =0; i < records.length; i++) {
updateRecord(T, {id:1, datalane:""}, function(record, success) {
});
}
});
}
}
}
}
where is edit protection?
I was talking about it not detecting the difference in the edit protection
I am not focused on delete protection and create protection I am focused on edit protection
that is why the 1 == 2 is there
I marked what is not working correctly
they are supposed to see if there is a difference between the tables
Fluffypoopo really? it errored for me before at runtime, so i figured you'd care more about it running first than the protection, i mean if your project never runs it's technically safe, you also cannot compare Objects with == in fact that's probably the last thing you should do.... because it will always be false so having != would be true in that regard since it only cares about the instance id not the identifiers
well I'm not going to fix all of it now (mainly bc it's something that your working on) but i focused on what you said wasn't working, and it should be fixed hopefully, if not I'm sure you'll figure it out
timedLoop(3000, function() {
i = list[i+2] === undefined ? 0: i; // not testing ahead of time will be your downfall
var T = list[i++];
var TA = list[i++];
var TAB = list[i];
var rawID = getColumn(T, "id");
ID = rawID[c++];
//c++;
var rawID2 = getColumn(TA, "id") || "";
ID2 = rawID2[o++];
//o++;
var rawID3 = getColumn(TAB, "id");
ID3 = rawID3[u++];
console.log(ID);
console.log(ID2);
console.log(ID3);
//i += 2;
// GARBAGE?
//Delete protection (under heavy development)
if (1 == 2) { // I NEED SOME BLEACH AFTER THIS
if (ID != ID2 || (ID != ID3 || ID2 != ID3)) {
if (ID == ID3) {
readRecords(T, {id:ID}, function(records) {
createRecord(TA, records);
});
} else {
if (ID == ID2) {
readRecords(TA, {id:ID2}, function(records) {
createRecord(TAB, records);
});
}
if (ID2 == ID3) {
readRecords(TAB, {id:ID3}, function(records) {
updateRecord(T, records );
});
}
}
}
}
//edit protection
if (Gate) {
console.log(Gate);
Gate = false;
if (ID != undefined) {
readRecords(T, {id:ID}, function(r1) {
for (var i =0; i < r1.length; i++) {
x = JSON.stringify(r1[0]);
}
readRecords(TA, {id:ID2}, function(r2) {
for (var i =0; i < r2.length; i++) {
y = JSON.stringify(r2[0]);
}
readRecords(TAB, {id:ID3}, function(r3) { // callback has not closed, varriable records would be in scope
for (var i =0; i < r3.length; i++) {
z = JSON.stringify(r3[0]);
}
setTimeout(function() {
if (x != z || y != z || x != y) {//this is not working correctly
console.log(x + " | " + y + " | " + z);
if (x != z && x != y) {//this is not working correctly
one = 1;
console.log("1");
updateRecord(T, JSON.parse(y));
} else if ((y != x && y != z)) {//this is not working correctly
n = 10;
console.log("2");
updateRecord(TA, JSON.parse(z));
} else if ((z != x && z != y)) {//this is not working correctly
e = 100;
console.log("3");
updateRecord(TAB, JSON.parse(x));
}
//console.log("4");
dataline = one + ((n + e) || 0);
console.log(dataline);
}
Gate = true;
}, 2000);
});
});
});
} else {
Gate = true;
c = 0;
o = 0;
u = 0;
}
}
});
Thx, now I can focus on the creation protection and deletion protection, I'll credit you for helping
so I want it to move to the next group of tables after it is done with one group I know how to do the groups but it changing at the right time is the challenging part
var group1 = ["a", "b", "d"];
var group2 = ["a", "b", "d"];
var group3 = ["a", "b", "d"];
var groups = [group1, group2, group3];