Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 16
» Latest member: wcup_2026_bet Kex
» Forum threads: 10
» Forum posts: 25

Full Statistics

Online Users
There are currently 5 online users.
» 0 Member(s) | 5 Guest(s)

Latest Threads
New Setup
Forum: General Raspberry Pi Content
Last Post: Brian Beuken
2 hours ago
» Replies: 0
» Views: 7
And...we are off
Forum: Forum/Website updates
Last Post: Brian Beuken
03-01-2026, 09:50 AM
» Replies: 2
» Views: 4,950
Content updates almost re...
Forum: Forum/Website updates
Last Post: Brian Beuken
02-02-2026, 04:22 PM
» Replies: 4
» Views: 5,832
Setting up Visual Studio ...
Forum: Game Coding Projects
Last Post: toyamigo
01-17-2026, 05:13 PM
» Replies: 2
» Views: 3,355
Say Hello
Forum: Chat
Last Post: Brian Beuken
01-14-2026, 06:49 AM
» Replies: 7
» Views: 6,752
My PC won't connect to m...
Forum: General Raspberry Pi Content
Last Post: Brian Beuken
12-30-2025, 04:39 PM
» Replies: 0
» Views: 3,711
Remember to sign up
Forum: Book 2
Last Post: Brian Beuken
12-13-2025, 04:52 PM
» Replies: 0
» Views: 1,641
Visual Studio 2026 Inside...
Forum: Visual Studio
Last Post: Brian Beuken
12-04-2025, 11:13 PM
» Replies: 0
» Views: 2,140
Current OS issues
Forum: General Raspberry Pi Content
Last Post: Brian Beuken
11-22-2025, 08:36 PM
» Replies: 0
» Views: 2,279
We're back, well, I am at...
Forum: Forum/Website updates
Last Post: Brian Beuken
11-14-2025, 12:52 PM
» Replies: 0
» Views: 2,988

 
  New Setup
Posted by: Brian Beuken - 2 hours ago - Forum: General Raspberry Pi Content - No Replies

I have had a lot of issues with some updates recently but I've managed to resolve most of them..

If you are using your Pi for the 1st time remember you need to run the setup script at least one time. It will install all the libs needed throughout the book. It will be attached to all Pi projects but here is the most updated version.

Code:
#!/usr/bin/env bash
#
# Dev environment setup � safe to re-run.
# Re-running updates the git repos to their latest version and refreshes apt packages.

# --- helper: clone a repo if it's missing, otherwise update it to the latest version ---
clone_or_update() {
    url="$1"
    dir="$2"
    if [ -d "$dir/.git" ]; then
        echo "Updating $dir (pulling latest)"
        git -C "$dir" pull --ff-only
    else
        echo "Cloning $dir"
        git clone "$url" "$dir"
    fi
}

echo installing
echo installing cmake
cd "$HOME"
sudo apt update                 # refresh the package index so re-runs get the latest apt versions
sudo apt install cmake -y
echo

# stb
echo installing STB
clone_or_update https://github.com/nothings/stb.git "$HOME/stb"
echo STB install done

# GLM
echo installing GLM
clone_or_update https://github.com/g-truc/glm.git "$HOME/glm"
echo GLM Install done

echo "Installing Jeremiah Audio"
clone_or_update https://github.com/3dgep/Audio.git "$HOME/Audio"

cd "$HOME/Audio"
rm -rf build                    # start clean so Debug AND Release rebuild correctly every run
mkdir -p build
cd build

# ---- Debug ----
cmake -DCMAKE_BUILD_TYPE=Debug ../
cmake --build .
mkdir -p ../lib/Debug
mv ../lib/*.a ../lib/Debug/
echo "debug audio files added"

# ---- Release ----

cmake -DCMAKE_BUILD_TYPE=Release ../
cmake --build .
mkdir -p ../lib/Release
mv ../lib/*.a ../lib/Release/
echo "release audio files added"

cd "$HOME"

# Bullet installation:
sudo apt install libbullet-dev -y
echo Bullet installed.

# XrandR
echo installing XrandR for Resolution changes
sudo apt install libxrandr-dev -y
echo Xrandr installed

echo installing libopenAL and sound libs, these are largely replaced now, but kept for compatibility
sudo apt install libopenal-dev -y
sudo apt install pulseaudio -y
sudo apt install libalut-dev -y
sudo apt install libogg-dev -y
sudo apt install libvorbis-dev -y
sudo apt install vorbis-tools -y

echo we have installed OpenAL and companion audio

echo get latest mesa libs
sudo apt install libgles2-mesa-dev -y
echo libmesa is Done

# Install FreeType

echo Installing freetype...
sudo apt install libfreetype6 libfreetype6-dev -y

echo FreeType installed

echo installing Assimp
cd "$HOME"
sudo apt install libassimp-dev -y
echo Assimp installed

echo installing VLC
sudo apt install libvlc-dev -y
echo VLC Installed

echo enhancing GPU debug output NOTE- not all will install
sudo apt install libglx-mesa0-dbgsym libglapi-mesa-dbgsym libgl1-mesa-dri-dbgsym -y

echo Done!
echo
echo Scroll up to make sure there were no errors, warnings are ok
echo Take note of the errors and check the web/support sites for fixes
read -s -p "Press Enter when you're ready!"
echo ...



Attached Files
.zip   setup.zip (Size: 1.26 KB / Downloads: 0)
Print this item

  And...we are off
Posted by: Brian Beuken - 02-25-2026, 12:35 PM - Forum: Forum/Website updates - Replies (2)

ok first uploads are done, I will do a few tests to make sure everything is ok and futher uploads witll be posted then tested in sequence.

Sorry again for all the horrible delays, lots of reasons, but none which excuse you having paid for a book with no software to download, I will do my best to give you a lot of good content over and above what the book provides in the comming months.

For now the PhotoFrame is uploaded 
https://www.scratchpadgames.net/pi4-download-page.html

I am checking the double buffer test as well and will update that very soon before I upload Invaders and Kamakazi.

Print this item

  Setting up Visual Studio and Raspberry Pi 400
Posted by: toyamigo - 01-15-2026, 11:27 AM - Forum: Game Coding Projects - Replies (2)

   
Allrighty!  Big Grin
Finally did it. It works. Had to do a 'Set as Startup Project', copy the headers to /usr/include and it showed up on my Pi.
Now I'll get a cup of coffee, deserved it. After that I can continue knowing things work ok.
Brian, thanks again for all the help. Good luck with settings things up there.  Cool

Print this item

  Say Hello
Posted by: Brian Beuken - 01-08-2026, 05:15 AM - Forum: Chat - Replies (7)

I'm not seeing a lot of activity on the forum which is a bit surprising, are people having problems signing up? I added an extra mega easy question to the sign up system, so it should be simple, though you won't currently get a notification when you sign up

if anyone is struggling to sign up, just mail me at brian at scratchpadgames dot net  and I will investigate

But if you do sign in ok, come here and say hello, tell us a bit about yourself and your reasons for joining up to this forum.

thanks

Brian

Print this item

  My PC won't connect to my Pi using a network cable
Posted by: Brian Beuken - 12-30-2025, 04:39 PM - Forum: General Raspberry Pi Content - No Replies

As I am resetting a lot of my equipment, this old issue cropped up again for me. It happens every so often for some, not all, of my students too.
It's basically due to both your PC and Pi attempting to get an IP address from a DHCP server that doesn't exist in a direct connection, so neither can establish a proper network link.

There are 3 solutions to this:

1st If you can, buy a small network switch. When both machines are connected via a switch which has access to your network, they can find your network's DHCP server. This is my personally preferred method, especially when I have a few different machines I want to target - a switch avoids lots of messy unplugging/plugging.

2nd Connect both your PC and Pi via ethernet to your network router. That way both machines get IPs from your router's DHCP server.

3rd A little less elegant but effective: set both devices to static IPs on their own private network. This is fiddly because you need to type commands into the Pi's terminal, but it works well.
On the Pi, carefully enter these two commands:

sudo nmcli con add type ethernet ifname eth0 con-name wired-static ipv4.addresses 192.168.2.1/24 ipv4.method manual autoconnect yes
sudo nmcli con up wired-static

This assigns 192.168.2.1 to your Pi. Now set your PC's ethernet to a static IP in the same range:

Win + X → Network Connections
Right-click Ethernet → Properties
Double-click Internet Protocol Version 4 (TCP/IPv4) (<<this might vary depending on your version of Windows, but basically set IPv4 to manual)
Select "Use the following IP address":

IP address: 192.168.2.2
Subnet mask: 255.255.255.0
Gateway: leave blank
DNS: leave blank


Click OK

Now your wired connection should work!
You can also enable WiFi on both devices for internet access - they'll route traffic appropriately. 
While you can use raspberrypi.local (or whatever your Pi's hostname is) to connect, using the IP address 192.168.2.1 directly is faster and guarantees you're using the wired connection.

Hopefully you won't have a problem - it's only a small number of setups that have this issue, but this solution should fix it.

Actually there is a 4th option, just make sure both systems are on the same WiFi network.. WiFi these days is impressively fast, but... wired is quite significanly faster and you will feel that difference if you are doing a lot of debugging or sending data back and forward.

Print this item

  Remember to sign up
Posted by: Brian Beuken - 12-13-2025, 04:52 PM - Forum: Book 2 - No Replies

I hope you've been enjoying the book, but at this immediate moment, there's a lack of content on the support site. I have chased the site hosts again and they are trying to trace the problem. But I can offer some help and some code samples on this forum while we try to get thigns fixed.

Please sign up, say hello and I'll try to help you get through the book

Print this item

  Content updates almost ready
Posted by: Brian Beuken - 12-04-2025, 11:18 PM - Forum: Forum/Website updates - Replies (4)

4/12/25

The book launches tomorrow, so its time to get the videos and source files sorted, there may however be some delay again.. Im still getting some issues from the site when it comes to uploading large files, it seems to fail, a help request has gone to the hosting company.. Hopefully I can get it resolved and start uploading videos and chapter contents soon.

In the meantime if you have an early copy of the book, please log in, say hello and I'll update you when things are finally resolved.

Print this item

  Visual Studio 2026 Insider
Posted by: Brian Beuken - 12-04-2025, 11:13 PM - Forum: Visual Studio - No Replies

There's a new version... of course there is Big Grin just as the book launches..

But aside from some cosmetic changes, and I assume, a bit of internal shuffling around, its not massively different, just some navigation changes to panels. It still loads and runs all VS2022 projects fine.

That said for the forseeable future I will continue to use Visual Studio 2022 for all project.  I'll experiment more with the 2026 and transition when I am confident everything works

Print this item

  Current OS issues
Posted by: Brian Beuken - 11-22-2025, 08:36 PM - Forum: General Raspberry Pi Content - No Replies

Trixie on Pi

Trixie uses Wayland as default but it will emulate X11, as a result projects all seem to work fine, but may stretch window sizes from the standard 1024x768 to full screen.. Its not a major issue, you can still set X11 in the raspi-config tool via the terminal.

Print this item

  We're back, well, I am at least, please come join me
Posted by: Brian Beuken - 11-14-2025, 12:52 PM - Forum: Forum/Website updates - No Replies

I am so so sorry, but due to a combination of my being a bit stupid and our webhost being slightly more stupid, the website and its forums were totally trashed.

We have to start again, hopefully a last time and also this time with backups.... I did at least have website backups so the update to the website is continuing, and we should be fully live by December 4th, the day before the book launches.



TLDR the webhosts filled the webspace with log files, the website was not expanded as I had asked, and the website locked, when I tried to back up it destroyed the forums and I had to delete it and then shout at the host company to get the space I paid for allocated to this site.......damn

Please log in, please post ask questions, please provide answers and lets try to make this a useful resource for anyone coding on SBC's

It will take me a little while to get things back to normal, so please be patient with me

Print this item