<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>postal game | Learn C Games Programming Blog</title>
	<atom:link href="https://learncgames.com/tag/postal-game/feed/" rel="self" type="application/rss+xml" />
	<link>https://learncgames.com</link>
	<description>A blog about C, programming games and my ebook(s).</description>
	<lastBuildDate>Thu, 30 Oct 2025 20:43:18 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=6.9.4</generator>

<image>
	<url>https://learncgames.com/wp-content/uploads/2020/03/cropped-favicon-32x32.png</url>
	<title>postal game | Learn C Games Programming Blog</title>
	<link>https://learncgames.com</link>
	<width>32</width>
	<height>32</height>
</image> 
<site xmlns="com-wordpress:feed-additions:1">181446779</site>	<item>
		<title>A silly bug in Flutter/Dart</title>
		<link>https://learncgames.com/a-silly-bug-in-flutter-dart/?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=a-silly-bug-in-flutter-dart</link>
		
		<dc:creator><![CDATA[David]]></dc:creator>
		<pubDate>Thu, 30 Oct 2025 20:42:22 +0000</pubDate>
				<category><![CDATA[Flutter]]></category>
		<category><![CDATA[Game]]></category>
		<category><![CDATA[Web]]></category>
		<category><![CDATA[postal game]]></category>
		<guid isPermaLink="false">https://learncgames.com/?p=3469</guid>

					<description><![CDATA[<p>So I&#8217;m developing a web postal* game client which is loaded from a Linux server as a Flutter web app. When I run it on the Linux box from Chromium, no problems, it loads a binary file ok. When I try to run it from a networked Windows box, the binary file fails to load. [&#8230;]</p>
The post <a href="https://learncgames.com/a-silly-bug-in-flutter-dart/">A silly bug in Flutter/Dart</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></description>
										<content:encoded><![CDATA[<figure id="attachment_3470" aria-describedby="caption-attachment-3470" style="width: 512px" class="wp-caption alignleft"><img fetchpriority="high" decoding="async" class="wp-image-3470" src="https://learncgames.com/wp-content/uploads/2025/10/robotpostman.jpg" alt="Robot postman" width="512" height="512" srcset="https://learncgames.com/wp-content/uploads/2025/10/robotpostman.jpg 1024w, https://learncgames.com/wp-content/uploads/2025/10/robotpostman-300x300.jpg 300w, https://learncgames.com/wp-content/uploads/2025/10/robotpostman-150x150.jpg 150w, https://learncgames.com/wp-content/uploads/2025/10/robotpostman-768x768.jpg 768w, https://learncgames.com/wp-content/uploads/2025/10/robotpostman-250x250.jpg 250w" sizes="(max-width: 512px) 100vw, 512px" /><figcaption id="caption-attachment-3470" class="wp-caption-text">Generated by Gemini</figcaption></figure>
<p>So I&#8217;m developing a web postal* game client which is loaded from a Linux server as a Flutter web app. When I run it on the Linux box from Chromium, no problems, it loads a binary file ok. When I try to run it from a networked Windows box, the binary file fails to load. It&#8217;s loaded by calling a PHP endpoint, passing the path of the file to a PHP script.</p>
<p>It was my fault. Because the game client is loaded from the Linux server and the path is a Linux path to the binary file, I&#8217;d missed that it runs on the Windows box (where the browser launches from). I&#8217;d used Platform.isLinux and Platform.Windows calls to figure out the path when I initially tested it on a Windows box.  The path to the binary file was being sent as if the file was on the Windows box because the Flutter app runs as JavaScript in the browser there. D&#8217;oh!</p>
<p>*<em>Postal means a game where the game client sends orders to the server. Those are processed once an hour and the results file is picked up when the client next runs. It&#8217;s how games used to be played through the post back 30 or 40 years ago hence the name. </em></p>
<p>&nbsp;</p>The post <a href="https://learncgames.com/a-silly-bug-in-flutter-dart/">A silly bug in Flutter/Dart</a> first appeared on <a href="https://learncgames.com">Learn C Games Programming Blog</a>.]]></content:encoded>
					
		
		
		<post-id xmlns="com-wordpress:feed-additions:1">3469</post-id>	</item>
	</channel>
</rss>
