User:Seb76

From UFOpaedia
Revision as of 23:46, 29 July 2008 by Seb76 (talk | contribs) (→‎Bug Fixes: Workaroung for last salvo bug)
Jump to navigation Jump to search

Hi guys, I've been posting here for quite some time now so I guess it's time to make this page. For now it's just a stub, I'll try to update it when time is available.

I was a teenager when the game came out. I had no computer back then but I remember playing it on the computer of a friend's father, it was simply awesome. Years passed, and 3D completely changed the face of videogames. The main focus was turned to polygon counts and frames per second. Duke Nukem, Quake, Unreal, -you name any FPS-; I totally forgot about the "old-era" games. Later my interest in emulation brought me to the dosbox project; a real wayback machine... After all this 3D orgy, I decided to give it a shot and restarted the old X-COM just for fun. But then all memories came back at once; the music, the huge pixels, the tension of the first terror mission... The feeling was still the same after all the years. Still unmatched. IMHO the "best game ever" award it got is really deserved. I since tried the "UFO after-xxx" spinoffs, but I think their pseudo-realtime aspect removes what make X-COM unique to me, this feeling you get when you press the end of turn button. Everything can happen then...

Nowaday, most of my occupation with XCom is analysis of its code, and trying to explain the odd behaviors and see how the game can be exploited (with the help of a few patches). I'll try to gather here the most interesting pieces that I can find (most of my findings are scattered across the talk pages for the moment). Feel free to use the talk page if you have questions/suggestions.

UFO Extender

This section is about a loader I'm working on that adds functionalities/fixes to the UFO Collector edition of the game. You can grab it here: File:UFOLoader.zip. The loader patches the program in memory, it does not modify the executable. The advantage is that it won't change the file on disk so there is little risk of destroying your game installation (still, it is wise to do a backup of your game folder before using this). Modifications are seamless: there is no need to restart or wait for a geoscape/tactical transition to see the effect of the patches.

By default no patch is enabled; you need to activate them in the ini file. To use, just unpack the zip file in your XCOM directory, edit the ini file and start the UFOLoader.exe file. It looks for a file named "UFO Defense.exe" (you can arrange that in the ini file). Of course, if your computer fries while you're using it, I don't take any responsability...

Do not hesitate to report any problem you encounter with it, I'll try to help you fix it. Also feel free to propose any idea that might be worth a mod ;-)

NB: You need the VC2008 runtime to run this program. If you don't already have it installed, you can get it here. Seb76 17:03, 18 July 2008 (PDT)

Equipment Screen

This patch changes the equipment screen. It effectively renders statstrings obsolete ;-) Before battle, it changes the screen like this (in the final version, the psi stats are only shown when the psi skill has been trained):

Equip.png

and during the mission, it looks like this:

Ingame.png

You can also have the rank shown:

Rank.png

(The "Weight>" at the bottom is only because I use a modified english.dat with an old patch, you should not see it in your version)

PSX Music

If you have the PSX version of the game, you can enjoy the CD music with this patch. The tracks are mapped like that:

  • 1,2,3,4: geoscape music
  • 5: gmdefend
  • 6: gmenbase
  • 7: gmmars
  • 8: gminter
  • 9: gmstory
  • 10,11: battlescape music
  • 12: gmnewmar

gmwin and gmlose are not available. Because of similarity, gmlose is replaced with gmstory and gmwin with gminter.

I'm just wondering if it would be an idea to providing a selectable option that allows you to mix up the tactical music to include some of the other tracks as well, like the Geoscape tracks or gmstory. Breaks up the monotony a bit and can sometimes change the mood of the battle. But leave that until after you've achieved what you're setting out to achieve.
The intro should stick with the midi music, or you could use the interception music since that is a remix of the intro. On second though, scrap that - it lacks the slow buildup that is a major part of the intro.
P. S. Oh, and don't forget that the PSX music tracks start from track 02. -NKF
Hehe, you should have posted this yesterday. I lost one hour banging my head in a why-the-hell-does-it-play-interception-music-in-the-menu way before I realised that ;-) The intro music does not use the same mecanism as ingame music so it is not impacted by the modification. As for your suggestion, well the patch is written in C and mciSendString is flexible enough to allow stuff like that I think. The most difficult part is to define what we want... I'll however update with the current version and keep that improvement for later.

Wreck Analysis

Until the construction of hyper-wave decoders, it is impossible to know what missions aliens are performing. Even after recovering an alien ship, XCOM intelligence is unable to determine what was its purpose. This is no longer true. Salvaged navigation modules can now be analysed and may reveal what evil intentions the aliens had:

Wreck analysis.png

The probability of retrieving the information is based on the difficulty and on the number of UFO navigation items recovered from the mission. UFO mission and geographical zone can be discovered individually too.

Base Disjoint Bug

Made a fix for this, but it still requires some testing. I need some feedback to know if I can close the case for good.

Bug Fixes

Hacks

Except for the grenades/inventory patch, these hacks heavily alter the gameplay and should only be used for testing purpose.

  • Hot grenades: they do explode even when held...
  • Alien Inventory: access to memory controlled units' inventory is granted
  • Prevent game over when score is really bad at the end of the month
  • Big brother: all shall be revealed ;-)
  • Alien pets: Alien turn handed over to the human player
  • No Alien Psi: no more psi trouble when fighting sectoids/ethereals
  • Why can't we use alien weaponry without researching? After all a gun's a gun, you just pull the trigger... A new hack was added for this. When activated, you can use all alien items you recovered. Of course you still do need to research items before you're able to manufacture them!
  • Aliens do not seem to care if you assault a landed UFO. You can now have them retaliate as if their ship was shot down. Note that this was not extensively tested so feel free to report any odd thing that may happen when this patch is activated!!
  • Skippable intro movie
  • No Blaster Bomb Drift: disable the randomness applied to blaster bomb trajectories between waypoints. It'll solve drifting issues experimented with the blaster launcher, but also make aliens even more deadly with that weapon since the hard coded accuracy of 55% they have won't affect their shots anymore
  • Recover All Clips: recover all clips after tactical phase, even those that have been used