polyzium
polyzium
Explore posts from servers
PDProgram Dream
Created by polyzium on 6/1/2024 in #🔨┃dev-logs
3D software rendering in Rust
No description
288 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