Giter Club home page Giter Club logo

lawinserverv2's Introduction

LawinServerV2

LawinServer V2 is a fortnite backend written in Node.js that features an account system and xmpp.

Features

LawinServer V2

  • CloudStorage and ClientSettings (Settings Saving).
  • Locker:
    • Changing items.
    • Changing banner icon and banner color.
    • Changing item edit styles.
    • Favoriting items.
    • Marking items as seen.
  • Friends:
    • Adding friends.
    • Accepting friend requests.
    • Removing friends.
    • Blocking friends.
    • Setting nicknames.
    • Removing nicknames.
  • Item Shop:
    • Customizable Item Shop.
    • Purchasing items from the Item Shop.
    • Gifting items to your friends.

XMPP Features

  • Parties (builds 3.5 to 14.50).
  • Chat (whispering, global chat, party chat).
  • Friends.

NOTE: LawinServerV2 does not support Save the World.

Discord Bot Commands

Commands:

  • /create {email} {username} {password} - Creates an account on the backend (You can only create 1 account).
  • /details - Retrieves your account info.
  • /lookup {username} - Retrieves someones account info.
  • /exchange-code - Generates an exchange code for login. (One time use for each code and if not used it expires after 5 mins).
  • /change-username {newUsername} - You can change your username using this command.
  • /change-password {newPassword} - You can change your password using this command.
  • /sign-out-of-all-sessions - Signs you out if you have an active session.
  • /clear-items-for-shop - Clears anything in your profile that is from the item shop.

Moderation Commands:

  • You can only use the moderation commands if you are a moderator.
  • /ban {targetUsername} - Ban a user from the backend by their username.
  • /unban {targetUsername} - Unban a user from the backend by their username.
  • /kick {targetUsername} - Kick someone out of their current session by their username.

How to set up moderators?

  1. Go to Config/config.json in the directory you extracted LawinServerV2 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"].

Hosting for others

You are allowed to host for others, however please credit me and don't remove my credits from responses/contentpages.json.

How to host LawinServerV2

  1. Install NodeJS and MongoDB.
  2. Download and Extract LawinServerV2 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 LawinServerV2 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.
  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.

lawinserverv2's People

Contributors

lawin0129 avatar milxnor avatar pro100katyt avatar secret-pommes avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

lawinserverv2's Issues

empty account

How to have an empty account without v-bucks and more ?

macOS Support?

hey I just wanted to ask if you can add support for macOS?
Kind regards, Natalie

XMPP

In Season 3 ver 3.5 it show's
Screenshot 2023-02-09 213310
this

Matchmaking Issue

when you click ready and the matchmaker says Waiting for Server... you will get an error with "Session Expired.."
btw and you also made a mistake in the matchmaking.js file where the server sends the ip that you want to join to the client <= i hope yk what i mean Lawin :>

[enhancement] Better Account Managment / V-Bucks Management

I think it would be a great feature if you made the V-Bucks accessible via MongoDB. I think it would be great too if you could manage the server as an Admin on an Web-Pannel and not via Discord because its not that managable.

For the long time because i know that, that is a big and time consuming request.

Fiddler

What fiddlerscript should I use? Any launcher too? I'm new to this stuff.

Launcher?

How do I launch into the actual game? there are no launchers Lawin Server V2. I tried making my own using old SSL Injection DLL but it just doesn't work so idek anymore. Please help

Launchers

I saw the launchers channel in your discord and i wanted to ask if you could also upload the starting for 10.40 and 12.41 or just more builds in general

Some problems with VBucks and Shop sync

I had some problems with the store when using LawinV2.
The main problem: Synchronization between the store and the locker.
When you buy something in the store, the item is not purchased, does not appear in the locker and the amount in VBucks is not taken. Is there a way to solve this problem?

Backend crashes when users register

Rarely the backend crashes when someone register an account. Here is the error code: C:\Users\csaba\desktop\BACKEND\node_modules\discord.js\src\rest\RequestHandler.js:350
throw new DiscordAPIError(data, res.status, request);
^

DiscordAPIError: Unknown interaction
at RequestHandler.execute (C:\Users\csaba\desktop\BACKEND\node_modules\discord.js\src\rest\RequestHandler.js:350:13) at processTicksAndRejections (node:internal/process/task_queues:96:5)
at async RequestHandler.push (C:\Users\csaba\desktop\BACKEND\node_modules\discord.js\src\rest\RequestHandler.js:51:14)
at async CommandInteraction.reply .

ps: please do it to save your settings, it's also good if it's the same every season, it's much better than not saving it at all

Matchmaking Support?

I dont know if its working yet, but at me matchmaking isnt working.
Will it be, near future?

LawinServerV2 problems

So, after setting up the server and logging in, I wanted to try some of the new features like the friend requests and parties.

I used 2 clients on 7.30 (with FortniteLauncher.exe -NOSSLPINNING -skippatchcheck -epicportal -HTTP=WinINet as args ) connected to a LawinServerV2 with Figlet to redirects Fortnite servers, this is the script I use .

Then after successfully logging in on both clients, i sent the friend requests to each other, but the friend request appear only after logging out and relogging in, same thing for accepting it.

After accepting the friend requests, I logged out and relogged in but both profiles appear offline from the friend list.

So, in resume, seems like the client doesn't receive (or send) updates from LawinServerV2.

HOW TO RESOLVE = #2 (comment)

Webserver in Port 80

Hi! I already have a Webserver on port 80 but the lawinserver needs it for xmpp. How do I get around this?

A few suggestions to LawinServer

Hi Lawin!
I have a few suggestions for LawinServer!

  1. Make SAC codes supported in LawinServer v2 (i tried to implement but not worked)

  2. Make the matchmaking service support custom matchmaking code. I mean if you put an ip address to the custom code field that override the config ip and connect to the server you put (if anyone host multiple servers, this is very useful)

  3. This is not a backend suggestion, but it relates to. Write a simple fortnite launcher for LawinServer. In the launcher you can put the backend ip, email, password, and store fortnite client paths (with this everyone can use lawinserver much easier than now)

  4. Save The World support like in v1 backend. (i liked that)

  5. A file in the Config folder that contains all cosmetic item ids (this makes configuring item shop a lot easier)

  6. Try to fix the global chat and party chat bug. this bug occurs if you log in and log out to the backend multiple times (duplicating the messages you and others send)

  7. Tournaments to the compete tab and v-buck offers in the store page (makes fortnite look more you play on the official servers)

  8. Fix v6.21 lobby and battle bus theme (this is the halloween build, and the theme in the lobby and battle bus isn't halloween themed)

  9. Make voice channel support (i don't know how hard is this, but it really cool)

  10. Make battle pass and battle pass tiers purchaseable like in v1 backend. Change battle pass to start in tier 1 (makes fortnite look more you play on the official servers)

For now this is the end. If you have any ideas not listed here, share with me (and with Lawin :D )

TypeError: Cannot read properties of null (reading 'token')

Hi! If anyone have this error, please let me know, because this error makes LawinServer totally unusable. This error comes when you are about to log in to the server, and the whole backend crashes because of this. Here is the error code:

C:\Users\FirefoxYT\Desktop\LawinServerV2-main\tokenManager\tokenVerify.js:79
if (jwtTokens.accessTokens.find(i => i.token == eg1~${token})) {
^

TypeError: Cannot read properties of null (reading 'token')
at C:\Users\FirefoxYT\Desktop\LawinServerV2-main\tokenManager\tokenVerify.js:79:48
at Proxy.find ()
at verifyClient (C:\Users\FirefoxYT\Desktop\LawinServerV2-main\tokenManager\tokenVerify.js:79:36)
at processTicksAndRejections (node:internal/process/task_queues:96:5)

I'm using the newest version of LawinServer

XMPP Problem

When i host the server for my friends and the put the ip into fiddler the can login and go to the lobby but the XMPP stuff doesnt work. pls help

Battle Pass

Add BattlePass from s2 - Whatever version above season 10 you can do

MatchMaker

Screenshot 2022-12-19 201618

Does this works with the open source matchmaker and can you duplicate it for other game modes?

help

help me plz how join the lawinserverv2
just how

Plz

please add client saving

item shop problem

whenever i edit the config thing the item shop doesn't refresh (unless I restart my game)

Login to Lawin V2 without using in game login

I’m creating a custom Fortnite launcher and was wondering if it’s possible to login to a LawinV2 account straight from the launcher to avoid logging in when the game opens (via launch arguments or something)

V-Bucks

Can you change the amount of vbucks that each Account has and the Days remaning on the battle pass?

Host Lawin on a VPS without Fiddler

Hello,
I already looked at issue #2 , but I didn't really understand how to host LawinServer for our friends without using Fiddler, should we make a Python script? Does a launcher already allow you to do this?
Thank you for your reply.

1/10 times an endpoint will 404.

on every build i have tested 4.2 10.40 6.10 12.41 etc a random endpoint has 404'ed changes everytime, happens at any time with the error "Token is missing key ID value"

Matchmaker error

When readying up on 5.41, it'll say waiting for server, and then display this message. Not experiencing this on other versions
image

Linux Support

I noticed that LawinServerV2 dosent support Linux (or just Ubuntu) and i think i'd would be very nice if you could add Linux support

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.