Shatur

joined 3 years ago
MODERATOR OF
12
submitted 5 months ago* (last edited 5 months ago) by Shatur@lemmy.ml to c/europe@lemmy.ml
 

Green light for marketing of UV-treated whole Tenebrio molitor larvae powder added to EU "novel food" list. Attempt to block a yes vote in the Environment Committee at the EU Parliament fails.

18
submitted 5 months ago* (last edited 5 months ago) by Shatur@lemmy.ml to c/bevy@programming.dev
 

It’s a crate for server-authoritative networking. We use it for Project Harmonia, but it's general-purpose.

Kinda our 30th anniversary πŸ˜… This release introduces remote triggers. The API is similar to our networked events. Here’s a quick showcase for client triggers:

app.add_client_trigger::<DummyEvent>(ChannelKind::Ordered)
    .add_observer(receive_events)
    .add_systems(Update, send_events.run_if(client_connected));

fn send_events(mut commands: Commands) {
    commands.client_trigger(DummyEvent);
}

fn receive_events(trigger: Trigger<FromClient<DummyEvent>>) {
    info!("received event {:?} from {:?}", trigger.event, trigger.client_id);
}

Server triggers have a similar API. Targeting entities is also supported.

We now also provide an example backend and examples that directly from the bevy_replicon repo. The examples have also been re-written to take advantage of the latest Bevy and Replicon features.

πŸ“œFull changelog πŸ“¦bevy_replicon

1
submitted 5 months ago* (last edited 5 months ago) by Shatur@lemmy.ml to c/projectharmonia@lemmy.ml
 

It’s a crate for server-authoritative networking. We use it for Project Harmonia, but it's general-purpose.

Kinda our 30th anniversary πŸ˜… This release introduces remote triggers. The API is similar to our networked events. Here’s a quick showcase for client triggers:

app.add_client_trigger::<DummyEvent>(ChannelKind::Ordered)
    .add_observer(receive_events)
    .add_systems(Update, send_events.run_if(client_connected));

fn send_events(mut commands: Commands) {
    commands.client_trigger(DummyEvent);
}

fn receive_events(trigger: Trigger<FromClient<DummyEvent>>) {
    info!("received event {:?} from {:?}", trigger.event, trigger.client_id);
}

Server triggers have a similar API. Targeting entities is also supported.

We now also provide an example backend and examples that directly from the bevy_replicon repo. The examples have also been re-written to take advantage of the latest Bevy and Replicon features.

πŸ“œFull changelog πŸ“¦bevy_replicon

 

Refined the bindings menu for my game and ported it into a standalone example for bevy_enhanced_input.

Alice (the author of LWIM) and I quite like the main concepts of the crate, and we’re planning to refine it further to create the ultimate input manager πŸ™‚

 

Refined the bindings menu for my game and ported it into a standalone example for bevy_enhanced_input.

Alice (the author of LWIM) and I quite like the main concepts of the crate, and we’re planning to refine it further to create the ultimate input manager πŸ™‚

11
submitted 5 months ago* (last edited 5 months ago) by Shatur@lemmy.ml to c/bevy@programming.dev
 

Thanks to ongoing work on no_std, people continue to try running Bevy on unusual platforms.

Today, @Mathspy from Discord managed to run it on the Playdate:

For what it's worth, Bevy's app, ECS, math, state work on the playdate with no patches
And Bevy's time works with a minor patch https://github.com/bevyengine/bevy/pull/17577

For rendering they're making playdate render calls in PostUpdate: https://github.com/Mathspy/bevydate/blob/1b4f02adcde079cf9757fd3c7d20331c9ab04513/src/lib.rs#L429-L441

[–] Shatur@lemmy.ml 1 points 5 months ago

That's sad 😒

I heard that the antenna issue can be fixed manually, but it's not an easy fix.

[–] Shatur@lemmy.ml 1 points 5 months ago

This is weird. I saw an announcement on Discord that they finished shipping all devices in November 2024.

[–] Shatur@lemmy.ml 1 points 5 months ago

Yes, this managed to ship all devices in November 2024.

[–] Shatur@lemmy.ml 1 points 5 months ago

You can run Droidian, which is galium-based (special Android compatibility layer to talk to hardware).

Running on mainline is also possible, but the support is not great. Here is the PMOS page.

[–] Shatur@lemmy.ml 4 points 5 months ago (2 children)

Yeah, I heard that many units have antenna issue. Before buying I asked the seller to test it for me. My unit was unaffected by the issue.

Yeah, the situation with the company is not great.

Big thanks to the guy keeping lineage working on it!

There actually 4 maintainers for this device! It was a surprise for me. Usually it's 1 guy.

[–] Shatur@lemmy.ml 2 points 5 months ago

I considered their Astra or Communicator, but they don’t support LineageOS, which is important to me.

 

Spend last week working on remote triggers for bevy_replicon.

Tried many approaches and finally satisfied with the implementation and public API.

Client triggers example:

app.add_client_trigger::<DummyEvent>(ChannelKind::Ordered)
    .add_observer(receive_events)
    .add_systems(Update, send_events.run_if(client_connected));

fn send_events(mut commands: Commands) {
    commands.client_trigger(DummyEvent);
}

fn receive_events(trigger: Trigger<FromClient<DummyEvent>>) {
    let FromClient { client_id, event } = trigger.event();
    info!("received event {event:?} from {client_id:?}");
}

Server triggers example:

app.add_server_trigger::<DummyEvent>(ChannelKind::Ordered)
    .add_observer(receive_events)
    .add_systems(Update, send_events.run_if(server_running));

fn send_events(mut commands: Commands) {
    commands.server_trigger(ToClients {
        mode: SendMode::Broadcast,
        event: DummyEvent,
    });
}

fn receive_events(trigger: Trigger<DummyEvent>) {
    info!("received event {:?} from server", trigger.event());
}

Observers are so nice, I use them in my game a lot and not having them networked was quite limiting.

After a review from second maintainer I will merge it and draft a new release πŸ™‚

1
Remote triggers (github.com)
submitted 5 months ago* (last edited 5 months ago) by Shatur@lemmy.ml to c/projectharmonia@lemmy.ml
 

Spend last week working on remote triggers for bevy_replicon.

Tried many approaches and finally satisfied with the implementation and public API.

Client triggers example:

app.add_client_trigger::<DummyEvent>(ChannelKind::Ordered)
    .add_observer(receive_events)
    .add_systems(Update, send_events.run_if(client_connected));

fn send_events(mut commands: Commands) {
    commands.client_trigger(DummyEvent);
}

fn receive_events(trigger: Trigger<FromClient<DummyEvent>>) {
    let FromClient { client_id, event } = trigger.event();
    info!("received event {event:?} from {client_id:?}");
}

Server triggers example:

app.add_server_trigger::<DummyEvent>(ChannelKind::Ordered)
    .add_observer(receive_events)
    .add_systems(Update, send_events.run_if(server_running));

fn send_events(mut commands: Commands) {
    commands.server_trigger(ToClients {
        mode: SendMode::Broadcast,
        event: DummyEvent,
    });
}

fn receive_events(trigger: Trigger<DummyEvent>) {
    info!("received event {:?} from server", trigger.event());
}

Observers are so nice, I use them in my game a lot and not having them networked was quite limiting.

After a review from second maintainer I will merge it and draft a new release πŸ™‚

 

Bevy is a game engine written in Rust. It targets regular PCs, but thanks to it modularity, it's possible to port it to unusual platforms. These examples replaced the rendering with the one specific to GBA.

Post from @bushRAT in Discord:

Thanks to the ever growing support for no_std in Bevy, I'm now able to use Bevy on the GameBoy Advance! Using the current main branch (which will be included for 0.16!) you can use a crate like agb (and some boilerplate I'm hiding) to write GameBoy Advance games almost as easily as you would for any other Bevy platform. Systems, plugins, resources, queries, the gamepad input API, it all just works. See the attached ROM if you have a GameBoy Advance emulator handy, but I recommend the MGBA emulator as it can also show debug logs (yes, even all the logging just works)

Links to GBA files:

If you have a real GBA or an FPGA console, the author will appreciate if you try :)

Repository: https://github.com/bushrat011899/bevy_agb_test

18
submitted 5 months ago* (last edited 5 months ago) by Shatur@lemmy.ml to c/bevy@programming.dev
 

Post from @bushRAT in Discord:

Thanks to the ever growing support for no_std in Bevy, I'm now able to use Bevy on the GameBoy Advance! Using the current main branch (which will be included for 0.16!) you can use a crate like agb (and some boilerplate I'm hiding) to write GameBoy Advance games almost as easily as you would for any other Bevy platform. Systems, plugins, resources, queries, the gamepad input API, it all just works. See the attached ROM if you have a GameBoy Advance emulator handy, but I recommend the MGBA emulator as it can also show debug logs (yes, even all the logging just works)

Links to GBA files:

If you have a real GBA or an FPGA console, the author will appreciate if you try :)

Repository: https://github.com/bushrat011899/bevy_agb_test

[–] Shatur@lemmy.ml 3 points 5 months ago (1 children)

True πŸ˜₯ Did you broke yours?

[–] Shatur@lemmy.ml 5 points 5 months ago

Yeah...

I wish companies produce more phones like this.

[–] Shatur@lemmy.ml 3 points 5 months ago* (last edited 5 months ago)

Try looking at their unofficial Discord server. It's usually cheaper then on eBay. But ask to test the antenna, some units have issues with that.

[–] Shatur@lemmy.ml 8 points 5 months ago (2 children)

Same. But recently I managed to buy almost new for 300 EUR.

I only recently started using it, so maybe later I will make a post about it :)

138
submitted 5 months ago* (last edited 5 months ago) by Shatur@lemmy.ml to c/android@lemmy.world
 

A long time ago, I owned a Motorola Droid 4 and Photon Q. Feeling so nostalgic now πŸ™‚

The keyboard on this one is much better - it's full-sized, and the slider mechanism feels quite robust.

[–] Shatur@lemmy.ml 13 points 5 months ago (1 children)

I've always been a lurker, but I started being active on Fedi, and I like it!

[–] Shatur@lemmy.ml 3 points 6 months ago (1 children)

Looks awesome!

 

cross-posted from: https://lemmy.ml/post/25050675

If you use https://es-de.org/, which themes do you like the most?

view more: β€Ή prev next β€Ί