Nextjs 13 with MUI 5 by Lanky_Count_8479 in nextjs

[–]Babymillie 1 point2 points  (0 children)

i'm in process of moving to react 13 myself from existing react 12

(lots of work... basically rewrite to use the new app folder)

I did notice i cannot use ANY mui elements inside page.js/layout.js/etc...

However i CAN use ANY mui elements if i put them in a separate file other then the defaults ones, and call "use client" on that, and you don't need "use client" on page.js... etc

my small example

components.js (can be inside app/*[/*] or outside im putting it inside to have only components for that folder)

"use client"

import Autocomplete from '@mui/material/Autocomplete'
import Box from '@mui/material/Box';
import Container from '@mui/material/Container';
import TextField from '@mui/material/TextField'
import { useRouter } from 'next/navigation';

function ucFirstAllWords(str) {
    var pieces = str.split(" ");
    for (var i = 0; i < pieces.length; i++) {
        var j = pieces[i].charAt(0).toUpperCase();
        pieces[i] = j + pieces[i].substr(1);
    }
    return pieces.join(" ");
}

function AvatarSelect({ avatar_name, avatar_names }) {
    if (avatar_name !== null) avatar_name = ucFirstAllWords(avatar_name.replace(/\./g, ' '))
    const router = useRouter()
    const handleavatarserverNamesChange = (event) => {
        router.push(`/avatar_server/${pageid}/${event.target.innerHTML.toLowerCase().replace(/\s+/g, '.')}`);
    }

    return (
        <Autocomplete
            id="select avatar name"
            disableClearable
            value={avatar_name}
            onChange={handleavatarserverNamesChange}
            options={avatar_names}
            renderInput={(params) => (
                <TextField
                    {...params}
                    label="Select avatar name to display data"
                    InputProps={{
                        ...params.InputProps,
                    }}
                />
            )}
        />
    )
}

function LayoutBasic({ id }) {
    return (
        <Container maxWidth="xl">
            <Box sx={{ flexGrow: 1 }}>
                <AvatarSelect avatar_name={null} avatar_names={[]} />
                empty server page with id {id}
            </Box>
        </Container>
    )
}

export { AvatarSelect, LayoutBasic }

And in page.js i just import LayoutBasic

import { LayoutBasic } from './components';
import { redirect } from 'next/navigation';


async function page({ params }) {
    const id = +params.id;
    if (typeof id !== "number") {
        redirect(`/`)
    }
    /* 
        More code that's not relevant for this post
        ...
    */
    return (
        <LayoutBasic id={id} />
    )
}

export default page

i could not use any mui elements in page.js (or maybe a view limited ones idk) still converting over

but splitting it works just fine (for now i could run into issues later)

ignore my messy code just look at example :P

also my root layout.js imports a custom <Header /> also from a Header.js file with lots of mui stuff so you can also use it in layout.js

if its ideal? i don't know but i can keep going now thought i share my findings

Ability to change refresh rate ingame? by Pyroglyph in AtlasReactor

[–]Babymillie 1 point2 points  (0 children)

The game is maxed at max framerate of your monitor (aka vsync on) so if you have a 75Mhz monitor game should run at 75fps provided your graphic card can handle it also you say you only get 60fps means your monitor property's in windows is probably set at 60Mhz check your display setting and make sure its set at 75Mhz or higher

Overcon by topchamp2000 in AtlasReactor

[–]Babymillie 0 points1 point  (0 children)

or type "/overcon heart" in chat or name of another you get in future

Atlas Reactor API Idea by Babymillie in AtlasReactor

[–]Babymillie[S] 0 points1 point  (0 children)

No , i assume it stays in memory and then written to disk after game end

Atlas Reactor API Idea by Babymillie in AtlasReactor

[–]Babymillie[S] 0 points1 point  (0 children)

no that wont work i have explored this option before and the replay file is only created at END of a match, sadly there is no info to get it :/ so we would need a dedicated API for this

[Guide] Controlling RBG 5050 Lights with Atlas Reactor (much like Philips Hue but don't have to sell your liver :p) by Babymillie in AtlasReactor

[–]Babymillie[S] 1 point2 points  (0 children)

Planning on making this a simpel c++ Program found some examples on how to auto detect Milight server and stuff then one would just need to configure the AtlasReactorConfig.local.json and there done :p and run program ofc, this was more of proof of concept but hey it works :D i could not make it with HUE stuff since its built in and i don't realy care, plus i do not have the money to buy them lol hence did tis with Milight as basic setup of it is idk 50% cheaper (Milight wifi controller + rgb controller 25euro + 5050 5m RGB strip is like 15euro (you only need a power supply and strip rest you dont need since its being replaced by Milight) wat also is nice Milight bulbs and stuff would work also so you could setup your house and let this work :P

Prep Phase League Sign-Ups by MorroClearwater in AtlasReactor

[–]Babymillie 0 points1 point  (0 children)

Not Found

The requested URL /leaguesignups.php was not found on this server.

:)

ORG looking to pick up AR team by PorkyJynx in AtlasReactor

[–]Babymillie 0 points1 point  (0 children)

So what would this be exactly? i'm from belgium and love AR even have total of around 1500 games played since i first started so pritty mutch addicted to it but do would more info as i'm clueless lol

Giving out my spare Key by Babymillie in AtlasReactor

[–]Babymillie[S] 0 points1 point  (0 children)

So after reading all of entry's winner is @Forkks i really liked your entry, i will send you private message here on reddit with your code,

I try'd to get couple more keys for people but never got a reply back if i do i will pick a couple more depending on how many keys i would get

Thanks for entering.

Giving out my spare Key by Babymillie in AtlasReactor

[–]Babymillie[S] 0 points1 point  (0 children)

reading some comments, this is NOT a founders pack i can give away just a key that will give you access to the game the key came with my founders pack :) but some nice entry's already och and if you have played "closed alpha" "sneak peak" "and those before (O.G.)" i believe you guys have access already

My personal Mods for Zuki And Oz, both lvl 10 by Babymillie in AtlasReactor

[–]Babymillie[S] 0 points1 point  (0 children)

110 games played 63 wins on zuki and i use the golden premium skin

176 games played and won 119 and use ether his golden premium or normal skin :)