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

edruder
I thought that there might be interest in using the book with Rails 6.1 and Ruby 2.7.2. I’ll note what I needed to do differently here. ...
New
JohnS
I can’t setup the Rails source code. This happens in a working directory containing multiple (postgres) Rails apps. With: ruby-3.0.0 s...
New
jeremyhuiskamp
Title: Web Development with Clojure, Third Edition, vB17.0 (p9) The create table guestbook syntax suggested doesn’t seem to be accepted ...
New
brian-m-ops
#book-python-testing-with-pytest-second-edition Hi. Thanks for writing the book. I am just learning so this might just of been an issue ...
New
jskubick
I’m running Android Studio “Arctic Fox” 2020.3.1 Patch 2, and I’m embarrassed to admit that I only made it to page 8 before running into ...
New
adamwoolhether
I’m not quite sure what’s going on here, but I’m unable to have to containers successfully complete the Readiness/Liveness checks. I’m im...
New
Charles
In general, the book isn’t yet updated for Phoenix version 1.6. On page 18 of the book, the authors indicate that an auto generated of ro...
New
s2k
Hi all, currently I wonder how the Tailwind colours work (or don’t work). For example, in app/views/layouts/application.html.erb I have...
New
dtonhofer
@parrt In the context of Chapter 4.3, the grammar Java.g4, meant to parse Java 6 compilation units, no longer passes ANTLR (currently 4....
New
mcpierce
@mfazio23 I’ve applied the changes from Chapter 5 of the book and everything builds correctly and runs. But, when I try to start a game,...
New

Other popular topics Top

AstonJ
A thread that every forum needs! Simply post a link to a track on YouTube (or SoundCloud or Vimeo amongst others!) on a separate line an...
New
AstonJ
If it’s a mechanical keyboard, which switches do you have? Would you recommend it? Why? What will your next keyboard be? Pics always w...
New
Exadra37
I am thinking in building or buy a desktop computer for programing, both professionally and on my free time, and my choice of OS is Linux...
New
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
PragmaticBookshelf
Use WebRTC to build web applications that stream media and data in real time directly from one user to another, all in the browser. ...
New
AstonJ
Biggest jackpot ever apparently! :upside_down_face: I don’t (usually) gamble/play the lottery, but working on a program to predict the...
New
Maartz
Hi folks, I don’t know if I saw this here but, here’s a new programming language, called Roc Reminds me a bit of Elm and thus Haskell. ...
New
AstonJ
If you’re getting errors like this: psql: error: connection to server on socket “/tmp/.s.PGSQL.5432” failed: No such file or directory ...
New
RobertRichards
Hair Salon Games for Girls Fun Girls Hair Saloon game is mainly developed for kids. This game allows users to select virtual avatars to ...
New

Sub Categories: