Skip to content

Commit

Permalink
Season 4 update
Browse files Browse the repository at this point in the history
  • Loading branch information
trylogout committed Mar 18, 2024
1 parent f0345e0 commit c8d24ad
Show file tree
Hide file tree
Showing 12 changed files with 28 additions and 31 deletions.
20 changes: 4 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,18 +1,13 @@
# ⚠️ NOTICE

# AS REQUESTED BY THE DEVELOPERS OF THE GAME, I TOOK DOWN THE ONLINE EDITOR AND I'M NOT GOING TO UPDATE IT ANY MORE, THE CODE WILL BE AVAILABLE FOR ANYONE TO MANTAIN/FORK.

# Deep Rock Galactic Save Editor

[![Commitizen friendly](https://img.shields.io/badge/commitizen-friendly-brightgreen.svg)](http://commitizen.github.io/cz-cli/)
![DRG Version](https://img.shields.io/badge/DRG%20Version-1.37-yellow.svg?style=flat)
![DRG Season](https://img.shields.io/badge/DRG%20Season-3-blue.svg?style=flat)
![Saves Edited](https://img.shields.io/badge/dynamic/json?label=Saves%20Edited&query=%24.value&url=https%3A%2F%2Fapi.countapi.xyz%2Fget%2Fmrmarble.dev%2F687428ff-75a5-4b0f-a760-6556b55dbb64)
![DRG Version](https://img.shields.io/badge/DRG%20Version-1.38-yellow.svg?style=flat)
![DRG Season](https://img.shields.io/badge/DRG%20Season-4-blue.svg?style=flat)

Online save editor for deep rock galactic game. [Try it out!](https://mrmarble.dev/drg-editor/)
Online save editor for deep rock galactic game.

> ⚠️ ALWAYS BACKUP YOUR SAVE FILE!
>
## Work in progress

Current features:
Expand All @@ -23,21 +18,14 @@ Current features:
- Edit perk points
- ~Edit weapon overclocks~ (broken again :rolling_eyes:)

Planned features (hopefully :wink:):

- cosmetic overclocks
- Unlock cosmetics

## Offline!

This editor runs fully on your browser, your save file never leaves your computer

## Usage


https://user-images.githubusercontent.com/4268580/211190848-7409cc91-3876-44d0-a66c-518a4efc3724.mp4


## Snapshots

![](assets/first.png)
Expand Down
Binary file added public/assets/scrip.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added public/assets/season04.webp
Binary file not shown.
2 changes: 1 addition & 1 deletion src/components/githubLink/githubLink.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { FaGithub } from 'react-icons/fa';

function GithubLink(): ReactElement {
const url = 'https://github.com/MrMarble/drg-editor';
const name = '/MrMarble/drg-editor';
const name = 'original repo /MrMarble/drg-editor';

return (
<div className='absolute -left-24 -rotate-90 opacity-20 lg:left-auto lg:bottom-6 lg:rotate-0'>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,7 @@ exports[`Layout > should render correctly 1`] = `
<span
className="my-auto text-xs"
>
/MrMarble/drg-editor
original repo /MrMarble/drg-editor
</span>
</div>
</a>
Expand Down
4 changes: 4 additions & 0 deletions src/index.css
Original file line number Diff line number Diff line change
Expand Up @@ -90,3 +90,7 @@ body {
src: url('/assets/fonts/dangerflight.ttf') format('truetype');
}
}

.season-logo {
height: 47px;
}
4 changes: 2 additions & 2 deletions src/views/editor/seasons/season/season.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@ function Season({ season }: Properties): ReactElement {
onChange={onXpChange}
/>
<Input
name={ITEMS.SCRIP}
icon={`assets/${ITEMS.SCRIP.toLowerCase()}.webp`}
name={`${ITEMS.SCRIP}`}
icon={`assets/${ITEMS.SCRIP.toLowerCase()}.png`}
initialValue={scrip}
max={0x0f_ff_ff_ff}
onChange={onScripChange}
Expand Down
3 changes: 2 additions & 1 deletion src/views/editor/seasons/season/useSeason.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ import { useEffect, useState } from 'react';
import { SEASONS } from '../useSeasons';

const XP_PER_LEVEL = 5000;
const XP_OFFSET = 32;
const XP_OFFSET = 153;

interface Properties {
season: keyof typeof SEASONS;
Expand All @@ -29,6 +29,7 @@ function useSeason({ season }: Properties): ReturnType {
const { increment } = useChangesStore();

const [seasonUid, setSeasonUid] = useState(SEASONS[season]);

const [level, setLevel] = useState(
Math.floor(save.getInt32(seasonUid, XP_OFFSET) / XP_PER_LEVEL)
);
Expand Down
4 changes: 4 additions & 0 deletions src/views/editor/seasons/useSeasons.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,10 @@ export const SEASONS = {
PLAGUEFALL: [
0xd8, 0x81, 0x0f, 0x6c, 0x76, 0xd3, 0x74, 0x41, 0x9a, 0xe6, 0xa1, 0x8e,
0xf5, 0xb3, 0xba, 0x26
],
'CRITICAL CORRUPTION': [
0x0a, 0x3a, 0xe2, 0x19, 0x8c, 0xa5, 0xb6, 0x49, 0xb5, 0x6e, 0x4e, 0x11,
0xd6, 0x76, 0x2a, 0xc6
]
};

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ exports[`HomeView > should render 1`] = `
/>
<img
alt="season logo"
className="w-32 mx-auto"
height={32}
src="assets/season03.png"
className="mx-auto w-32 season-logo"
height={47}
src="assets/season04.webp"
width={128}
/>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/views/home/__tests__/__snapshots__/homeView.tsx.snap
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ exports[`HomeView > should render 1`] = `
/>
<img
alt="season logo"
className="mx-auto w-32"
height={32}
src="assets/season03.png"
className="season-logo mx-auto w-32"
height={47}
src="assets/season04.webp"
width={128}
/>
</div>
Expand Down Expand Up @@ -110,7 +110,7 @@ exports[`HomeView > should render 1`] = `
<span
className="my-auto text-xs"
>
/MrMarble/drg-editor
original repo /MrMarble/drg-editor
</span>
</div>
</a>
Expand Down
6 changes: 3 additions & 3 deletions src/views/home/homeView.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ export function HomeView(): ReactElement {
height={47}
/>
<img
src='assets/season03.png'
src='assets/season04.webp'
alt='season logo'
className='mx-auto w-32'
className='season-logo mx-auto w-32'
width={128}
height={32}
height={47}
/>
</div>
<Upload />
Expand Down

0 comments on commit c8d24ad

Please sign in to comment.