<?xml version="1.0"?>
<rss version="2.0">
	<channel>
		<title>Transdimensional Hellspider</title>
		<link>http://www.allegro.cc/forums/view/603839</link>
		<description>Allegro.cc Forum Thread</description>
		<webMaster>matthew@allegro.cc (Matthew Leverton)</webMaster>
		<lastBuildDate>Sun, 02 May 2010 21:17:24 +0000</lastBuildDate>
	</channel>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Hi everyone.</p><p>A while ago I finished my game Transdimensional Hellspider. </p><p><a href="http://www.allegro.cc/depot/TransdimensionalHellspider/">Here&#39;s the depot page</a> and <a href="http://www.shmup-dev.com/forum/index.php/topic,2062.0.html">here&#39;s a thread on shmup-dev about it</a>.</p><p>Basically, it&#39;s a cross between Spacewar! and Warning Forever. You fight a series of large boss-type enemies that evolve in response to the way you destroy them. It&#39;s also pretty hard. But fun (I think).</p><p>Interesting development challenges: writing a convincing physics model for the hellspider. Getting the hellspider to develop properly, so that none of its parts overlap even when it is flexing. Getting the player-centred display to work without looking dodgy.</p><p>Screenshots:</p><p><span class="remote-thumbnail"><span class="json">{"name":"messenger2.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/6\/168fc42d58e62762a5dd6f2bb97174f0.png","w":320,"h":240,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/1\/6\/168fc42d58e62762a5dd6f2bb97174f0"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/1/6/168fc42d58e62762a5dd6f2bb97174f0-240.jpg" alt="messenger2.png" width="240" height="180" /></span><br /><span class="remote-thumbnail"><span class="json">{"name":"messenger1.png","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/f\/9f3090a88ec8d80c2f7f9609b6284ceb.png","w":320,"h":240,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/9\/f\/9f3090a88ec8d80c2f7f9609b6284ceb"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/9/f/9f3090a88ec8d80c2f7f9609b6284ceb-240.jpg" alt="messenger1.png" width="240" height="180" /></span></p><p>Let me know what you think!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Linley Henzell)</author>
		<pubDate>Tue, 20 Apr 2010 18:26:22 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Interesting concept, but I found it very difficult for my first two games. Is the best strategy to just get inside the spider and fire?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CGamesPlay)</author>
		<pubDate>Tue, 20 Apr 2010 19:32:59 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Pretty cool game, with good variety in weapons/enemies. I did have trouble adjusting to the fact that I couldn&#39;t move backwards. This meant the only strategy I could come  up with was charging through the enemy, and then shooting him in the back.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Anatol334)</author>
		<pubDate>Tue, 20 Apr 2010 19:41:28 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I thought this thread was a reference to Robert Gray from Steven Kings Macroverse; Todash Darkness. But I love shmup&#39;s so I am downloading in now, yay. <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Timorg)</author>
		<pubDate>Tue, 20 Apr 2010 20:14:02 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I really liked White Butterfly, so I&#39;ll sure give this one a try as soon as I can. You&#39;re like a shmup guru, huh?.</p><p>[EDIT:] Wow!, really cool game!. The ships&#39; animations, the physics and enemies&#39; design are all quite nice. It&#39;s a bit difficult but once you get the idea it gets a bit easier. I&#39;ve only reached Hellspider H until now.</p><p>The pause at the level presentation is a bit annoying, I think.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Tue, 20 Apr 2010 21:01:46 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Nice game, but hard (got to the 3rd hellspider), and the ability to fly backwards would be a big help.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (CursedTyrant)</author>
		<pubDate>Tue, 20 Apr 2010 23:39:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Enemies do indeed adapt. That&#39;s a really nice feature and makes the game harder. Now I can&#39;t stop playing. Right now I can&#39;t beat Hellspider <s>0</s>.</p><p>[EDIT:] OK, I reached M and I&#39;m officially giving up. Anything further is just for shmup junkies. And the M Hellspider is not even half the size of the one in the first screenshot!.</p><p>So, I give up. Nice game, though. I may get the source and compile with infinite lives or invincibility...
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Wed, 21 Apr 2010 05:38:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Backwards movement and strafing would improve the game (in my opinion). It&#39;s frustrating to not be able to go the way I want to go. I like being maneuverable.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Wed, 21 Apr 2010 16:49:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I couldn&#39;t really get into the movement either. Also the 8bit colour played havoc with my win7, dual screen setup. To me the game screams dual stick controls, one for forwards, backwards and strafing. Then the other is used for rotation.</p><p>The best tactic I could come up with was moving away from it, then come at it, just off angle so I could shoot off the legs as I went past. I would really like to be able to circle around it, shooting it from behind the whole time, but it may break game dynamics.</p><p>On a plus, you really have the shmup down to a fine art. The problem with art is that it can be controversial and may not be to everyone&#39;s tastes. If you are happy with this, keep it this way.</p><p>also, Have you considered creating a framework for shmups?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Timorg)</author>
		<pubDate>Wed, 21 Apr 2010 17:49:32 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>And a Mouse aiming option, FTW !
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Wed, 21 Apr 2010 18:06:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;d like to see a video of someone playing against that Hellspider in the first screenshot. I would record a video myself if I had a capable machine.</p><p>Also, I&#39;m thinking that maybe a different upgrade path might help me so I&#39;ll probably play it again and try to get past the M Hellspider. After that one I would get another upgrade so things would probably get a bit easier.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Wed, 21 Apr 2010 21:11:15 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I loved Overgod, I loved White Butterfly, I loved Excellent Bifurcation, but I don&#39;t really like Transdimensional Hellspider, it is very confusing to control and not as exciting as White Butterfly (Overgod suffers from a similar problem having difficult controls and a slow pace.)
</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/861831#target">Timorg</a> said:</div><div class="quote"><p>also, Have you considered creating a framework for shmups?</p></div></div><p>
I have to agree that a Linley Henzell SHMUP framework sounds pretty cool <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Slartibartfast)</author>
		<pubDate>Wed, 21 Apr 2010 22:21:03 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>As I thought, taking a different upgrade path I was able to get to the Y Hellspider, once. I was going for the shield upgrades first &#39;cause otherwise it was really hard to survive but now I&#39;m going for the power upgrades first and it seems to make things a bit easier.</p><p>I liked White Butterfly more, too. But this one is not bad, it&#39;s just different.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/861859#target">Slartibartfast</a> said:</div><div class="quote"><p> I have to agree that a Linley Henzell SHMUP framework sounds pretty cool <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div></div><p>LHSHMUPF, for short?.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Thu, 22 Apr 2010 00:28:30 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Good game.. I&#39;m terrible at it but it&#39;s nice. Are the &quot;hellspiders&quot; generated following some algorithm or did you somehow hand make them all? I was expecting a vertical shooter as all of your other games that I&#39;ve played were like that.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Trent Gamblin)</author>
		<pubDate>Thu, 22 Apr 2010 01:38:52 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I finished it!. It requires both a good upgrade path and some luck in the enemies&#39; adaptation; if the enemies start launching the super-hard-to-avoid attacks, then you&#39;re screwed.</p><p>Once you get a fully upgraded ship the rest is plain easy. Surviving long enough to upgrade your ship is the hard part.</p><p><span class="remote-thumbnail"><span class="json">{"name":"601128","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/e\/7ec67a9ae44755e682c4259ff1703d04.png","w":640,"h":480,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/7\/e\/7ec67a9ae44755e682c4259ff1703d04"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/7/e/7ec67a9ae44755e682c4259ff1703d04-240.jpg" alt="601128" width="240" height="180" /></span><br />The screenshot palette got messed up.</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/861904#target">Trent Gamblin</a> said:</div><div class="quote"><p> Are the &quot;hellspiders&quot; generated following some algorithm or did you somehow hand make them all?
</p></div></div><p>I guess they&#39;re hardcoded as they&#39;re always the same. It would be cool if they were randomly generated. By the way, I guess I didn&#39;t see the one in the first screenshot... maybe I was just too busy dodging bullets to pay attention.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Thu, 22 Apr 2010 03:19:07 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks for all of the comments and feedback! I certainly don&#39;t expect everyone to enjoy this game; it&#39;s very tricky to play and kind of punishing sometimes. I guess it&#39;s meant as a challenge.</p><p>It doesn&#39;t have mouse aiming or dual-analogue controls because I find those control methods really hard to use. I can play FPSs alright with mouse+keyboard but for some reason mouse aiming in any other perspective just doesn&#39;t work for me. The same with dual analogue. Also, I like thrust/rotation inertia-based controls and one of the challenges I set myself for this game was the fixed forwards perspective with the world seeming to rotate around the player. I might do something else like that sometime.<br /> 
</p><div class="quote_container"><div class="title"><a href="http://">kenmasters1976</a> said:</div><div class="quote"><p>The pause at the level presentation is a bit annoying, I think.</p></div></div><p>
True, but after the first few levels it takes quite a while to build the hellspider, mostly because it precalculates all possible flexed/relaxed states (because the calculations are too slow to do each frame when the hellspider is flexing). Sadly there&#39;s not much I can do about that.</p><div class="quote_container"><div class="title"><a href="http://">Timorg</a> said:</div><div class="quote"><p>also, Have you considered creating a framework for shmups?</p></div></div><p>
What&#39;s a &quot;framework&quot;? My coding style is a bit idiosyncratic (which is a nice way of putting it) so I&#39;m not sure how useful this would be to anyone else.</p><div class="quote_container"><div class="title"><a href="http://">Trent Gamblin</a> said:</div><div class="quote"><p>Are the &quot;hellspiders&quot; generated following some algorithm or did you somehow hand make them all?</p></div></div><p>
They&#39;re generated by algorithm. Basically, if you destroy a piece while it has other pieces attached to it, it will grow larger. If you destroy a piece while it doesn&#39;t have anything attached to it, it will grow another piece. It&#39;s a bit more complicated than that, but that&#39;s the basic idea. Weapons are chosen and can change according to the range and angle you destroyed the piece from.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Linley Henzell)</author>
		<pubDate>Thu, 22 Apr 2010 18:50:04 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Wow!, so they are generated!. I thought they were hardcoded. I guess I always got the same Hellspiders (maybe they weren&#39;t the same after all, just similar) &#39;cause I always used a similar strategy for destroying them. That also explains why I didn&#39;t see the one in the first screenshot. This makes the game even more interesting.</p><p>Now I wonder how large the Hellspiders can grow...</p><p>[EDIT:] Woah!, a small strategy change and I&#39;m fighting huge Hellspiders by the time of the second upgrade. Really nice!.</p><p>The I Hellspider:<br /><span class="remote-thumbnail"><span class="json">{"name":"601132","src":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/2\/522204cdda5abf44d4d0ac1ef73252af.png","w":640,"h":480,"tn":"\/\/djungxnpq2nug.cloudfront.net\/image\/cache\/5\/2\/522204cdda5abf44d4d0ac1ef73252af"}</span><img src="http://www.allegro.cc//djungxnpq2nug.cloudfront.net/image/cache/5/2/522204cdda5abf44d4d0ac1ef73252af-240.jpg" alt="601132" width="240" height="180" /></span><br />That&#39;s just level 9.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Thu, 22 Apr 2010 22:53:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I noticed that in fullscreen, I, as kenmasters1976, have the screwed up palette thing.</p><p>It does not happen in windowed mode.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Fri, 23 Apr 2010 13:19:13 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Very fun little game! Could you elaborate on how the spiders are generated?</p><p>I liked the controls, but I would prefer it if it was even more inertia-based. There seems to be a lot of dampening now, which makes certain strategies impossible (accelerate next to the spider, glide past it while firing at it, for example).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jonatan Hedborg)</author>
		<pubDate>Fri, 23 Apr 2010 16:01:09 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/862173#target">GullRaDriel</a> said:</div><div class="quote"><p>I noticed that in fullscreen, I, as kenmasters1976, have the screwed up palette thing.</p></div></div><p>

Oh yeah, forgot to mention that I&#39;ve got that too. Running Windows 7 here.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Neil Black)</author>
		<pubDate>Fri, 23 Apr 2010 22:04:29 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s only the screenshot palette what gets messed up for me, the game looks OK.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kenmasters1976)</author>
		<pubDate>Sat, 24 Apr 2010 00:05:12 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>The fact that you think you know the problem should not forbid the author to be aware of it.</p><p>And yes, it does play in the fact that I first liked it less (in fullscreen) than the second time in windowed mode.</p><p>He must fix it ! <img src="http://www.allegro.cc/forums/smileys/angry.gif" alt="&gt;:(" /></p><p><img src="http://www.allegro.cc/forums/smileys/grin.gif" alt=";D" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (GullRaDriel)</author>
		<pubDate>Sat, 24 Apr 2010 03:34:53 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m not sure what&#39;s causing the palette problems. I suspect it&#39;s actually a bug with Allegro, and there&#39;s not much I can do about that (possibly nobody else notices because not many people use 8-bit colour anymore. I use it for the control it gives over transparency).
</p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/862179#target">Jonatan Hedborg</a> said:</div><div class="quote"><p>I liked the controls, but I would prefer it if it was even more inertia-based</p></div></div><p>
If you get an agility upgrade, the drag decreases quite a bit.
</p><div class="quote_container"><div class="title">Jonatan Hedborg said:</div><div class="quote"><p>Could you elaborate on how the spiders are generated?</p></div></div><p>
I don&#39;t remember all the details, but here&#39;s as good an explanation as I can think of right now.</p><p>As I mentioned before, if you destroy a piece while it has other pieces attached to it, it will grow larger. If you destroy a piece while it doesn&#39;t have anything attached to it, it will grow another piece (although there is a maximum of two pieces that can be attached to any other piece). However, a piece won&#39;t grow larger or develop a child piece if that would result in an overlap with any other piece. Any change to one side of the hellspider is mirrored on the other side.</p><p>The weapon that a newly developed piece will have depends on how the piece it grew from was destroyed. The weapon chosen depends on the range and angle you were at when you fired on it (averaged over however many shots it took to destroy). So destroying a piece from close range and from behind the hellspider might get you the exploding weapon. Destroying a piece from medium range and in front might get you the blue beam weapon. When a piece is destroyed directly (i.e. not as the result of a chain reaction) it can change weapons. There&#39;s a maximum number of different types of weapon a hellspider can have, and pieces of a certain type can all change at once if their weapon is not useful. </p><p>The rearmost arms can only have engines, though.</p><p>When you are at long range, all of the joints bend backwards, so that the hellspider is sort of opened up (in kenmasters1976&#39;s screenshot it looks like the player has just moved close to the hellspider and it is still in open position). In this position, all fixed weapons (the ones that don&#39;t rotate to track the player, e.g. the spinning red gun thing) point forwards and all engines point backwards to give maximum speed. At close range, all joints move forwards. Fixed weapons point wherever they end up pointing, as do engines (which can increase the amount of torque they generate, for manouevreability).</p><p>All of the maximum and minimum joint angles are precalculated for speed (this involves a <b>lot</b> of collision detection), so they don&#39;t change if you destroy some of the parts.</p><p>Internally, each arm of the hellspider is represented by a linked list of structures.</p><p>I hope that all made sense!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Linley Henzell)</author>
		<pubDate>Mon, 26 Apr 2010 05:39:24 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/862503#target">Linley Henzell</a> said:</div><div class="quote"><p>I&#39;m not sure what&#39;s causing the palette problems. I suspect it&#39;s actually a bug with Allegro, and there&#39;s not much I can do about that </p></div></div><p>Most problems people have with Allegro&#39;s palletes is that the color components are 6bit. 0 to 63. not a full 8bit 0-255. So if you haven&#39;t taken that into account you&#39;ll see some strange stuff.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Thomas Fjellstrom)</author>
		<pubDate>Mon, 26 Apr 2010 05:42:55 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>That&#39;s true, but the problem I have is that the palette array seems to get corrupted under certain rare circumstances. This has happened with several of my games so while it could be a problem in the few pieces of my code that they&#39;ve had in common, I don&#39;t think it is. The only fix I can find is to put giant padding arrays around the palette array, like so:</p><p>RGB other_palet [1324];<br />RGB palet [256];<br />RGB other_palet2 [2048];</p><p>Here, palet is the real array and the others are the padding.</p><p>Sadly what works on my computer doesn&#39;t seem to work on all others, but it&#39;s better than nothing (and I love 8-bit colour so I&#39;m going to keep using it).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Linley Henzell)</author>
		<pubDate>Mon, 26 Apr 2010 07:13:11 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/861984#target">Linley Henzell</a> said:</div><div class="quote"><p>
True, but after the first few levels it takes quite a while to build the hellspider, mostly because it precalculates all possible flexed/relaxed states (because the calculations are too slow to do each frame when the hellspider is flexing). Sadly there&#39;s not much I can do about that.
</p></div></div><p>
Compute the next hellspider in a separate thread and let the player fly around while the computation is going on.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (kazzmir)</author>
		<pubDate>Mon, 26 Apr 2010 08:01:36 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/861984#target">Linley Henzell</a> said:</div><div class="quote"><p>
True, but after the first few levels it takes quite a while to build the hellspider, mostly because it precalculates all possible flexed/relaxed states (because the calculations are too slow to do each frame when the hellspider is flexing). Sadly there&#39;s not much I can do about that.
</p></div></div><p>
Not that I&#39;ve noticed a long loading time, but maybe you could do it real-time and cache the results? (Eg check to see if we&#39;ve already calculated &quot;this&quot;, and if so use it. Otherwise, calculate it and store for future use).
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Jonatan Hedborg)</author>
		<pubDate>Mon, 26 Apr 2010 11:42:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Really interesting concepts for a shmup. I was expecting something like White Butterfly, which was an awesome game btw!, but instead get my <span class="cuss"><span>ass</span></span> repeatedly handed to me by a very unforgiving enemy. I need to practice I guess. <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><div class="quote_container"><div class="title"><a href="http://www.allegro.cc/forums/thread/603839/862511#target">Linley Henzell</a> said:</div><div class="quote"><p>
That&#39;s true, but the problem I have is that the palette array seems to get corrupted under certain rare circumstances. This has happened with several of my games so while it could be a problem in the few pieces of my code that they&#39;ve had in common, I don&#39;t think it is. The only fix I can find is to put giant padding arrays around the palette array, like so:
</p></div></div><p>

  Apparently this is windows explorers fault I&#39;ve come to find out. Since windows XP SP2 through Vista and windows 7, explorer will forcibly change the system palette thus corrupting any game using 8-bit colors with little more than a message to your program informing you of this. ..I believe in windows.h it&#39;s defined as &quot;WM_YOUVE_JUST_BEEN_RAPED_BY_MICROSOFT&quot; <img src="http://www.allegro.cc/forums/smileys/cheesy.gif" alt=":D" /> <br />  <br />  I&#39;ve got a fix for this bug, but I&#39;ll have to get back to you as I don&#39;t have the code in front of me right now since I did not write the fix. You will have to recompile the allegro source with the added code though. ..(It should probably be added to the 4.4 branch also.)
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tiamat)</author>
		<pubDate>Mon, 26 Apr 2010 13:57:40 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><div class="quote_container"><div class="title"><a href="http://">kazzmir</a> said:</div><div class="quote"><p>Compute the next hellspider in a separate thread and let the player fly around while the computation is going on.</p></div></div><p>
This would be a good idea, but sadly threads are among the many things I don&#39;t know how to use.
</p><div class="quote_container"><div class="title"><a href="http://">Jonatan Hedborg</a> said:</div><div class="quote"><p>Not that I&#39;ve noticed a long loading time, but maybe you could do it real-time and cache the results?</p></div></div><p>
Yeah, I considered that approach but rejected it for some reason. Probably laziness <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p><div class="quote_container"><div class="title"><a href="">Tiamat</a> said:</div><div class="quote"><p>I&#39;ve got a fix for this bug, but I&#39;ll have to get back to you as I don&#39;t have the code in front of me right now since I did not write the fix.</p></div></div><p>
Please do! I&#39;d really appreciate that.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Linley Henzell)</author>
		<pubDate>Mon, 26 Apr 2010 14:29:19 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>
</p><div class="source-code snippet"><div class="inner"><pre>      <span class="k1">case</span> WM_QUERYNEWPALETTE:
      <span class="k1">case</span> WM_PALETTECHANGED:
         <span class="k1">if</span> <span class="k2">(</span><span class="k2">(</span>HWND<span class="k2">)</span>wparam <span class="k3">!</span><span class="k3">=</span> wnd <span class="k3">&amp;</span><span class="k3">&amp;</span> gfx_directx_primary_surface<span class="k2">)</span> <span class="k2">{</span>
            IDirectDrawSurface2_SetPalette<span class="k2">(</span>gfx_directx_primary_surface-&gt;id, ddpalette<span class="k2">)</span><span class="k2">;</span>
            InvalidateRect<span class="k2">(</span>wnd, NULL, <span class="n">1</span><span class="k2">)</span><span class="k2">;</span>
         <span class="k2">}</span>
         <span class="k1">return</span> <span class="n">0</span><span class="k2">;</span>
</pre></div></div><p>

Should go into the allegro/src/win32/wwnd.c file as part of the windows callback code.</p><p>Anyone feel free to apply this to the allegro 4 branch so other users don&#39;t have this problem anymore as well.</p><p>Cheers!
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tiamat)</author>
		<pubDate>Tue, 27 Apr 2010 05:30:06 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Thanks! I&#39;ll definitely use that code. The palette bug has been annoying me for years <img src="http://www.allegro.cc/forums/smileys/smiley.gif" alt=":)" />
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Linley Henzell)</author>
		<pubDate>Wed, 28 Apr 2010 19:07:21 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I&#39;m having this problem as well. I&#39;m using another language so I don&#39;t know how to compile C code. I&#39;m also using Allegro 4.0. If anyone has this version compiled into a dll with the palette fix, please post the link here. That would be much appreciated. Thanks</p><p>Edit: Ok, I tried compiling this code into wwnd.c but I&#39;m getting this error message:</p><p>&quot;error C2065: &#39;gfx_directx_primary_surface&#39; :undeclared identifier&quot;<br />&quot;error C2223: left of &#39;-&gt;id&#39; must point to struct/union&quot;<br />&quot;error C2065: &#39;ddpalette&#39; : undeclared identifier&quot;</p><p>I&#39;m pretty sure I put the code in the right place inside directx_wnd_proc and sandwiched between the other cases in &#39;switch(message)&#39;. I don&#39;t code in C so excuse me if I don&#39;t make sense. Thanks
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ophelius)</author>
		<pubDate>Sat, 01 May 2010 12:18:20 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>It&#39;s highly possible that the fix only works with 4.2 and 4.4 (those two versions are very similar). Version 4.0 is much older.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Matthew Leverton)</author>
		<pubDate>Sun, 02 May 2010 06:42:58 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Are all the required headers included? ..You may have to add: #include &quot;wddraw.h&quot; to that file if it&#39;s not there already. ..Sorry, I don&#39;t have a before and after snapshot for the differences, only the after.</p><p>Hope that helps.
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (Tiamat)</author>
		<pubDate>Sun, 02 May 2010 11:44:54 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>I got it to work thanks to Matthew Leverton, but now I&#39;m having other issues. Check this thread for more info:<br /><a href="http://www.allegro.cc/forums/thread/603939/863411#target">http://www.allegro.cc/forums/thread/603939/863411#target</a>
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (ophelius)</author>
		<pubDate>Sun, 02 May 2010 11:59:49 +0000</pubDate>
	</item>
	<item>
		<description><![CDATA[<div class="mockup v2"><p>Very very nice ideas, something literally all single player games are lacking.<br />Although the reality, is very much like it. Even though games tend to copy reality, they don&#39;t get in to matter of cause-effect sequences deep enough <img src="http://www.allegro.cc/forums/smileys/tongue.gif" alt=":P" /></p><p>Append:<br />So, changing strategy from spider to spider, is the &quot;best strategy&quot; to which these guys can&#39;t adapt?
</p></div>]]>
		</description>
		<author>no-reply@allegro.cc (type568)</author>
		<pubDate>Sun, 02 May 2010 21:17:24 +0000</pubDate>
	</item>
</rss>
