Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

2.2 update (Lists and other fixes to 2.2) #1043

Merged
merged 54 commits into from
Dec 26, 2023
Merged

Conversation

MegaSa1nt
Copy link
Contributor

@MegaSa1nt MegaSa1nt commented Dec 20, 2023

This PR is ready for using on 2.2 GDPSs!

Already did:

  • List uploading and updating
  • Commenting
  • The Safe
  • SFX
  • List rewards
  • List searching filters
  • Commands for lists
  • Different errors for lists
  • Platformer leaderboards
  • Autoban
  • New search filters
  • Downloading songs and SFXs used in level

Doing:

  • Nothing

New list commands:

  • !rate (!r) reward amount difficulty (-1 - 10 or by name) featured (0 or 1) amount of levels required to get reward
  • !feature (!f) 0 or 1
  • !unlist (!un) 0 or 1 (1 is unlisted, 0 is public)
  • !delete (!d)
  • !setacc (!acc) account name or ID
  • !rename (!re) list name
  • !description (!desc) list description

@MegaSa1nt MegaSa1nt marked this pull request as ready for review December 20, 2023 09:37
@MegaSa1nt MegaSa1nt changed the title Lists Lists and other fixes to 2.2 Dec 20, 2023
@MegaSa1nt MegaSa1nt mentioned this pull request Dec 20, 2023
@Kingminer7
Copy link

I noticed a new URL in the exe: https://www.geometrydash.com/database/uploadMPComment.php - Not sure what it does, but I wanted to mention it in case you do.

@MegaSa1nt
Copy link
Contributor Author

uploadMPComment.php — Upload MultiPlayer Comment? maybe its related to Versus mode, which is delayed

@smpial
Copy link

smpial commented Dec 26, 2023

А можно добавлять unlisted уровни в список и будут ли они видны другим игрокам? Я просто хочу скрыть некоторые уровни из поиска, но добавить их в отдельный список

@MegaSa1nt
Copy link
Contributor Author

MegaSa1nt commented Dec 26, 2023

А можно добавлять unlisted уровни в список и будут ли они видны другим игрокам? Я просто хочу скрыть некоторые уровни из поиска, но добавить их в отдельный список

должны быть видны

@Uproxide
Copy link

@smpial как это сделать?

@smpial
Copy link

smpial commented Dec 27, 2023

@smpial как это сделать?

что именно?

@MegaSa1nt
Copy link
Contributor Author

что именно?

#1043 (comment)

@smpial
Copy link

smpial commented Dec 27, 2023

Nodejs:
let decoded = Buffer.from(file_data, 'base64');
let data = zlib.gunzipSync(decoded);

@Uproxide
Copy link

@MegaSa1nt Gauntlets still dont fully work, is there any way to fix this?

@MegaSa1nt
Copy link
Contributor Author

@MegaSa1nt Gauntlets still dont fully work, is there any way to fix this?

There is one base64 link and its required for gauntlets to work

@Kingminer7
Copy link

@MegaSa1nt Gauntlets still dont fully work, is there any way to fix this?

There is one base64 link and its required for gauntlets to work

I know this is a closed pull, but gauntlets work fine without any base64 urls for me..? I have steam if thats any different

@MegaSa1nt
Copy link
Contributor Author

I know this is a closed pull, but gauntlets work fine without any base64 urls for me..? I have steam if thats any different

try to load levels

@Kingminer7
Copy link

Kingminer7 commented Dec 31, 2023

I know this is a closed pull, but gauntlets work fine without any base64 urls for me..? I have steam if thats any different

try to load levels

oh i see. what's the url though? i searched for base64 encoded boomlings.com and nothing showed.

edit: nevermind i found it, its still http, not https

@Aussiergd
Copy link

Trying to rate lists but nothing is working. I tried all the commands. I know how to feature it, but how do I make it where you claim diamonds from it. I did !r 50 and nothing happened.

@MegaSa1nt
Copy link
Contributor Author

Trying to rate lists but nothing is working. I tried all the commands. I know how to feature it, but how do I make it where you claim diamonds from it. I did !r 50 and nothing happened.

!r 50 some difficulty

@Aussiergd
Copy link

Says comment upload failed

I did !r 50 hard

@Aussiergd
Copy link

Featuring lists work for me but giving them rewards doesn't. I even tried doing it in phpmyadmin.

image

@MegaSa1nt
Copy link
Contributor Author

you have old 2.2 version, run these commands in SQL:

ALTER TABLE `levels` ADD `songs` VARCHAR(2048) NOT NULL DEFAULT '' AFTER `songID`, ADD `sfxs` VARCHAR(2048) NOT NULL DEFAULT '' AFTER `songs`, ADD `ts` INT NOT NULL DEFAULT '0' AFTER `wt2`;
ALTER TABLE `levels` CHANGE `songs` `songIDs` VARCHAR(2048) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '';
ALTER TABLE `levels` CHANGE `sfxs` `sfxIDs` VARCHAR(2048) CHARACTER SET utf8 COLLATE utf8_unicode_ci NOT NULL DEFAULT '';
ALTER TABLE `lists` DROP `userName`;
ALTER TABLE `lists`  ADD `countForReward` INT NOT NULL DEFAULT '0' AFTER `listlevels`;
ALTER TABLE `levels` CHANGE `songIDs` `songIDs` VARCHAR(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NULL DEFAULT '';
ALTER TABLE `levels` CHANGE `sfxIDs` `sfxIDs` VARCHAR(2048) CHARACTER SET utf8mb3 COLLATE utf8mb3_unicode_ci NULL DEFAULT '';

@Aussiergd
Copy link

How do I get moons to show up on profiles too. Maybe its a phpmyadmin thing aswell that I need to put a command in aswell. Because moons won't display the correct count that people actually have.

@MegaSa1nt
Copy link
Contributor Author

How do I get moons to show up on profiles too. Maybe its a phpmyadmin thing aswell that I need to put a command in aswell. Because moons won't display the correct count that people actually have.

Are you sure you applied all SQLs for 2.2?

@Aussiergd
Copy link

Aussiergd commented Jan 10, 2024

I tried importing 2023-12-20 (1).sql on phpmyadmin but it says this:

Error

CREATE TABLE lists (
listID int(11) NOT NULL AUTO_INCREMENT,
listName varchar(2048) NOT NULL,
listDesc varchar(2048) NOT NULL,
listVersion int(11) NOT NULL DEFAULT '1',
accountID int(11) NOT NULL,
userName varchar(2048) NOT NULL,
downloads int(11) NOT NULL DEFAULT '0',
starDifficulty int(11) NOT NULL,
likes int(11) NOT NULL DEFAULT '0',
starFeatured int(11) NOT NULL DEFAULT '0',
starStars int(11) NOT NULL DEFAULT '0',
listlevels varchar(2048) NOT NULL,
uploadDate int(11) NOT NULL DEFAULT '0',
updateDate int(11) NOT NULL DEFAULT '0',
original int(11) NOT NULL DEFAULT '0',
unlisted int(11) NOT NULL DEFAULT '0',
PRIMARY KEY (listID)
) ENGINE=InnoDB DEFAULT CHARSET=utf8;
MySQL said: Documentation

#1050 - Table 'lists' already exists

@Aussiergd
Copy link

Its just weird because it says some of its already in there such as the lists. Its really annoying because I want the moons to work and also sfx too

@MegaSa1nt
Copy link
Contributor Author

How do I get moons to show up on profiles too. Maybe its a phpmyadmin thing aswell that I need to put a command in aswell. Because moons won't display the correct count that people actually have.

Try to apply these SQLs:
https://github.com/Cvolton/GMDprivateServer/blob/lists/_updates/2022-07-14.sql
https://github.com/Cvolton/GMDprivateServer/blob/lists/_updates/2023-11-23.sql

@Aussiergd
Copy link

How do I get moons to show up on profiles too. Maybe its a phpmyadmin thing aswell that I need to put a command in aswell. Because moons won't display the correct count that people actually have.

Try to apply these SQLs: https://github.com/Cvolton/GMDprivateServer/blob/lists/_updates/2022-07-14.sql https://github.com/Cvolton/GMDprivateServer/blob/lists/_updates/2023-11-23.sql

Error

ALTER TABLE users ADD moons INT NOT NULL DEFAULT '0' AFTER diamonds;
MySQL said: Documentation

#1060 - Duplicate column name 'moons'

@Aussiergd
Copy link

It says moons are already in the phpmyadmin but It doesn't show anything in game. It just shows 0 moons on everyones profile.

@MegaSa1nt
Copy link
Contributor Author

are you sure you updated all files? https://github.com/MegaSa1nt/GMDprivateServer/tree/lists

@Uproxide
Copy link

quick question, how do i make it where the recent tab will show some other level that isnt the recent tab? ik its probably in getGJLevels

@MegaSa1nt
Copy link
Contributor Author

What

@Uproxide
Copy link

pretty much instead of showing recent levels, it shows 1 specified level (ik how to do it, i dont know what case the recent tab is)

@MegaSa1nt
Copy link
Contributor Author

Type 4

@MegaSa1nt

This comment was marked as outdated.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.