<?xml version="1.0" encoding="UTF-8"?><rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	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/"
	
	>
<channel>
	<title>
	Comments on: Porting Quake II to MS-DOS pt3	</title>
	<atom:link href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/feed/" rel="self" type="application/rss+xml" />
	<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/</link>
	<description>Fun with Virtualization</description>
	<lastBuildDate>Sun, 16 Feb 2025 23:39:10 +0000</lastBuildDate>
	<sy:updatePeriod>
	hourly	</sy:updatePeriod>
	<sy:updateFrequency>
	1	</sy:updateFrequency>
	<generator>https://wordpress.org/?v=7.0</generator>
	<item>
		<title>
		By: MS-DOS		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-151283</link>

		<dc:creator><![CDATA[MS-DOS]]></dc:creator>
		<pubDate>Sun, 01 Nov 2015 19:58:46 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-151283</guid>

					<description><![CDATA[I get error message :( Sys_error: Couldn&#039;t load pics/conchars.pcx why ?]]></description>
			<content:encoded><![CDATA[<p>I get error message 🙁 Sys_error: Couldn&#8217;t load pics/conchars.pcx why ?</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: neozeed		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137722</link>

		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Fri, 19 Jun 2015 13:03:10 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137722</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137719&quot;&gt;RayeR&lt;/a&gt;.

you&#039;ll have to build a test program to look @ the mouse.  I just vaguely recall mice count their measurements in mickeys. (haha).

I&#039;m not too worried about the sound just yet.  But it&#039;d be nice to have sound on my xeon.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137719">RayeR</a>.</p>
<p>you&#8217;ll have to build a test program to look @ the mouse.  I just vaguely recall mice count their measurements in mickeys. (haha).</p>
<p>I&#8217;m not too worried about the sound just yet.  But it&#8217;d be nice to have sound on my xeon.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RayeR		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137719</link>

		<dc:creator><![CDATA[RayeR]]></dc:creator>
		<pubDate>Fri, 19 Jun 2015 12:47:51 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137719</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137705&quot;&gt;RayeR&lt;/a&gt;.

Yes, I belive you that with djdev 2.03 it works. I also tried your binary from 15.6. and it connects to server and I can play fine.
But for my other project I need to keep quite recent libC so I used djdev 2.04 many years ago and now a month ago moved to 2.05. Maybe I have some backup of older djgpp toolchain but there must be a way to fix it to move forward. I hope that someone from djgpp groups could help with it. I never worked on djdev I just use it... I suspect some constant in some header are defined differently in quake2 and wattcp or so...

Yes, ct mouse driver provides wheel functionality (it /O parameter is used) and the mouse library have to be modified to be able to read such event. But I didn&#039;t tried in Hexen II yes if it works there.

About WSS - can you try some real HW? What changes Ruslan did on it? I don&#039;t know him. I don&#039;t know if someone else touched WSS sourcers for recent 2 years except that DMP used WSS to add HDA support for their Vortex86EX (86duino) but as it&#039;s not maintained they didn&#039;t send back.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137705">RayeR</a>.</p>
<p>Yes, I belive you that with djdev 2.03 it works. I also tried your binary from 15.6. and it connects to server and I can play fine.<br />
But for my other project I need to keep quite recent libC so I used djdev 2.04 many years ago and now a month ago moved to 2.05. Maybe I have some backup of older djgpp toolchain but there must be a way to fix it to move forward. I hope that someone from djgpp groups could help with it. I never worked on djdev I just use it&#8230; I suspect some constant in some header are defined differently in quake2 and wattcp or so&#8230;</p>
<p>Yes, ct mouse driver provides wheel functionality (it /O parameter is used) and the mouse library have to be modified to be able to read such event. But I didn&#8217;t tried in Hexen II yes if it works there.</p>
<p>About WSS &#8211; can you try some real HW? What changes Ruslan did on it? I don&#8217;t know him. I don&#8217;t know if someone else touched WSS sourcers for recent 2 years except that DMP used WSS to add HDA support for their Vortex86EX (86duino) but as it&#8217;s not maintained they didn&#8217;t send back.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: neozeed		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137717</link>

		<dc:creator><![CDATA[neozeed]]></dc:creator>
		<pubDate>Fri, 19 Jun 2015 11:46:02 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137717</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137705&quot;&gt;RayeR&lt;/a&gt;.

Its DJGPP&#039;s 2.05 libraries that conflict with wattcp.  Downgrade to 2.03, and it&#039;ll work fine.  I use GCC 2.95.3 of all ancient things, and it works fine.

I don&#039;t know about the mouse wheel, I guess it&#039;s a matter if the driver supports the mouse.  I&#039;ve been messing with WSS, and the good news is that I can load and unload OK.  The bad news is that I only get noise.  Hopefully Ruslan will share his modifications (GPL and all that) so we can all benefit.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137705">RayeR</a>.</p>
<p>Its DJGPP&#8217;s 2.05 libraries that conflict with wattcp.  Downgrade to 2.03, and it&#8217;ll work fine.  I use GCC 2.95.3 of all ancient things, and it works fine.</p>
<p>I don&#8217;t know about the mouse wheel, I guess it&#8217;s a matter if the driver supports the mouse.  I&#8217;ve been messing with WSS, and the good news is that I can load and unload OK.  The bad news is that I only get noise.  Hopefully Ruslan will share his modifications (GPL and all that) so we can all benefit.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RayeR		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137705</link>

		<dc:creator><![CDATA[RayeR]]></dc:creator>
		<pubDate>Fri, 19 Jun 2015 09:29:21 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137705</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137250&quot;&gt;RayeR&lt;/a&gt;.

I tried the mouse wheel functionality but doesn&#039;t work for me - I cannot bind it in custom config. While in Arachne works fine.

Then I tried the networking (under real DOS, I luckily have NIC driver) and as you said I got ioctl error :(
http://rayer.g6.cz/1tmp/quake2tcp.png
But it was able to get a server list so it cannot be completly wrong.

I tried so hard many hours tonigt but didn&#039;t make it working. First to tell I rather use GCC 4.8.4 because GCC 5.1.0 may introduce aditional issues like different inline behavior between c11 and c99 (issues with ntohl where extern __inline__ need to be updated to _EXTERN_INLINE to add __attribute__ ((__gnu_inline__)) for proper GCC version). So with 4.8.4 + djdev 2.05 I had less problems but...

I 1st tried to use my wattcp 2.2 release 10 that I compiled 2 years ago with current djdev 2.04 and gcc 4.7.3. I tries various test programs like ping, trace... that came with library and it worked. I linked this libwatt.a with quake2 and it gives same ioctl errors. I tried it to recompile with my current 4.8.4/2.05 but the same.
2nd I found wattcp 2.2 release 10 source and lib packages in djgpp repository: ftp://ftp.delorie.com/pub/djgpp/beta/v2tk/
and again I tried linking and then full configure and compiling but still the same. 

So it lead me to think about the problem is not in wattcp itself but in quake2 networking code that interfaces wattcp library and it may happen that it compile differently with 2.03 and 2.04/2.05.
Anyway because of different error codes always the right version of wattcp have to be used against djdev version - I mean the djgpp.err file. We really shouldn&#039;t mix 2.03 and 2.04 libs and code.

Are there some other libraries that quake2 use dependent on wattcp? I think curl maybe so I recompiled it too but still the same.
So I&#039;m out of ideas what else to try.
Of course one should grab all the bunch of warning that occurs during quake2 compilation and carefully analyze them if some are related to wattcp code...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137250">RayeR</a>.</p>
<p>I tried the mouse wheel functionality but doesn&#8217;t work for me &#8211; I cannot bind it in custom config. While in Arachne works fine.</p>
<p>Then I tried the networking (under real DOS, I luckily have NIC driver) and as you said I got ioctl error 🙁<br />
<a href="http://rayer.g6.cz/1tmp/quake2tcp.png" rel="nofollow ugc">http://rayer.g6.cz/1tmp/quake2tcp.png</a><br />
But it was able to get a server list so it cannot be completly wrong.</p>
<p>I tried so hard many hours tonigt but didn&#8217;t make it working. First to tell I rather use GCC 4.8.4 because GCC 5.1.0 may introduce aditional issues like different inline behavior between c11 and c99 (issues with ntohl where extern __inline__ need to be updated to _EXTERN_INLINE to add __attribute__ ((__gnu_inline__)) for proper GCC version). So with 4.8.4 + djdev 2.05 I had less problems but&#8230;</p>
<p>I 1st tried to use my wattcp 2.2 release 10 that I compiled 2 years ago with current djdev 2.04 and gcc 4.7.3. I tries various test programs like ping, trace&#8230; that came with library and it worked. I linked this libwatt.a with quake2 and it gives same ioctl errors. I tried it to recompile with my current 4.8.4/2.05 but the same.<br />
2nd I found wattcp 2.2 release 10 source and lib packages in djgpp repository: <a href="ftp://ftp.delorie.com/pub/djgpp/beta/v2tk/" rel="ugc">ftp://ftp.delorie.com/pub/djgpp/beta/v2tk/</a><br />
and again I tried linking and then full configure and compiling but still the same. </p>
<p>So it lead me to think about the problem is not in wattcp itself but in quake2 networking code that interfaces wattcp library and it may happen that it compile differently with 2.03 and 2.04/2.05.<br />
Anyway because of different error codes always the right version of wattcp have to be used against djdev version &#8211; I mean the djgpp.err file. We really shouldn&#8217;t mix 2.03 and 2.04 libs and code.</p>
<p>Are there some other libraries that quake2 use dependent on wattcp? I think curl maybe so I recompiled it too but still the same.<br />
So I&#8217;m out of ideas what else to try.<br />
Of course one should grab all the bunch of warning that occurs during quake2 compilation and carefully analyze them if some are related to wattcp code&#8230;</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RayeR		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137658</link>

		<dc:creator><![CDATA[RayeR]]></dc:creator>
		<pubDate>Thu, 18 Jun 2015 18:46:20 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137658</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312&quot;&gt;neozeed&lt;/a&gt;.

I also found hardcoded resolution constants and redefined them to
#define MAXWIDTH		1920
#define MAXHEIGHT		1200
New modes was found and works :)]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312">neozeed</a>.</p>
<p>I also found hardcoded resolution constants and redefined them to<br />
#define MAXWIDTH		1920<br />
#define MAXHEIGHT		1200<br />
New modes was found and works 🙂</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: [HCI]Mara'akate		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137656</link>

		<dc:creator><![CDATA[[HCI]Mara'akate]]></dc:creator>
		<pubDate>Thu, 18 Jun 2015 18:11:02 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137656</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312&quot;&gt;neozeed&lt;/a&gt;.

Yes, finds functionality changed.  Look at the DJGPP mail list, a week or so ago someone recommended another way to do it that worked OK.

If you get it compiling OK test connecting to servers, because Jason had trouble with ioctl.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312">neozeed</a>.</p>
<p>Yes, finds functionality changed.  Look at the DJGPP mail list, a week or so ago someone recommended another way to do it that worked OK.</p>
<p>If you get it compiling OK test connecting to servers, because Jason had trouble with ioctl.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RayeR		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137651</link>

		<dc:creator><![CDATA[RayeR]]></dc:creator>
		<pubDate>Thu, 18 Jun 2015 17:03:21 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137651</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312&quot;&gt;neozeed&lt;/a&gt;.

hm, there&#039;s no dj_err.c anyway in your package...
So I simply copied djerr.204 -&#062; djgpp.err and this sort of redefine errors has gone. It still produces a lot of various warnings (types, signedness, unused vars, uninitialized vard) but the q2.exe is done.

Also make clean doesn&#039;t work. I guess that instead of 
find ./ -name &#039;*.o&#039; -exec rm {} \;
there could be used some racursion parameter to rm ro delete all *.in the tree.]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312">neozeed</a>.</p>
<p>hm, there&#8217;s no dj_err.c anyway in your package&#8230;<br />
So I simply copied djerr.204 -&gt; djgpp.err and this sort of redefine errors has gone. It still produces a lot of various warnings (types, signedness, unused vars, uninitialized vard) but the q2.exe is done.</p>
<p>Also make clean doesn&#8217;t work. I guess that instead of<br />
find ./ -name &#8216;*.o&#8217; -exec rm {} \;<br />
there could be used some racursion parameter to rm ro delete all *.in the tree.</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RayeR		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137650</link>

		<dc:creator><![CDATA[RayeR]]></dc:creator>
		<pubDate>Thu, 18 Jun 2015 16:47:09 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137650</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312&quot;&gt;neozeed&lt;/a&gt;.

Aha, the bracket eater, well I mean
  #include_next [sys/cdefs.h]
where [ is arrow brackets]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312">neozeed</a>.</p>
<p>Aha, the bracket eater, well I mean<br />
  #include_next [sys/cdefs.h]<br />
where [ is arrow brackets</p>
]]></content:encoded>
		
			</item>
		<item>
		<title>
		By: RayeR		</title>
		<link>https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137649</link>

		<dc:creator><![CDATA[RayeR]]></dc:creator>
		<pubDate>Thu, 18 Jun 2015 16:45:57 +0000</pubDate>
		<guid isPermaLink="false">https://virtuallyfun.com/?p=5155#comment-137649</guid>

					<description><![CDATA[In reply to &lt;a href=&quot;https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312&quot;&gt;neozeed&lt;/a&gt;.

Grr, the line should be
  #include_next 

I found that djgpp.err is generated by dj_err.exe from wattcp\util\ and it seems to be recompiled with djdev 2.05 but I don&#039;t have installed slang library to do so and cannot find the prebuilt, sh configure from sourcers fail as usually... :\
But I could fix djgpp.err manually for now...]]></description>
			<content:encoded><![CDATA[<p>In reply to <a href="https://virtuallyfun.com/2015/06/07/porting-quake-ii-to-ms-dos-pt3/comment-page-1/#comment-137312">neozeed</a>.</p>
<p>Grr, the line should be<br />
  #include_next </p>
<p>I found that djgpp.err is generated by dj_err.exe from wattcp\util\ and it seems to be recompiled with djdev 2.05 but I don&#8217;t have installed slang library to do so and cannot find the prebuilt, sh configure from sourcers fail as usually&#8230; :\<br />
But I could fix djgpp.err manually for now&#8230;</p>
]]></content:encoded>
		
			</item>
	</channel>
</rss>
