https://www.17buddies.rocks/index.html

17's Buddies Maps HL1 Maps HL2 Wads Plan des Maps
17 Buddies
Only for stats

Welcome Guest ( Log In | Register )

I Can't Download Any Maps, because of MySQL database error
蛊真人
post 12/06/2024 - 02:40:12 |   Post #1
+Reply

Group: Member
Posts: 1
Joined: 25/04/2024

cn 


Error!

An error occurred during the operation:

Internal error in the MySQL database.

Please check your data. In doubt, thank you for reporting this error to the forum.

helpme cannot download map and SEE this . how to fix it thank you
Post PM
Website
Go to the top of the page
 
New
Replies
byplt
post 11/09/2024 - 15:56:54 |   Post #2
+Reply

Group: Member
Posts: 1
Joined: 28/11/2023

tr 


I updated the script;
Spoiler:
CODE
// Created bypolat, thanks to YellowJello

// How to use;
// Firstly, login your account (17buddies.rocks)
// Goto the map
// Right click to the page and click inspect button
// Click console tab, and paste this code to console and enter
// And the map will be downloaded automatically.

GlblUrl = "https://www.17buddies.rocks/17b2/"
sTyp = "Map";
nId = window.location.href.match(/\/Map\/(\d+)\//)[1];
bHlbox = 1;
sCph = "x";
szUrl = GlblUrl + "Push/PreDown/" + sTyp + "/" + nId + "/" + sCph + "/" + bHlbox + "/index.html";
zipName = window.location.href.match(/\/([^\/]+)\.html$/)[1];

async function startDownload() {
    try {

        console.log("Downloading: " + zipName + ".zip, please wait.." )

        let response = await fetch(szUrl);
        if (!response.ok)
            {
                throw new Error('Network response was not ok.');
            }
        
        let sResult = await response.text();
        let FileDatas = sResult.split('|');
        let FileName = FileDatas[2];

        while(true)
        {
            if(await requestZipData(FileName))
            {
                return
            }
        }

    } catch (error) {
        throw new Error(error)
    }
}

async function requestZipData(FileName) {
    try {
        let response = await fetch( GlblUrl + "Get/" + FileName + ".zip");
        if (!response.ok){
            throw new Error('File download failed.');
        }

        let arrayBuffer = await response.arrayBuffer();
        let blob = new Blob([arrayBuffer], { type: response.headers.get('content-type') || 'application/octet-stream' });
        let text = await new Response(blob).text();

        if(!text.includes(FileName))
        {
            saveZipFile(new Blob([arrayBuffer], { type: 'application/zip' }), zipName + ".zip")
        }

        return !text.includes(FileName)
    } catch (error) {
        throw new Error(error);
    }
}

function saveZipFile(blob, fileName) {

    var link = document.createElement('a');
    link.href = window.URL.createObjectURL(blob);
    link.download = fileName;

    document.body.appendChild(link);
    link.click();

    document.body.removeChild(link);
}

startDownload().then(() => {
    console.log("Download completed: " + zipName + ".zip!")
}).catch(error => {
    throw new Error('An error occurred while downloading the file:', error);
});


This post has been edited by Safety1st: 28/09/2024 - 21:33:07
Reason for edit: added spoiler
Post PM
Website
Go to the top of the page
DarkGenius
post 18/09/2024 - 03:58:01 |   Post #3
+Reply

Group: Member
Posts: 1
Joined: 21/08/2024

ar 


QUOTE (byplt @ 11/09/2024 - 12:26:54) *
I updated the script

Thank you, this updated script works for me. (IMG:style_emoticons/default/ami2.gif) (IMG:style_emoticons/default/ami2.gif)

This post has been edited by Safety1st: 28/09/2024 - 21:32:41
Reason for edit: removed overquoting
Post PM
Website
Go to the top of the page

Posts in this topic
- 蛊真人   I Can't Download Any Maps   12/06/2024 - 02:40:12
- - Sloggy   i have the same problem   13/06/2024 - 16:32:22
- - 2141700552   所以要怎么解决?   19/06/2024 - 14:38:07
- - DedSec   same problem x(   19/06/2024 - 16:04:29
- - tamoqohuhe   Same. Made an account just because I could no lon...   21/06/2024 - 17:44:58
- - tamoqohuhe   It actually worked on the 19th for a bit and I qui...   21/06/2024 - 18:18:38
- - EnborianPL   I also can't download ANYTHING.   25/06/2024 - 16:02:21
- - buckets   been broken for months now   04/07/2024 - 04:57:29
- - Izuko_Fukuda   So what's going on?did the opreators of the si...   12/07/2024 - 12:49:14
- - mihailm   ЦитатаОшибка! Произошла ...   15/07/2024 - 07:43:39
- - cs3248   ITS SHOW ME MYSQL ERROR, wth any fix??   15/07/2024 - 23:20:08
- - finez   Yep, same here, can't download any map , no ma...   27/07/2024 - 09:09:27
|- - cs3248   引用 (finez @ 27/07/2024 - 16:09...   08/08/2024 - 10:11:15
- - El Abuelo   Hello guys, I can't download maps either, with...   16/08/2024 - 06:21:40
- - Dr. Y. J. Shazbot   I really hope this gets addressed. This would be a...   28/08/2024 - 05:51:25
- - Dr. Y. J. Shazbot   A temporary fix is available. Go to any map you wi...   11/09/2024 - 08:06:27
- - byplt   I updated the script; Spoiler: CODE// Cr...   11/09/2024 - 15:56:54
|- - DarkGenius   QUOTE (byplt @ 11/09/2024 - 12:26...   18/09/2024 - 03:58:01
|- - Artir   QUOTE (byplt @ 11/09/2024 - 16:56...   19/09/2024 - 00:44:59
- - Safety1st   Created complete guide about both download workaro...   29/09/2024 - 01:06:16
|- - sxie   QUOTE (Safety1st @ 29/09/2024 - 02:0...   04/10/2024 - 16:26:39
|- - Th3-822   CITA(sxie @ 04/10/2024 - 11:26:3...   09/10/2024 - 00:26:47
- - Safety1st   I don't know a way, sorry. Try to ask byplt or...   04/10/2024 - 16:31:12
- - siriusryu   How to download models? not only maps   13/10/2024 - 09:19:11
- - death2024   None of these scripts work   13/10/2024 - 21:08:24
- - Safety1st   Script is fine. Without detailed info there is no ...   13/10/2024 - 21:13:49
|- - caizi   引用 (Safety1st @ 14/10/2024 - 04...   16/10/2024 - 04:31:04
- - Safety1st   caizi, thank you very much!   16/10/2024 - 05:42:35
- - Safety1st   Trying to reach the owner…   16/10/2024 - 06:45:00
- - death2024   So if chrome works and what script to use   22/10/2024 - 14:37:30
- - Safety1st   Just reread carefully and try to understand, you...   22/10/2024 - 15:18:24
- - ImPuLsS   Hi, I'm Alex I created this script to make ma...   26/10/2024 - 12:48:17
- - Safety1st   Trying to reach the server operator…   06/11/2024 - 04:28:58
- - Arkshine   Sorry for the delay. It should be fixed. I used ...   10/11/2024 - 01:31:51
- - Safety1st   Hallelujah!   10/11/2024 - 02:30:15

21 User(s) are reading this topic (21 Guests and 0 Anonymous Users)
0 Members:

New
 


RSS Lo-Fi Version
 
Skin © Chapo