NekoiNemo

NekoiNemo

Advanced Hands-on Rust: Numerous issues with Loading Menu parts (page 119-128

Setup Asset Store

On page 120 we’re told to make a fn setup in asset_manager, in a format of a bevy system, this is done after being told to uncomment adding setup fn as a system to bevy on the previous page, and told we will be implementing it now.

We never actually end up running an application using this code, as it gets discarded immediately after, without that being mentioned.

Later, on page 126 we use setup_asset_store fn that we never declared and never implement it after. Consulting with sources, the function we were supposed to write on 120 is that setup_asset_store, except it takes references to resources, not Res<> handles, and also returns an instance of AssetStore. Reader is never told to make these changes.

Workspace is ignored

Minor, but page 125 forgets that we’re using workspace and treats library’s Cargo.toml as having dependencies specified with versions

loading_menu re-exports

On page 126 we’re told to create loading_menu module, but never told to do blanket re-export of everything from it, despite the functions being used later as bevy_assets::setup (with function being declared in loading_menu.

The entirety of build() at the end

Not only all of the above, but the entire body of build() on page 128 is only annotated as us needing to add usage of Egui plugin to the setup, while completely ignoring the numerous additions and changes that are made to the function (namely, everything to do with assets in the last block)

It also uses T::default(). but we’re never told to update T’s constraints to also include + Default. And, unlike similar omission with Copy - this time the where T isn’t even shown in the code block

Where Next?

Popular Pragmatic Bookshelf topics Top

jon
Some minor things in the paper edition that says “3 2020” on the title page verso, not mentioned in the book’s errata online: p. 186 But...
New
GilWright
Working through the steps (checking that the Info,plist matches exactly), run the demo game and what appears is grey but does not fill th...
New
simonpeter
When I try the command to create a pair of migration files I get an error. user=&gt; (create-migration "guestbook") Execution error (Ill...
New
AleksandrKudashkin
On the page xv there is an instruction to run bin/setup from the main folder. I downloaded the source code today (12/03/21) and can’t see...
New
rmurray10127
Title: Intuitive Python: docker run… denied error (page 2) Attempted to run the docker command in both CLI and Powershell PS C:\Users\r...
New
leonW
I ran this command after installing the sample application: $ cards add do something --owner Brian And got a file not found error: Fil...
New
curtosis
Running mix deps.get in the sensor_hub directory fails with the following error: ** (Mix) No SSH public keys found in ~/.ssh. An ssh aut...
New
rainforest
Hi, I’ve got a question about the implementation of PubSub when using a Phoenix.Socket.Transport behaviour rather than channels. Before ...
New
andreheijstek
After running /bin/setup, the first error was: The foreman' command exists in these Ruby versions: That was easy to fix: gem install fore...
New
ggerico
I got this error when executing the plot files on macOS Ventura 13.0.1 with Python 3.10.8 and matplotlib 3.6.1: programming_ML/code/03_...
New

Other popular topics Top

PragmaticBookshelf
Design and develop sophisticated 2D games that are as much fun to make as they are to play. From particle effects and pathfinding to soci...
New
AstonJ
You might be thinking we should just ask who’s not using VSCode :joy: however there are some new additions in the space that might give V...
New
dimitarvp
Small essay with thoughts on macOS vs. Linux: I know @Exadra37 is just waiting around the corner to scream at me “I TOLD YOU SO!!!” but I...
New
AstonJ
In case anyone else is wondering why Ruby 3 doesn’t show when you do asdf list-all ruby :man_facepalming: do this first: asdf plugin-upd...
New
foxtrottwist
A few weeks ago I started using Warp a terminal written in rust. Though in it’s current state of development there are a few caveats (tab...
New
mafinar
This is going to be a long an frequently posted thread. While talking to a friend of mine who has taken data structure and algorithm cou...
New
AstonJ
If you want a quick and easy way to block any website on your Mac using Little Snitch simply… File &gt; New Rule: And select Deny, O...
New
PragmaticBookshelf
Author Spotlight: VM Brasseur @vmbrasseur We have a treat for you today! We turn the spotlight onto Open Source as we sit down with V...
New
New
New

Sub Categories: