Jump to content


Photo

UFO1 Windows Geoscape Speed Fix


4 replies to this topic

#1 niklata

niklata

    Rookie

  • Forum Members
  • Pip
  • 0 posts

Posted 25 March 2011 - 12:57 AM

The stock UFO1 Gold/CE executable has a bug on the Geoscape display causing single ticks to increment by more than one unit of time, as it did on the original DOS version running on hardware contemporary to its time or on DOSBox with appropriate cycle settings. This bug can be overlooked if you've not played the game on any other platform, but it's very noticeable for those that have played at its release.

Mok's latest executable fixes this problem, but also extends the size of the executable by a page (as it adds 2xSai and several other nice features) and thus breaks compatibility with the latest ufoloader, precluding its use along with the nice user modifications that now exist.

With a bit of work, I've ported the Geoscape tick fix to the stock UFO1 Gold/CE executable and the result is compatible with the latest ufoloader. It's been tested to work properly on Win7 x64 as well.

It has not been tested with the Steam release of the game, but it may work (feedback is of course welcome!).

Update:

After playtesting the game myself, I've found the original fix to slow the game a bit too much. The second version feels just right.

The SHA1 of the base executable that was patched is:
53B90015503C1828AF7C77443E91C9C16595F8E8

And the patched executable is:
F491342A55192AD228EA9D67E74B0E5E54F3CFFD

Attached Files


Edited by niklata, 12 April 2011 - 02:45 AM.


#2 galneon

galneon

    Rookie

  • Forum Members
  • Pip
  • 0 posts

Posted 25 March 2011 - 01:05 AM

I begged niklata to work on this earlier tonight when I found time passing at hyperspeed on the 5 seconds Geoscape setting on my Windows 7 x64 quad. Using the turbo program referenced in the Vista sticky thread to tax the core I run X-Com on wasn't helping at all, but that solution seems obsolete now. The only fix seemed to be in Mok's 2xSAI .exe, but I couldn't get it to launch when using UFOLoader (which has HQ4x scaling instead). Niklata was able to quickly borrow Mok's hack and insert it in a way that shouldn't break compatibility with other mods :)

Note that this .exe isn't remapped for the old DOS sounds, nor does it have direct MP3 support. As you know, you can get the latter from UFOLoader.

Virus Total Scan

Edited by galneon, 25 March 2011 - 01:13 AM.


#3 Xraal

Xraal

    Squaddie

  • Forum Members
  • PipPip
  • 4 posts

Posted 24 June 2012 - 02:09 PM

Thank you! - Very handy!

#4 yarrow

yarrow

    Captain

  • Forum Members
  • PipPipPipPip
  • 114 posts

Posted 24 June 2012 - 06:58 PM

socialism is a system in which you heroically fight the problems
that are not existant in any other system
-stefan kisielewski-


please do not misunderstand me, you did a very good job =b

it is not my intention to insult anybody, but to show you something
that 'solves' the same problem, in a more efficient way
( actually it only alleviates it, but to the point, when this bug is irrelevant ),

try 'cpugrab', and you will find for yourself ( as I did ^_^ )
that you actually don't need that patch at all!

yarrow

Edited by yarrow, 24 June 2012 - 07:16 PM.


#5 Xraal

Xraal

    Squaddie

  • Forum Members
  • PipPip
  • 4 posts

Posted 25 June 2012 - 04:43 PM

Slowing down your CPU does not work for all people, and it sort of cramps your PC in general.

I don't know about you, but I'm always running several things and switching around while playing/surfing and whatever.

A solution that solves the problem at the source is much appreciated... and IMO very efficient compared to crippling the PC.

YMMW of course.



Reply to this topic