mirror of
https://github.com/ApfelTeeSaft/Reload-Backend.git
synced 2026-08-26 19:33:26 +00:00
Big Big Big Big Update
This commit is contained in:
@@ -37,4 +37,18 @@ PingTimeout=3.0
|
||||
|
||||
# Double Pump
|
||||
;[ConsoleVariables]
|
||||
;Weapon.TryToFireRestrictedByTypeCooldowns=0
|
||||
;Weapon.TryToFireRestrictedByTypeCooldowns=0
|
||||
|
||||
;Glider redeploy? Not working???
|
||||
;Fort.GliderRedeployRequiresJump=1
|
||||
;Fort.GliderRedeployUseWindowOfTime=0
|
||||
;Fort.GliderRedeployWindowLength=5.0
|
||||
;Fort.GliderRedeployPreventSkydiving=1
|
||||
|
||||
;Not sure yet, appears to change graphics somehow
|
||||
;[/Script/FortniteGame.FortWorldSettings]
|
||||
;DefaultWorldTimeOfDayManager=/Game/TimeOfDay/TODM/MASTER_TODM.MASTER_TODM_C
|
||||
|
||||
;Disable first shot accuracy
|
||||
;[/Script/FortniteGame.FortGlobals]
|
||||
;bFirstShotAccuracyDisabled=false
|
||||
@@ -12,6 +12,9 @@ bUseBorderlessWindow=True
|
||||
bAllowLogout=false
|
||||
bEnableCreativeMode=false ; Change "false" to "true" if u want Enable Creative select gamemode
|
||||
|
||||
[CrossplayMatchmaking]
|
||||
!CrossplayDisabledAllowedWhitelist=ClearArray
|
||||
|
||||
# Turbo build
|
||||
;[/Script/FortniteGame.FortPlayerController] ; Remove ";" from every option for enable it (Enable only if your project is hosted by s2-s6)
|
||||
;TurboBuildInterval=0.015f
|
||||
@@ -55,11 +58,16 @@ bEnableCreativeMode=false ; Change "false" to "true" if u want Enable Creative s
|
||||
[/Script/FortniteGame.FortGameInstance]
|
||||
!FrontEndPlaylistData=ClearArray
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_DefaultSolo, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=true, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=0, bDisplayAsLimitedTime=false, DisplayPriority=0))
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_DefaultDuo, PlaylistAccess=(bEnabled=False, bIsDefaultPlaylist=false, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=0, bDisplayAsLimitedTime=false, DisplayPriority=1))
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_Trios, PlaylistAccess=(bEnabled=False, bIsDefaultPlaylist=false, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=0, bDisplayAsLimitedTime=false, DisplayPriority=2))
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_DefaultSquad, PlaylistAccess=(bEnabled=False, bIsDefaultPlaylist=false, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=0, bDisplayAsLimitedTime=false, DisplayPriority=3))
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_DefaultDuo, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=false, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=0, bDisplayAsLimitedTime=false, DisplayPriority=1))
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_Trios, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=false, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=0, bDisplayAsLimitedTime=false, DisplayPriority=2))
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_DefaultSquad, PlaylistAccess=(bEnabled=True, bIsDefaultPlaylist=false, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=0, bDisplayAsLimitedTime=false, DisplayPriority=3))
|
||||
+FrontEndPlaylistData=(PlaylistName=Playlist_Playground, PlaylistAccess=(bEnabled=False, bIsDefaultPlaylist=false, bVisibleWhenDisabled=false, bDisplayAsNew=false, CategoryIndex=1, bDisplayAsLimitedTime=true, DisplayPriority=0))
|
||||
|
||||
; It should improve the volume of something, I think
|
||||
;[/Script/FortniteGame.FortVolumeManager]
|
||||
;!HotfixedBlacklistClasses=ClearArray
|
||||
;+HotfixedBlacklistClasses=/CRD_ItemSpawnerVendingMachine/CP_Devices_ItemSpawnerVendingMachine.CP_Devices_ItemSpawnerVendingMachine
|
||||
|
||||
[/Script/FortniteGame.FortChatManager]
|
||||
bShouldRequestGeneralChatRooms=true
|
||||
bShouldJoinGlobalChat=true
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
[/Script/FortniteGame.FortRuntimeOptions]
|
||||
;!DisabledFrontendNavigationTabs=ClearArray ; Remove the ; before "!DisabledFrontendNavigationTabs" if u want to disable Store, Career and Challenges tab
|
||||
;+DisabledFrontendNavigationTabs=(TabName="AthenaStore",TabState=EFortRuntimeOptionTabState::Hidden) ; Remove the ; before "!DisabledFrontendNavigationTabs" if u want to disable Store tab
|
||||
;+DisabledFrontendNavigationTabs=(TabName="AthenaChallenges",TabState=EFortRuntimeOptionTabState::Hidden) ; Remove the ; before "!DisabledFrontendNavigationTabs" if u want to disable Challenges tab
|
||||
;+DisabledFrontendNavigationTabs=(TabName="AthenaCareer",TabState=EFortRuntimeOptionTabState::Hidden) ; Remove the ; before "!DisabledFrontendNavigationTabs" if u want to disable Career tab
|
||||
;+DisabledFrontendNavigationTabs=(TabName="AthenaStore",TabState=EFortRuntimeOptionTabState::Hidden) ; Remove the ; before "+DisabledFrontendNavigationTabs" if u want to disable Store tab
|
||||
;+DisabledFrontendNavigationTabs=(TabName="AthenaChallenges",TabState=EFortRuntimeOptionTabState::Hidden) ; Remove the ; before "+DisabledFrontendNavigationTabs" if u want to disable Challenges tab
|
||||
;+DisabledFrontendNavigationTabs=(TabName="AthenaCareer",TabState=EFortRuntimeOptionTabState::Hidden) ; Remove the ; before "+DisabledFrontendNavigationTabs" if u want to disable Career tab
|
||||
bEnableGlobalChat=false
|
||||
bDisableGifting=false
|
||||
bDisableGiftingPC=false
|
||||
@@ -10,13 +10,24 @@ bDisableGiftingPS4=false
|
||||
bDisableGiftingXB=false
|
||||
bCanShowSTWUpsellInBR=false
|
||||
bHidePlusOnVbucksButton=false
|
||||
bLoadDirectlyIntoLobby=false
|
||||
bMOTDSameNewsForCreative=true
|
||||
bShowVoiceChatSettings=false
|
||||
bSkipTrailerMovie=true
|
||||
bAlwaysPlayTrailerMovie=false
|
||||
bForceBRMode=true
|
||||
bSkipSubgameSelect=true
|
||||
bShowStoreBanner=true
|
||||
bAllowMimicingEmotes=true
|
||||
bEnableShowdown=true ; Change "true" to "false" if u want disable Compete tab
|
||||
bSubgameSelectBRFirstOption=true
|
||||
bIsCreativeMultiSelectEnabled=false
|
||||
|
||||
!SocialRTInfo=ClearArray
|
||||
+SocialRTInfo=(SlotId=1,StartsAtUTC=9999.08.06-22.00.00)
|
||||
+SocialRTInfo=(SlotId=2,StartsAtUTC=9999.08.07-18.00.00)
|
||||
+SocialRTInfo=(SlotId=3,StartsAtUTC=9999.08.08-04.00.00)
|
||||
+SocialRTInfo=(SlotId=4,StartsAtUTC=9999.08.08-14.00.00)
|
||||
+SocialRTInfo=(SlotId=5,StartsAtUTC=9999.08.08-22.00.00)
|
||||
!ExperimentalCohortPercent=ClearArray
|
||||
+ExperimentalCohortPercent=(CohortPercent=100,ExperimentNum=20)
|
||||
+26
-3
@@ -25,10 +25,11 @@
|
||||
"websiteport": 100
|
||||
},
|
||||
|
||||
"//": "to add more gameserver on 'gameServerIP' add ip:port:playlist",
|
||||
"matchmakerIP": "127.0.0.1:80",
|
||||
"gameServerIP": "127.0.0.1:7777",
|
||||
"gameServerIP": ["127.0.0.1:7777:playlist_defaultsolo"],
|
||||
|
||||
"//": "For 'BattlePassSeason' enter only the number of your season (from 2 to 13)",
|
||||
"//": "For 'BattlePassSeason' enter only the number of your season (from 2 to 16) / (We are working on season 15 while season 14 is currently not possible :C)",
|
||||
"bEnableBattlepass": false,
|
||||
"bBattlePassSeason": 2,
|
||||
|
||||
@@ -42,10 +43,32 @@
|
||||
"bDailyItemsAmount": 6,
|
||||
"bFeaturedItemsAmount": 2,
|
||||
|
||||
"//": "By enabling 'bEnableReports' in-game reports will work, a player will not be able to spam reports",
|
||||
"bEnableReports": false,
|
||||
"bReportChannelId": "your-discord-channel-id-here",
|
||||
|
||||
"//": "If bCompletedSeasonalQuests is set to 'true' it will set all quests except daily quests as completed",
|
||||
"bCompletedSeasonalQuests": false,
|
||||
|
||||
"//": "If 'bEnableSACRewards' is enabled it will give the person who supports a creator a percentage of vbucks based on how much percentage you put in 'bPercentageSACRewards' it will give in vbucks, so if you set '25%' and there is a 1000 item in the shop vbucks will give 250 vbucks to the one who supports a creator",
|
||||
"bEnableSACRewards": false,
|
||||
"bPercentageSACRewards": 0
|
||||
"bPercentageSACRewards": 0,
|
||||
|
||||
"//": "These are all the events you can add to the game, like the rift in the sky!",
|
||||
"bEnableGeodeEvent": false,
|
||||
"geodeEventStartDate": "2020-01-01T00:00:00.000Z",
|
||||
"bEnableCrackInTheSky": false,
|
||||
"bEnableS4OddityPrecursor": false,
|
||||
"bEnableS4OddityExecution": false,
|
||||
"S4OddityEventStartDate": "2020-01-01T00:00:00.000Z",
|
||||
"S4OddityEventsInterval": 0,
|
||||
"bEnableS5OddityPrecursor": false,
|
||||
"S5OddityPrecursorDate": "2020-01-01T00:00:00.000Z",
|
||||
"bEnableS5OddityExecution": false,
|
||||
"S5OddityExecutionDate": "2020-01-01T00:00:00.000Z",
|
||||
"bEnableCubeLightning": false,
|
||||
"cubeSpawnDate": "2020-01-01T00:00:00.000Z",
|
||||
"bEnableBlockbusterRiskyEvent": false,
|
||||
"bEnableCubeLake": false,
|
||||
"cubeLakeDate": "2020-01-01T00:00:00.000Z"
|
||||
}
|
||||
@@ -41,11 +41,12 @@ module.exports = {
|
||||
|
||||
const embed = new MessageEmbed()
|
||||
.setTitle("Vbucks Changed")
|
||||
.setDescription("Successfully changed the amount of vbucks for <@" + selectedUserId + "> by **" + vbucks + "**")
|
||||
.setDescription("Successfully changed the amount of vbucks for <@" + selectedUserId + "> to **" + vbucks + "**")
|
||||
.setThumbnail("https://i.imgur.com/yLbihQa.png")
|
||||
.setColor("GREEN")
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/yLbihQa.png"
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png"
|
||||
})
|
||||
.setTimestamp();
|
||||
|
||||
|
||||
@@ -44,6 +44,6 @@ module.exports = {
|
||||
|
||||
if (accessToken != -1 || refreshToken != -1) functions.UpdateTokens();
|
||||
|
||||
interaction.editReply({ content: `Successfully banned ${targetUser.username}`, ephemeral: true });
|
||||
interaction.editReply({ content: `Successfully banned **${targetUser.username}**`, ephemeral: true });
|
||||
}
|
||||
}
|
||||
@@ -41,7 +41,7 @@ module.exports = {
|
||||
.setColor("GREEN")
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/RPgACbD.png"
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png"
|
||||
})
|
||||
.setTimestamp();
|
||||
await interaction.editReply({ embeds: [embed], ephemeral: true });
|
||||
|
||||
@@ -38,6 +38,17 @@ module.exports = {
|
||||
if (!profile)
|
||||
return interaction.editReply({ content: "That user does not own an account", ephemeral: true });
|
||||
|
||||
await interaction.editReply({ content: "have been successfully removed **" + vbucks + "** vbucks for <@" + selectedUserId + ">", ephemeral: true });
|
||||
const embed = new MessageEmbed()
|
||||
.setTitle("Vbucks Changed")
|
||||
.setDescription("Successfully changed the amount of vbucks for <@" + selectedUserId + "> to **" + vbucks + "**")
|
||||
.setThumbnail("https://i.imgur.com/yLbihQa.png")
|
||||
.setColor("GREEN")
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png"
|
||||
})
|
||||
.setTimestamp();
|
||||
|
||||
await interaction.editReply({ embeds: [embed], ephemeral: true });
|
||||
}
|
||||
}
|
||||
@@ -38,9 +38,9 @@ module.exports = {
|
||||
.setDescription("Your account email has been changed")
|
||||
.setColor("GREEN")
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png",
|
||||
})
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png",
|
||||
})
|
||||
.setTimestamp();
|
||||
await interaction.editReply({ embeds: [embed], ephemeral: true });
|
||||
}
|
||||
|
||||
@@ -37,13 +37,13 @@ module.exports = {
|
||||
await user.updateOne({ $set: { password: hashedPassword } });
|
||||
|
||||
const embed = new MessageEmbed()
|
||||
.setTitle("Passwork changed")
|
||||
.setTitle("Password changed")
|
||||
.setDescription("Your account password has been changed")
|
||||
.setColor("GREEN")
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png",
|
||||
})
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png",
|
||||
})
|
||||
.setTimestamp();
|
||||
await interaction.editReply({ embeds: [embed], ephemeral: true });
|
||||
}
|
||||
|
||||
@@ -37,9 +37,13 @@ module.exports = {
|
||||
|
||||
const embed = new MessageEmbed()
|
||||
.setTitle("Daily V-Bucks Claimed!")
|
||||
.setDescription(`You have claimed your daily 250 V-Bucks!`)
|
||||
.setThumbnail("https://media.discordapp.net/attachments/1134514551606476810/1152156761793511425/250vbucks.png")
|
||||
.setDescription(`You have claimed your daily **250 V-Bucks**!`)
|
||||
.setThumbnail("https://i.imgur.com/yLbihQa.png")
|
||||
.setColor("#1eff00")
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png"
|
||||
})
|
||||
|
||||
await interaction.followUp({ embeds: [embed], ephemeral: true });
|
||||
} catch (error) {
|
||||
|
||||
@@ -25,7 +25,7 @@ module.exports = {
|
||||
{ name: 'Email:', value: `${user.email}` },
|
||||
{ name: "Online:", value: `${onlineStatus ? "Yes" : "No"}` },
|
||||
{ name: "Banned:", value: `${user.banned ? "Yes" : "No"}` },
|
||||
{ name: 'Vbucks:', value: `${currency} V-Bucks` },
|
||||
{ name: 'V-Bucks:', value: `${currency} V-Bucks` },
|
||||
{ name: "Account ID:", value: user.accountId })
|
||||
.setTimestamp()
|
||||
.setThumbnail(interaction.user.avatarURL())
|
||||
|
||||
@@ -16,7 +16,7 @@ module.exports = {
|
||||
required: true,
|
||||
},
|
||||
{
|
||||
name: 'v-bucks',
|
||||
name: 'vbucks',
|
||||
type: 3,
|
||||
description: 'The amount of V-Bucks you want to gift',
|
||||
required: true,
|
||||
@@ -61,7 +61,7 @@ module.exports = {
|
||||
return interaction.editReply({ content: "You cannot **gift yourself**", ephemeral: true });
|
||||
}
|
||||
|
||||
const vbucks = parseInt(interaction.options.getString('v-bucks'));
|
||||
const vbucks = parseInt(interaction.options.getString('vbucks'));
|
||||
|
||||
if (isNaN(vbucks)) {
|
||||
return interaction.editReply({ content: "You need to type a **valid number** for **V-Bucks**", ephemeral: true });
|
||||
@@ -75,9 +75,13 @@ module.exports = {
|
||||
|
||||
const embed = new EmbedBuilder()
|
||||
.setTitle("Gift Sent!")
|
||||
.setDescription(`Gifted ${vbucks} V-Bucks to ${recieveuser.username}`)
|
||||
.setThumbnail("https://media.discordapp.net/attachments/1134514551606476810/1152156761793511425/250vbucks.png")
|
||||
.setColor("#1eff00");
|
||||
.setDescription(`Gifted **${vbucks} V-Bucks** to **${recieveuser.username}**`)
|
||||
.setThumbnail("https://i.imgur.com/yLbihQa.png")
|
||||
.setColor("GREEN")
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png"
|
||||
});
|
||||
|
||||
await interaction.editReply({ embeds: [embed], ephemeral: true });
|
||||
|
||||
|
||||
@@ -22,7 +22,7 @@ module.exports = {
|
||||
.setTitle("V-Bucks Count:")
|
||||
.setDescription(`You currently have **` + currency + " V-Bucks** in your Account!")
|
||||
.setTimestamp()
|
||||
.setThumbnail('https://cdn.discordapp.com/attachments/1248740944648605747/1249460527688585236/vbucks-removebg-preview.png?ex=6667624b&is=666610cb&hm=27c9fb9569124ab504f53d6a1cf758a1cfacc6a13f9165a61ce4d758ad3e5f0d&')
|
||||
.setThumbnail('https://i.imgur.com/yLbihQa.png')
|
||||
.setFooter({
|
||||
text: "Reload Backend",
|
||||
iconURL: "https://i.imgur.com/2RImwlb.png"
|
||||
|
||||
+2
-2
@@ -1,4 +1,4 @@
|
||||
const { Client, Intents, ActivityType } = require("discord.js");
|
||||
const { Client, Intents } = require("discord.js");
|
||||
const client = new Client({ intents: [Intents.FLAGS.GUILDS, Intents.FLAGS.GUILD_MESSAGES, Intents.FLAGS.GUILD_MEMBERS] });
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
@@ -46,7 +46,7 @@ client.on("interactionCreate", async interaction => {
|
||||
executeCommand(path.join(__dirname, "commands"), interaction.commandName);
|
||||
});
|
||||
|
||||
//AntiCrash Sysyem
|
||||
//AntiCrash System
|
||||
client.on("error", (err) => {
|
||||
console.log("Discord API Error:", err);
|
||||
});
|
||||
|
||||
@@ -1,674 +1,28 @@
|
||||
GNU GENERAL PUBLIC LICENSE
|
||||
Version 3, 29 June 2007
|
||||
|
||||
Copyright (C) 2007 Free Software Foundation, Inc. <https://fsf.org/>
|
||||
Everyone is permitted to copy and distribute verbatim copies
|
||||
of this license document, but changing it is not allowed.
|
||||
|
||||
Preamble
|
||||
|
||||
The GNU General Public License is a free, copyleft license for
|
||||
software and other kinds of works.
|
||||
|
||||
The licenses for most software and other practical works are designed
|
||||
to take away your freedom to share and change the works. By contrast,
|
||||
the GNU General Public License is intended to guarantee your freedom to
|
||||
share and change all versions of a program--to make sure it remains free
|
||||
software for all its users. We, the Free Software Foundation, use the
|
||||
GNU General Public License for most of our software; it applies also to
|
||||
any other work released this way by its authors. You can apply it to
|
||||
your programs, too.
|
||||
|
||||
When we speak of free software, we are referring to freedom, not
|
||||
price. Our General Public Licenses are designed to make sure that you
|
||||
have the freedom to distribute copies of free software (and charge for
|
||||
them if you wish), that you receive source code or can get it if you
|
||||
want it, that you can change the software or use pieces of it in new
|
||||
free programs, and that you know you can do these things.
|
||||
|
||||
To protect your rights, we need to prevent others from denying you
|
||||
these rights or asking you to surrender the rights. Therefore, you have
|
||||
certain responsibilities if you distribute copies of the software, or if
|
||||
you modify it: responsibilities to respect the freedom of others.
|
||||
|
||||
For example, if you distribute copies of such a program, whether
|
||||
gratis or for a fee, you must pass on to the recipients the same
|
||||
freedoms that you received. You must make sure that they, too, receive
|
||||
or can get the source code. And you must show them these terms so they
|
||||
know their rights.
|
||||
|
||||
Developers that use the GNU GPL protect your rights with two steps:
|
||||
(1) assert copyright on the software, and (2) offer you this License
|
||||
giving you legal permission to copy, distribute and/or modify it.
|
||||
|
||||
For the developers' and authors' protection, the GPL clearly explains
|
||||
that there is no warranty for this free software. For both users' and
|
||||
authors' sake, the GPL requires that modified versions be marked as
|
||||
changed, so that their problems will not be attributed erroneously to
|
||||
authors of previous versions.
|
||||
|
||||
Some devices are designed to deny users access to install or run
|
||||
modified versions of the software inside them, although the manufacturer
|
||||
can do so. This is fundamentally incompatible with the aim of
|
||||
protecting users' freedom to change the software. The systematic
|
||||
pattern of such abuse occurs in the area of products for individuals to
|
||||
use, which is precisely where it is most unacceptable. Therefore, we
|
||||
have designed this version of the GPL to prohibit the practice for those
|
||||
products. If such problems arise substantially in other domains, we
|
||||
stand ready to extend this provision to those domains in future versions
|
||||
of the GPL, as needed to protect the freedom of users.
|
||||
|
||||
Finally, every program is threatened constantly by software patents.
|
||||
States should not allow patents to restrict development and use of
|
||||
software on general-purpose computers, but in those that do, we wish to
|
||||
avoid the special danger that patents applied to a free program could
|
||||
make it effectively proprietary. To prevent this, the GPL assures that
|
||||
patents cannot be used to render the program non-free.
|
||||
|
||||
The precise terms and conditions for copying, distribution and
|
||||
modification follow.
|
||||
|
||||
TERMS AND CONDITIONS
|
||||
|
||||
0. Definitions.
|
||||
|
||||
"This License" refers to version 3 of the GNU General Public License.
|
||||
|
||||
"Copyright" also means copyright-like laws that apply to other kinds of
|
||||
works, such as semiconductor masks.
|
||||
|
||||
"The Program" refers to any copyrightable work licensed under this
|
||||
License. Each licensee is addressed as "you". "Licensees" and
|
||||
"recipients" may be individuals or organizations.
|
||||
|
||||
To "modify" a work means to copy from or adapt all or part of the work
|
||||
in a fashion requiring copyright permission, other than the making of an
|
||||
exact copy. The resulting work is called a "modified version" of the
|
||||
earlier work or a work "based on" the earlier work.
|
||||
|
||||
A "covered work" means either the unmodified Program or a work based
|
||||
on the Program.
|
||||
|
||||
To "propagate" a work means to do anything with it that, without
|
||||
permission, would make you directly or secondarily liable for
|
||||
infringement under applicable copyright law, except executing it on a
|
||||
computer or modifying a private copy. Propagation includes copying,
|
||||
distribution (with or without modification), making available to the
|
||||
public, and in some countries other activities as well.
|
||||
|
||||
To "convey" a work means any kind of propagation that enables other
|
||||
parties to make or receive copies. Mere interaction with a user through
|
||||
a computer network, with no transfer of a copy, is not conveying.
|
||||
|
||||
An interactive user interface displays "Appropriate Legal Notices"
|
||||
to the extent that it includes a convenient and prominently visible
|
||||
feature that (1) displays an appropriate copyright notice, and (2)
|
||||
tells the user that there is no warranty for the work (except to the
|
||||
extent that warranties are provided), that licensees may convey the
|
||||
work under this License, and how to view a copy of this License. If
|
||||
the interface presents a list of user commands or options, such as a
|
||||
menu, a prominent item in the list meets this criterion.
|
||||
|
||||
1. Source Code.
|
||||
|
||||
The "source code" for a work means the preferred form of the work
|
||||
for making modifications to it. "Object code" means any non-source
|
||||
form of a work.
|
||||
|
||||
A "Standard Interface" means an interface that either is an official
|
||||
standard defined by a recognized standards body, or, in the case of
|
||||
interfaces specified for a particular programming language, one that
|
||||
is widely used among developers working in that language.
|
||||
|
||||
The "System Libraries" of an executable work include anything, other
|
||||
than the work as a whole, that (a) is included in the normal form of
|
||||
packaging a Major Component, but which is not part of that Major
|
||||
Component, and (b) serves only to enable use of the work with that
|
||||
Major Component, or to implement a Standard Interface for which an
|
||||
implementation is available to the public in source code form. A
|
||||
"Major Component", in this context, means a major essential component
|
||||
(kernel, window system, and so on) of the specific operating system
|
||||
(if any) on which the executable work runs, or a compiler used to
|
||||
produce the work, or an object code interpreter used to run it.
|
||||
|
||||
The "Corresponding Source" for a work in object code form means all
|
||||
the source code needed to generate, install, and (for an executable
|
||||
work) run the object code and to modify the work, including scripts to
|
||||
control those activities. However, it does not include the work's
|
||||
System Libraries, or general-purpose tools or generally available free
|
||||
programs which are used unmodified in performing those activities but
|
||||
which are not part of the work. For example, Corresponding Source
|
||||
includes interface definition files associated with source files for
|
||||
the work, and the source code for shared libraries and dynamically
|
||||
linked subprograms that the work is specifically designed to require,
|
||||
such as by intimate data communication or control flow between those
|
||||
subprograms and other parts of the work.
|
||||
|
||||
The Corresponding Source need not include anything that users
|
||||
can regenerate automatically from other parts of the Corresponding
|
||||
Source.
|
||||
|
||||
The Corresponding Source for a work in source code form is that
|
||||
same work.
|
||||
|
||||
2. Basic Permissions.
|
||||
|
||||
All rights granted under this License are granted for the term of
|
||||
copyright on the Program, and are irrevocable provided the stated
|
||||
conditions are met. This License explicitly affirms your unlimited
|
||||
permission to run the unmodified Program. The output from running a
|
||||
covered work is covered by this License only if the output, given its
|
||||
content, constitutes a covered work. This License acknowledges your
|
||||
rights of fair use or other equivalent, as provided by copyright law.
|
||||
|
||||
You may make, run and propagate covered works that you do not
|
||||
convey, without conditions so long as your license otherwise remains
|
||||
in force. You may convey covered works to others for the sole purpose
|
||||
of having them make modifications exclusively for you, or provide you
|
||||
with facilities for running those works, provided that you comply with
|
||||
the terms of this License in conveying all material for which you do
|
||||
not control copyright. Those thus making or running the covered works
|
||||
for you must do so exclusively on your behalf, under your direction
|
||||
and control, on terms that prohibit them from making any copies of
|
||||
your copyrighted material outside their relationship with you.
|
||||
|
||||
Conveying under any other circumstances is permitted solely under
|
||||
the conditions stated below. Sublicensing is not allowed; section 10
|
||||
makes it unnecessary.
|
||||
|
||||
3. Protecting Users' Legal Rights From Anti-Circumvention Law.
|
||||
|
||||
No covered work shall be deemed part of an effective technological
|
||||
measure under any applicable law fulfilling obligations under article
|
||||
11 of the WIPO copyright treaty adopted on 20 December 1996, or
|
||||
similar laws prohibiting or restricting circumvention of such
|
||||
measures.
|
||||
|
||||
When you convey a covered work, you waive any legal power to forbid
|
||||
circumvention of technological measures to the extent such circumvention
|
||||
is effected by exercising rights under this License with respect to
|
||||
the covered work, and you disclaim any intention to limit operation or
|
||||
modification of the work as a means of enforcing, against the work's
|
||||
users, your or third parties' legal rights to forbid circumvention of
|
||||
technological measures.
|
||||
|
||||
4. Conveying Verbatim Copies.
|
||||
|
||||
You may convey verbatim copies of the Program's source code as you
|
||||
receive it, in any medium, provided that you conspicuously and
|
||||
appropriately publish on each copy an appropriate copyright notice;
|
||||
keep intact all notices stating that this License and any
|
||||
non-permissive terms added in accord with section 7 apply to the code;
|
||||
keep intact all notices of the absence of any warranty; and give all
|
||||
recipients a copy of this License along with the Program.
|
||||
|
||||
You may charge any price or no price for each copy that you convey,
|
||||
and you may offer support or warranty protection for a fee.
|
||||
|
||||
5. Conveying Modified Source Versions.
|
||||
|
||||
You may convey a work based on the Program, or the modifications to
|
||||
produce it from the Program, in the form of source code under the
|
||||
terms of section 4, provided that you also meet all of these conditions:
|
||||
|
||||
a) The work must carry prominent notices stating that you modified
|
||||
it, and giving a relevant date.
|
||||
|
||||
b) The work must carry prominent notices stating that it is
|
||||
released under this License and any conditions added under section
|
||||
7. This requirement modifies the requirement in section 4 to
|
||||
"keep intact all notices".
|
||||
|
||||
c) You must license the entire work, as a whole, under this
|
||||
License to anyone who comes into possession of a copy. This
|
||||
License will therefore apply, along with any applicable section 7
|
||||
additional terms, to the whole of the work, and all its parts,
|
||||
regardless of how they are packaged. This License gives no
|
||||
permission to license the work in any other way, but it does not
|
||||
invalidate such permission if you have separately received it.
|
||||
|
||||
d) If the work has interactive user interfaces, each must display
|
||||
Appropriate Legal Notices; however, if the Program has interactive
|
||||
interfaces that do not display Appropriate Legal Notices, your
|
||||
work need not make them do so.
|
||||
|
||||
A compilation of a covered work with other separate and independent
|
||||
works, which are not by their nature extensions of the covered work,
|
||||
and which are not combined with it such as to form a larger program,
|
||||
in or on a volume of a storage or distribution medium, is called an
|
||||
"aggregate" if the compilation and its resulting copyright are not
|
||||
used to limit the access or legal rights of the compilation's users
|
||||
beyond what the individual works permit. Inclusion of a covered work
|
||||
in an aggregate does not cause this License to apply to the other
|
||||
parts of the aggregate.
|
||||
|
||||
6. Conveying Non-Source Forms.
|
||||
|
||||
You may convey a covered work in object code form under the terms
|
||||
of sections 4 and 5, provided that you also convey the
|
||||
machine-readable Corresponding Source under the terms of this License,
|
||||
in one of these ways:
|
||||
|
||||
a) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by the
|
||||
Corresponding Source fixed on a durable physical medium
|
||||
customarily used for software interchange.
|
||||
|
||||
b) Convey the object code in, or embodied in, a physical product
|
||||
(including a physical distribution medium), accompanied by a
|
||||
written offer, valid for at least three years and valid for as
|
||||
long as you offer spare parts or customer support for that product
|
||||
model, to give anyone who possesses the object code either (1) a
|
||||
copy of the Corresponding Source for all the software in the
|
||||
product that is covered by this License, on a durable physical
|
||||
medium customarily used for software interchange, for a price no
|
||||
more than your reasonable cost of physically performing this
|
||||
conveying of source, or (2) access to copy the
|
||||
Corresponding Source from a network server at no charge.
|
||||
|
||||
c) Convey individual copies of the object code with a copy of the
|
||||
written offer to provide the Corresponding Source. This
|
||||
alternative is allowed only occasionally and noncommercially, and
|
||||
only if you received the object code with such an offer, in accord
|
||||
with subsection 6b.
|
||||
|
||||
d) Convey the object code by offering access from a designated
|
||||
place (gratis or for a charge), and offer equivalent access to the
|
||||
Corresponding Source in the same way through the same place at no
|
||||
further charge. You need not require recipients to copy the
|
||||
Corresponding Source along with the object code. If the place to
|
||||
copy the object code is a network server, the Corresponding Source
|
||||
may be on a different server (operated by you or a third party)
|
||||
that supports equivalent copying facilities, provided you maintain
|
||||
clear directions next to the object code saying where to find the
|
||||
Corresponding Source. Regardless of what server hosts the
|
||||
Corresponding Source, you remain obligated to ensure that it is
|
||||
available for as long as needed to satisfy these requirements.
|
||||
|
||||
e) Convey the object code using peer-to-peer transmission, provided
|
||||
you inform other peers where the object code and Corresponding
|
||||
Source of the work are being offered to the general public at no
|
||||
charge under subsection 6d.
|
||||
|
||||
A separable portion of the object code, whose source code is excluded
|
||||
from the Corresponding Source as a System Library, need not be
|
||||
included in conveying the object code work.
|
||||
|
||||
A "User Product" is either (1) a "consumer product", which means any
|
||||
tangible personal property which is normally used for personal, family,
|
||||
or household purposes, or (2) anything designed or sold for incorporation
|
||||
into a dwelling. In determining whether a product is a consumer product,
|
||||
doubtful cases shall be resolved in favor of coverage. For a particular
|
||||
product received by a particular user, "normally used" refers to a
|
||||
typical or common use of that class of product, regardless of the status
|
||||
of the particular user or of the way in which the particular user
|
||||
actually uses, or expects or is expected to use, the product. A product
|
||||
is a consumer product regardless of whether the product has substantial
|
||||
commercial, industrial or non-consumer uses, unless such uses represent
|
||||
the only significant mode of use of the product.
|
||||
|
||||
"Installation Information" for a User Product means any methods,
|
||||
procedures, authorization keys, or other information required to install
|
||||
and execute modified versions of a covered work in that User Product from
|
||||
a modified version of its Corresponding Source. The information must
|
||||
suffice to ensure that the continued functioning of the modified object
|
||||
code is in no case prevented or interfered with solely because
|
||||
modification has been made.
|
||||
|
||||
If you convey an object code work under this section in, or with, or
|
||||
specifically for use in, a User Product, and the conveying occurs as
|
||||
part of a transaction in which the right of possession and use of the
|
||||
User Product is transferred to the recipient in perpetuity or for a
|
||||
fixed term (regardless of how the transaction is characterized), the
|
||||
Corresponding Source conveyed under this section must be accompanied
|
||||
by the Installation Information. But this requirement does not apply
|
||||
if neither you nor any third party retains the ability to install
|
||||
modified object code on the User Product (for example, the work has
|
||||
been installed in ROM).
|
||||
|
||||
The requirement to provide Installation Information does not include a
|
||||
requirement to continue to provide support service, warranty, or updates
|
||||
for a work that has been modified or installed by the recipient, or for
|
||||
the User Product in which it has been modified or installed. Access to a
|
||||
network may be denied when the modification itself materially and
|
||||
adversely affects the operation of the network or violates the rules and
|
||||
protocols for communication across the network.
|
||||
|
||||
Corresponding Source conveyed, and Installation Information provided,
|
||||
in accord with this section must be in a format that is publicly
|
||||
documented (and with an implementation available to the public in
|
||||
source code form), and must require no special password or key for
|
||||
unpacking, reading or copying.
|
||||
|
||||
7. Additional Terms.
|
||||
|
||||
"Additional permissions" are terms that supplement the terms of this
|
||||
License by making exceptions from one or more of its conditions.
|
||||
Additional permissions that are applicable to the entire Program shall
|
||||
be treated as though they were included in this License, to the extent
|
||||
that they are valid under applicable law. If additional permissions
|
||||
apply only to part of the Program, that part may be used separately
|
||||
under those permissions, but the entire Program remains governed by
|
||||
this License without regard to the additional permissions.
|
||||
|
||||
When you convey a copy of a covered work, you may at your option
|
||||
remove any additional permissions from that copy, or from any part of
|
||||
it. (Additional permissions may be written to require their own
|
||||
removal in certain cases when you modify the work.) You may place
|
||||
additional permissions on material, added by you to a covered work,
|
||||
for which you have or can give appropriate copyright permission.
|
||||
|
||||
Notwithstanding any other provision of this License, for material you
|
||||
add to a covered work, you may (if authorized by the copyright holders of
|
||||
that material) supplement the terms of this License with terms:
|
||||
|
||||
a) Disclaiming warranty or limiting liability differently from the
|
||||
terms of sections 15 and 16 of this License; or
|
||||
|
||||
b) Requiring preservation of specified reasonable legal notices or
|
||||
author attributions in that material or in the Appropriate Legal
|
||||
Notices displayed by works containing it; or
|
||||
|
||||
c) Prohibiting misrepresentation of the origin of that material, or
|
||||
requiring that modified versions of such material be marked in
|
||||
reasonable ways as different from the original version; or
|
||||
|
||||
d) Limiting the use for publicity purposes of names of licensors or
|
||||
authors of the material; or
|
||||
|
||||
e) Declining to grant rights under trademark law for use of some
|
||||
trade names, trademarks, or service marks; or
|
||||
|
||||
f) Requiring indemnification of licensors and authors of that
|
||||
material by anyone who conveys the material (or modified versions of
|
||||
it) with contractual assumptions of liability to the recipient, for
|
||||
any liability that these contractual assumptions directly impose on
|
||||
those licensors and authors.
|
||||
|
||||
All other non-permissive additional terms are considered "further
|
||||
restrictions" within the meaning of section 10. If the Program as you
|
||||
received it, or any part of it, contains a notice stating that it is
|
||||
governed by this License along with a term that is a further
|
||||
restriction, you may remove that term. If a license document contains
|
||||
a further restriction but permits relicensing or conveying under this
|
||||
License, you may add to a covered work material governed by the terms
|
||||
of that license document, provided that the further restriction does
|
||||
not survive such relicensing or conveying.
|
||||
|
||||
If you add terms to a covered work in accord with this section, you
|
||||
must place, in the relevant source files, a statement of the
|
||||
additional terms that apply to those files, or a notice indicating
|
||||
where to find the applicable terms.
|
||||
|
||||
Additional terms, permissive or non-permissive, may be stated in the
|
||||
form of a separately written license, or stated as exceptions;
|
||||
the above requirements apply either way.
|
||||
|
||||
8. Termination.
|
||||
|
||||
You may not propagate or modify a covered work except as expressly
|
||||
provided under this License. Any attempt otherwise to propagate or
|
||||
modify it is void, and will automatically terminate your rights under
|
||||
this License (including any patent licenses granted under the third
|
||||
paragraph of section 11).
|
||||
|
||||
However, if you cease all violation of this License, then your
|
||||
license from a particular copyright holder is reinstated (a)
|
||||
provisionally, unless and until the copyright holder explicitly and
|
||||
finally terminates your license, and (b) permanently, if the copyright
|
||||
holder fails to notify you of the violation by some reasonable means
|
||||
prior to 60 days after the cessation.
|
||||
|
||||
Moreover, your license from a particular copyright holder is
|
||||
reinstated permanently if the copyright holder notifies you of the
|
||||
violation by some reasonable means, this is the first time you have
|
||||
received notice of violation of this License (for any work) from that
|
||||
copyright holder, and you cure the violation prior to 30 days after
|
||||
your receipt of the notice.
|
||||
|
||||
Termination of your rights under this section does not terminate the
|
||||
licenses of parties who have received copies or rights from you under
|
||||
this License. If your rights have been terminated and not permanently
|
||||
reinstated, you do not qualify to receive new licenses for the same
|
||||
material under section 10.
|
||||
|
||||
9. Acceptance Not Required for Having Copies.
|
||||
|
||||
You are not required to accept this License in order to receive or
|
||||
run a copy of the Program. Ancillary propagation of a covered work
|
||||
occurring solely as a consequence of using peer-to-peer transmission
|
||||
to receive a copy likewise does not require acceptance. However,
|
||||
nothing other than this License grants you permission to propagate or
|
||||
modify any covered work. These actions infringe copyright if you do
|
||||
not accept this License. Therefore, by modifying or propagating a
|
||||
covered work, you indicate your acceptance of this License to do so.
|
||||
|
||||
10. Automatic Licensing of Downstream Recipients.
|
||||
|
||||
Each time you convey a covered work, the recipient automatically
|
||||
receives a license from the original licensors, to run, modify and
|
||||
propagate that work, subject to this License. You are not responsible
|
||||
for enforcing compliance by third parties with this License.
|
||||
|
||||
An "entity transaction" is a transaction transferring control of an
|
||||
organization, or substantially all assets of one, or subdividing an
|
||||
organization, or merging organizations. If propagation of a covered
|
||||
work results from an entity transaction, each party to that
|
||||
transaction who receives a copy of the work also receives whatever
|
||||
licenses to the work the party's predecessor in interest had or could
|
||||
give under the previous paragraph, plus a right to possession of the
|
||||
Corresponding Source of the work from the predecessor in interest, if
|
||||
the predecessor has it or can get it with reasonable efforts.
|
||||
|
||||
You may not impose any further restrictions on the exercise of the
|
||||
rights granted or affirmed under this License. For example, you may
|
||||
not impose a license fee, royalty, or other charge for exercise of
|
||||
rights granted under this License, and you may not initiate litigation
|
||||
(including a cross-claim or counterclaim in a lawsuit) alleging that
|
||||
any patent claim is infringed by making, using, selling, offering for
|
||||
sale, or importing the Program or any portion of it.
|
||||
|
||||
11. Patents.
|
||||
|
||||
A "contributor" is a copyright holder who authorizes use under this
|
||||
License of the Program or a work on which the Program is based. The
|
||||
work thus licensed is called the contributor's "contributor version".
|
||||
|
||||
A contributor's "essential patent claims" are all patent claims
|
||||
owned or controlled by the contributor, whether already acquired or
|
||||
hereafter acquired, that would be infringed by some manner, permitted
|
||||
by this License, of making, using, or selling its contributor version,
|
||||
but do not include claims that would be infringed only as a
|
||||
consequence of further modification of the contributor version. For
|
||||
purposes of this definition, "control" includes the right to grant
|
||||
patent sublicenses in a manner consistent with the requirements of
|
||||
this License.
|
||||
|
||||
Each contributor grants you a non-exclusive, worldwide, royalty-free
|
||||
patent license under the contributor's essential patent claims, to
|
||||
make, use, sell, offer for sale, import and otherwise run, modify and
|
||||
propagate the contents of its contributor version.
|
||||
|
||||
In the following three paragraphs, a "patent license" is any express
|
||||
agreement or commitment, however denominated, not to enforce a patent
|
||||
(such as an express permission to practice a patent or covenant not to
|
||||
sue for patent infringement). To "grant" such a patent license to a
|
||||
party means to make such an agreement or commitment not to enforce a
|
||||
patent against the party.
|
||||
|
||||
If you convey a covered work, knowingly relying on a patent license,
|
||||
and the Corresponding Source of the work is not available for anyone
|
||||
to copy, free of charge and under the terms of this License, through a
|
||||
publicly available network server or other readily accessible means,
|
||||
then you must either (1) cause the Corresponding Source to be so
|
||||
available, or (2) arrange to deprive yourself of the benefit of the
|
||||
patent license for this particular work, or (3) arrange, in a manner
|
||||
consistent with the requirements of this License, to extend the patent
|
||||
license to downstream recipients. "Knowingly relying" means you have
|
||||
actual knowledge that, but for the patent license, your conveying the
|
||||
covered work in a country, or your recipient's use of the covered work
|
||||
in a country, would infringe one or more identifiable patents in that
|
||||
country that you have reason to believe are valid.
|
||||
|
||||
If, pursuant to or in connection with a single transaction or
|
||||
arrangement, you convey, or propagate by procuring conveyance of, a
|
||||
covered work, and grant a patent license to some of the parties
|
||||
receiving the covered work authorizing them to use, propagate, modify
|
||||
or convey a specific copy of the covered work, then the patent license
|
||||
you grant is automatically extended to all recipients of the covered
|
||||
work and works based on it.
|
||||
|
||||
A patent license is "discriminatory" if it does not include within
|
||||
the scope of its coverage, prohibits the exercise of, or is
|
||||
conditioned on the non-exercise of one or more of the rights that are
|
||||
specifically granted under this License. You may not convey a covered
|
||||
work if you are a party to an arrangement with a third party that is
|
||||
in the business of distributing software, under which you make payment
|
||||
to the third party based on the extent of your activity of conveying
|
||||
the work, and under which the third party grants, to any of the
|
||||
parties who would receive the covered work from you, a discriminatory
|
||||
patent license (a) in connection with copies of the covered work
|
||||
conveyed by you (or copies made from those copies), or (b) primarily
|
||||
for and in connection with specific products or compilations that
|
||||
contain the covered work, unless you entered into that arrangement,
|
||||
or that patent license was granted, prior to 28 March 2007.
|
||||
|
||||
Nothing in this License shall be construed as excluding or limiting
|
||||
any implied license or other defenses to infringement that may
|
||||
otherwise be available to you under applicable patent law.
|
||||
|
||||
12. No Surrender of Others' Freedom.
|
||||
|
||||
If conditions are imposed on you (whether by court order, agreement or
|
||||
otherwise) that contradict the conditions of this License, they do not
|
||||
excuse you from the conditions of this License. If you cannot convey a
|
||||
covered work so as to satisfy simultaneously your obligations under this
|
||||
License and any other pertinent obligations, then as a consequence you may
|
||||
not convey it at all. For example, if you agree to terms that obligate you
|
||||
to collect a royalty for further conveying from those to whom you convey
|
||||
the Program, the only way you could satisfy both those terms and this
|
||||
License would be to refrain entirely from conveying the Program.
|
||||
|
||||
13. Use with the GNU Affero General Public License.
|
||||
|
||||
Notwithstanding any other provision of this License, you have
|
||||
permission to link or combine any covered work with a work licensed
|
||||
under version 3 of the GNU Affero General Public License into a single
|
||||
combined work, and to convey the resulting work. The terms of this
|
||||
License will continue to apply to the part which is the covered work,
|
||||
but the special requirements of the GNU Affero General Public License,
|
||||
section 13, concerning interaction through a network will apply to the
|
||||
combination as such.
|
||||
|
||||
14. Revised Versions of this License.
|
||||
|
||||
The Free Software Foundation may publish revised and/or new versions of
|
||||
the GNU General Public License from time to time. Such new versions will
|
||||
be similar in spirit to the present version, but may differ in detail to
|
||||
address new problems or concerns.
|
||||
|
||||
Each version is given a distinguishing version number. If the
|
||||
Program specifies that a certain numbered version of the GNU General
|
||||
Public License "or any later version" applies to it, you have the
|
||||
option of following the terms and conditions either of that numbered
|
||||
version or of any later version published by the Free Software
|
||||
Foundation. If the Program does not specify a version number of the
|
||||
GNU General Public License, you may choose any version ever published
|
||||
by the Free Software Foundation.
|
||||
|
||||
If the Program specifies that a proxy can decide which future
|
||||
versions of the GNU General Public License can be used, that proxy's
|
||||
public statement of acceptance of a version permanently authorizes you
|
||||
to choose that version for the Program.
|
||||
|
||||
Later license versions may give you additional or different
|
||||
permissions. However, no additional obligations are imposed on any
|
||||
author or copyright holder as a result of your choosing to follow a
|
||||
later version.
|
||||
|
||||
15. Disclaimer of Warranty.
|
||||
|
||||
THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY
|
||||
APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT
|
||||
HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY
|
||||
OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO,
|
||||
THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR
|
||||
PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM
|
||||
IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF
|
||||
ALL NECESSARY SERVICING, REPAIR OR CORRECTION.
|
||||
|
||||
16. Limitation of Liability.
|
||||
|
||||
IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING
|
||||
WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MODIFIES AND/OR CONVEYS
|
||||
THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY
|
||||
GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE
|
||||
USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF
|
||||
DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD
|
||||
PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS),
|
||||
EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF
|
||||
SUCH DAMAGES.
|
||||
|
||||
17. Interpretation of Sections 15 and 16.
|
||||
|
||||
If the disclaimer of warranty and limitation of liability provided
|
||||
above cannot be given local legal effect according to their terms,
|
||||
reviewing courts shall apply local law that most closely approximates
|
||||
an absolute waiver of all civil liability in connection with the
|
||||
Program, unless a warranty or assumption of liability accompanies a
|
||||
copy of the Program in return for a fee.
|
||||
|
||||
END OF TERMS AND CONDITIONS
|
||||
|
||||
How to Apply These Terms to Your New Programs
|
||||
|
||||
If you develop a new program, and you want it to be of the greatest
|
||||
possible use to the public, the best way to achieve this is to make it
|
||||
free software which everyone can redistribute and change under these terms.
|
||||
|
||||
To do so, attach the following notices to the program. It is safest
|
||||
to attach them to the start of each source file to most effectively
|
||||
state the exclusion of warranty; and each file should have at least
|
||||
the "copyright" line and a pointer to where the full notice is found.
|
||||
|
||||
<one line to give the program's name and a brief idea of what it does.>
|
||||
Copyright (C) <year> <name of author>
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU General Public License as published by
|
||||
the Free Software Foundation, either version 3 of the License, or
|
||||
(at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>.
|
||||
|
||||
Also add information on how to contact you by electronic and paper mail.
|
||||
|
||||
If the program does terminal interaction, make it output a short
|
||||
notice like this when it starts in an interactive mode:
|
||||
|
||||
<program> Copyright (C) <year> <name of author>
|
||||
This program comes with ABSOLUTELY NO WARRANTY; for details type `show w'.
|
||||
This is free software, and you are welcome to redistribute it
|
||||
under certain conditions; type `show c' for details.
|
||||
|
||||
The hypothetical commands `show w' and `show c' should show the appropriate
|
||||
parts of the General Public License. Of course, your program's commands
|
||||
might be different; for a GUI interface, you would use an "about box".
|
||||
|
||||
You should also get your employer (if you work as a programmer) or school,
|
||||
if any, to sign a "copyright disclaimer" for the program, if necessary.
|
||||
For more information on this, and how to apply and follow the GNU GPL, see
|
||||
<https://www.gnu.org/licenses/>.
|
||||
|
||||
The GNU General Public License does not permit incorporating your program
|
||||
into proprietary programs. If your program is a subroutine library, you
|
||||
may consider it more useful to permit linking proprietary applications with
|
||||
the library. If this is what you want to do, use the GNU Lesser General
|
||||
Public License instead of this License. But first, please read
|
||||
<https://www.gnu.org/licenses/why-not-lgpl.html>.
|
||||
BSD 3-Clause License
|
||||
|
||||
Copyright (c) 2024, Project Reload
|
||||
|
||||
Redistribution and use in source and binary forms, with or without
|
||||
modification, are permitted provided that the following conditions are met:
|
||||
|
||||
1. Redistributions of source code must retain the above copyright notice, this
|
||||
list of conditions and the following disclaimer.
|
||||
|
||||
2. Redistributions in binary form must reproduce the above copyright notice,
|
||||
this list of conditions and the following disclaimer in the documentation
|
||||
and/or other materials provided with the distribution.
|
||||
|
||||
3. Neither the name of the copyright holder nor the names of its
|
||||
contributors may be used to endorse or promote products derived from
|
||||
this software without specific prior written permission.
|
||||
|
||||
THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
|
||||
AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
|
||||
IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
|
||||
DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR CONTRIBUTORS BE LIABLE
|
||||
FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL
|
||||
DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR
|
||||
SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER
|
||||
CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY,
|
||||
OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE
|
||||
OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
||||
@@ -6,8 +6,6 @@ Reload Backend is a universal Fortnite private server backend written in [JavaSc
|
||||
|
||||
Created by [Burlone](https://github.com/burlone0), This is a modded backend, all main backend credits to [Lawin](https://github.com/Lawin0129)
|
||||
|
||||
Challenges contributed by [NotTacos](https://github.com/PhysicalDrive)
|
||||
|
||||
## Features
|
||||
* Locker:
|
||||
* [x] Changing items.
|
||||
@@ -26,31 +24,38 @@ Challenges contributed by [NotTacos](https://github.com/PhysicalDrive)
|
||||
* [x] Customizable Item Shop.
|
||||
* [x] Purchasing items from the Item Shop.
|
||||
* [x] Gifting items to your friends.
|
||||
* [x] Working Auto Item Shop (In Beta).
|
||||
* [x] Working Auto Item Shop.
|
||||
* Discord Bot:
|
||||
* [x] Being able to activate/deactivate the Discord bot.
|
||||
* [x] Commands with very useful functions.
|
||||
* BattlePass (s2-s13):
|
||||
* BattlePass (s2-s16) / (We are working on season 15 while season 14 is currently not possible :C):
|
||||
* [x] Possibility to buy the battle pass.
|
||||
* [x] Possibility to purchase battle pass levels.
|
||||
* Challenges:
|
||||
* [x] Daily missions worked (Backend Part).
|
||||
* [x] Working weekly missions (Backend Part).
|
||||
* [x] Possibility to gift the battle pass (BETA).
|
||||
* Challenges (Backend Part):
|
||||
* [x] Daily missions worked.
|
||||
* [x] Working weekly missions.
|
||||
* [x] You can replace daily quests.
|
||||
* [x] You can get help from your party to complete missions.
|
||||
* In-Game Events:
|
||||
* [x] You will be able to activate various events that occurred in the game such as the rift in the sky and much more!
|
||||
* Winterfest Event (11.31, 19.01 & 23.10 / BETA):
|
||||
* [x] The winterfest event should work with all its rewards!
|
||||
* SAC (Support A Creator):
|
||||
* [x] It supports a supported creator, you can set it using the `/createsac {code} {ingame-username}` command on discord.
|
||||
* [x] Rewards in vbucks for those who support a creator.
|
||||
* Matchmaker:
|
||||
* [x] An improved matchmaker.
|
||||
* Multiple Gameserver Support:
|
||||
* [x] An improved multiple gameserver.
|
||||
* Website:
|
||||
* [x] A simple website where you can create an account to join the game.
|
||||
### XMPP Features
|
||||
- Parties (builds 3.5 to 14.50).
|
||||
- Chat (whispering, global chat, party chat).
|
||||
- Friends.
|
||||
* XMPP:
|
||||
* [x] Parties.
|
||||
* [x] Chat (whispering, global chat, party chat).
|
||||
* [x] Friends.
|
||||
|
||||
## TO-DO
|
||||
- [ ] New supported battle passes to be added (s14 to s16)
|
||||
- [ ] Create a support for winterfest presents (11.31, 19.01 & 23.10)
|
||||
- [ ] Create a support with save the world
|
||||
|
||||
## Discord Bot Commands
|
||||
@@ -81,21 +86,29 @@ Challenges contributed by [NotTacos](https://github.com/PhysicalDrive)
|
||||
- `/removeitem {user} {cosmeticname}` - Allows you to remove a cosmetic (skin, pickaxe, glider, etc.) from a user
|
||||
- `/unban {targetUsername}` - Unban a user from the backend by their username.
|
||||
### How to set up moderators?
|
||||
1) Go to Config/config.json in the directory you extracted Reload Backend into.
|
||||
2) Open it, you should see a "moderators" section in the file.
|
||||
1) Go to **Config/config.json** in the directory you extracted Reload Backend into.
|
||||
2) Open it, you should see a **"moderators"** section in the file.
|
||||
3) You have to get your discord id and replace discordId with it.
|
||||
4) You can set multiple moderators like this `["discordId","discordId2"]`.
|
||||
### How to setup multiple gameservers
|
||||
1) Go to **Config/config.json** in the directory you extracted Reload Backend into.
|
||||
2) Open it, you should see a **"gameServerIP"** section in the file.
|
||||
3) To add more gameservers you will have to do it like this `"gameServerIP": ["127.0.0.1:7777:playlist_defaultsolo", "127.0.0.1:7777:playlist_defaultduo"],`
|
||||
4) You have now added solos and duos to your matchmaking
|
||||
|
||||
## How to start Reload Backend
|
||||
1) Install [NodeJS](https://nodejs.org/en/) and [MongoDB](https://www.mongodb.com/try/download/community).
|
||||
2) Download and Extract Reload Backend to a safe location.
|
||||
3) Run "install_packages.bat" to install all the required modules.
|
||||
4) Go to Config/config.json in the directory you extracted Reload Backend into.
|
||||
5) Open it, set your discord bot token (DO NOT SHARE THIS TOKEN) and save it. The discord bot will be used for creating accounts and managing your account (You can disable the discord bot by entering "bUseDiscordBot" to false in "Config/config.json").
|
||||
6) Run "start.bat", if there is no errors, it should work.
|
||||
7) Use something to redirect the Fortnite servers to localhost:8080 (Which could be fiddler, ssl bypass that redirects servers, etc...)
|
||||
2) **Download** and **Extract** Reload Backend to a safe location.
|
||||
3) Run **"install_packages.bat"** to install all the required modules.
|
||||
4) Go to **Config/config.json** in the directory you extracted Reload Backend into.
|
||||
5) Open it, set your discord bot token **(DO NOT SHARE THIS TOKEN)** and **save it**. The discord bot will be used for creating accounts and managing your account (You can disable the discord bot by entering "bUseDiscordBot" to false in "Config/config.json").
|
||||
6) Run **"start.bat"**, if there is no errors, it should work.
|
||||
7) Use something to redirect the Fortnite servers to **localhost:8080** (Which could be fiddler, ssl bypass that redirects servers, etc...)
|
||||
8) When Fortnite launches and is connected to the backend, enter your email and password (or launch with an exchange code) then press login. It should let you in and everything should be working fine.
|
||||
|
||||
## License
|
||||
This **project/backend** is licensed under the **BSD 3-Clause License.**
|
||||
|
||||
## Credits
|
||||
### Credits to:
|
||||
* [Lawin](https://github.com/Lawin0129) - For the backend base (LawinServerV2)
|
||||
@@ -103,5 +116,10 @@ Challenges contributed by [NotTacos](https://github.com/PhysicalDrive)
|
||||
* [NotTacos](https://github.com/PhysicalDrive) - For adding the working challenges (Backend Part)
|
||||
* [zvivsp](https://github.com/zvivsp) - For creating the graphics
|
||||
* [joaco](https://github.com/ojotaa0124) - For helping with CloudStorage and responses stuff
|
||||
* [Marvelco](https://github.com/MarvelcoOGFN) - For helping with Battle passes
|
||||
* [nade](https://github.com/gn1e) - For creating the base of the Auto Item Shop (Even if [Burlone](https://github.com/burlone0) solved many problems heheheh)
|
||||
* [PRO100KatYT](https://github.com/PRO100KatYT) - For helping with some .json files
|
||||
* [Marvelco](https://github.com/MarvelcoOGFN) - For helping with Battle passes (s11 - s16) / (We are working on season 15 while season 14 is currently not possible :C)
|
||||
* [nade](https://github.com/gn1e) - For creating the base of the Auto Item Shop (Even if [Burlone](https://github.com/burlone0) solved many problems heheheh)
|
||||
|
||||
---
|
||||
|
||||
**Reload Backend** is under continuous development and there may be errors of any kind, if you want to give advice on what to add and how to improve the project or report any errors you can do so via our [Discord](https://discord.gg/PmYMpY9thJ) server
|
||||
@@ -4,6 +4,7 @@ const fs = require("fs");
|
||||
const rateLimit = require("express-rate-limit");
|
||||
const jwt = require("jsonwebtoken");
|
||||
const path = require("path");
|
||||
const kv = require("./structs/kv.js");
|
||||
const config = JSON.parse(fs.readFileSync("./Config/config.json").toString());
|
||||
|
||||
const log = require("./structs/log.js");
|
||||
@@ -41,6 +42,7 @@ fs.writeFileSync("./tokenManager/tokens.json", JSON.stringify(tokens, null, 2));
|
||||
global.accessTokens = tokens.accessTokens;
|
||||
global.refreshTokens = tokens.refreshTokens;
|
||||
global.clientTokens = tokens.clientTokens;
|
||||
global.kv = kv;
|
||||
|
||||
global.exchangeCodes = [];
|
||||
|
||||
|
||||
@@ -1,2 +1,5 @@
|
||||
@echo off
|
||||
title Reload Backend Package Installer
|
||||
|
||||
npm i
|
||||
pause
|
||||
@@ -0,0 +1,17 @@
|
||||
const mongoose = require("mongoose");
|
||||
|
||||
const MMCodesSchema = new mongoose.Schema({
|
||||
created: { type: Date, required: true },
|
||||
owner: { type: mongoose.Types.ObjectId, ref: "UserSchema" },
|
||||
code: { type: String, required: true },
|
||||
code_lower: { type: String, required: true },
|
||||
ip: { type: String, required: true },
|
||||
port: { type: Number, required: true },
|
||||
private: { type: Boolean, required: false },
|
||||
}, {
|
||||
collection: "mmcodes"
|
||||
});
|
||||
|
||||
const model = mongoose.model('MMCodeSchema', MMCodesSchema);
|
||||
|
||||
module.exports = model;
|
||||
Generated
+107
@@ -9,6 +9,7 @@
|
||||
"version": "1.0.0",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.7",
|
||||
"bad-words": "^3.0.4",
|
||||
"bcrypt": "^5.1.0",
|
||||
"destr": "^2.0.3",
|
||||
@@ -16,6 +17,7 @@
|
||||
"dotenv": "^16.0.3",
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^6.7.0",
|
||||
"ioredis": "^5.4.1",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"mongoose": "^6.6.5",
|
||||
"path": "^0.12.7",
|
||||
@@ -55,6 +57,11 @@
|
||||
"node": ">=16.9.0"
|
||||
}
|
||||
},
|
||||
"node_modules/@ioredis/commands": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz",
|
||||
"integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg=="
|
||||
},
|
||||
"node_modules/@mapbox/node-pre-gyp": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz",
|
||||
@@ -229,6 +236,16 @@
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"node_modules/axios": {
|
||||
"version": "1.7.7",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
|
||||
"integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
|
||||
"dependencies": {
|
||||
"follow-redirects": "^1.15.6",
|
||||
"form-data": "^4.0.0",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"node_modules/bad-words": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/bad-words/-/bad-words-3.0.4.tgz",
|
||||
@@ -867,6 +884,50 @@
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
||||
},
|
||||
"node_modules/ioredis": {
|
||||
"version": "5.4.1",
|
||||
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.4.1.tgz",
|
||||
"integrity": "sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==",
|
||||
"dependencies": {
|
||||
"@ioredis/commands": "^1.1.1",
|
||||
"cluster-key-slot": "^1.1.0",
|
||||
"debug": "^4.3.4",
|
||||
"denque": "^2.1.0",
|
||||
"lodash.defaults": "^4.2.0",
|
||||
"lodash.isarguments": "^3.1.0",
|
||||
"redis-errors": "^1.2.0",
|
||||
"redis-parser": "^3.0.0",
|
||||
"standard-as-callback": "^2.1.0"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=12.22.0"
|
||||
},
|
||||
"funding": {
|
||||
"type": "opencollective",
|
||||
"url": "https://opencollective.com/ioredis"
|
||||
}
|
||||
},
|
||||
"node_modules/ioredis/node_modules/debug": {
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
|
||||
"integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
|
||||
"dependencies": {
|
||||
"ms": "^2.1.3"
|
||||
},
|
||||
"engines": {
|
||||
"node": ">=6.0"
|
||||
},
|
||||
"peerDependenciesMeta": {
|
||||
"supports-color": {
|
||||
"optional": true
|
||||
}
|
||||
}
|
||||
},
|
||||
"node_modules/ioredis/node_modules/ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
},
|
||||
"node_modules/ip": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",
|
||||
@@ -1853,6 +1914,11 @@
|
||||
"resolved": "https://registry.npmjs.org/@discordjs/collection/-/collection-0.7.0.tgz",
|
||||
"integrity": "sha512-R5i8Wb8kIcBAFEPLLf7LVBQKBDYUL+ekb23sOgpkpyGT+V4P7V83wTxcsqmX+PbqHt4cEHn053uMWfRqh/Z/nA=="
|
||||
},
|
||||
"@ioredis/commands": {
|
||||
"version": "1.2.0",
|
||||
"resolved": "https://registry.npmjs.org/@ioredis/commands/-/commands-1.2.0.tgz",
|
||||
"integrity": "sha512-Sx1pU8EM64o2BrqNpEO1CNLtKQwyhuXuqyfH7oGKCk+1a33d2r5saW8zNwm3j6BTExtjrv2BxTgzzkMwts6vGg=="
|
||||
},
|
||||
"@mapbox/node-pre-gyp": {
|
||||
"version": "1.0.10",
|
||||
"resolved": "https://registry.npmjs.org/@mapbox/node-pre-gyp/-/node-pre-gyp-1.0.10.tgz",
|
||||
@@ -1997,6 +2063,16 @@
|
||||
"resolved": "https://registry.npmjs.org/asynckit/-/asynckit-0.4.0.tgz",
|
||||
"integrity": "sha512-Oei9OH4tRh0YqU3GxhX79dM/mwVgvbZJaSNaRk+bshkj0S5cfHcgYakreBjrHwatXKbz+IoIdYLxrKim2MjW0Q=="
|
||||
},
|
||||
"axios": {
|
||||
"version": "1.7.7",
|
||||
"resolved": "https://registry.npmjs.org/axios/-/axios-1.7.7.tgz",
|
||||
"integrity": "sha512-S4kL7XrjgBmvdGut0sN3yJxqYzrDOnivkBiN0OFs6hLiUam3UPvswUo0kqGyhqUZGEOytHyumEdXsAkgCOUf3Q==",
|
||||
"requires": {
|
||||
"follow-redirects": "^1.15.6",
|
||||
"form-data": "^4.0.0",
|
||||
"proxy-from-env": "^1.1.0"
|
||||
}
|
||||
},
|
||||
"bad-words": {
|
||||
"version": "3.0.4",
|
||||
"resolved": "https://registry.npmjs.org/bad-words/-/bad-words-3.0.4.tgz",
|
||||
@@ -2469,6 +2545,37 @@
|
||||
"resolved": "https://registry.npmjs.org/inherits/-/inherits-2.0.4.tgz",
|
||||
"integrity": "sha512-k/vGaX4/Yla3WzyMCvTQOXYeIHvqOKtnqBduzTHpzpQZzAskKMhZ2K+EnBiSM9zGSoIFeMpXKxa4dYeZIQqewQ=="
|
||||
},
|
||||
"ioredis": {
|
||||
"version": "5.4.1",
|
||||
"resolved": "https://registry.npmjs.org/ioredis/-/ioredis-5.4.1.tgz",
|
||||
"integrity": "sha512-2YZsvl7jopIa1gaePkeMtd9rAcSjOOjPtpcLlOeusyO+XH2SK5ZcT+UCrElPP+WVIInh2TzeI4XW9ENaSLVVHA==",
|
||||
"requires": {
|
||||
"@ioredis/commands": "^1.1.1",
|
||||
"cluster-key-slot": "^1.1.0",
|
||||
"debug": "^4.3.4",
|
||||
"denque": "^2.1.0",
|
||||
"lodash.defaults": "^4.2.0",
|
||||
"lodash.isarguments": "^3.1.0",
|
||||
"redis-errors": "^1.2.0",
|
||||
"redis-parser": "^3.0.0",
|
||||
"standard-as-callback": "^2.1.0"
|
||||
},
|
||||
"dependencies": {
|
||||
"debug": {
|
||||
"version": "4.3.7",
|
||||
"resolved": "https://registry.npmjs.org/debug/-/debug-4.3.7.tgz",
|
||||
"integrity": "sha512-Er2nc/H7RrMXZBFCEim6TCmMk02Z8vLC2Rbi1KEBggpo0fS6l0S1nnapwmIi3yW/+GOJap1Krg4w0Hg80oCqgQ==",
|
||||
"requires": {
|
||||
"ms": "^2.1.3"
|
||||
}
|
||||
},
|
||||
"ms": {
|
||||
"version": "2.1.3",
|
||||
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.3.tgz",
|
||||
"integrity": "sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA=="
|
||||
}
|
||||
}
|
||||
},
|
||||
"ip": {
|
||||
"version": "2.0.0",
|
||||
"resolved": "https://registry.npmjs.org/ip/-/ip-2.0.0.tgz",
|
||||
|
||||
@@ -4,6 +4,7 @@
|
||||
"description": "Created by Burlone, This is a modded backend, all main backend credits to lawin",
|
||||
"main": "index.js",
|
||||
"dependencies": {
|
||||
"axios": "^1.7.7",
|
||||
"bad-words": "^3.0.4",
|
||||
"bcrypt": "^5.1.0",
|
||||
"destr": "^2.0.3",
|
||||
@@ -11,6 +12,7 @@
|
||||
"dotenv": "^16.0.3",
|
||||
"express": "^4.18.2",
|
||||
"express-rate-limit": "^6.7.0",
|
||||
"ioredis": "^5.4.1",
|
||||
"jsonwebtoken": "^8.5.1",
|
||||
"mongoose": "^6.6.5",
|
||||
"path": "^0.12.7",
|
||||
|
||||
@@ -0,0 +1,449 @@
|
||||
{
|
||||
"battleBundleOfferId": "87C3990F72DB42C2A6116D2F5C8CAC57",
|
||||
"battlePassOfferId": "7A973F444663B3A522172FAE32751346",
|
||||
"tierOfferId": "50558EA040438C481ACC59897D1B7AE4",
|
||||
"paidRewards": [
|
||||
{
|
||||
"Token:athenaseasonxpboost": 50,
|
||||
"Token:athenaseasonfriendxpboost": 60,
|
||||
"AthenaCharacter:cid_989_athena_commando_m_progressivejonesy": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_00": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_01": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_02": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_03": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_04": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_05": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_06": 1,
|
||||
"ChallengeBundleSchedule:season16_alternatestyles_schedule_07": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_01": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_02": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_03": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_04": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_05": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_06": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_07": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_08": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_09": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_10": 1,
|
||||
"ChallengeBundleSchedule:season16_bicycle_schedule_11": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t1_schedule_01": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t1_schedule_02": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t1_schedule_03": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t2_schedule_01": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t2_schedule_02": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t2_schedule_03": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t3_schedule_01": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t3_schedule_02": 1,
|
||||
"ChallengeBundleSchedule:season16_superstyles_t3_schedule_03": 1,
|
||||
"Quest:quest_s16_tribute_q01": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:spid_250_agentjonesy": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaLoadingScreen:lsid_283_agentjonesy": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:emoji_s16_agentjonesy": 1
|
||||
},
|
||||
{
|
||||
"AthenaMusicPack:musicpack_080_s15_endevent": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaBackpack:bid_720_temple": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:emoji_s16_temple": 1
|
||||
},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaBackpack:bid_718_progressivejonesy": 1,
|
||||
"ChallengeBundleSchedule:season16_narrative_schedule_02": 1
|
||||
},
|
||||
{
|
||||
"AthenaCharacter:cid_a_040_athena_commando_f_temple": 1
|
||||
},
|
||||
{
|
||||
"AthenaPickaxe:pickaxe_id_570_temple": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:eid_temple": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_temple": 1
|
||||
},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_949_Temple_StyleB": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:spid_249_dinohunter": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:emoji_s16_dinohunter": 1
|
||||
},
|
||||
{
|
||||
"AthenaPickaxe:pickaxe_id_566_dinohunterfemale": 1
|
||||
},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_934_ProgressiveJonesy_Backbling_StyleB": 1,
|
||||
"ChallengeBundleSchedule:season16_narrative_schedule_05": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaCharacter:cid_a_037_athena_commando_f_dinohunter": 1
|
||||
},
|
||||
{
|
||||
"AthenaGlider:glider_id_282_dinohunterfemale": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:eid_suits": 1
|
||||
},
|
||||
{
|
||||
"AthenaLoadingScreen:lsid_282_dinohunter": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"AthenaSkyDiveContrail:trails_id_113_dinohunter": 1
|
||||
},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_940_DinoHunter_StyleB": 1
|
||||
},
|
||||
{
|
||||
"AthenaPickaxe:pickaxe_id_564_cubeninjamale": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:spid_248_cubeninja": 1
|
||||
},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_cubeninja": 1
|
||||
},
|
||||
{
|
||||
"AthenaLoadingScreen:lsid_281_cubeninja": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaGlider:glider_id_280_cubeninjamale": 1
|
||||
},
|
||||
{
|
||||
"AthenaBackpack:bid_719_cubeninja": 1
|
||||
},
|
||||
{
|
||||
"AthenaSkyDiveContrail:trails_id_112_cubeninja": 1
|
||||
},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_937_ProgressiveJonesy_Backbling_StyleE": 1,
|
||||
"ChallengeBundleSchedule:season16_narrative_schedule_04": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaCharacter:cid_a_041_athena_commando_m_cubeninja": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:emoji_s16_cubeninja": 1
|
||||
},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"ItemAccessToken:iatid_015_emote_cubeninja": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaLoadingScreen:lsid_284_chickenwarrior": 1
|
||||
},
|
||||
{
|
||||
"AthenaBackpack:bid_716_chickenwarrior": 1
|
||||
},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"AthenaGlider:glider_id_279_chickenwarriormale": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_935_ProgressiveJonesy_Backbling_StyleC": 1,
|
||||
"ChallengeBundleSchedule:season16_narrative_schedule_01": 1
|
||||
},
|
||||
{
|
||||
"AthenaCharacter:cid_a_039_athena_commando_m_chickenwarrior": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:eid_bootsandcats": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:spid_251_chickenwarrior": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaPickaxe:pickaxe_id_563_chickenwarriormale1h": 1
|
||||
},
|
||||
{
|
||||
"AthenaItemWrap:wrap_334_chickenwarrior": 1
|
||||
},
|
||||
{
|
||||
"AthenaSkyDiveContrail:trails_id_093_spacewanderer": 1
|
||||
},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_933_ChickenWarrior_Backbling_StyleC": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_943_ChickenWarrior_StyleC": 1,
|
||||
"CosmeticVariantToken:VTID_956_ChickenWarriorGlider_StyleC": 1
|
||||
},
|
||||
{
|
||||
"AthenaMusicPack:musicpack_079_s16_cine": 1
|
||||
},
|
||||
{
|
||||
"AthenaGlider:glider_id_283_obsidianfemale": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"AthenaDance:emoji_s16_obsidian": 1
|
||||
},
|
||||
{
|
||||
"AthenaItemWrap:wrap_340_yogurt": 1
|
||||
},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_936_ProgressiveJonesy_Backbling_StyleD": 1,
|
||||
"ChallengeBundleSchedule:season16_narrative_schedule_03": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaCharacter:cid_a_036_athena_commando_f_obsidian": 1
|
||||
},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"AthenaLoadingScreen:lsid_279_obsidian": 1
|
||||
},
|
||||
{
|
||||
"AthenaBackpack:bid_714_obsidian": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:eid_obsidian": 1
|
||||
},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{},
|
||||
{
|
||||
"CosmeticVariantToken:VTID_938_Obsidian_StyleB": 1
|
||||
},
|
||||
{
|
||||
"AthenaItemWrap:wrap_338_towersentinel": 1
|
||||
},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_alt_1": 1
|
||||
},
|
||||
{
|
||||
"AthenaGlider:glider_id_285_towersentinelfemale": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:emoji_s16_alt_1": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:spid_253_alt_1": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{
|
||||
"AthenaSkyDiveContrail:trails_id_116_wavesoflight": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:spid_247_sentinel": 1
|
||||
},
|
||||
{
|
||||
"AthenaPickaxe:pickaxe_id_571_towersentinelfemale": 1
|
||||
},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_sentinel": 1
|
||||
},
|
||||
{
|
||||
"AthenaDance:emoji_s16_sentinel": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaCharacter:cid_a_038_athena_commando_f_towersentinel": 1,
|
||||
"ItemAccessToken:iatid_016_emote_towersentinel": 1
|
||||
}
|
||||
],
|
||||
"freeRewards": [
|
||||
{},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_agentjonesy": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:eid_custodial": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaLoadingScreen:lsid_289_yogurtjonesy": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:spid_252_temple": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaSkyDiveContrail:trails_id_114_temple": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaGlider:glider_id_284_templefemale": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaItemWrap:wrap_336_dinohunter": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_dinohunter": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaBackpack:bid_715_dinohunterfemale": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaMusicPack:musicpack_078_raisetheroof": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaSkyDiveContrail:trails_id_115_tube": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_chickenwarrior": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:emoji_s16_chickenwarrior": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaDance:spid_246_obsidian": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"Token:athena_s16_nobattlebundleoption_token": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaPickaxe:pickaxe_id_568_obsidianfemale": 1
|
||||
},
|
||||
{},
|
||||
{
|
||||
"HomebaseBannerIcon:brs16_obsidian": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaLoadingScreen:lsid_280_sentinel": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"AthenaBackpack:bid_717_towersentinel": 1
|
||||
},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{},
|
||||
{
|
||||
"Currency:mtxgiveaway": 100
|
||||
},
|
||||
{}
|
||||
]
|
||||
}
|
||||
@@ -3801,6 +3801,140 @@
|
||||
"itemGrants": []
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"name": "BRSeason16",
|
||||
"catalogEntries": [
|
||||
{
|
||||
"offerId": "7A973F444663B3A522172FAE32751346",
|
||||
"devName": "BR.Season16.BattlePass.01",
|
||||
"offerType": "StaticPrice",
|
||||
"prices": [
|
||||
{
|
||||
"currencyType": "MtxCurrency",
|
||||
"currencySubType": "",
|
||||
"regularPrice": 950,
|
||||
"dynamicRegularPrice": -1,
|
||||
"finalPrice": 950,
|
||||
"saleExpiration": "9999-12-31T23:59:59.999Z",
|
||||
"basePrice": 950
|
||||
}
|
||||
],
|
||||
"categories": [],
|
||||
"dailyLimit": -1,
|
||||
"weeklyLimit": -1,
|
||||
"monthlyLimit": -1,
|
||||
"refundable": false,
|
||||
"appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""],
|
||||
"requirements": [
|
||||
{
|
||||
"requirementType": "DenyOnFulfillment",
|
||||
"requiredId": "7A973F444663B3A522172FAE32751346",
|
||||
"minQuantity": 1
|
||||
}
|
||||
],
|
||||
"metaInfo": [
|
||||
{
|
||||
"key": "Preroll",
|
||||
"value": "False"
|
||||
}
|
||||
],
|
||||
"catalogGroup": "",
|
||||
"catalogGroupPriority": 0,
|
||||
"sortPriority": 1,
|
||||
"title": "Battle Pass",
|
||||
"shortDescription": "Chapter 2 - Season 6",
|
||||
"description": "gasp",
|
||||
"displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePass.DA_BR_Season16_BattlePass",
|
||||
"itemGrants": []
|
||||
},
|
||||
{
|
||||
"offerId": "50558EA040438C481ACC59897D1B7AE4",
|
||||
"devName": "BR.Season16.SingleTier.01",
|
||||
"offerType": "StaticPrice",
|
||||
"prices": [
|
||||
{
|
||||
"currencyType": "MtxCurrency",
|
||||
"currencySubType": "",
|
||||
"regularPrice": 150,
|
||||
"dynamicRegularPrice": -1,
|
||||
"finalPrice": 150,
|
||||
"saleExpiration": "9999-12-31T23:59:59.999Z",
|
||||
"basePrice": 150
|
||||
}
|
||||
],
|
||||
"categories": [],
|
||||
"dailyLimit": -1,
|
||||
"weeklyLimit": -1,
|
||||
"monthlyLimit": -1,
|
||||
"refundable": false,
|
||||
"appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""],
|
||||
"requirements": [],
|
||||
"metaInfo": [
|
||||
{
|
||||
"key": "Preroll",
|
||||
"value": "False"
|
||||
}
|
||||
],
|
||||
"catalogGroup": "",
|
||||
"catalogGroupPriority": 0,
|
||||
"sortPriority": 0,
|
||||
"title": "Battle Pass Level",
|
||||
"shortDescription": "",
|
||||
"description": "Get great rewards now!",
|
||||
"displayAssetPath": "",
|
||||
"itemGrants": []
|
||||
},
|
||||
{
|
||||
"offerId": "87C3990F72DB42C2A6116D2F5C8CAC57",
|
||||
"devName": "BR.Season16.BattleBundle.01",
|
||||
"offerType": "StaticPrice",
|
||||
"prices": [
|
||||
{
|
||||
"currencyType": "MtxCurrency",
|
||||
"currencySubType": "",
|
||||
"regularPrice": 4700,
|
||||
"dynamicRegularPrice": -1,
|
||||
"finalPrice": 2800,
|
||||
"saleType": "PercentOff",
|
||||
"saleExpiration": "9999-12-31T23:59:59.999Z",
|
||||
"basePrice": 2800
|
||||
}
|
||||
],
|
||||
"categories": [],
|
||||
"dailyLimit": -1,
|
||||
"weeklyLimit": -1,
|
||||
"monthlyLimit": -1,
|
||||
"refundable": false,
|
||||
"appStoreId": ["", "", "", "", "", "", "", "", "", "", "", ""],
|
||||
"requirements": [
|
||||
{
|
||||
"requirementType": "DenyOnFulfillment",
|
||||
"requiredId": "87C3990F72DB42C2A6116D2F5C8CAC57",
|
||||
"minQuantity": 1
|
||||
},
|
||||
{
|
||||
"requirementType": "DenyOnItemOwnership",
|
||||
"requiredId": "Token:athena_s16_nobattlebundleoption_token",
|
||||
"minQuantity": 1
|
||||
}
|
||||
],
|
||||
"metaInfo": [
|
||||
{
|
||||
"key": "Preroll",
|
||||
"value": "False"
|
||||
}
|
||||
],
|
||||
"catalogGroup": "",
|
||||
"catalogGroupPriority": 0,
|
||||
"sortPriority": 0,
|
||||
"title": "Battle Bundle",
|
||||
"shortDescription": "Battle Pass + 25 levels!",
|
||||
"description": "",
|
||||
"displayAssetPath": "/Game/Catalog/DisplayAssets/DA_BR_Season16_BattlePassWithLevels.DA_BR_Season16_BattlePassWithLevels",
|
||||
"itemGrants": []
|
||||
}
|
||||
]
|
||||
}
|
||||
]
|
||||
}
|
||||
File diff suppressed because it is too large
Load Diff
+38210
-43473
File diff suppressed because it is too large
Load Diff
+27192
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,51 @@
|
||||
{
|
||||
"Season11": {
|
||||
"ERG.Node.A.1": ["AthenaCharacter:cid_645_athena_commando_f_wolly"],
|
||||
"ERG.Node.B.1": ["AthenaGlider:glider_id_188_galileorocket_g7oki"],
|
||||
"ERG.Node.C.1": ["AthenaBackpack:bid_430_galileospeedboat_9rxe3"],
|
||||
"ERG.Node.D.1": ["AthenaCharacter:cid_643_athena_commando_m_ornamentsoldier"],
|
||||
"ERG.Node.A.2": ["AthenaPickaxe:pickaxe_id_329_gingerbreadcookie1h"],
|
||||
"ERG.Node.A.3": ["AthenaPickaxe:pickaxe_id_332_mintminer"],
|
||||
"ERG.Node.A.4": ["AthenaDance:eid_snowglobe"],
|
||||
"ERG.Node.A.5": ["AthenaGlider:glider_id_191_pinetree"],
|
||||
"ERG.Node.A.6": ["AthenaItemWrap:wrap_188_wrappingpaper"],
|
||||
"ERG.Node.A.7": ["AthenaItemWrap:wrap_183_newyear2020"],
|
||||
"ERG.Node.A.8": ["AthenaSkyDiveContrail:trails_id_082_holidaygarland"],
|
||||
"ERG.Node.A.9": ["AthenaMusicPack:musicpack_040_xmaschiptunes"],
|
||||
"ERG.Node.A.10": ["AthenaLoadingScreen:lsid_208_smpattern"],
|
||||
"ERG.Node.A.11": ["AthenaLoadingScreen:lsid_209_akcrackshot"]
|
||||
},
|
||||
"Season19": {
|
||||
"ERG.Node.A.1": ["Token:14daysoffortnite_small_giftbox"],
|
||||
"ERG.Node.B.1": ["AthenaDance:emoji_s19_animwinterfest2021"],
|
||||
"ERG.Node.C.1": ["AthenaGlider:glider_id_335_logarithm_40qgl"],
|
||||
"ERG.Node.D.1": ["AthenaCharacter:cid_a_323_athena_commando_m_bananawinter"],
|
||||
"ERG.Node.A.2": ["HomebaseBannerIcon:brs19_winterfest2021"],
|
||||
"ERG.Node.A.3": ["AthenaSkyDiveContrail:trails_id_137_turtleneckcrystal"],
|
||||
"ERG.Node.A.4": ["AthenaItemWrap:wrap_429_holidaysweater"],
|
||||
"ERG.Node.A.5": ["AthenaLoadingScreen:lsid_393_winterfest2021"],
|
||||
"ERG.Node.A.6": ["AthenaMusicPack:musicpack_117_winterfest2021"],
|
||||
"ERG.Node.A.7": ["AthenaDance:eid_epicyarn"],
|
||||
"ERG.Node.A.8": ["AthenaCharacter:cid_a_310_athena_commando_F_scholarfestive"],
|
||||
"ERG.Node.A.9": ["AthenaPickaxe:pickaxe_id_731_scholarfestivefemale1h"],
|
||||
"ERG.Node.A.10": ["AthenaItemWrap:wrap_430_winterlights"],
|
||||
"ERG.Node.A.11": ["AthenaDance:spid_346_winterfest_2021"],
|
||||
"ERG.Node.A.12": ["AthenaPickaxe:pickaxe_ID_732_shovelmale"]
|
||||
},
|
||||
"Season23": {
|
||||
"ERG.Node.A.1": ["AthenaCharacter:character_sportsfashion_winter"],
|
||||
"ERG.Node.B.1": ["AthenaCharacter:character_cometdeer"],
|
||||
"ERG.Node.A.2": ["AthenaGlider:glider_default_jolly"],
|
||||
"ERG.Node.A.3": ["AthenaDance:eid_dashing"],
|
||||
"ERG.Node.A.4": ["AthenaDance:spray_guffholidaytree_winterfest2022", "AthenaDance:spray_winterreindeer_winterfest2022", "AthenaDance:spray_defacedsnowman_winterfest2022"],
|
||||
"ERG.Node.A.5": ["AthenaDance:emoji_s23_winterfest_2022"],
|
||||
"ERG.Node.A.6": ["AthenaMusicPack:musicpack_164_redpepper_winterfest"],
|
||||
"ERG.Node.A.7": ["AthenaItemWrap:wrap_winter_pal"],
|
||||
"ERG.Node.A.8": ["AthenaPickaxe:pickaxe_jollytroll"],
|
||||
"ERG.Node.A.9": ["AthenaGlider:glider_jollytroll"],
|
||||
"ERG.Node.A.10": ["AthenaBackpack:backpack_jollytroll"],
|
||||
"ERG.Node.A.11": ["AthenaMusicPack:musicpack_163_winterfest_2022", "AthenaMusicPack:musicpack_157_radish_nightnight"],
|
||||
"ERG.Node.A.12": ["AthenaItemWrap:wrap_cometwinter"],
|
||||
"ERG.Node.A.13": ["AthenaSkyDiveContrail:contrail_jollytroll"]
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,34 @@
|
||||
const express = require("express");
|
||||
const app = express.Router();
|
||||
const User = require("../model/user.js");
|
||||
const bcrypt = require("bcrypt");
|
||||
|
||||
//Api for launcher login
|
||||
app.post("/launcher/login", async (req, res) => {
|
||||
const { email, password } = req.body;
|
||||
|
||||
if (!email) return res.status(400).send('The email was not entered.');
|
||||
if (!password) return res.status(400).send('The password was not entered.');
|
||||
|
||||
try {
|
||||
const user = await User.findOne({ email: email });
|
||||
if (!user) return res.status(404).send('User not found.');
|
||||
|
||||
const passwordMatch = await bcrypt.compare(password, user.password);
|
||||
|
||||
if (passwordMatch) {
|
||||
const username = user.username;
|
||||
|
||||
return res.status(200).json({
|
||||
username: username,
|
||||
});
|
||||
} else {
|
||||
return res.status(400).send('Error!');
|
||||
}
|
||||
} catch (err) {
|
||||
console.error('Launcher Api Error:', err);
|
||||
return res.status(500).send('Error encountered, look at the console');
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = app;
|
||||
+1
-1
@@ -1,7 +1,7 @@
|
||||
const express = require("express")
|
||||
const app = express.Router();
|
||||
const fs = require("fs")
|
||||
const eulaJson = JSON.parse(fs.readFileSync('./responses/SharedAgreements.json', 'utf8'));
|
||||
const eulaJson = JSON.parse(fs.readFileSync('./responses/eula/SharedAgreements.json', 'utf8'));
|
||||
|
||||
app.get("/eulatracking/api/shared/agreements/fn", async (req, res) => {
|
||||
res.json(eulaJson);
|
||||
|
||||
@@ -77,6 +77,17 @@ app.get("/Builds/Fortnite/Content/CloudDir/*.chunk", async (req, res) => {
|
||||
res.status(200).send(chunk).end();
|
||||
})
|
||||
|
||||
app.post("/fortnite/api/game/v2/grant_access/*", async (req, res) => {
|
||||
log.debug("POST /fortnite/api/game/v2/grant_access/* called");
|
||||
res.json({});
|
||||
res.status(204);
|
||||
})
|
||||
|
||||
app.post("/api/v1/user/setting", async (req, res) => {
|
||||
log.debug("POST /api/v1/user/setting called");
|
||||
res.json([]);
|
||||
})
|
||||
|
||||
app.get("/Builds/Fortnite/Content/CloudDir/*.ini", async (req, res) => {
|
||||
const ini = fs.readFileSync(path.join(__dirname, "..", "responses", "CloudDir", "Full.ini"));
|
||||
|
||||
@@ -180,6 +191,11 @@ app.post("/fortnite/api/game/v2/chat/*/recommendGeneralChatRooms/pc", (req, res)
|
||||
res.json({});
|
||||
});
|
||||
|
||||
app.get("/presence/api/v1/_/*/last-online", async (req, res) => {
|
||||
log.debug("GET /presence/api/v1/_/*/last-online called");
|
||||
res.json({})
|
||||
})
|
||||
|
||||
app.get("/fortnite/api/receipts/v1/account/*/receipts", (req, res) => {
|
||||
log.debug("GET /fortnite/api/receipts/v1/account/*/receipts called");
|
||||
res.json([]);
|
||||
|
||||
+61
-32
@@ -1,36 +1,64 @@
|
||||
const express = require("express");
|
||||
const app = express.Router();
|
||||
const fs = require("fs");
|
||||
const config = require("../Config/config.json");
|
||||
const functions = require("../structs/functions.js");
|
||||
const log = require("../structs/log.js");
|
||||
|
||||
const { verifyToken, verifyClient } = require("../tokenManager/tokenVerify.js");
|
||||
const MMCode = require("../model/mmcodes.js");
|
||||
const { verifyToken } = require("../tokenManager/tokenVerify.js");
|
||||
const qs = require("qs");
|
||||
const error = require("../structs/error.js");
|
||||
|
||||
let buildUniqueId = {};
|
||||
|
||||
app.get("/fortnite/api/matchmaking/session/findPlayer/*", (req, res) => {
|
||||
log.debug("GET /fortnite/api/matchmaking/session/findPlayer/* called");
|
||||
res.status(200).end();
|
||||
res.status(200);
|
||||
res.end();
|
||||
});
|
||||
|
||||
app.get("/fortnite/api/game/v2/matchmakingservice/ticket/player/*", verifyToken, (req, res) => {
|
||||
app.get("/fortnite/api/game/v2/matchmakingservice/ticket/player/*", verifyToken, async (req, res) => {
|
||||
log.debug("GET /fortnite/api/game/v2/matchmakingservice/ticket/player/* called");
|
||||
if (typeof req.query.bucketId != "string") return res.status(400).end();
|
||||
if (req.query.bucketId.split(":").length != 4) return res.status(400).end();
|
||||
if (req.user.isServer == true) return res.status(403).end();
|
||||
if (req.user.matchmakingId == null) return res.status(400).end();
|
||||
|
||||
const playerCustomKey = qs.parse(req.url.split("?")[1], { ignoreQueryPrefix: true })['player.option.customKey'];
|
||||
const bucketId = qs.parse(req.url.split("?")[1], { ignoreQueryPrefix: true })['bucketId'];
|
||||
if (typeof bucketId !== "string" || bucketId.split(":").length !== 4) {
|
||||
return res.status(400).end();
|
||||
}
|
||||
const playlist = bucketId.split(":")[3];
|
||||
const gameServers = config.gameServerIP;
|
||||
let selectedServer = gameServers.find(server => server.split(":")[2] === playlist);
|
||||
if (!selectedServer) {
|
||||
log.debug("No server found for playlist", playlist);
|
||||
return error.createError("errors.com.epicgames.common.matchmaking.playlist.not_found", `No server found for playlist ${playlist}`, [], 1013, "invalid_playlist", 404, res);
|
||||
}
|
||||
await global.kv.set(`playerPlaylist:${req.user.accountId}`, playlist);
|
||||
if (typeof playerCustomKey == "string") {
|
||||
let codeDocument = await MMCode.findOne({ code_lower: playerCustomKey?.toLowerCase() });
|
||||
if (!codeDocument) {
|
||||
return error.createError("errors.com.epicgames.common.matchmaking.code.not_found", `The matchmaking code "${playerCustomKey}" was not found`, [], 1013, "invalid_code", 404, res);
|
||||
}
|
||||
const kvDocument = JSON.stringify({
|
||||
ip: codeDocument.ip,
|
||||
port: codeDocument.port,
|
||||
playlist: playlist,
|
||||
});
|
||||
await global.kv.set(`playerCustomKey:${req.user.accountId}`, kvDocument);
|
||||
}
|
||||
if (typeof req.query.bucketId !== "string" || req.query.bucketId.split(":").length !== 4) {
|
||||
return res.status(400).end();
|
||||
}
|
||||
|
||||
buildUniqueId[req.user.accountId] = req.query.bucketId.split(":")[0];
|
||||
|
||||
const config = JSON.parse(fs.readFileSync("./Config/config.json").toString());
|
||||
|
||||
res.json({
|
||||
"serviceUrl": `ws://${config.matchmakerIP}`,
|
||||
const matchmakerIP = config.matchmakerIP;
|
||||
return res.json({
|
||||
"serviceUrl": matchmakerIP.includes("ws") || matchmakerIP.includes("wss") ? matchmakerIP : `ws://${matchmakerIP}`,
|
||||
"ticketType": "mms-player",
|
||||
"payload": `${req.user.matchmakingId}`,
|
||||
"signature": "account"
|
||||
});
|
||||
res.end();
|
||||
});
|
||||
|
||||
app.get("/fortnite/api/game/v2/matchmaking/account/:accountId/session/:sessionId", (req, res) => {
|
||||
@@ -42,32 +70,32 @@ app.get("/fortnite/api/game/v2/matchmaking/account/:accountId/session/:sessionId
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/fortnite/api/matchmaking/session/:sessionId", verifyToken, (req, res) => {
|
||||
app.get("/fortnite/api/matchmaking/session/:sessionId", verifyToken, async (req, res) => {
|
||||
log.debug(`GET /fortnite/api/matchmaking/session/${req.params.sessionId} called`);
|
||||
const config = JSON.parse(fs.readFileSync("./Config/config.json").toString());
|
||||
|
||||
let gameServerInfo = {
|
||||
serverAddress: "127.0.0.1",
|
||||
serverPort: 7777
|
||||
const playlist = await global.kv.get(`playerPlaylist:${req.user.accountId}`);
|
||||
let kvDocument = await global.kv.get(`playerCustomKey:${req.user.accountId}`);
|
||||
if (!kvDocument) {
|
||||
const gameServers = config.gameServerIP;
|
||||
let selectedServer = gameServers.find(server => server.split(":")[2] === playlist);
|
||||
if (!selectedServer) {
|
||||
log.debug("No server found for playlist", playlist);
|
||||
return error.createError("errors.com.epicgames.common.matchmaking.playlist.not_found", `No server found for playlist ${playlist}`, [], 1013, "invalid_playlist", 404, res);
|
||||
}
|
||||
kvDocument = JSON.stringify({
|
||||
ip: selectedServer.split(":")[0],
|
||||
port: selectedServer.split(":")[1],
|
||||
playlist: selectedServer.split(":")[2]
|
||||
});
|
||||
}
|
||||
|
||||
try {
|
||||
let calculateIp = config.gameServerIP.split(":")[0];
|
||||
let calculatePort = Number(config.gameServerIP.split(":")[1]);
|
||||
|
||||
if (calculateIp) gameServerInfo.serverAddress = calculateIp;
|
||||
if (Number.isNaN(calculatePort) || !calculatePort) throw new Error("Invalid port.");
|
||||
|
||||
gameServerInfo.serverPort = calculatePort;
|
||||
} catch {}
|
||||
let codeKV = JSON.parse(kvDocument);
|
||||
|
||||
res.json({
|
||||
"id": req.params.sessionId,
|
||||
"ownerId": functions.MakeID().replace(/-/ig, "").toUpperCase(),
|
||||
"ownerName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968",
|
||||
"serverName": "[DS]fortnite-liveeugcec1c2e30ubrcore0a-z8hj-1968",
|
||||
"serverAddress": gameServerInfo.serverAddress,
|
||||
"serverPort": gameServerInfo.serverPort,
|
||||
"serverAddress": codeKV.ip,
|
||||
"serverPort": codeKV.port,
|
||||
"maxPublicPlayers": 220,
|
||||
"openPublicPlayers": 175,
|
||||
"maxPrivatePlayers": 0,
|
||||
@@ -82,7 +110,7 @@ app.get("/fortnite/api/matchmaking/session/:sessionId", verifyToken, (req, res)
|
||||
"MATCHMAKINGPOOL_s": "Any",
|
||||
"STORMSHIELDDEFENSETYPE_i": 0,
|
||||
"HOTFIXVERSION_i": 0,
|
||||
"PLAYLISTNAME_s": "Playlist_DefaultSolo",
|
||||
"PLAYLISTNAME_s": codeKV.playlist,
|
||||
"SESSIONKEY_s": functions.MakeID().replace(/-/ig, "").toUpperCase(),
|
||||
"TENANT_s": "Fortnite",
|
||||
"BEACONPORT_i": 15009
|
||||
@@ -106,7 +134,8 @@ app.get("/fortnite/api/matchmaking/session/:sessionId", verifyToken, (req, res)
|
||||
|
||||
app.post("/fortnite/api/matchmaking/session/*/join", (req, res) => {
|
||||
log.debug("POST /fortnite/api/matchmaking/session/*/join called");
|
||||
res.status(204).end();
|
||||
res.status(204);
|
||||
res.end();
|
||||
});
|
||||
|
||||
app.post("/fortnite/api/matchmaking/session/matchMakingRequest", (req, res) => {
|
||||
|
||||
+471
-139
@@ -12,6 +12,7 @@ const log = require("../structs/log.js");
|
||||
const config = require('../Config/config.json')
|
||||
const fs = require("fs");
|
||||
const path = require("path");
|
||||
const catalog = functions.getItemShop();
|
||||
|
||||
const { verifyToken, verifyClient } = require("../tokenManager/tokenVerify.js");
|
||||
|
||||
@@ -135,7 +136,7 @@ app.post("/fortnite/api/game/v2/profile/*/client/ClientQuestLogin", verifyToken,
|
||||
}
|
||||
|
||||
if (req.query.profileId == "athena") {
|
||||
DailyQuestIDS = AthenaQuestIDS.BattleRoyale.Daily
|
||||
DailyQuestIDS = AthenaQuestIDS.Daily
|
||||
|
||||
if (AthenaQuestIDS.hasOwnProperty(`Season${SeasonPrefix}`)) {
|
||||
SeasonQuestIDS = AthenaQuestIDS[`Season${SeasonPrefix}`]
|
||||
@@ -417,110 +418,104 @@ app.post("/fortnite/api/game/v2/profile/*/client/ClientQuestLogin", verifyToken,
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/FortRerollDailyQuest", verifyToken, async (req, res) => {
|
||||
const profiles = await Profile.findOne({ accountId: req.user.accountId });
|
||||
let profile = profiles.profiles[req.query.profileId];
|
||||
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
var Notifications = [];
|
||||
var BaseRevision = profile.rvn || 0;
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
|
||||
var DailyQuestPath;
|
||||
if (req.query.profileId == "profile0" || req.query.profileId == "campaign") {
|
||||
DailyQuestPath = "./../responses/quests.json";
|
||||
var DailyQuestIDS = JSON.parse(JSON.stringify(require(DailyQuestPath))).SaveTheWorld.Daily;
|
||||
} else {
|
||||
DailyQuestPath = "./../responses/quests.json";
|
||||
var DailyQuestIDS = JSON.parse(JSON.stringify(require(DailyQuestPath))).BattleRoyale.Daily;
|
||||
}
|
||||
|
||||
const NewQuestID = functions.MakeID();
|
||||
var randomNumber = Math.floor(Math.random() * DailyQuestIDS.length);
|
||||
|
||||
for (var key in profile.items) {
|
||||
while (DailyQuestIDS[randomNumber].templateId.toLowerCase() == profile.items[key].templateId.toLowerCase()) {
|
||||
randomNumber = Math.floor(Math.random() * DailyQuestIDS.length);
|
||||
}
|
||||
}
|
||||
|
||||
if (req.body.questId && profile.stats.attributes.quest_manager.dailyQuestRerolls >= 1) {
|
||||
profile.stats.attributes.quest_manager.dailyQuestRerolls -= 1;
|
||||
|
||||
delete profile.items[req.body.questId];
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
var Notifications = [];
|
||||
var BaseRevision = profile.rvn || 0;
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
|
||||
profile.items[NewQuestID] = {
|
||||
"templateId": DailyQuestIDS[randomNumber].templateId,
|
||||
"attributes": {
|
||||
"creation_time": new Date().toISOString(),
|
||||
"level": -1,
|
||||
"item_seen": false,
|
||||
"sent_new_notification": false,
|
||||
"xp_reward_scalar": 1,
|
||||
"quest_state": "Active",
|
||||
"last_state_change_time": new Date().toISOString(),
|
||||
"max_level_bonus": 0,
|
||||
"xp": 0,
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
};
|
||||
var DailyQuestPath = req.query.profileId == "profile0" == "./../responses/quests.json";
|
||||
var DailyQuestIDS = JSON.parse(JSON.stringify(require(DailyQuestPath))).Daily;
|
||||
|
||||
for (var i in DailyQuestIDS[randomNumber].objectives) {
|
||||
profile.items[NewQuestID].attributes[`completion_${DailyQuestIDS[randomNumber].objectives[i].toLowerCase()}`] = 0;
|
||||
}
|
||||
const NewQuestID = functions.MakeID();
|
||||
var randomNumber = Math.floor(Math.random() * DailyQuestIDS.length);
|
||||
|
||||
StatChanged = true;
|
||||
}
|
||||
for (var key in profile.items) {
|
||||
while (DailyQuestIDS[randomNumber].templateId.toLowerCase() == profile.items[key].templateId.toLowerCase()) {
|
||||
randomNumber = Math.floor(Math.random() * DailyQuestIDS.length);
|
||||
}
|
||||
}
|
||||
|
||||
if (StatChanged == true) {
|
||||
profile.rvn += 1;
|
||||
profile.commandRevision += 1;
|
||||
profile.updated = new Date().toISOString();
|
||||
if (req.body.questId && profile.stats.attributes.quest_manager.dailyQuestRerolls >= 1) {
|
||||
profile.stats.attributes.quest_manager.dailyQuestRerolls -= 1;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "statModified",
|
||||
"name": "quest_manager",
|
||||
"value": profile.stats.attributes.quest_manager
|
||||
});
|
||||
delete profile.items[req.body.questId];
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAdded",
|
||||
"itemId": NewQuestID,
|
||||
"item": profile.items[NewQuestID]
|
||||
});
|
||||
profile.items[NewQuestID] = {
|
||||
"templateId": DailyQuestIDS[randomNumber].templateId,
|
||||
"attributes": {
|
||||
"creation_time": new Date().toISOString(),
|
||||
"level": -1,
|
||||
"item_seen": false,
|
||||
"sent_new_notification": false,
|
||||
"xp_reward_scalar": 1,
|
||||
"quest_state": "Active",
|
||||
"last_state_change_time": new Date().toISOString(),
|
||||
"max_level_bonus": 0,
|
||||
"xp": 0,
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
};
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemRemoved",
|
||||
"itemId": req.body.questId
|
||||
});
|
||||
for (var i in DailyQuestIDS[randomNumber].objectives) {
|
||||
profile.items[NewQuestID].attributes[`completion_${DailyQuestIDS[randomNumber].objectives[i].toLowerCase()}`] = 0
|
||||
}
|
||||
|
||||
Notifications.push({
|
||||
"type": "dailyQuestReroll",
|
||||
"primary": true,
|
||||
"newQuestId": DailyQuestIDS[randomNumber].templateId
|
||||
});
|
||||
StatChanged = true;
|
||||
}
|
||||
|
||||
await profiles.updateOne({ $set: { [`profiles.${req.query.profileId}`]: profile } });
|
||||
}
|
||||
if (StatChanged == true) {
|
||||
profile.rvn += 1;
|
||||
profile.commandRevision += 1;
|
||||
profile.updated = new Date().toISOString();
|
||||
|
||||
// This doesn't work properly on version v12.20 and above but whatever
|
||||
if (QueryRevision != BaseRevision) {
|
||||
ApplyProfileChanges = [{
|
||||
"changeType": "fullProfileUpdate",
|
||||
"profile": profile
|
||||
}];
|
||||
}
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "statModified",
|
||||
"name": "quest_manager",
|
||||
"value": profile.stats.attributes.quest_manager
|
||||
})
|
||||
|
||||
res.json({
|
||||
"profileRevision": profile.rvn || 0,
|
||||
"profileId": req.query.profileId || "athena",
|
||||
"profileChangesBaseRevision": BaseRevision,
|
||||
"profileChanges": ApplyProfileChanges,
|
||||
"notifications": Notifications,
|
||||
"profileCommandRevision": profile.commandRevision || 0,
|
||||
"serverTime": new Date().toISOString(),
|
||||
"responseVersion": 1
|
||||
});
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAdded",
|
||||
"itemId": NewQuestID,
|
||||
"item": profile.items[NewQuestID]
|
||||
})
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemRemoved",
|
||||
"itemId": req.body.questId
|
||||
})
|
||||
|
||||
Notifications.push({
|
||||
"type": "dailyQuestReroll",
|
||||
"primary": true,
|
||||
"newQuestId": DailyQuestIDS[randomNumber].templateId
|
||||
})
|
||||
|
||||
await profiles.updateOne({ $set: { [`profiles.${req.query.profileId}`]: profile } });
|
||||
}
|
||||
|
||||
// this doesn't work properly on version v12.20 and above but whatever
|
||||
if (QueryRevision != BaseRevision) {
|
||||
ApplyProfileChanges = [{
|
||||
"changeType": "fullProfileUpdate",
|
||||
"profile": profile
|
||||
}];
|
||||
}
|
||||
|
||||
res.json({
|
||||
"profileRevision": profile.rvn || 0,
|
||||
"profileId": req.query.profileId || "athena",
|
||||
"profileChangesBaseRevision": BaseRevision,
|
||||
"profileChanges": ApplyProfileChanges,
|
||||
"notifications": Notifications,
|
||||
"profileCommandRevision": profile.commandRevision || 0,
|
||||
"serverTime": new Date().toISOString(),
|
||||
"responseVersion": 1
|
||||
})
|
||||
});
|
||||
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/MarkNewQuestNotificationSent", verifyToken, async (req, res) => {
|
||||
@@ -967,6 +962,200 @@ app.post("/fortnite/api/game/v2/profile/*/client/GiftCatalogEntry", verifyToken,
|
||||
log.debug(`GiftCatalogEntry: Response sent with profile revision ${profile.rvn}`);
|
||||
});
|
||||
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/UnlockRewardNode", verifyToken, async (req, res) => {
|
||||
const profiles = await Profile.findOne({ accountId: req.user.accountId });
|
||||
let profile = profiles.profiles[req.query.profileId];
|
||||
let common_core = profiles.profiles["common_core"];
|
||||
const WinterFestIDS = require("./../responses/winterfestRewards.json");
|
||||
const memory = functions.GetVersionInfo(req);
|
||||
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
var MultiUpdate = [];
|
||||
var BaseRevision = profile.rvn;
|
||||
var ProfileRevisionCheck = (memory.build >= 19.01) ? profile.commandRevision : profile.rvn;
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
var CommonCoreChanged = false;
|
||||
var ItemExists = false;
|
||||
var Season = "Season" + memory.season;
|
||||
|
||||
const GiftID = functions.MakeID();
|
||||
profile.items[GiftID] = {"templateId":"GiftBox:gb_winterfestreward","attributes":{"max_level_bonus":0,"fromAccountId":"","lootList":[],"level":1,"item_seen":false,"xp":0,"giftedOn":new Date().toISOString(),"params":{"SubGame":"Athena","winterfestGift":"true"},"favorite":false},"quantity":1};
|
||||
|
||||
if (req.body.nodeId && req.body.rewardGraphId) {
|
||||
for (var i = 0; i < WinterFestIDS[Season][req.body.nodeId].length; i++) {
|
||||
var ID = functions.MakeID();
|
||||
Reward = WinterFestIDS[Season][req.body.nodeId][i]
|
||||
|
||||
if (Reward.toLowerCase().startsWith("homebasebannericon:")) {
|
||||
if (CommonCoreChanged == false) {
|
||||
MultiUpdate.push({
|
||||
"profileRevision": common_core.rvn || 0,
|
||||
"profileId": "common_core",
|
||||
"profileChangesBaseRevision": common_core.rvn || 0,
|
||||
"profileChanges": [],
|
||||
"profileCommandRevision": common_core.commandRevision || 0,
|
||||
})
|
||||
|
||||
CommonCoreChanged = true;
|
||||
}
|
||||
|
||||
for (var key in common_core.items) {
|
||||
if (common_core.items[key].templateId.toLowerCase() == Reward.toLowerCase()) {
|
||||
common_core.items[key].attributes.item_seen = false;
|
||||
ID = key;
|
||||
ItemExists = true;
|
||||
|
||||
MultiUpdate[0].profileChanges.push({
|
||||
"changeType": "itemAttrChanged",
|
||||
"itemId": key,
|
||||
"attributeName": "item_seen",
|
||||
"attributeValue": common_core.items[key].attributes.item_seen
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (ItemExists == false) {
|
||||
common_core.items[ID] = {
|
||||
"templateId": Reward,
|
||||
"attributes": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"item_seen": false,
|
||||
"xp": 0,
|
||||
"variants": [],
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
};
|
||||
|
||||
MultiUpdate[0].profileChanges.push({
|
||||
"changeType": "itemAdded",
|
||||
"itemId": ID,
|
||||
"item": common_core.items[ID]
|
||||
})
|
||||
}
|
||||
|
||||
ItemExists = false;
|
||||
|
||||
common_core.rvn += 1;
|
||||
common_core.commandRevision += 1;
|
||||
|
||||
MultiUpdate[0].profileRevision = common_core.rvn || 0;
|
||||
MultiUpdate[0].profileCommandRevision = common_core.commandRevision || 0;
|
||||
|
||||
profile.items[GiftID].attributes.lootList.push({"itemType":Reward,"itemGuid":ID,"itemProfile":"common_core","attributes":{"creation_time":new Date().toISOString()},"quantity":1})
|
||||
}
|
||||
|
||||
if (!Reward.toLowerCase().startsWith("homebasebannericon:")) {
|
||||
for (var key in profile.items) {
|
||||
if (profile.items[key].templateId.toLowerCase() == Reward.toLowerCase()) {
|
||||
profile.items[key].attributes.item_seen = false;
|
||||
ID = key;
|
||||
ItemExists = true;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAttrChanged",
|
||||
"itemId": key,
|
||||
"attributeName": "item_seen",
|
||||
"attributeValue": profile.items[key].attributes.item_seen
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
if (ItemExists == false) {
|
||||
profile.items[ID] = {
|
||||
"templateId": Reward,
|
||||
"attributes": {
|
||||
"max_level_bonus": 0,
|
||||
"level": 1,
|
||||
"item_seen": false,
|
||||
"xp": 0,
|
||||
"variants": [],
|
||||
"favorite": false
|
||||
},
|
||||
"quantity": 1
|
||||
};
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAdded",
|
||||
"itemId": ID,
|
||||
"item": profile.items[ID]
|
||||
})
|
||||
}
|
||||
|
||||
ItemExists = false;
|
||||
|
||||
profile.items[GiftID].attributes.lootList.push({"itemType":Reward,"itemGuid":ID,"itemProfile":"athena","attributes":{"creation_time":new Date().toISOString()},"quantity":1})
|
||||
}
|
||||
}
|
||||
profile.items[req.body.rewardGraphId].attributes.reward_keys[0].unlock_keys_used += 1;
|
||||
profile.items[req.body.rewardGraphId].attributes.reward_nodes_claimed.push(req.body.nodeId);
|
||||
|
||||
StatChanged = true;
|
||||
}
|
||||
|
||||
if (StatChanged == true) {
|
||||
profile.rvn += 1;
|
||||
profile.commandRevision += 1;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAdded",
|
||||
"itemId": GiftID,
|
||||
"item": profile.items[GiftID]
|
||||
})
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAttrChanged",
|
||||
"itemId": req.body.rewardGraphId,
|
||||
"attributeName": "reward_keys",
|
||||
"attributeValue": profile.items[req.body.rewardGraphId].attributes.reward_keys
|
||||
})
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAttrChanged",
|
||||
"itemId": req.body.rewardGraphId,
|
||||
"attributeName": "reward_nodes_claimed",
|
||||
"attributeValue": profile.items[req.body.rewardGraphId].attributes.reward_nodes_claimed
|
||||
})
|
||||
|
||||
if (memory.season == 11) {
|
||||
profile.items.S11_GIFT_KEY.quantity -= 1;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemQuantityChanged",
|
||||
"itemId": "S11_GIFT_KEY",
|
||||
"quantity": profile.items.S11_GIFT_KEY.quantity
|
||||
})
|
||||
}
|
||||
|
||||
if (CommonCoreChanged == true) {
|
||||
await profiles.updateOne({ $set: { [`profiles.${req.query.profileId}`]: profile } });
|
||||
}
|
||||
|
||||
await profiles.updateOne({ $set: { [`profiles.${req.query.profileId}`]: profile } });
|
||||
}
|
||||
|
||||
if (QueryRevision != ProfileRevisionCheck) {
|
||||
ApplyProfileChanges = [{
|
||||
"changeType": "fullProfileUpdate",
|
||||
"profile": profile
|
||||
}];
|
||||
}
|
||||
|
||||
res.json({
|
||||
profileRevision: profile.rvn || 0,
|
||||
profileId: req.query.profileId,
|
||||
profileChangesBaseRevision: BaseRevision,
|
||||
profileChanges: ApplyProfileChanges,
|
||||
profileCommandRevision: profile.commandRevision || 0,
|
||||
serverTime: new Date().toISOString(),
|
||||
multiUpdate: MultiUpdate,
|
||||
responseVersion: 1
|
||||
})
|
||||
});
|
||||
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/RemoveGiftBox", verifyToken, async (req, res) => {
|
||||
const profiles = await Profile.findOne({ accountId: req.user.accountId });
|
||||
|
||||
@@ -1053,6 +1242,144 @@ app.post("/fortnite/api/game/v2/profile/*/client/RemoveGiftBox", verifyToken, as
|
||||
});
|
||||
});
|
||||
|
||||
// Set party assist quest
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/SetPartyAssistQuest", verifyToken, async (req, res) => {
|
||||
const profiles = await Profile.findOne({ accountId: req.user.accountId });
|
||||
let profile = profiles.profiles[req.query.profileId];
|
||||
|
||||
const memory = functions.GetVersionInfo(req);
|
||||
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
var BaseRevision = profile.rvn;
|
||||
var ProfileRevisionCheck = (memory.build >= 12.20) ? profile.commandRevision : profile.rvn;
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
|
||||
if (profile.stats.attributes.hasOwnProperty("party_assist_quest")) {
|
||||
profile.stats.attributes.party_assist_quest = req.body.questToPinAsPartyAssist || "";
|
||||
StatChanged = true;
|
||||
}
|
||||
|
||||
if (StatChanged == true) {
|
||||
profile.rvn += 1;
|
||||
profile.commandRevision += 1;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "statModified",
|
||||
"name": "party_assist_quest",
|
||||
"value": profile.stats.attributes.party_assist_quest
|
||||
})
|
||||
|
||||
await profiles.updateOne({ $set: { [`profiles.${req.query.profileId}`]: profile } });
|
||||
}
|
||||
|
||||
if (QueryRevision != ProfileRevisionCheck) {
|
||||
ApplyProfileChanges = [{
|
||||
"changeType": "fullProfileUpdate",
|
||||
"profile": profile
|
||||
}];
|
||||
}
|
||||
|
||||
res.json({
|
||||
profileRevision: profile.rvn || 0,
|
||||
profileId: req.query.profileId,
|
||||
profileChangesBaseRevision: BaseRevision,
|
||||
profileChanges: ApplyProfileChanges,
|
||||
profileCommandRevision: profile.commandRevision || 0,
|
||||
serverTime: new Date().toISOString(),
|
||||
responseVersion: 1
|
||||
})
|
||||
});
|
||||
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/UpdateQuestClientObjectives", verifyToken, async (req, res) => {
|
||||
const profiles = await Profile.findOne({ accountId: req.user.accountId });
|
||||
let profile = profiles.profiles[req.query.profileId];
|
||||
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
var BaseRevision = profile.rvn;
|
||||
var ProfileRevisionCheck = (memory.build >= 12.20) ? profile.commandRevision : profile.rvn;
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
|
||||
if (req.body.advance) {
|
||||
for (var i in req.body.advance) {
|
||||
var QuestsToUpdate = [];
|
||||
|
||||
for (var x in profile.items) {
|
||||
if (profile.items[x].templateId.toLowerCase().startsWith("quest:")) {
|
||||
for (var y in profile.items[x].attributes) {
|
||||
if (y.toLowerCase() == `completion_${req.body.advance[i].statName}`) {
|
||||
QuestsToUpdate.push(x)
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
for (var i = 0; i < QuestsToUpdate.length; i++) {
|
||||
var bIncomplete = false;
|
||||
|
||||
profile.items[QuestsToUpdate[i]].attributes[`completion_${req.body.advance[i].statName}`] = req.body.advance[i].count;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAttrChanged",
|
||||
"itemId": QuestsToUpdate[i],
|
||||
"attributeName": `completion_${req.body.advance[i].statName}`,
|
||||
"attributeValue": req.body.advance[i].count
|
||||
})
|
||||
|
||||
if (profile.items[QuestsToUpdate[i]].attributes.quest_state.toLowerCase() != "claimed") {
|
||||
for (var x in profile.items[QuestsToUpdate[i]].attributes) {
|
||||
if (x.toLowerCase().startsWith("completion_")) {
|
||||
if (profile.items[QuestsToUpdate[i]].attributes[x] == 0) {
|
||||
bIncomplete = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (bIncomplete == false) {
|
||||
profile.items[QuestsToUpdate[i]].attributes.quest_state = "Claimed";
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAttrChanged",
|
||||
"itemId": QuestsToUpdate[i],
|
||||
"attributeName": "quest_state",
|
||||
"attributeValue": profile.items[QuestsToUpdate[i]].attributes.quest_state
|
||||
})
|
||||
}
|
||||
}
|
||||
|
||||
StatChanged = true;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
if (StatChanged == true) {
|
||||
profile.rvn += 1;
|
||||
profile.commandRevision += 1;
|
||||
|
||||
await profiles.updateOne({ $set: { [`profiles.${req.query.profileId}`]: profile } });
|
||||
}
|
||||
|
||||
if (QueryRevision != ProfileRevisionCheck) {
|
||||
ApplyProfileChanges = [{
|
||||
"changeType": "fullProfileUpdate",
|
||||
"profile": profile
|
||||
}];
|
||||
}
|
||||
|
||||
res.json({
|
||||
profileRevision: profile.rvn || 0,
|
||||
profileId: req.query.profileId,
|
||||
profileChangesBaseRevision: BaseRevision,
|
||||
profileChanges: ApplyProfileChanges,
|
||||
profileCommandRevision: profile.commandRevision || 0,
|
||||
serverTime: new Date().toISOString(),
|
||||
responseVersion: 1
|
||||
})
|
||||
});
|
||||
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", verifyToken, async (req, res) => {
|
||||
log.debug(`PurchaseCatalogEntry: Request received with body: ${JSON.stringify(req.body)}`);
|
||||
|
||||
@@ -1803,6 +2130,57 @@ app.post("/fortnite/api/game/v2/profile/*/client/PurchaseCatalogEntry", verifyTo
|
||||
return;
|
||||
});
|
||||
|
||||
// Archive locker items
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/SetItemArchivedStatusBatch", async (req, res) => {
|
||||
const profiles = await Profile.findOne({ accountId: req.user.accountId });
|
||||
let profile = profiles.profiles[req.query.profileId];
|
||||
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
var BaseRevision = profile.rvn;
|
||||
var ProfileRevisionCheck = (memory.build >= 12.20) ? profile.commandRevision : profile.rvn;
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
|
||||
if (req.body.itemIds) {
|
||||
for (var i in req.body.itemIds) {
|
||||
profile.items[req.body.itemIds[i]].attributes.archived = req.body.archived || false;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "itemAttrChanged",
|
||||
"itemId": req.body.itemIds[i],
|
||||
"attributeName": "archived",
|
||||
"attributeValue": profile.items[req.body.itemIds[i]].attributes.archived
|
||||
})
|
||||
}
|
||||
StatChanged = true;
|
||||
}
|
||||
|
||||
if (StatChanged == true) {
|
||||
profile.rvn += 1;
|
||||
profile.commandRevision += 1;
|
||||
|
||||
await profiles.updateOne({ $set: { [`profiles.${req.query.profileId}`]: profile } });
|
||||
}
|
||||
|
||||
if (QueryRevision != ProfileRevisionCheck) {
|
||||
ApplyProfileChanges = [{
|
||||
"changeType": "fullProfileUpdate",
|
||||
"profile": profile
|
||||
}];
|
||||
}
|
||||
|
||||
res.json({
|
||||
profileRevision: profile.rvn || 0,
|
||||
profileId: req.query.profileId,
|
||||
profileChangesBaseRevision: BaseRevision,
|
||||
profileChanges: ApplyProfileChanges,
|
||||
profileCommandRevision: profile.commandRevision || 0,
|
||||
serverTime: new Date().toISOString(),
|
||||
responseVersion: 1
|
||||
})
|
||||
});
|
||||
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/MarkItemSeen", verifyToken, async (req, res) => {
|
||||
const profiles = await Profile.findOne({ accountId: req.user.accountId });
|
||||
|
||||
@@ -2764,52 +3142,6 @@ app.post("/fortnite/api/game/v2/profile/:accountId/dedicated_server/:operation",
|
||||
});
|
||||
});
|
||||
|
||||
// Set party assist quest
|
||||
app.post("/fortnite/api/game/v2/profile/*/client/SetPartyAssistQuest", async (req, res) => {
|
||||
const profile = await Profile.findOne({ accountId: req.user.accountId });
|
||||
|
||||
// do not change any of these or you will end up breaking it
|
||||
var ApplyProfileChanges = [];
|
||||
var BaseRevision = profile.rvn;
|
||||
var ProfileRevisionCheck = (memory.build >= 12.20) ? profile.commandRevision : profile.rvn;
|
||||
var QueryRevision = req.query.rvn || -1;
|
||||
var StatChanged = false;
|
||||
|
||||
if (profile.athena.stats.attributes.hasOwnProperty("party_assist_quest")) {
|
||||
profile.athena.stats.attributes.party_assist_quest = req.body.questToPinAsPartyAssist || "";
|
||||
StatChanged = true;
|
||||
}
|
||||
|
||||
if (StatChanged == true) {
|
||||
profile.rvn += 1;
|
||||
profile.commandRevision += 1;
|
||||
|
||||
ApplyProfileChanges.push({
|
||||
"changeType": "statModified",
|
||||
"name": "party_assist_quest",
|
||||
"value": profile.athena.stats.attributes.party_assist_quest
|
||||
})
|
||||
}
|
||||
|
||||
if (QueryRevision != ProfileRevisionCheck) {
|
||||
ApplyProfileChanges = [{
|
||||
"changeType": "fullProfileUpdate",
|
||||
"profile": profile
|
||||
}];
|
||||
}
|
||||
|
||||
res.json({
|
||||
"profileRevision": profile.rvn || 0,
|
||||
"profileId": req.query.profileId || "athena",
|
||||
"profileChangesBaseRevision": BaseRevision,
|
||||
"profileChanges": ApplyProfileChanges,
|
||||
"profileCommandRevision": profile.commandRevision || 0,
|
||||
"serverTime": new Date().toISOString(),
|
||||
"responseVersion": 1
|
||||
})
|
||||
res.end();
|
||||
});
|
||||
|
||||
function checkFields(fields, body) {
|
||||
let missingFields = { fields: [] };
|
||||
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
const Express = require("express");
|
||||
const app = Express.Router();
|
||||
const functions = require("../structs/functions.js");
|
||||
|
||||
app.get("/party/api/v1/Fortnite/user/*", async (req, res) => {
|
||||
res.json({
|
||||
"current": [],
|
||||
"pending": [],
|
||||
"invites": [],
|
||||
"pings": []
|
||||
});
|
||||
})
|
||||
|
||||
app.post("/party/api/v1/Fortnite/parties", async (req, res) => {
|
||||
if (!req.body.join_info) return res.json({});
|
||||
if (!req.body.join_info.connection) return res.json({});
|
||||
|
||||
res.json({
|
||||
"id": functions.MakeID().replace(/-/ig, ""),
|
||||
"created_at": new Date().toISOString(),
|
||||
"updated_at": new Date().toISOString(),
|
||||
"config": {
|
||||
"type": "DEFAULT",
|
||||
...req.body.config,
|
||||
"discoverability": "ALL",
|
||||
"sub_type": "default",
|
||||
"invite_ttl": 14400,
|
||||
"intention_ttl": 60
|
||||
},
|
||||
"members": [{
|
||||
"account_id": (req.body.join_info.connection.id || "").split("@prod")[0],
|
||||
"meta": req.body.join_info.meta || {},
|
||||
"connections": [
|
||||
{
|
||||
"id": req.body.join_info.connection.id || "",
|
||||
"connected_at": new Date().toISOString(),
|
||||
"updated_at": new Date().toISOString(),
|
||||
"yield_leadership": false,
|
||||
"meta": req.body.join_info.connection.meta || {}
|
||||
}
|
||||
],
|
||||
"revision": 0,
|
||||
"updated_at": new Date().toISOString(),
|
||||
"joined_at": new Date().toISOString(),
|
||||
"role": "CAPTAIN"
|
||||
}],
|
||||
"applicants": [],
|
||||
"meta": req.body.meta || {},
|
||||
"invites": [],
|
||||
"revision": 0,
|
||||
"intentions": []
|
||||
})
|
||||
})
|
||||
|
||||
app.all("/party/api/v1/Fortnite/parties/*", async (req, res) => {
|
||||
res.status(204)
|
||||
res.end()
|
||||
})
|
||||
|
||||
module.exports = app;
|
||||
+1
-1
@@ -2,7 +2,7 @@ const express = require("express");
|
||||
const app = express();
|
||||
const profile = require("./../model/profiles.js")
|
||||
|
||||
const { verifyToken, verifyClient } = require("../tokenManager/tokenVerify.js");
|
||||
const { verifyToken } = require("../tokenManager/tokenVerify.js");
|
||||
|
||||
|
||||
app.get("/fortnite/api/game/v2/privacy/account/:accountId", verifyToken , async (req, res) => {
|
||||
|
||||
@@ -0,0 +1,130 @@
|
||||
const express = require("express");
|
||||
const app = express.Router();
|
||||
const { verifyToken } = require("../tokenManager/tokenVerify.js");
|
||||
const User = require("../model/user.js");
|
||||
const Profiles = require("../model/profiles.js");
|
||||
const { Client, Intents, TextChannel } = require('discord.js');
|
||||
const config = require('../Config/config.json');
|
||||
const log = require("../structs/log.js");
|
||||
|
||||
if (config.bEnableReports === true) {
|
||||
app.post("/fortnite/api/game/v2/toxicity/account/:unsafeReporter/report/:reportedPlayer", verifyToken, async (req, res) => {
|
||||
try {
|
||||
log.debug(`POST /fortnite/api/game/v2/toxicity/account/${req.params.unsafeReporter}/report/${req.params.reportedPlayer} called`);
|
||||
|
||||
const reporter = req.user.accountId;
|
||||
const reportedPlayer = req.params.reportedPlayer;
|
||||
|
||||
log.debug(`Searching for reporter with accountId: ${reporter}`);
|
||||
let reporterData = await User.findOne({ accountId: reporter }).lean();
|
||||
|
||||
log.debug(`Searching for reported player with accountId: ${reportedPlayer}`);
|
||||
let reportedPlayerData = await User.findOne({ accountId: reportedPlayer }).lean();
|
||||
let reportedPlayerDataProfile = await Profiles.findOne({ accountId: reportedPlayer }).lean();
|
||||
|
||||
if (!reportedPlayerData) {
|
||||
log.error(`Reported player with accountId: ${reportedPlayer} not found in the database`);
|
||||
return res.status(404).send({ "error": "Player not found" });
|
||||
}
|
||||
|
||||
const reason = req.body.reason || 'No reason provided';
|
||||
const details = req.body.details || 'No details provided';
|
||||
const playerAlreadyReported = reportedPlayerDataProfile.profiles?.totalReports ? 'Yes' : 'No';
|
||||
|
||||
log.debug(`Player already reported: ${playerAlreadyReported}`);
|
||||
|
||||
const client = new Client({
|
||||
intents: [
|
||||
Intents.FLAGS.GUILDS,
|
||||
Intents.FLAGS.GUILD_MESSAGES,
|
||||
Intents.FLAGS.GUILD_MEMBERS,
|
||||
Intents.FLAGS.DIRECT_MESSAGES,
|
||||
Intents.FLAGS.DIRECT_MESSAGE_TYPING,
|
||||
Intents.FLAGS.DIRECT_MESSAGE_REACTIONS
|
||||
]
|
||||
});
|
||||
|
||||
await Profiles.findOneAndUpdate(
|
||||
{ accountId: reportedPlayer },
|
||||
{ $inc: { 'profiles.totalReports': 1 } },
|
||||
{ new: true, upsert: true }
|
||||
).then((updatedProfile) => {
|
||||
log.debug(`Successfully updated totalReports to ${updatedProfile.profiles.totalReports} for accountId: ${reportedPlayer}`);
|
||||
}).catch((err) => {
|
||||
log.error(`Error updating totalReports for accountId: ${reportedPlayer}`, err);
|
||||
return res.status(500).send({ "error": "Database update error" });
|
||||
});
|
||||
|
||||
await new Promise((resolve, reject) => {
|
||||
client.once('ready', async () => {
|
||||
|
||||
try {
|
||||
const payload = {
|
||||
embeds: [{
|
||||
title: 'New User Report',
|
||||
description: 'A new report has arrived!',
|
||||
color: 0xFFA500,
|
||||
fields: [
|
||||
{
|
||||
name: "Reporting Player",
|
||||
value: reporterData.username,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: "Reported Player",
|
||||
value: reportedPlayerData.username,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: "Player already reported",
|
||||
value: playerAlreadyReported,
|
||||
inline: false
|
||||
},
|
||||
{
|
||||
name: "Reason",
|
||||
value: reason,
|
||||
inline: true
|
||||
},
|
||||
{
|
||||
name: "Additional Details",
|
||||
value: details,
|
||||
inline: true
|
||||
}
|
||||
]
|
||||
}]
|
||||
};
|
||||
|
||||
const channel = await client.channels.fetch(config.bReportChannelId);
|
||||
|
||||
if (channel instanceof TextChannel) {
|
||||
log.debug(`Sending embed to channel with ID: ${channel.id}`);
|
||||
const message = await channel.send({
|
||||
embeds: [payload.embeds[0]]
|
||||
});
|
||||
log.debug(`Message sent with ID: ${message.id}`);
|
||||
} else {
|
||||
log.error("The channel is not a valid text channel or couldn't be found.");
|
||||
}
|
||||
|
||||
resolve();
|
||||
} catch (error) {
|
||||
log.error('Error sending message:', error);
|
||||
reject(error);
|
||||
}
|
||||
});
|
||||
|
||||
client.login(config.discord.bot_token).catch((err) => {
|
||||
log.error("Error logging in Discord bot:", err);
|
||||
reject(err);
|
||||
});
|
||||
});
|
||||
|
||||
return res.status(200).send({ "success": true });
|
||||
} catch (error) {
|
||||
log.error(error);
|
||||
return res.status(500).send({ "error": "Internal server error" });
|
||||
}
|
||||
});
|
||||
|
||||
module.exports = app;
|
||||
}
|
||||
+1330
-36
File diff suppressed because it is too large
Load Diff
@@ -165,7 +165,14 @@ app.get("/epic/id/v2/sdk/accounts", async (req, res) => {
|
||||
}]);
|
||||
})
|
||||
|
||||
app.delete("/account/api/oauth/sessions/kill/*", async (req, res) => {
|
||||
log.debug("DELETE account/api/oauth/sessions/kill/* called");
|
||||
res.status(204);
|
||||
res.end();
|
||||
})
|
||||
|
||||
app.all("/v1/epic-settings/public/users/*/values", (req, res) => {
|
||||
log.debug("ALL /v1/epic-settings/public/users/*/values called");
|
||||
res.json({});
|
||||
})
|
||||
|
||||
@@ -174,4 +181,20 @@ app.get("/account/api/public/account/*/externalAuths", (req, res) => {
|
||||
res.json([]);
|
||||
});
|
||||
|
||||
app.get("/account/api/epicdomains/ssodomains", async (req, res) => {
|
||||
log.debug("GET /account/api/epicdomains/ssodomains called");
|
||||
res.json([
|
||||
"unrealengine.com",
|
||||
"unrealtournament.com",
|
||||
"fortnite.com",
|
||||
"epicgames.com"
|
||||
])
|
||||
})
|
||||
|
||||
app.post("/fortnite/api/game/v2/tryPlayOnPlatform/account/*", async (req, res) => {
|
||||
log.debug("POST /fortnite/api/game/v2/tryPlayOnPlatform/account/* called");
|
||||
res.setHeader("Content-Type", "text/plain");
|
||||
res.send(true);
|
||||
})
|
||||
|
||||
module.exports = app;
|
||||
@@ -46,4 +46,22 @@ app.get("/fortnite/api*/versioncheck*", (req, res) => {
|
||||
});
|
||||
});
|
||||
|
||||
app.get("/fortnite/api/v2/versioncheck/*", async (req, res) => {
|
||||
res.json({
|
||||
"type": "NO_UPDATE"
|
||||
})
|
||||
})
|
||||
|
||||
app.get("/fortnite/api/v2/versioncheck*", async (req, res) => {
|
||||
res.json({
|
||||
"type": "NO_UPDATE"
|
||||
})
|
||||
})
|
||||
|
||||
app.get("/fortnite/api/versioncheck*", async (req, res) => {
|
||||
res.json({
|
||||
"type": "NO_UPDATE"
|
||||
})
|
||||
})
|
||||
|
||||
module.exports = app;
|
||||
@@ -339,7 +339,7 @@ async function discordpost(itemShop) {
|
||||
color: 0x00FF7F,
|
||||
description: `${itemRarity}\n${itemPrice}`,
|
||||
thumbnail: {
|
||||
url: item.images?.icon || "https://i.imgur.com/a7kIOt3.png"
|
||||
url: item.images?.icon || "https://i.imgur.com/2RImwlb.png"
|
||||
}
|
||||
};
|
||||
|
||||
|
||||
@@ -149,6 +149,40 @@ function getContentPages(req) {
|
||||
|
||||
if (memory.season == 21) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/s21-lobby-background-2048x1024-2e7112b25dc3.jpg"
|
||||
|
||||
if (memory.build == 21.10) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = "season2100";
|
||||
}
|
||||
if (memory.build == 21.30) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/nss-lobbybackground-2048x1024-f74a14565061.jpg"
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].stage = "season2130";
|
||||
}
|
||||
}
|
||||
|
||||
if (memory.season == 22) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-bp22-lobby-square-2048x2048-2048x2048-e4e90c6e8018.jpg"
|
||||
}
|
||||
|
||||
if (memory.season == 23) {
|
||||
if (memory.build == 23.10) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-bp23-winterfest-lobby-square-2048x2048-2048x2048-277a476e5ca6.png"
|
||||
contentpages.specialoffervideo.bSpecialOfferEnabled = "true";
|
||||
} else {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-bp20-lobby-2048x1024-d89eb522746c.png";
|
||||
}
|
||||
}
|
||||
|
||||
if (memory.season == 24) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-ch4s2-bp-lobby-4096x2048-edde08d15f7e.jpg"
|
||||
}
|
||||
|
||||
if (memory.season == 25) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/s25-lobby-4k-4096x2048-4a832928e11f.jpg"
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/fn-shop-ch4s3-04-1920x1080-785ce1d90213.png"
|
||||
|
||||
if (memory.build == 25.11) {
|
||||
contentpages.dynamicbackgrounds.backgrounds.backgrounds[0].backgroundimage = "https://cdn2.unrealengine.com/t-s25-14dos-lobby-4096x2048-2be24969eee3.jpg"
|
||||
}
|
||||
}
|
||||
} catch {}
|
||||
|
||||
|
||||
@@ -0,0 +1,39 @@
|
||||
const Redis = require('ioredis');
|
||||
const Keyv = require('keyv');
|
||||
|
||||
//Don't touch "Use_Redis"
|
||||
const Use_Redis = false;
|
||||
const memkv = new Keyv();
|
||||
const redis = Use_Redis ? new Redis() : null;
|
||||
|
||||
class KV {
|
||||
async get(key) {
|
||||
if (Use_Redis && redis) {
|
||||
return await redis.get(key);
|
||||
} else {
|
||||
return await memkv.get(key);
|
||||
}
|
||||
}
|
||||
|
||||
async set(key, value) {
|
||||
if (Use_Redis && redis) {
|
||||
const set = await redis.set(key, value);
|
||||
return set === 'OK';
|
||||
} else {
|
||||
const set = await memkv.set(key, value);
|
||||
return set;
|
||||
}
|
||||
}
|
||||
|
||||
async setTTL(key, value, ttl) {
|
||||
if (Use_Redis && redis) {
|
||||
const set = await redis.set(key, value, 'EX', ttl);
|
||||
return set === 'OK';
|
||||
} else {
|
||||
const set = await memkv.set(key, value, ttl);
|
||||
return set;
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
module.exports = new KV();
|
||||
Reference in New Issue
Block a user