Monday 21 November 2011

Skyrim, and also that mining thing...

Okay, okay - so Skyrim came out.

I apologise.

Also, I've been incredibly busy at work (live fixes FTW! feels like I'm in the games biz still! XD)

But... yes.

This project is still alive. I did mention it might be... lethargic :P

I have not given it up. It still has a dedicated machine... and a dedicated fan.

Give me up to a week - and I will resume. Or less, if MFC (current project, grrr) annoys me enough...

(And what do you MEAN that Minecraft went 1.0? No, no... I'm sure it couldn't be that... or that an old friend from before I was even *in* games set up a server for said game... Nosir! Never! NEEEEVEEER!)

Tuesday 8 November 2011

Arx Fatalis Build - Day 2

I suppose I should stress early on that this Arx Fatalis experiment is merely a minor side project... but with determination! (Just in case progress seems... well, a bit lethargic...)

That said, day two's progress:-



Got the DirectX August 2007 SDK in place - only to find that I now (seemingly) need the (probably older) Windows SDK download too (the Windows 7 version of the files seem not to like the project very much... or vice versa, in fact).

All this old crap floating around on Windows 7 is beginning to concern me... Might need to dig out an old PC for this work or summat... (Just in case)

I may still try it on this machine later, once I've completed other more pressing tasks (i.e. work, etc.)

Incidentally, for those thinking: why not just change the project(s) to use DirectX9 or later, and the more recent Windows SDK?

Simple answer: it will probably take longer to do that on its own that the changes I want to make to the game - and it might not work as intended either, dragging me into a much more frustrating "porting" exercise. Also, if I were to do this sort of work, it is more likely I'd change it over to OpenGL so I could later do a Mac port... (And I'd definitely not move it to DX10 or higher, because it then won't run on XP).

Needless to say, I'm not immediately planning to do any of that ;-)

But I will definitely keep on with the original aims (even if it means beating an old PC into submission first...)

EDIT:

Going to use my retired copy of Windows XP (32-bit) and VS 2008 (probably) on a creaking Pentium 4 system that has no graphics card slot (it has Haiku Alpha 2 on it right now... that at least flies! :-D)

That way, I can frak about with all kinds of rubbish from 4 years ago, without destroying my now-quite-comfy-thank-you work dev environment...

Installing Windows XP after all this time... Wish me luck!

EDIT 2:

Woo! This PC is actually pretty nice for dev, given its age! 2.96GHz Pentium 4, 2GB RAM... Shame about the graphics card... or lack of one.

Also, shame the DVD drive sounds like a f***king F1 car... I tell ye, it's got gear changes and everything!! ... Sounds like Silverstone...

EDIT 3:

Yeah, I think that internal DVD drive is dead.

Bit much when my external USB drive does better than IDE directly (a really, really slow drive I originally bought for my dreadful Samsung Netbook... thing... and then, later used on the MBA until I realised it was quicker to use the remote drive on the iMac...)

EDIT 4:

So! P4 machine running and building Arx :-) Even in Debug, it runs well (including font rendering, oddly) which proves - if such proof be needed - that it is not a slow game in and of itself... Some hunting no doubt required to solve these issues...

EDIT 5:

And in Release, it runs superbly well, even on this awful integrated Intel graphics card! Might as well just play it on this machine instead :-D

But no fear, I will still endeavour to investigate these mysterious issues on more modern machines... Starting tomorrow ;-)

Oh, and in case you're wondering... Yep, magic is now a doddle to cast!

EDIT 6:

D'you know... The issue with casting might actually be as simple as the application not taking account of the Windows mouse speed settings?

Using the Apple Trackpad started me on this line of thought - it was so much easier to cast spells on the game with it... Then I noticed it's tracking speed was not the same as the Intellimouse (same mouse on both the new machine, and the P4 machine)...

So I changed the speed in *Windows* to the half way point, which I think is default...

Suddenly, magic casting worked. Really should have tried that sooner ;-)

So, using the normal Windows application API calls for the mouse might solve this automatically for all machines, if lucky - I will add some code to the game startup to do this tomorrow at some point, and see what it does.

Doesn't solve the font issue, but at least the game is playable now!

Arx Fatalis - Fixup Build Attempt



So, I was poking about in Arx Fatalis on Steam, which I bought ages ago and barely touched**...

Tonight, I fired it up once more - only to find that there are one or two issues that I know I didn't have back in the original release days, on a much, much slower PC:-

Issue one: every time any font appears on the screen, the rendering speed dramatically (and I mean dramatically) slows down.

Issue two: casting spells is practically impossible. I know I found it far, far easier when I owned it before in the time of yore, and so am certain this is some kind of modern hardware incompatibility deep in the glyph-tracing code (searching the net, some people have this issue - most believe it is just players not being accurate enough in the tracing. Trust me, as someone who played this game lots on original release: it isn't that.)

After trying various fiddles to try and resolve these issues, I remembered that the Arx Fatalis source code had been released on the 'net some time ago - so I went and grabbed that instead.

So, just a short(ish) blog post to announce my intention to build my own custom version of this fairly old, but still quite cool RPG, that will fix the font problem and (hopefully) the magic problem.

I might even make some other adjustments too (the UI has some real issues that I truly hate, for example), but this depends how carried away I get...

First obstacle, though, is that the source code relies upon DirectX7 APIs and structs that do not really exist in the latest DirectX SDKs... I'm a bit wary about putting August 2007's SDK on a Windows 7 system that I use mainly for work... but I probably will anyway :-D

Watch this space for more updates - I have to stop now, so I am able to get up in the morning and go to the dentist to have my teeth tortured...


** No, scratch that: here's the full, tedious story... I originally bought it not long after it came out, which was years ago, before Steam even existed. I nearly completed it back then, but various clear-outs of old crap later, and I no longer owned the CD version of the game. Then a bargain sale of Arx Fatalis came up on Steam last year, and I grabbed the game again... then forgot about it until now. Phew. Thanks for your patience...