polyzium
polyzium
Explore posts from servers
PDProgram Dream
Created by polyzium on 11/7/2024 in #🔨┃dev-logs
Modulo: Discord MOD/tracker music bot
https://github.com/polyzium/modulo A project I have been working on recently. This brings the world of MOD music (aka tracker music or module music) to Discord in form of a music bot. This is actually an attempt to reincarnate the now dead BitMod bot, which was an idea conceived by a guy who doesn't know how to code, and asked ChatGPT to do it for him. The differences are: - Modulo renders the modules live using libopenmpt, where BitMod rendered them to WAV using openmpt123 CLI utility, which led to server crashes if the module was set to repeat. - Based on the above, Modulo allows for stuff like position seeking/jumping and tempo change (not implemented yet). - Modulo is actually written by a human being (me) instead of a neural network. The bot is currently being tested in a separate server, please DM me for an invite. I may put it here if there's enough demand and permission from the staff.
1 replies
UBUniversal Blue
Created by polyzium on 8/24/2024 in #🛟bazzite-help
Can't install Bazzite on a Deck OLED due to huge scaling, even with an external monitor
No description
21 replies
PDProgram Dream
Created by polyzium on 6/1/2024 in #🔨┃dev-logs
3D software rendering in Rust
No description
338 replies
PDProgram Dream
Created by polyzium on 4/16/2024 in #🔨┃dev-logs
Steam Deck alternative keyboard
The Steam keyboard is quite lackluster, has no Ctrl/Alt/Win/etc keys, and Valve wouldn't make one for some reason. I am starting this project to provide an alternative, open-source onscreen keyboard for the Steam Deck with dual touchpad support.
8 replies
PDProgram Dream
Created by polyzium on 2/8/2024 in #📦┃project-showcase
DarkChronics Quake (Minecraft minigame)
This is a plugin for Spigot/Paper (Minecraft server) that I have been working on for the past 2 weeks or so. It aims to reimplement most if not all of Quake 3/Live's mechanics, weapons, gamemodes, and gameplay. The teaser below shows the plugin in action https://youtu.be/RGHGhP-oy80 No source code, this is a private proprietary plugin for a server. Sorry.
36 replies
SSolidJS
Created by polyzium on 10/27/2023 in #support
Lazy named import?
I have code that depends on an async function for data, and thus I need to await it. Making a dirty hack to adapt an async function to a sync component via signals was a much simpler thing to make than what I am about to explain. I have an async component:
async function Settings(): Promise<JSX.Element> {
...
async function Settings(): Promise<JSX.Element> {
...
the data fetcher:
async function Settings_init() {
setConfig(await invoke('config'));
// vvv No async vvv
//invoke(config).then((data)=>setConfig(data as Config))
}
async function Settings_init() {
setConfig(await invoke('config'));
// vvv No async vvv
//invoke(config).then((data)=>setConfig(data as Config))
}
and the export:
export {Settings, Settings_init};
export {Settings, Settings_init};
I searched this up on google and I tried this:
const Settings = lazy(() =>
import("./tabs/SettingsTab").then((module) => ({ default: module.Settings }))
);
const Settings = lazy(() =>
import("./tabs/SettingsTab").then((module) => ({ default: module.Settings }))
);
But I get an error:
Type 'Promise<{ default: never; } | { default: () => Promise<Element>; }>' is not assignable to type 'Promise<{ default: Component<any>; }>'.
Type '{ default: never; } | { default: () => Promise<Element>; }' is not assignable to type '{ default: Component<any>; }'.
Type '{ default: () => Promise<JSX.Element>; }' is not assignable to type '{ default: Component<any>; }'.
The types returned by 'default(...)' are incompatible between these types.
Type 'Promise<Element>' is not assignable to type 'Element'.
Type 'Promise<{ default: never; } | { default: () => Promise<Element>; }>' is not assignable to type 'Promise<{ default: Component<any>; }>'.
Type '{ default: never; } | { default: () => Promise<Element>; }' is not assignable to type '{ default: Component<any>; }'.
Type '{ default: () => Promise<JSX.Element>; }' is not assignable to type '{ default: Component<any>; }'.
The types returned by 'default(...)' are incompatible between these types.
Type 'Promise<Element>' is not assignable to type 'Element'.
I don't really understand what went wrong here, but one thing for sure, whatever broke this, it broke it terribly. What is the fix for this, and if there isn't, should I go back to that dirty hack (see comment)?
26 replies
PDProgram Dream
Created by polyzium on 3/12/2023 in #🔨┃dev-logs
MOD2FLP
Tool for converting tracker music files to FL Studio projects natively, without using MIDI files as middlemen. This is still at the conceptual stage. TODO FILL WITH INFORMATION
3 replies
PDProgram Dream
Created by polyzium on 10/7/2022 in #🔨┃dev-logs
Termbot
A bot that provides a fully fledged terminal emulator inside a Discord chat message. This is the thread for https://github.com/polyzium/termbot, all feature requests go here.
35 replies
PDProgram Dream
Created by polyzium on 10/5/2022 in #🔨┃dev-logs
Tracker DAW with MPE
No description
108 replies
PDProgram Dream
Created by polyzium on 8/25/2022 in #💬┃forum
'Don't write C in C++', they said
"It'll be fun", they said Nah I'm just kidding. So apparently John Carmack himself (former id Software employee and Oculus CTO) has said that he writes "C flavoured C++" and isn't a fan of modern programming styles with templates or anything, and considering how C++ is sort of a multi paradigm language, I want to hear your thoughts on this.
8 replies
PDProgram Dream
Created by polyzium on 8/11/2022 in #💬┃forum
Let's talk about netcode
Recently I've started playing around with Godot. So far I got a basic "walker" type of game logic, so I decided to go for adding multiplayer support. And that got me thinking: what is really the best way to do exactly that? Most multiplayer solutions just update entities' positions across multiple clients. Older ones such as Doom just sends player commands, so the client does the simulation and updates positions based on commands. And there is probably something else that I left out. I thought I'd open this topic up for discussion.
176 replies