<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xusilak</id>
	<title>UFOpaedia - User contributions [en]</title>
	<link rel="self" type="application/atom+xml" href="https://temp.ufopaedia.org/api.php?action=feedcontributions&amp;feedformat=atom&amp;user=Xusilak"/>
	<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/Special:Contributions/Xusilak"/>
	<updated>2026-05-01T04:38:22Z</updated>
	<subtitle>User contributions</subtitle>
	<generator>MediaWiki 1.43.6</generator>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=30873</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=30873"/>
		<updated>2010-09-22T03:54:00Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: Uploaded unfinished TFTD patcher&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;For various real life reasons, I&#039;ve more or less given up working on the TFTD patcher for now; it hasn&#039;t been updated since April. I am uploading the current state of the source code and patcher in case anyone might benefit from it.&lt;br /&gt;
&lt;br /&gt;
Disclaimer: You use this at your own risk. I cannot guarantee that it works properly, and most likely, it does not work properly in many different ways. However, it should not be dangerous. If you need to know something, you can email me at Xusilak@gmail.com. If I know the answer, I&#039;ll try to respond quickly.&lt;br /&gt;
&lt;br /&gt;
The patcher enables TFTD to be run on Win7-64 and WinXP-32, among other recent Windows platforms, by using the D3D mode. It also includes a few other functional patches. The vast majority of the patches will do nothing or crash.&lt;br /&gt;
A list of patches that probably, but might not, work:&lt;br /&gt;
* Radar Stacking&lt;br /&gt;
* Force Language&lt;br /&gt;
* MP3 music playing&lt;br /&gt;
* Music change freeze fix&lt;br /&gt;
* D3D&lt;br /&gt;
* Autosell&lt;br /&gt;
* Show Money&lt;br /&gt;
* Crash on First Move&lt;br /&gt;
* Doubleclick Dovement&lt;br /&gt;
* Underwater Weapons in Air&lt;br /&gt;
&lt;br /&gt;
The source code is extremely messy and unfinished. Generally, most unnecessary/unfinished things are sectioned out with preprocessor #if 0/endif blocks. However, this should not be taken as a given.&lt;br /&gt;
&lt;br /&gt;
All credit should go to [[User:Seb76|Seb76]] for his excellent work on the original UFO Extender.&lt;br /&gt;
&lt;br /&gt;
=Releases=&lt;br /&gt;
* Unfinished Terror from the Deep patcher and source code:&lt;br /&gt;
** [[image:TFTDPatcher.zip]]&lt;br /&gt;
* Terror from the Deep IDC file:&lt;br /&gt;
** [[image:TFTDIDC.zip]]&lt;br /&gt;
** This contains function and variable names for the Terror from the Deep EXE, and can be imported into IDA to build a full database. It can also be viewed as text, for those without IDA, although it will take some effort to sort through it. Special thanks to [[User:Seb76|Seb76]] for most of the work, here. I just translated it from his work.&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** The translation from the X-COM IDA database to the TFTD IDA database is essentially complete. From here on out, work on the database will focus on uncovering the purpose of unknown code.&lt;br /&gt;
*** As an aside, I&#039;ve been working on a way to easily convert IDA data definitions to C data definitions. I have a preliminary system set up that starts off using a &#039;diff&#039; file generation tool that compares a clean TFTD IDC with the finished TFTD IDC, giving me a list of all of the updated definitions. Next, I take the diff file and use a regular expression to convert it from the diff file into C definitions. The technique works for the most part, but I haven&#039;t yet figured out how to get the data types along with the names and addresses. Hopefully I&#039;ll come up with something in the future, as being able to directly import my data definitions to the patcher source code from my IDA database would make coding patches much, much faster. Right now, I just have an enormous list of all of them defined as integers. Still, it&#039;s better than nothing; now I just need to update the data type when I&#039;m adding definitions from IDA.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
*** Doubleclick Movement has been translated.&lt;br /&gt;
*** Show Money has been translated.&lt;br /&gt;
*** Base Facility Dismantle-Construction Crash is translated, but I don&#039;t know if it actually does anything, as I couldn&#039;t get the crash itself to happen. When I release the patcher, please let me know if you find any issues with this.&lt;br /&gt;
*** Crash On First Move has been translated, but I haven&#039;t bothered to check if it works or not, as it&#039;s very difficult with a Triton (no ramp) so let me know. The old crash could happen any time you moved down a level without flying, such as falling or walking down stairs.&lt;br /&gt;
*** MP3 music works, on the chance that you happen to have the TFTD soundtrack.&lt;br /&gt;
*** My observations of the code so far indicate that Tactical Scroll (there&#039;s a framerate limiter in TacticalMainLoop()), Pay For Dirt, and Phantom Radar are all fixed in TFTD by default. Please let me know if you have solid evidence otherwise.&lt;br /&gt;
*** Radar Stacking is translated.&lt;br /&gt;
*** Door Jam is translated.&lt;br /&gt;
** Adding new TFTD-specific patches.&lt;br /&gt;
*** Underwater Weapons In Air is complete. &lt;br /&gt;
** Expect the initial release of the TFTD patcher and its source code around the end of the month.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Improved AI. It would make a lot of patches considerably more balanced if the AI used better tactical consideration when taking actions. As it is, I find it difficult to justify using any kind of patch that makes the game easier for X-COM, because it&#039;s simply too easy as it is (for me, anyway). This is one reason I don&#039;t plan to work on patches that alter game balance in X-COM&#039;s favor much.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* Aliens Use Drills. &lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
None at this time.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=File:TFTDPatcher.zip&amp;diff=30872</id>
		<title>File:TFTDPatcher.zip</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=File:TFTDPatcher.zip&amp;diff=30872"/>
		<updated>2010-09-22T03:42:37Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: Unfinished TFTD Patcher executable and source code.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Unfinished TFTD Patcher executable and source code.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28156</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28156"/>
		<updated>2010-05-09T22:30:51Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* TFTD Database */ Explanation for the delay.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;br /&gt;
:::Also, for clarity, I&#039;ll provide the source code for the TFTD patcher when I start releasing them. --[[User:Xusilak|Xusilak]] 17:38, 2 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Database ==&lt;br /&gt;
&lt;br /&gt;
Maybe you could publish the TFTD patch database on this site, as it evolves. Initially it will have a lot of gaps, but if you publish the gaps people will know what to look for. You will probably get volunteers who will hunt down the patches for the things that they are particularly interested in. The work will go faster with collaboration. [[User:Spike|Spike]] 05:19, 3 April 2010 (EDT)&lt;br /&gt;
:For now, I think it will go faster if I focus on it. I&#039;m already about 40% done naming the variables and functions that are already known from X-COM, thanks to Seb. Once I&#039;ve gotten that bit done (should be within a week or so) and gotten the patcher itself to a useful state, I&#039;ll go ahead and publish both the IDA database and the patcher source code here. --[[User:Xusilak|Xusilak]] 11:24, 3 April 2010 (EDT)&lt;br /&gt;
Any reason why IDA crashes when I load the .idc file? It says: Attempt to call a database related function without a database. Do I need a plugin? Using v5.2 [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 17:23, 28 April 2010 (EDT)&lt;br /&gt;
:never mind just realized I need to add this over the disassembled file, right? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 17:26, 28 April 2010 (EDT)&lt;br /&gt;
::Yep. Disassemble the TFTD CE exe, then load the IDC on top of it. --[[User:Xusilak|Xusilak]] 19:09, 28 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hi Xusilak, Where can I get ready version of your TFTD mod? I  don&#039;t know how .idc file in .exe file. Whether can to get ready version for so illiterate users such me? ))&lt;br /&gt;
:The IDC file is a database you can use with the IDA pro disassembler. There is no way to turn it in a program like seb&#039;s loader. You will have to wait until Xusilak finishes that. On that note, how is progress Xusilak? :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 17:01, 8 May 2010 (EDT)&lt;br /&gt;
::I&#039;ll have to apologize. I&#039;ve had a combination of sickness and other things coming up lately that have kept me from working on it as much as I&#039;d like. The current progress is largely still as is listed on my page. Sorry for the long delay. If I can&#039;t get more patches translated for it soon, I&#039;ll go ahead and just polish it up and release it in its current form, then work on it as I have the time. --[[User:Xusilak|Xusilak]] 18:30, 9 May 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== KeeperFX ==&lt;br /&gt;
&lt;br /&gt;
Hello, first of all, i would like to say that you guys (you and Seb) are doing great job :)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found some project for Dungeon Keeper, which can be considered similar to what you&#039;re doing, but it&#039;s done quite different way (i believe). If i understand correctly, you&#039;re somehow altering x-com code in memory after launching it? Author of keeperfx is doing it such way (qoute from website):&lt;br /&gt;
&lt;br /&gt;
http://keeper.lubie.org/html/dk_keeperfx.php&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Instead, I&#039;ve learned binary formats of EXE and DLL files, and modified the Dungeon Keeper executable file to become a DLL. With my new DLL, I was able to create very simple executable file which may be used as complete code to run the game. Now I&#039;m incrementally rewriting DK; functions which are not yet rewritten are called from the DLL, so the project functions like whole game, even tho it wasn&#039;t completely rewritten yet.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s instruction how to change exe to dll: http://keeper.lubie.org/other_docs/change_exe_to_dll.htm&lt;br /&gt;
&lt;br /&gt;
I wonder if such way could be useful (and possible) for x-com (tftd) extender? Would it be easier to add new things? Would it allow to gradually rewrite whole game from scratch? What do you think? --[[User:Michal|Michal]] 13:11, 13 April 2010 (EDT)&lt;br /&gt;
:Interesting idea. Thanks for mentioning that. What we&#039;re doing now is similar, but essentially the inverse of this. We&#039;re using DLL injection to replace X-COM functions and code at run-time. So, we have the game using its normal EXE and the patcher using a DLL. His method is focused specifically on rewriting the game, but in an incremental way that doesn&#039;t require him to go for years without seeing any results. That method would be very poor for doing the kind of patching we&#039;re doing now, because we&#039;d have to rewrite all of the core loop code in X-COM before we could get to a point where we could start implementing our new functionality. This is because the replacement game EXE can&#039;t simply inject functions at certain points in the original game DLL&#039;s function calls, at least not without doing what we do now (patching memory directly). In the end, there&#039;s no particular benefit to doing small patches through that EXE-based method. It would be an advantage if we were trying to rewrite the game entirely, with an emphasis on rewriting the core code and working our way up, but that&#039;s not what we&#039;re doing; if we did want to do that, it could be done through the DLL injection method painlessly, and then converted to its own EXE once we finished rewriting the game. It is unlikely that we&#039;ll try to rewrite the game, however, because it would be an extremely lengthy and arduous task; if I were doing it alone, it would take years. Our current technique of simply extending X-COM&#039;s existing code produces much more immediate and beneficial results.&lt;br /&gt;
:Thanks again for posting a link to this, though. It might be useful to me in the future. --[[User:Xusilak|Xusilak]] 19:33, 13 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
==X-COM bugs that TFTD inherits==&lt;br /&gt;
Since I&#039;m going to be translating patches from X-COM to TFTD now, I could use some information on which bugs need to be fixed in TFTD that existed in X-COM. If anyone has such information, I&#039;d greatly appreciate it, as it would save me the effort of testing each bug. In particular, a list of which of Seb&#039;s bug-fix patches could still usefully apply to TFTD would be awesome. Note that I don&#039;t need information on TFTD-specific bugs, just bugs that TFTD inherits from X-COM. Thanks in advance! --[[User:Xusilak|Xusilak]] 20:20, 15 April 2010 (EDT)&lt;br /&gt;
:Scroll speed in tactical mode is reduced. It is too fast for certain hardware configurations &lt;br /&gt;
:Phantom radar bug fixed. Radar coverage is updated when facilities are destructed &lt;br /&gt;
:Pay for dirt bug removed. The cause was a funny one ^_^ &lt;br /&gt;
:If you&#039;re tired of having to reselect your TU reserve mode at the begining of each turn, then the &amp;quot;Save Reserve Mode&amp;quot; patch is for you :) &lt;br /&gt;
:Base disjoint bug &lt;br /&gt;
:Radar stacking enabled. Credits go to Spike for I used something close to his formula. &lt;br /&gt;
:Vertical waypoints blaster bomb bug &lt;br /&gt;
:Garbled video output due to ignored pitch &lt;br /&gt;
:Problem with last salvo during dogfights. The ship won&#039;t retreat when running out of ammo, allowing the last salvo to hit. Not the perfect solution, but you may still find this useful.&lt;br /&gt;
:Armed state issues with proximity grenades when reloading a game. Should also fix &amp;quot;What just exploded?&amp;quot;&lt;br /&gt;
:Experience issue with proximity grenades. The thrower now gets the experience, not the poor alien that blows up... &lt;br /&gt;
:Refueling issue when transfered crafts arrive (enabled by default if you use the &amp;quot;Crafts Always Ready&amp;quot; mod) &lt;br /&gt;
:Elerium fueled crafts bug when fuel level is 50% &lt;br /&gt;
:Displayed Base Maintenance Cost Bug &lt;br /&gt;
:Door jam &lt;br /&gt;
:Robotic Manufacturing / Cybernetic Laboratories. You cannot get more than 255 engineers/scientists, buying more will just result in them being lost during transfer... &lt;br /&gt;
:Funky fire fix: Fire/stun damage applied only at the end of the turn. Maximum fire damage increased from 5 to 10 to compensate &lt;br /&gt;
:Hostile Civilians fix. Not really tested, may fix some mind control abuses. &lt;br /&gt;
:Animations Speed: Reduce the animation speed of cursors and smoke/fire. &lt;br /&gt;
:Almost all bugs were transferred over AFAIK :) can&#039;t remember if the game did remember the TU reserve mode though. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:22, 20 April 2010 (EDT)&lt;br /&gt;
::Thanks! I really appreciate this list; it should save me a good deal of time. Hopefully I&#039;ll be able to get most of them fixed by the end of the month. --[[User:Xusilak|Xusilak]] 13:14, 20 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== FORMULES ABOUT FLOATING BASE ATTACK MISSION ==&lt;br /&gt;
&lt;br /&gt;
Hi, Xusilak&lt;br /&gt;
&lt;br /&gt;
Firstly, I Am so-so so sorry that I reverted your file acidentally. I don&#039;t know English good, pressed acidentally and &#039;llnot know undo it.&lt;br /&gt;
I am sorry for disturbance&lt;br /&gt;
I informed that you are great specialist in TFTD executable.&lt;br /&gt;
My great respect for you for work, which you are doing.&lt;br /&gt;
&lt;br /&gt;
At discussion file Missions.dat (XCOM-EU) Seb 76 posted this formules:    After a shootdown, the next UFO for that mission is delayed between 1 and ~9 days ( the formula is 48+RAND()*400 half hours ). A retaliation mission will be scheduled if RAND()*100 &amp;lt; 4*(24-difficultyLevel). &lt;br /&gt;
    If RAND()*100 &amp;lt; (50-6*difficultyLevel), the retaliation mission will use the same zone as the shot UFO, else it&#039;ll be the zone containing the base the craft in coming from.&lt;br /&gt;
&lt;br /&gt;
At first, Formule 2 and 3 probably contins mistake. formule &#039;ll have to have symbol &amp;gt; instead symbol &amp;lt;. Otherwise retaliation mission activates more often on Beginner diificulty than Superhuman difficulty. Is is strange. &lt;br /&gt;
I ask generously to you to check this 3 formules in TFTD. Is these same or not? and would check indicated me probably mistake.&lt;br /&gt;
&lt;br /&gt;
Thank you for this help very great&lt;br /&gt;
&lt;br /&gt;
== Research tree in executable ==&lt;br /&gt;
&lt;br /&gt;
Do you know location (starting offset) of research tree in TFTD? and how much entries it contains ? how much rows it contains?&lt;br /&gt;
&lt;br /&gt;
Or  at least where are located requirements for technologies? (for example - vibro blade, aqua plastics)&lt;br /&gt;
&lt;br /&gt;
== Terror ship route and alien artefact site ==&lt;br /&gt;
&lt;br /&gt;
Maybe do you know where locate offset responsible for probability of appearing at 1-st day of month these events?&lt;br /&gt;
&lt;br /&gt;
If you would be know it, I didn&#039;t know how I could thank you for so valuable help to me&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=File:TFTDIDC.zip&amp;diff=28084</id>
		<title>File:TFTDIDC.zip</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=File:TFTDIDC.zip&amp;diff=28084"/>
		<updated>2010-04-30T15:28:08Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: uploaded a new version of &amp;quot;Image:TFTDIDC.zip&amp;quot;: I don&amp;#039;t know why this was reverted, but it should stay with this version.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;IDA database containing function and variable names for much of the executable, in IDC form. This can be imported into IDA, or simply read as text.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28069</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28069"/>
		<updated>2010-04-28T23:09:05Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* TFTD Database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;br /&gt;
:::Also, for clarity, I&#039;ll provide the source code for the TFTD patcher when I start releasing them. --[[User:Xusilak|Xusilak]] 17:38, 2 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Database ==&lt;br /&gt;
&lt;br /&gt;
Maybe you could publish the TFTD patch database on this site, as it evolves. Initially it will have a lot of gaps, but if you publish the gaps people will know what to look for. You will probably get volunteers who will hunt down the patches for the things that they are particularly interested in. The work will go faster with collaboration. [[User:Spike|Spike]] 05:19, 3 April 2010 (EDT)&lt;br /&gt;
:For now, I think it will go faster if I focus on it. I&#039;m already about 40% done naming the variables and functions that are already known from X-COM, thanks to Seb. Once I&#039;ve gotten that bit done (should be within a week or so) and gotten the patcher itself to a useful state, I&#039;ll go ahead and publish both the IDA database and the patcher source code here. --[[User:Xusilak|Xusilak]] 11:24, 3 April 2010 (EDT)&lt;br /&gt;
Any reason why IDA crashes when I load the .idc file? It says: Attempt to call a database related function without a database. Do I need a plugin? Using v5.2 [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 17:23, 28 April 2010 (EDT)&lt;br /&gt;
:never mind just realized I need to add this over the disassembled file, right? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 17:26, 28 April 2010 (EDT)&lt;br /&gt;
::Yep. Disassemble the TFTD CE exe, then load the IDC on top of it. --[[User:Xusilak|Xusilak]] 19:09, 28 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== KeeperFX ==&lt;br /&gt;
&lt;br /&gt;
Hello, first of all, i would like to say that you guys (you and Seb) are doing great job :)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found some project for Dungeon Keeper, which can be considered similar to what you&#039;re doing, but it&#039;s done quite different way (i believe). If i understand correctly, you&#039;re somehow altering x-com code in memory after launching it? Author of keeperfx is doing it such way (qoute from website):&lt;br /&gt;
&lt;br /&gt;
http://keeper.lubie.org/html/dk_keeperfx.php&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Instead, I&#039;ve learned binary formats of EXE and DLL files, and modified the Dungeon Keeper executable file to become a DLL. With my new DLL, I was able to create very simple executable file which may be used as complete code to run the game. Now I&#039;m incrementally rewriting DK; functions which are not yet rewritten are called from the DLL, so the project functions like whole game, even tho it wasn&#039;t completely rewritten yet.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s instruction how to change exe to dll: http://keeper.lubie.org/other_docs/change_exe_to_dll.htm&lt;br /&gt;
&lt;br /&gt;
I wonder if such way could be useful (and possible) for x-com (tftd) extender? Would it be easier to add new things? Would it allow to gradually rewrite whole game from scratch? What do you think? --[[User:Michal|Michal]] 13:11, 13 April 2010 (EDT)&lt;br /&gt;
:Interesting idea. Thanks for mentioning that. What we&#039;re doing now is similar, but essentially the inverse of this. We&#039;re using DLL injection to replace X-COM functions and code at run-time. So, we have the game using its normal EXE and the patcher using a DLL. His method is focused specifically on rewriting the game, but in an incremental way that doesn&#039;t require him to go for years without seeing any results. That method would be very poor for doing the kind of patching we&#039;re doing now, because we&#039;d have to rewrite all of the core loop code in X-COM before we could get to a point where we could start implementing our new functionality. This is because the replacement game EXE can&#039;t simply inject functions at certain points in the original game DLL&#039;s function calls, at least not without doing what we do now (patching memory directly). In the end, there&#039;s no particular benefit to doing small patches through that EXE-based method. It would be an advantage if we were trying to rewrite the game entirely, with an emphasis on rewriting the core code and working our way up, but that&#039;s not what we&#039;re doing; if we did want to do that, it could be done through the DLL injection method painlessly, and then converted to its own EXE once we finished rewriting the game. It is unlikely that we&#039;ll try to rewrite the game, however, because it would be an extremely lengthy and arduous task; if I were doing it alone, it would take years. Our current technique of simply extending X-COM&#039;s existing code produces much more immediate and beneficial results.&lt;br /&gt;
:Thanks again for posting a link to this, though. It might be useful to me in the future. --[[User:Xusilak|Xusilak]] 19:33, 13 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
==X-COM bugs that TFTD inherits==&lt;br /&gt;
Since I&#039;m going to be translating patches from X-COM to TFTD now, I could use some information on which bugs need to be fixed in TFTD that existed in X-COM. If anyone has such information, I&#039;d greatly appreciate it, as it would save me the effort of testing each bug. In particular, a list of which of Seb&#039;s bug-fix patches could still usefully apply to TFTD would be awesome. Note that I don&#039;t need information on TFTD-specific bugs, just bugs that TFTD inherits from X-COM. Thanks in advance! --[[User:Xusilak|Xusilak]] 20:20, 15 April 2010 (EDT)&lt;br /&gt;
:Scroll speed in tactical mode is reduced. It is too fast for certain hardware configurations &lt;br /&gt;
:Phantom radar bug fixed. Radar coverage is updated when facilities are destructed &lt;br /&gt;
:Pay for dirt bug removed. The cause was a funny one ^_^ &lt;br /&gt;
:If you&#039;re tired of having to reselect your TU reserve mode at the begining of each turn, then the &amp;quot;Save Reserve Mode&amp;quot; patch is for you :) &lt;br /&gt;
:Base disjoint bug &lt;br /&gt;
:Radar stacking enabled. Credits go to Spike for I used something close to his formula. &lt;br /&gt;
:Vertical waypoints blaster bomb bug &lt;br /&gt;
:Garbled video output due to ignored pitch &lt;br /&gt;
:Problem with last salvo during dogfights. The ship won&#039;t retreat when running out of ammo, allowing the last salvo to hit. Not the perfect solution, but you may still find this useful.&lt;br /&gt;
:Armed state issues with proximity grenades when reloading a game. Should also fix &amp;quot;What just exploded?&amp;quot;&lt;br /&gt;
:Experience issue with proximity grenades. The thrower now gets the experience, not the poor alien that blows up... &lt;br /&gt;
:Refueling issue when transfered crafts arrive (enabled by default if you use the &amp;quot;Crafts Always Ready&amp;quot; mod) &lt;br /&gt;
:Elerium fueled crafts bug when fuel level is 50% &lt;br /&gt;
:Displayed Base Maintenance Cost Bug &lt;br /&gt;
:Door jam &lt;br /&gt;
:Robotic Manufacturing / Cybernetic Laboratories. You cannot get more than 255 engineers/scientists, buying more will just result in them being lost during transfer... &lt;br /&gt;
:Funky fire fix: Fire/stun damage applied only at the end of the turn. Maximum fire damage increased from 5 to 10 to compensate &lt;br /&gt;
:Hostile Civilians fix. Not really tested, may fix some mind control abuses. &lt;br /&gt;
:Animations Speed: Reduce the animation speed of cursors and smoke/fire. &lt;br /&gt;
:Almost all bugs were transferred over AFAIK :) can&#039;t remember if the game did remember the TU reserve mode though. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:22, 20 April 2010 (EDT)&lt;br /&gt;
::Thanks! I really appreciate this list; it should save me a good deal of time. Hopefully I&#039;ll be able to get most of them fixed by the end of the month. --[[User:Xusilak|Xusilak]] 13:14, 20 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28065</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28065"/>
		<updated>2010-04-26T18:45:03Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Releases */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Releases=&lt;br /&gt;
* Terror from the Deep IDC file:&lt;br /&gt;
** [[image:TFTDIDC.zip]]&lt;br /&gt;
** This contains function and variable names for the Terror from the Deep EXE, and can be imported into IDA to build a full database. It can also be viewed as text, for those without IDA, although it will take some effort to sort through it. Special thanks to [[User:Seb76|Seb76]] for most of the work, here. I just translated it from his work.&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** The translation from the X-COM IDA database to the TFTD IDA database is essentially complete. From here on out, work on the database will focus on uncovering the purpose of unknown code.&lt;br /&gt;
*** As an aside, I&#039;ve been working on a way to easily convert IDA data definitions to C data definitions. I have a preliminary system set up that starts off using a &#039;diff&#039; file generation tool that compares a clean TFTD IDC with the finished TFTD IDC, giving me a list of all of the updated definitions. Next, I take the diff file and use a regular expression to convert it from the diff file into C definitions. The technique works for the most part, but I haven&#039;t yet figured out how to get the data types along with the names and addresses. Hopefully I&#039;ll come up with something in the future, as being able to directly import my data definitions to the patcher source code from my IDA database would make coding patches much, much faster. Right now, I just have an enormous list of all of them defined as integers. Still, it&#039;s better than nothing; now I just need to update the data type when I&#039;m adding definitions from IDA.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
*** Doubleclick Movement has been translated.&lt;br /&gt;
*** Show Money has been translated.&lt;br /&gt;
*** Base Facility Dismantle-Construction Crash is translated, but I don&#039;t know if it actually does anything, as I couldn&#039;t get the crash itself to happen. When I release the patcher, please let me know if you find any issues with this.&lt;br /&gt;
*** Crash On First Move has been translated, but I haven&#039;t bothered to check if it works or not, as it&#039;s very difficult with a Triton (no ramp) so let me know. The old crash could happen any time you moved down a level without flying, such as falling or walking down stairs.&lt;br /&gt;
*** MP3 music works, on the chance that you happen to have the TFTD soundtrack.&lt;br /&gt;
*** My observations of the code so far indicate that Tactical Scroll (there&#039;s a framerate limiter in TacticalMainLoop()), Pay For Dirt, and Phantom Radar are all fixed in TFTD by default. Please let me know if you have solid evidence otherwise.&lt;br /&gt;
*** Radar Stacking is translated.&lt;br /&gt;
*** Door Jam is translated.&lt;br /&gt;
** Adding new TFTD-specific patches.&lt;br /&gt;
*** Underwater Weapons In Air is complete. &lt;br /&gt;
** Expect the initial release of the TFTD patcher and its source code around the end of the month.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Improved AI. It would make a lot of patches considerably more balanced if the AI used better tactical consideration when taking actions. As it is, I find it difficult to justify using any kind of patch that makes the game easier for X-COM, because it&#039;s simply too easy as it is (for me, anyway). This is one reason I don&#039;t plan to work on patches that alter game balance in X-COM&#039;s favor much.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* Aliens Use Drills. &lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
None at this time.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28061</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28061"/>
		<updated>2010-04-26T06:31:43Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Releases */ Made TFTD IDC available.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Releases=&lt;br /&gt;
* Terror from the Deep IDC file:&lt;br /&gt;
** [[image:TFTDIDC.zip]]&lt;br /&gt;
** This contains function and variable names for the Terror from the Deep EXE, and can be imported into IDA to build a full database. It can also be viewed as text, for those without IDA, although it will take some effort to sort through it. Special thanks to [[Seb76]] for most of the work, here. I just translated it from his work.&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** The translation from the X-COM IDA database to the TFTD IDA database is essentially complete. From here on out, work on the database will focus on uncovering the purpose of unknown code.&lt;br /&gt;
*** As an aside, I&#039;ve been working on a way to easily convert IDA data definitions to C data definitions. I have a preliminary system set up that starts off using a &#039;diff&#039; file generation tool that compares a clean TFTD IDC with the finished TFTD IDC, giving me a list of all of the updated definitions. Next, I take the diff file and use a regular expression to convert it from the diff file into C definitions. The technique works for the most part, but I haven&#039;t yet figured out how to get the data types along with the names and addresses. Hopefully I&#039;ll come up with something in the future, as being able to directly import my data definitions to the patcher source code from my IDA database would make coding patches much, much faster. Right now, I just have an enormous list of all of them defined as integers. Still, it&#039;s better than nothing; now I just need to update the data type when I&#039;m adding definitions from IDA.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
*** Doubleclick Movement has been translated.&lt;br /&gt;
*** Show Money has been translated.&lt;br /&gt;
*** Base Facility Dismantle-Construction Crash is translated, but I don&#039;t know if it actually does anything, as I couldn&#039;t get the crash itself to happen. When I release the patcher, please let me know if you find any issues with this.&lt;br /&gt;
*** Crash On First Move has been translated, but I haven&#039;t bothered to check if it works or not, as it&#039;s very difficult with a Triton (no ramp) so let me know. The old crash could happen any time you moved down a level without flying, such as falling or walking down stairs.&lt;br /&gt;
*** MP3 music works, on the chance that you happen to have the TFTD soundtrack.&lt;br /&gt;
*** My observations of the code so far indicate that Tactical Scroll (there&#039;s a framerate limiter in TacticalMainLoop()), Pay For Dirt, and Phantom Radar are all fixed in TFTD by default. Please let me know if you have solid evidence otherwise.&lt;br /&gt;
*** Radar Stacking is translated.&lt;br /&gt;
*** Door Jam is translated.&lt;br /&gt;
** Adding new TFTD-specific patches.&lt;br /&gt;
*** Underwater Weapons In Air is complete. &lt;br /&gt;
** Expect the initial release of the TFTD patcher and its source code around the end of the month.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Improved AI. It would make a lot of patches considerably more balanced if the AI used better tactical consideration when taking actions. As it is, I find it difficult to justify using any kind of patch that makes the game easier for X-COM, because it&#039;s simply too easy as it is (for me, anyway). This is one reason I don&#039;t plan to work on patches that alter game balance in X-COM&#039;s favor much.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* Aliens Use Drills. &lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
None at this time.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=File:TFTDIDC.zip&amp;diff=28060</id>
		<title>File:TFTDIDC.zip</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=File:TFTDIDC.zip&amp;diff=28060"/>
		<updated>2010-04-26T06:25:10Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: uploaded a new version of &amp;quot;Image:TFTDIDC.zip&amp;quot;: IDA database containing function and variable names for much of the executable, in IDC form. This can be imported into IDA, or simply read as text.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;IDA database containing function and variable names for much of the executable, in IDC form. This can be imported into IDA, or simply read as text.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=File:TFTDIDC.zip&amp;diff=28059</id>
		<title>File:TFTDIDC.zip</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=File:TFTDIDC.zip&amp;diff=28059"/>
		<updated>2010-04-26T06:22:57Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: IDA database containing function and variable names for much of the executable, in IDC form. This can be imported into IDA, or simply read as text.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;IDA database containing function and variable names for much of the executable, in IDC form. This can be imported into IDA, or simply read as text.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28051</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28051"/>
		<updated>2010-04-22T18:01:34Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Current Projects */ Updates on patch translations.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** The translation from the X-COM IDA database to the TFTD IDA database is essentially complete. From here on out, work on the database will focus on uncovering the purpose of unknown code.&lt;br /&gt;
*** As an aside, I&#039;ve been working on a way to easily convert IDA data definitions to C data definitions. I have a preliminary system set up that starts off using a &#039;diff&#039; file generation tool that compares a clean TFTD IDC with the finished TFTD IDC, giving me a list of all of the updated definitions. Next, I take the diff file and use a regular expression to convert it from the diff file into C definitions. The technique works for the most part, but I haven&#039;t yet figured out how to get the data types along with the names and addresses. Hopefully I&#039;ll come up with something in the future, as being able to directly import my data definitions to the patcher source code from my IDA database would make coding patches much, much faster. Right now, I just have an enormous list of all of them defined as integers. Still, it&#039;s better than nothing; now I just need to update the data type when I&#039;m adding definitions from IDA.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
*** Doubleclick Movement has been translated.&lt;br /&gt;
*** Show Money has been translated.&lt;br /&gt;
*** Base Facility Dismantle-Construction Crash is translated, but I don&#039;t know if it actually does anything, as I couldn&#039;t get the crash itself to happen. When I release the patcher, please let me know if you find any issues with this.&lt;br /&gt;
*** Crash On First Move has been translated, but I haven&#039;t bothered to check if it works or not, as it&#039;s very difficult with a Triton (no ramp) so let me know. The old crash could happen any time you moved down a level without flying, such as falling or walking down stairs.&lt;br /&gt;
*** MP3 music works, on the chance that you happen to have the TFTD soundtrack.&lt;br /&gt;
*** My observations of the code so far indicate that Tactical Scroll (there&#039;s a framerate limiter in TacticalMainLoop()), Pay For Dirt, and Phantom Radar are all fixed in TFTD by default. Please let me know if you have solid evidence otherwise.&lt;br /&gt;
*** Radar Stacking is translated.&lt;br /&gt;
*** Door Jam is translated.&lt;br /&gt;
** Adding new TFTD-specific patches.&lt;br /&gt;
*** Underwater Weapons In Air is complete. &lt;br /&gt;
** Expect the database (in IDC form) to be released around April 20th to April 25th.&lt;br /&gt;
** Expect the initial release of the TFTD patcher and its source code around the end of the month.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Improved AI. It would make a lot of patches considerably more balanced if the AI used better tactical consideration when taking actions. As it is, I find it difficult to justify using any kind of patch that makes the game easier for X-COM, because it&#039;s simply too easy as it is (for me, anyway). This is one reason I don&#039;t plan to work on patches that alter game balance in X-COM&#039;s favor much.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* Aliens Use Drills. &lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
None at this time.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28050</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28050"/>
		<updated>2010-04-20T17:14:24Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* X-COM bugs that TFTD inherits */ Thanks!&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;br /&gt;
:::Also, for clarity, I&#039;ll provide the source code for the TFTD patcher when I start releasing them. --[[User:Xusilak|Xusilak]] 17:38, 2 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Database ==&lt;br /&gt;
&lt;br /&gt;
Maybe you could publish the TFTD patch database on this site, as it evolves. Initially it will have a lot of gaps, but if you publish the gaps people will know what to look for. You will probably get volunteers who will hunt down the patches for the things that they are particularly interested in. The work will go faster with collaboration. [[User:Spike|Spike]] 05:19, 3 April 2010 (EDT)&lt;br /&gt;
:For now, I think it will go faster if I focus on it. I&#039;m already about 40% done naming the variables and functions that are already known from X-COM, thanks to Seb. Once I&#039;ve gotten that bit done (should be within a week or so) and gotten the patcher itself to a useful state, I&#039;ll go ahead and publish both the IDA database and the patcher source code here. --[[User:Xusilak|Xusilak]] 11:24, 3 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== KeeperFX ==&lt;br /&gt;
&lt;br /&gt;
Hello, first of all, i would like to say that you guys (you and Seb) are doing great job :)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found some project for Dungeon Keeper, which can be considered similar to what you&#039;re doing, but it&#039;s done quite different way (i believe). If i understand correctly, you&#039;re somehow altering x-com code in memory after launching it? Author of keeperfx is doing it such way (qoute from website):&lt;br /&gt;
&lt;br /&gt;
http://keeper.lubie.org/html/dk_keeperfx.php&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Instead, I&#039;ve learned binary formats of EXE and DLL files, and modified the Dungeon Keeper executable file to become a DLL. With my new DLL, I was able to create very simple executable file which may be used as complete code to run the game. Now I&#039;m incrementally rewriting DK; functions which are not yet rewritten are called from the DLL, so the project functions like whole game, even tho it wasn&#039;t completely rewritten yet.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s instruction how to change exe to dll: http://keeper.lubie.org/other_docs/change_exe_to_dll.htm&lt;br /&gt;
&lt;br /&gt;
I wonder if such way could be useful (and possible) for x-com (tftd) extender? Would it be easier to add new things? Would it allow to gradually rewrite whole game from scratch? What do you think? --[[User:Michal|Michal]] 13:11, 13 April 2010 (EDT)&lt;br /&gt;
:Interesting idea. Thanks for mentioning that. What we&#039;re doing now is similar, but essentially the inverse of this. We&#039;re using DLL injection to replace X-COM functions and code at run-time. So, we have the game using its normal EXE and the patcher using a DLL. His method is focused specifically on rewriting the game, but in an incremental way that doesn&#039;t require him to go for years without seeing any results. That method would be very poor for doing the kind of patching we&#039;re doing now, because we&#039;d have to rewrite all of the core loop code in X-COM before we could get to a point where we could start implementing our new functionality. This is because the replacement game EXE can&#039;t simply inject functions at certain points in the original game DLL&#039;s function calls, at least not without doing what we do now (patching memory directly). In the end, there&#039;s no particular benefit to doing small patches through that EXE-based method. It would be an advantage if we were trying to rewrite the game entirely, with an emphasis on rewriting the core code and working our way up, but that&#039;s not what we&#039;re doing; if we did want to do that, it could be done through the DLL injection method painlessly, and then converted to its own EXE once we finished rewriting the game. It is unlikely that we&#039;ll try to rewrite the game, however, because it would be an extremely lengthy and arduous task; if I were doing it alone, it would take years. Our current technique of simply extending X-COM&#039;s existing code produces much more immediate and beneficial results.&lt;br /&gt;
:Thanks again for posting a link to this, though. It might be useful to me in the future. --[[User:Xusilak|Xusilak]] 19:33, 13 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
==X-COM bugs that TFTD inherits==&lt;br /&gt;
Since I&#039;m going to be translating patches from X-COM to TFTD now, I could use some information on which bugs need to be fixed in TFTD that existed in X-COM. If anyone has such information, I&#039;d greatly appreciate it, as it would save me the effort of testing each bug. In particular, a list of which of Seb&#039;s bug-fix patches could still usefully apply to TFTD would be awesome. Note that I don&#039;t need information on TFTD-specific bugs, just bugs that TFTD inherits from X-COM. Thanks in advance! --[[User:Xusilak|Xusilak]] 20:20, 15 April 2010 (EDT)&lt;br /&gt;
:Scroll speed in tactical mode is reduced. It is too fast for certain hardware configurations &lt;br /&gt;
:Phantom radar bug fixed. Radar coverage is updated when facilities are destructed &lt;br /&gt;
:Pay for dirt bug removed. The cause was a funny one ^_^ &lt;br /&gt;
:If you&#039;re tired of having to reselect your TU reserve mode at the begining of each turn, then the &amp;quot;Save Reserve Mode&amp;quot; patch is for you :) &lt;br /&gt;
:Base disjoint bug &lt;br /&gt;
:Radar stacking enabled. Credits go to Spike for I used something close to his formula. &lt;br /&gt;
:Vertical waypoints blaster bomb bug &lt;br /&gt;
:Garbled video output due to ignored pitch &lt;br /&gt;
:Problem with last salvo during dogfights. The ship won&#039;t retreat when running out of ammo, allowing the last salvo to hit. Not the perfect solution, but you may still find this useful.&lt;br /&gt;
:Armed state issues with proximity grenades when reloading a game. Should also fix &amp;quot;What just exploded?&amp;quot;&lt;br /&gt;
:Experience issue with proximity grenades. The thrower now gets the experience, not the poor alien that blows up... &lt;br /&gt;
:Refueling issue when transfered crafts arrive (enabled by default if you use the &amp;quot;Crafts Always Ready&amp;quot; mod) &lt;br /&gt;
:Elerium fueled crafts bug when fuel level is 50% &lt;br /&gt;
:Displayed Base Maintenance Cost Bug &lt;br /&gt;
:Door jam &lt;br /&gt;
:Robotic Manufacturing / Cybernetic Laboratories. You cannot get more than 255 engineers/scientists, buying more will just result in them being lost during transfer... &lt;br /&gt;
:Funky fire fix: Fire/stun damage applied only at the end of the turn. Maximum fire damage increased from 5 to 10 to compensate &lt;br /&gt;
:Hostile Civilians fix. Not really tested, may fix some mind control abuses. &lt;br /&gt;
:Animations Speed: Reduce the animation speed of cursors and smoke/fire. &lt;br /&gt;
:Almost all bugs were transferred over AFAIK :) can&#039;t remember if the game did remember the TU reserve mode though. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:22, 20 April 2010 (EDT)&lt;br /&gt;
::Thanks! I really appreciate this list; it should save me a good deal of time. Hopefully I&#039;ll be able to get most of them fixed by the end of the month. --[[User:Xusilak|Xusilak]] 13:14, 20 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28031</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28031"/>
		<updated>2010-04-17T06:53:31Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Current Projects */ Doubleclick Movement, Show Money, Crash On First Move translated.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** The translation from the X-COM IDA database to the TFTD IDA database is essentially complete. From here on out, work on the database will focus on uncovering the purpose of unknown code.&lt;br /&gt;
*** As an aside, I&#039;ve been working on a way to easily convert IDA data definitions to C data definitions. I have a preliminary system set up that starts off using a &#039;diff&#039; file generation tool that compares a clean TFTD IDC with the finished TFTD IDC, giving me a list of all of the updated definitions. Next, I take the diff file and use a regular expression to convert it from the diff file into C definitions. The technique works for the most part, but I haven&#039;t yet figured out how to get the data types along with the names and addresses. Hopefully I&#039;ll come up with something in the future, as being able to directly import my data definitions to the patcher source code from my IDA database would make coding patches much, much faster. Right now, I just have an enormous list of all of them defined as integers. Still, it&#039;s better than nothing; now I just need to update the data type when I&#039;m adding definitions from IDA.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
*** Doubleclick Movement has been translated.&lt;br /&gt;
*** Show Money has been translated.&lt;br /&gt;
*** Crash On First Move has been translated.&lt;br /&gt;
** Adding new TFTD-specific patches.&lt;br /&gt;
*** Underwater Weapons In Air is complete. &lt;br /&gt;
** Expect the database (in IDC form) to be released around April 20th to April 25th.&lt;br /&gt;
** Expect the initial release of the TFTD patcher and its source code around the end of the month.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Improved AI. It would make a lot of patches considerably more balanced if the AI used better tactical consideration when taking actions. As it is, I find it difficult to justify using any kind of patch that makes the game easier for X-COM, because it&#039;s simply too easy as it is (for me, anyway). This is one reason I don&#039;t plan to work on patches that alter game balance in X-COM&#039;s favor much.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* Aliens Use Drills. &lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
None at this time.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28024</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28024"/>
		<updated>2010-04-16T00:20:55Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* X-COM bugs that TFTD inherits */ Request for information on bugs TFTD inherits from X-COM.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;br /&gt;
:::Also, for clarity, I&#039;ll provide the source code for the TFTD patcher when I start releasing them. --[[User:Xusilak|Xusilak]] 17:38, 2 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Database ==&lt;br /&gt;
&lt;br /&gt;
Maybe you could publish the TFTD patch database on this site, as it evolves. Initially it will have a lot of gaps, but if you publish the gaps people will know what to look for. You will probably get volunteers who will hunt down the patches for the things that they are particularly interested in. The work will go faster with collaboration. [[User:Spike|Spike]] 05:19, 3 April 2010 (EDT)&lt;br /&gt;
:For now, I think it will go faster if I focus on it. I&#039;m already about 40% done naming the variables and functions that are already known from X-COM, thanks to Seb. Once I&#039;ve gotten that bit done (should be within a week or so) and gotten the patcher itself to a useful state, I&#039;ll go ahead and publish both the IDA database and the patcher source code here. --[[User:Xusilak|Xusilak]] 11:24, 3 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== KeeperFX ==&lt;br /&gt;
&lt;br /&gt;
Hello, first of all, i would like to say that you guys (you and Seb) are doing great job :)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found some project for Dungeon Keeper, which can be considered similar to what you&#039;re doing, but it&#039;s done quite different way (i believe). If i understand correctly, you&#039;re somehow altering x-com code in memory after launching it? Author of keeperfx is doing it such way (qoute from website):&lt;br /&gt;
&lt;br /&gt;
http://keeper.lubie.org/html/dk_keeperfx.php&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Instead, I&#039;ve learned binary formats of EXE and DLL files, and modified the Dungeon Keeper executable file to become a DLL. With my new DLL, I was able to create very simple executable file which may be used as complete code to run the game. Now I&#039;m incrementally rewriting DK; functions which are not yet rewritten are called from the DLL, so the project functions like whole game, even tho it wasn&#039;t completely rewritten yet.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s instruction how to change exe to dll: http://keeper.lubie.org/other_docs/change_exe_to_dll.htm&lt;br /&gt;
&lt;br /&gt;
I wonder if such way could be useful (and possible) for x-com (tftd) extender? Would it be easier to add new things? Would it allow to gradually rewrite whole game from scratch? What do you think? --[[User:Michal|Michal]] 13:11, 13 April 2010 (EDT)&lt;br /&gt;
:Interesting idea. Thanks for mentioning that. What we&#039;re doing now is similar, but essentially the inverse of this. We&#039;re using DLL injection to replace X-COM functions and code at run-time. So, we have the game using its normal EXE and the patcher using a DLL. His method is focused specifically on rewriting the game, but in an incremental way that doesn&#039;t require him to go for years without seeing any results. That method would be very poor for doing the kind of patching we&#039;re doing now, because we&#039;d have to rewrite all of the core loop code in X-COM before we could get to a point where we could start implementing our new functionality. This is because the replacement game EXE can&#039;t simply inject functions at certain points in the original game DLL&#039;s function calls, at least not without doing what we do now (patching memory directly). In the end, there&#039;s no particular benefit to doing small patches through that EXE-based method. It would be an advantage if we were trying to rewrite the game entirely, with an emphasis on rewriting the core code and working our way up, but that&#039;s not what we&#039;re doing; if we did want to do that, it could be done through the DLL injection method painlessly, and then converted to its own EXE once we finished rewriting the game. It is unlikely that we&#039;ll try to rewrite the game, however, because it would be an extremely lengthy and arduous task; if I were doing it alone, it would take years. Our current technique of simply extending X-COM&#039;s existing code produces much more immediate and beneficial results.&lt;br /&gt;
:Thanks again for posting a link to this, though. It might be useful to me in the future. --[[User:Xusilak|Xusilak]] 19:33, 13 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
==X-COM bugs that TFTD inherits==&lt;br /&gt;
Since I&#039;m going to be translating patches from X-COM to TFTD now, I could use some information on which bugs need to be fixed in TFTD that existed in X-COM. If anyone has such information, I&#039;d greatly appreciate it, as it would save me the effort of testing each bug. In particular, a list of which of Seb&#039;s bug-fix patches could still usefully apply to TFTD would be awesome. Note that I don&#039;t need information on TFTD-specific bugs, just bugs that TFTD inherits from X-COM. Thanks in advance! --[[User:Xusilak|Xusilak]] 20:20, 15 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28023</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28023"/>
		<updated>2010-04-16T00:01:23Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Current  Projects */ XCOM IDB to TFTD IDB translation is essentially complete.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** The translation from the X-COM IDA database to the TFTD IDA database is essentially complete. From here on out, work on the database will focus on uncovering the purpose of unknown code.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
** Adding new TFTD-specific patches.&lt;br /&gt;
*** Underwater Weapons In Air is complete. &lt;br /&gt;
** Expect the database (in IDC form) to be released around April 20th to April 25th.&lt;br /&gt;
** Expect the initial release of the TFTD patcher and its source code around the end of the month.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Improved AI. It would make a lot of patches considerably more balanced if the AI used better tactical consideration when taking actions. As it is, I find it difficult to justify using any kind of patch that makes the game easier for X-COM, because it&#039;s simply too easy as it is (for me, anyway). This is one reason I don&#039;t plan to work on patches that alter game balance in X-COM&#039;s favor much.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* Aliens Use Drills. &lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
None at this time.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28018</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=28018"/>
		<updated>2010-04-13T23:33:37Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;br /&gt;
:::Also, for clarity, I&#039;ll provide the source code for the TFTD patcher when I start releasing them. --[[User:Xusilak|Xusilak]] 17:38, 2 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Database ==&lt;br /&gt;
&lt;br /&gt;
Maybe you could publish the TFTD patch database on this site, as it evolves. Initially it will have a lot of gaps, but if you publish the gaps people will know what to look for. You will probably get volunteers who will hunt down the patches for the things that they are particularly interested in. The work will go faster with collaboration. [[User:Spike|Spike]] 05:19, 3 April 2010 (EDT)&lt;br /&gt;
:For now, I think it will go faster if I focus on it. I&#039;m already about 40% done naming the variables and functions that are already known from X-COM, thanks to Seb. Once I&#039;ve gotten that bit done (should be within a week or so) and gotten the patcher itself to a useful state, I&#039;ll go ahead and publish both the IDA database and the patcher source code here. --[[User:Xusilak|Xusilak]] 11:24, 3 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== KeeperFX ==&lt;br /&gt;
&lt;br /&gt;
Hello, first of all, i would like to say that you guys (you and Seb) are doing great job :)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found some project for Dungeon Keeper, which can be considered similar to what you&#039;re doing, but it&#039;s done quite different way (i believe). If i understand correctly, you&#039;re somehow altering x-com code in memory after launching it? Author of keeperfx is doing it such way (qoute from website):&lt;br /&gt;
&lt;br /&gt;
http://keeper.lubie.org/html/dk_keeperfx.php&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;Instead, I&#039;ve learned binary formats of EXE and DLL files, and modified the Dungeon Keeper executable file to become a DLL. With my new DLL, I was able to create very simple executable file which may be used as complete code to run the game. Now I&#039;m incrementally rewriting DK; functions which are not yet rewritten are called from the DLL, so the project functions like whole game, even tho it wasn&#039;t completely rewritten yet.&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
Here&#039;s instruction how to change exe to dll: http://keeper.lubie.org/other_docs/change_exe_to_dll.htm&lt;br /&gt;
&lt;br /&gt;
I wonder if such way could be useful (and possible) for x-com (tftd) extender? Would it be easier to add new things? Would it allow to gradually rewrite whole game from scratch? What do you think? --[[User:Michal|Michal]] 13:11, 13 April 2010 (EDT)&lt;br /&gt;
:Interesting idea. Thanks for mentioning that. What we&#039;re doing now is similar, but essentially the inverse of this. We&#039;re using DLL injection to replace X-COM functions and code at run-time. So, we have the game using its normal EXE and the patcher using a DLL. His method is focused specifically on rewriting the game, but in an incremental way that doesn&#039;t require him to go for years without seeing any results. That method would be very poor for doing the kind of patching we&#039;re doing now, because we&#039;d have to rewrite all of the core loop code in X-COM before we could get to a point where we could start implementing our new functionality. This is because the replacement game EXE can&#039;t simply inject functions at certain points in the original game DLL&#039;s function calls, at least not without doing what we do now (patching memory directly). In the end, there&#039;s no particular benefit to doing small patches through that EXE-based method. It would be an advantage if we were trying to rewrite the game entirely, with an emphasis on rewriting the core code and working our way up, but that&#039;s not what we&#039;re doing; if we did want to do that, it could be done through the DLL injection method painlessly, and then converted to its own EXE once we finished rewriting the game. It is unlikely that we&#039;ll try to rewrite the game, however, because it would be an extremely lengthy and arduous task; if I were doing it alone, it would take years. Our current technique of simply extending X-COM&#039;s existing code produces much more immediate and beneficial results.&lt;br /&gt;
:Thanks again for posting a link to this, though. It might be useful to me in the future. --[[User:Xusilak|Xusilak]] 19:33, 13 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28014</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28014"/>
		<updated>2010-04-13T05:01:46Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: Added a notes section, with a note about underwater-only weapons and a note about plausible timelines.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** Approximately 80% of the known X-COM function and variable names have been translated to TFTD.&lt;br /&gt;
**** About 95% of the known Geoscape is translated. Just some structs to define and a few odds and ends that aren&#039;t worth the effort to track down for now. Most TFTD-specific Geoscape functions are identified to some degree, but not very well, and none of the TFTD-specific variables are identified yet.&lt;br /&gt;
**** About 65% of the known Battlescape is translated.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;br /&gt;
&lt;br /&gt;
=Notes=&lt;br /&gt;
* I uncovered the location of the underwater-only weapons and tank weapons lockout, so a patch to disable it is already very feasible. It is quite satisfying to apply 40 DPL shots to a cruise ship, let me assure you. However, the other aspects of removing underwater limitations will take some time.&lt;br /&gt;
* I&#039;ll most likely be satisfied with my progress on the TFTD IDA database within a few days, at which point I&#039;ll resume work on the TFTD patcher. After I&#039;m satisfied with the initial offerings, I&#039;ll make the database and the source code available here. The binary might wait a while longer. I&#039;d guess everything should be ready within two weeks at most, with the database and source code available in a week or so. I&#039;ll be offering the database in IDC format, which is pure text, so that people without IDA can still potentially benefit from it.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28011</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28011"/>
		<updated>2010-04-12T06:02:48Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Current Projects */ About 80% now.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** Approximately 80% of the known X-COM function and variable names have been translated to TFTD.&lt;br /&gt;
**** About 95% of the known Geoscape is translated. Just some structs to define and a few odds and ends that aren&#039;t worth the effort to track down for now. Most TFTD-specific Geoscape functions are identified to some degree, but not very well, and none of the TFTD-specific variables are identified yet.&lt;br /&gt;
**** About 65% of the known Battlescape is translated.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28010</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=28010"/>
		<updated>2010-04-11T23:25:20Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Current Projects */ 60% done translating to the TFTD IDA database&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** Approximately 60% of the known X-COM function and variable names have been translated to TFTD.&lt;br /&gt;
**** About 95% of the known Geoscape is translated. Just some structs to define and a few odds and ends that aren&#039;t worth the effort to track down for now. Most TFTD-specific Geoscape functions are identified to some degree, but not very well, and none of the TFTD-specific variables are identified yet.&lt;br /&gt;
**** About 25% of the known Battlescape is translated.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=Craft_Combat_Mechanics&amp;diff=28009</id>
		<title>Craft Combat Mechanics</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=Craft_Combat_Mechanics&amp;diff=28009"/>
		<updated>2010-04-11T19:36:01Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* UFO Accuracy Mechanics */ UFOs appear to miss about 40% of the time.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;This article attempts to summarise everything we know about air combat game mechanics, a pretty murky area at present. I will also put here the results of testing and investigation I&#039;m doing. [[User:Spike|Spike]] 15:26, 3 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
= General Behaviour =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Survival Time of Multiple Attackers ==&lt;br /&gt;
&lt;br /&gt;
Engaging a UFO with more than one attacking aircraft makes the UFO split its fire. This gives the attacking aircraft more time to perform attacks, before either being destroyed or being forced to disengage. &lt;br /&gt;
&lt;br /&gt;
The following table gives the increased average survival time of attacking ships. The test scenario used XCom craft in Aggressive mode. The UFO was a Terror Ship. The test scenario did not consider survival by eliminating the UFO (the XCom craft were effectively unarmed). This was a pure endurance situation, the worst case scenario. &lt;br /&gt;
&lt;br /&gt;
 # of Attackers  Avg Survival Time  Expected  Deviation&lt;br /&gt;
     1           1.0 - nominal      1.0       100% nominal&lt;br /&gt;
     2           1.5                2.0       75%&lt;br /&gt;
     3           2.5                3.0       83.33% (5/6)&lt;br /&gt;
     4           3.0                4.0       75%&lt;br /&gt;
&lt;br /&gt;
This is a slightly surprising result. In principle, if the total damage output of the UFO was constant, the average survival time would just be divided by the number of attackers; e.g. 2x as long for 2 attackers, 3x as long for 3 attackers, etc. The UFO actually seems to be doing &amp;lt;b&amp;gt;more&amp;lt;/b&amp;gt; damage, or killing targets faster, when facing multiple XCom opponents. This is a result that requires an explanation. The survival time is measured in (zero-damage) rounds fired by the XCom aircraft. So another possibility is that the XCom aircraft are somehow able to fire more rounds when multiply engaged. However I don&#039;t think this is the case. It was not systematically tested but the XCom fire rates do not seem to increase noticeably when multiply engaged.&lt;br /&gt;
&lt;br /&gt;
: The results for 1, 2 and 4 attackers would be consistent with the UFO going into Aggressive Mode from Standard Mode when faced with multiple attackers. This would increase its RoF by 1/3, giving a 4/3 firepower increase and thus a 3/4 survival time for XCom. The attack mode is saved in INTER.DAT. It would be worth comparing saves of a single XCom interceptor with saves of multiple interceptors, and seeing what attack mode the UFO is in. Also to retest with more granularity (Cannon instead of Avalanche timers), in case the data for 3 attackers is actually nearer 2.25 = 75% [[User:Spike|Spike]] 16:13, 15 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
= X-Com Behaviour =&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Testing the Effects of Range and Attack Mode ==&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
I did some tests on timing events in the Interception Window. In particular, I was interested in seeing how long an XCom aircraft is exposed to enemy fire, whilst closing range to the target. In other words, what happens when the XCom aircraft&#039;s weapons do not give it a full stand-off advantage. &lt;br /&gt;
&lt;br /&gt;
My test rig for this was to hack up a &amp;quot;magic weapon&amp;quot; to use as a timer. This was a modified Cannon that does no damage, with range increased to the maximum/opening range in the interception window. I use the 2 game second (2gs) firing interval of the Cannon as a timer. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Note: In all of the following sections, I refer to &amp;quot;game seconds&amp;quot;. But actually this is a supposition. What I&#039;m actually measuring is &amp;lt;b&amp;gt;multiples of the firing interval of a standard Cannon&amp;lt;/b&amp;gt;. This is stated in the in-game UFOPaedia to be 2 (game) seconds. But (as we will see below), the in-game statements of firing intervals of craft weapons are neither accurate or consistent. So it may or may not be meaningful to talk about these being actual game seconds. Maybe they are no more than multiples of the Cannon firing interval. And quite possibly the Cannon firing interval itself is not fixed, but is variable.&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I hacked the executable by using XComUtil and editing the XComUtil.cfg configuration file, then rerunning xcusetup.bat to reinstall XCU. I discovered that XCU was not apparently able to reliably change the fire rate of weapons, so I stuck with the game default values (eg 1 per 2 gs for Cannon). Here are my findings: &lt;br /&gt;
&lt;br /&gt;
# In the Interception Window, all aircraft close range with the enemy at the same rate (measured in shots fired). &lt;br /&gt;
## This is regardless of whether the aircraft is an Interceptor (2100 kts, Acc=3) or an Avenger (5400 kts, Acc=10). &lt;br /&gt;
## This is also regardless of whether the attack mode is Cautious, Standard, or Aggressive&lt;br /&gt;
## Of course, the range that the aircraft will attempt to close to, and hold, does depend on the attack mode&lt;br /&gt;
## The approach speed of 2 mutually approaching aircraft is 0.5km per game second, i.e. 1800 kmh / 900 kts (assuming the Cannon rate of fire to be 1 per 2 game seconds).&lt;br /&gt;
## Evidence for this: &lt;br /&gt;
### Closing from 70km to 30km, 40 volleys of Cannon fire are fired, at 1 / 2gs&lt;br /&gt;
### 40 volleys x 2gs = 80 gs time taken to close&lt;br /&gt;
### 40km / 80gs = 0.5 km/s&lt;br /&gt;
## This was also cross checked with a (hacked) Stingray launcher (zero damage, 75km range, 100 rounds) as the timer. &lt;br /&gt;
### Closing from 75km to 0km. 10 rounds fired. Stingray fire rate is 1 / 15 or 16gs&lt;br /&gt;
### 10 x 15 gs = Time taken was 150 - 160 gs, &lt;br /&gt;
### 75km / 150 gs = 0.5 km/s&lt;br /&gt;
# The fire rate for missiles varies with the attack mode, but the fire rate for cannon type weapons seems to be unchanged. See more below.&lt;br /&gt;
# Or it&#039;s just barely possible that the fire rate, and the closing speed, both change by the same margin and remain in the same ratio.&lt;br /&gt;
## However I think this is unlikely and it violates Occam&#039;s Razor.&lt;br /&gt;
## Also, even if true, it doesn&#039;t really make any difference.&lt;br /&gt;
# The initial opening range on the Interception Window is 75km (600 distance units). &lt;br /&gt;
## That is the maximum distance visible, at the top of the window. Opening range = maximum range. &lt;br /&gt;
## UFOs seem to often settle at 70km range, if they are able to control the range. &lt;br /&gt;
## XComUtil does not let you enter a weapon range value above 75km. Probably Scott Jones was aware of this limit.&lt;br /&gt;
# Clearly, the Geoscape phase of Interception is different from the Interception Window&lt;br /&gt;
## Geoscape time freezes while you are in the Interception window&lt;br /&gt;
## Nothing happens at all until you hit the first button, so there&#039;s no rush&lt;br /&gt;
## On the Geoscape, relative aircraft speed is highly significant to whether an interception is possible. &lt;br /&gt;
## Probably so is Acceleration.&lt;br /&gt;
# Caveats&lt;br /&gt;
## I didn&#039;t try multiple aircraft interceptions. Maybe these are different.&lt;br /&gt;
## I only tried one target type, a Small Scout (speed 2200 kts). It would be prudent to try other target types though. &lt;br /&gt;
## I think there&#039;s enough granularity in the tests I did (45 data points, greater than 100% difference in speed and acceleration between Interceptor and Avenger). But more is always good. &lt;br /&gt;
## I didn&#039;t test the speed of breaking off, or the speed of opening range after the initial closing. It&#039;s possible this is affected by aircraft speed and/or relative speed, and/or by acceleration. &lt;br /&gt;
# Misc Notes&lt;br /&gt;
## XComUtil does not let you enter an ammo capacity higher than 200. Other sources claim the field can be hacked higher than this. &lt;br /&gt;
## There is a bug in the in-game UFOPaedia. It mistakenly reads the damage value field when reporting the hit chance for a craft weapon. Hence:&lt;br /&gt;
### Cannon shows 10% not 25%&lt;br /&gt;
### Avalanche shows 100% not 80%&lt;br /&gt;
### Laser Cannon shows 70% not 35%&lt;br /&gt;
### Plasma Beam shows 140% not 50%&lt;br /&gt;
### Fusion Ball shows 230% (!!!) not 100%&lt;br /&gt;
### Possibly the reason this bug was missed is that the first weapon in the data files, Stingray, actually does have Dmg = %Hit&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:38, 2 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
: From my own experience: Attack mode only adjusts the range of the inteceptor and UFO. The actual distance between the ships however influences how fast the weapon exchanges go. The closer they are the faster the exchange. However, I believe this is all at the same rate of fire - it just plays out faster between that particular interceptor and UFO (in the case of multiple interceptors).&lt;br /&gt;
&lt;br /&gt;
: By the way, when a UFO flees and you minimize the screen before it goes out of range, and then you chase after it and catch up to it again and then re-open the screen, the UFO will be way out of range as you close in on it. I guess in a way, real world position does influence position of the UFO at the time the interception window is opened. -[[User:NKF|NKF]] 02:52, 3 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi NKF. Actually I&#039;ve found attack mode does affect some important variables and I will reveal all as soon as I get to a proper PC - in transit right now. There is the question of whether fire rate increases at shorter range - the &amp;quot;Space Invaders Effect&amp;quot; - and whether it is real in terms of game time units, or just subjective on the user display. I still don&#039;t know though I have seen no evidence for it and pretty good evidence against. But not conclusive and to be honest I have avoided test situations where that might happen in order to reduce variables in my tests. So there might be such an effect.&lt;br /&gt;
&lt;br /&gt;
I am not sure I understand your point about re-engagement. To me it makes sense that Interception always opens at maximum range, since the presumption is that the target has opened the range beyond effective combat range, and then susbequently in the Geoscape we have closed again to within the outer limits of combat range, triggering the Intercept window. Or have I misunderstood what you are saying? &lt;br /&gt;
&lt;br /&gt;
Anyway I hope to be able to write something soon to put together most of how the air combat system works, or at least a good chunk more of it, at least from the human side. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 15:02, 3 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: To test range/ROF You may want to test dual interceptors with your magic test weapon. Have both armed with one test weapon and have one interceptor arm a cannon/laser cannon. Set both to standard range. The one with the cannon/laser cannon would obviously have to be much closer. Watch your test weapon&#039;s ammo consumption. &lt;br /&gt;
&lt;br /&gt;
:: What I meant with re-engaging a UFO that had previously fled, but you then minimized the window before it went beyond the limits of the intercept screen (and thus keeping the intercept window &#039;live&#039; even though it&#039;s beyond intercept range). When the UFO slows down enough for the interceptor to catch up, and you then re-open the intercept screen, the UFO will sometimes be way off the screen. I&#039;m guessing this is based off your actual distance in the Geoscape at the time you re-opened that interceptor&#039;s intercept window. Also I&#039;m guessing the UFO must be in a fleeing-state for the intercept window to automatically shut itself down once it&#039;s beyond range. Heh, not sure if that made any sense. -[[User:NKF|NKF]] 23:00, 3 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Observed Rates of Fire ==&lt;br /&gt;
&lt;br /&gt;
The quoted fire rates (or rather fire intervals) in the in-game UFOPaedia and elsewhere in this on-line UFOPaedia are wrong. Results from experiment show the following provisional information:&lt;br /&gt;
&lt;br /&gt;
 Weapon:         Fire Interval in Game Seconds&lt;br /&gt;
                 Aggressive/Standard/Cautious    &lt;br /&gt;
 Cannon                   2 /  2 /  2&lt;br /&gt;
 Laser Cannon            12 / 12 / 12&lt;br /&gt;
 Plasma Cannon           12 / 12 / 12&lt;br /&gt;
 Stingray                16 / 24 / 32&lt;br /&gt;
 Avalanche               24 / 36 / 48&lt;br /&gt;
 Fusion Ball             16 / 24 / 32&lt;br /&gt;
&lt;br /&gt;
These fire rates/intervals are significantly different from those previously understood. In particular we see a massive increase the relative fire rate of conventional Cannon versus other weapons, identical fire rates for Plasma Cannon and Laser Cannon, and quite similar fire rates as between advanced Cannon and Stingray launchers. This has a major impact on computed firepower and payload characteristics for all weapons, and on the relative differences between weapons. &lt;br /&gt;
&lt;br /&gt;
It should be noted that in almost every case, these observed fire interval values deviate from the advertised values, and in fact they deviate from values coded into the &amp;quot;craft&amp;quot; data structures of the game executable, which have been retrieved by code digs. The observed values don&#039;t even have the same relative relationship as the reported values. Experiment has shown that modifying the reported fire interval values in the executable has &amp;lt;b&amp;gt;no effect&amp;lt;/b&amp;gt; of any kind on the observed rate of fire. The conclusion, based on the observed data, must be that the game is ignoring the reported fire intervals in the craft data structure, and hard coding rate of fire values into the air combat algorithms. The fire intervals in the craft data structure are being ignored. &lt;br /&gt;
&lt;br /&gt;
&#039;&#039;I&#039;ve done some more tests and these confirm that hacking the fire intervals in the craft weapon data structures (of XCom craft weapons) has no effect.&#039;&#039; [[User:Spike|Spike]] 20:09, 13 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Effect of Attack Mode on Rate of Fire ==&lt;br /&gt;
&lt;br /&gt;
The other major observation in the data above is that Attack Mode does influence rate of fire, but only for missile/launcher weapons. If we take Aggressive mode as the baseline, firing intervals for &amp;lt;i&amp;gt;launched weapons only&amp;lt;/i&amp;gt; increase as follows:&lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;Attack Mode  Firing Interval  Firing Rate&#039;&#039;&lt;br /&gt;
 Aggressive       x 1.0           nominal&lt;br /&gt;
 Standard         x 1.5           x 2/3&lt;br /&gt;
 Cautious         x 2.0           x 1/2&lt;br /&gt;
&lt;br /&gt;
In effect this penalises launcher weapons when used at stand off range (Standard), especially when weapon types are mixed on the same aircraft (Cautious). Conversely, it gives a high offensive premium to conducting launched weapon attacks in Aggressive mode, conceding the defensive advantage of stand-off range.&lt;br /&gt;
&lt;br /&gt;
== Firepower Based on Observed Rates of Fire ==&lt;br /&gt;
&lt;br /&gt;
The observed rates of fire change the firepower relationships between weapons. &lt;br /&gt;
&lt;br /&gt;
 &#039;&#039;Armament       Rate(gs) Mode     Firepower&#039;&#039;&lt;br /&gt;
 Cannon          1/2      ALL      40&lt;br /&gt;
 Stingray        1/16     Agg      98&lt;br /&gt;
                 1/24     Std      65&lt;br /&gt;
                 1/32     Cau      49&lt;br /&gt;
 Avalanche       1/24     Agg      107&lt;br /&gt;
                 1/36     Std      71&lt;br /&gt;
                 1/48     Cau      53&lt;br /&gt;
 Laser Cannon    1/12     ALL      65&lt;br /&gt;
 Plasma Beam     1/12     ALL      187&lt;br /&gt;
 Fusion Ball     1/16     Agg      460&lt;br /&gt;
                 1/24     Std      307&lt;br /&gt;
                 1/32     Cau      230&lt;br /&gt;
&lt;br /&gt;
(The firepower value is an arbitrary relative number based on 16gs of firing)&lt;br /&gt;
&lt;br /&gt;
Observations: since even paired launchers must be used in Standard attack mode in order to maintain stand-off distance, it&#039;s interesting to compare their Standard firepower figure with the figures for the cannon weapons. In which case we see, for example, that the Laser Cannon is a very close match for the Avalanche in firepower - and can keep firing for 400 game seconds (gs) rather than the Avalanche&#039;s endurance of (in Standard mode) 72gs. Of course, stand-off distance is itself a massive advantage which cannot be ignored.&lt;br /&gt;
&lt;br /&gt;
== Effect of Range on Rate of Fire ==&lt;br /&gt;
&lt;br /&gt;
It&#039;s likely that the perception that range can affect rate of fire just arises from the fact that attack mode affects both rate of fire AND range. However this should be tested. &lt;br /&gt;
&lt;br /&gt;
Test strategy:&lt;br /&gt;
&lt;br /&gt;
Attack in Standard mode with different weapons. Hack the ranges of either or both weapons. This allows the actual firing range of the longer-ranged weapon to be controlled to any arbitrary value. Set the range of the shorter-ranged weapon to be eg 25/50/75% of the range of the longer ranged weapon. &lt;br /&gt;
&lt;br /&gt;
Actually for direct comparisons, you need 2 hacked short ranged weapon and probably one unhacked longer ranged weapon &amp;quot;C&amp;quot; which you are testing (eg Avalanches). Then put up 2 aircraft, one with short range weapon A at 25% of the range of C, and the other with short range weapon B at eg 50% of the range of C. Then attack with both at the same time and watch the ammo counters on the C. As usual, set the damage of all weapons to zero so that the experiment is not interrupted by the untimely destruction of any craft!&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
A high ammo count for the launchers will also assist. &lt;br /&gt;
&lt;br /&gt;
Just to round off the attack mode test towards the end, it might be a good idea to have a test weapon that has a range equal to standoff range (or even beyond) to see how standoff range behaves as an attack mode. A standoff range cannon would certainly be something to look at. -[[User:NKF|NKF]] 18:13, 4 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I have been hacking pretty much everything up to 100 ammo as that gives good granularity and a nice round number to work from. It&#039;s a good suggestion about Standoff mode, it didn&#039;t occur to me to test that - even though I had weapons set at 75km. From memory nothing happens until you select one of the 3 other attack modes - but I will check again. [[User:Spike|Spike]] 19:13, 4 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK I&#039;ve confirmed this and amended the main page. Re your question, even if the range of the weapon is hacked to equal or exceed standoff range, it does not fire when in Standoff mode (or in Disengage). So Standoff mode also appears to mean &amp;quot;Weapons Safe&amp;quot;. In fact, with a hacked weapon range, you can have the curious phenomenon that the aircraft actually &#039;&#039;pulls back&#039;&#039; from Standoff range (70km) to maximum firing range (eg 75km) when ordered into a Standard/Cautious attack. [[User:Spike|Spike]] 07:05, 5 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Another interesting result. A UFO with a hacked weapon range of 75km will open fire immediately, even if the XCom Craft is at Standoff range. In normal play, the UFO never initiates the attack. The status window message even reflects this &amp;quot;UFO Returns Fire!&amp;quot;. In effect, XCom normally controls the initiation of hostilities, by choosing if and when to move into weapon range. The UFOs always react to XCom moves but never initiate. The hacked weapon situation is different. (It also makes testing harder since you have to hit an Attack button quickly or the UFO gets an unfair head start, skewing the numbers). I might try using 69km for testing. It still makes the period of time while the UFO is closing into range pretty insignificant. But it allows me to control when the &amp;quot;clock&amp;quot; starts on the test. [[User:Spike|Spike]] 14:43, 5 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
Further results: Equip 2 craft with Fusion Ball Launchers and Stingrays. According to the published fire interval numbers (25 and 15 respectively) these have different rates of fire. By observation, they have the same rate of fire. This is seen on Beginner and Superhuman. It is seen on Aggressive, when ranges are the same, and it is also seen on Cautious, when the FBL attacks at more than twice the range of the Stingray. This is using 100 rounds for each weapon, and about 5 trials. I think this proves conclusively that rate of fire does &#039;&#039;&#039;not&#039;&#039;&#039; vary with range. &lt;br /&gt;
&lt;br /&gt;
&amp;lt;s&amp;gt;However, I&#039;m still not sure how to reconcile 2 facts: &lt;br /&gt;
&lt;br /&gt;
# For missile weapons (only), hacking the firing interval bytes in the executable up or down &#039;&#039;&#039;does&#039;&#039;&#039; decrease or increase the rate of fire.&lt;br /&gt;
# The observed ratios of rates of fire of the different missile weapons do &#039;&#039;&#039;not&#039;&#039;&#039; match the ratios between the firing interval bytes in the executable. &lt;br /&gt;
&lt;br /&gt;
Basically the bytes in the executable must be &#039;&#039;part of&#039;&#039; the rate of fire calculation, but not the whole calculation. [[User:Spike|Spike]] 17:13, 13 July 2009 (EDT)&amp;lt;/s&amp;gt;&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
OK contrary to what I said earlier, on repeat testing, I don&#039;t see any effects from changing the game executable XCom craft weapon data firing interval offsets (starting at offset 0x6fb18 in WinCE geoscape.exe). I don&#039;t see it either for missile-type weapons nor gun-type weapons. I do see an RoF effect when changing offset 0x10 of UFOs in the craft data at 0x6f9a8. This affects the built-in weapons of UFOs only, and is not used for XCom craft. My conclusion is that the RoFs values in the craft weapon data structure for XCom craft weapons are ignored, that the actual values are hard coded elsewhere in the executable, and are proportional to the values given above at [[UFO Interception#Observed Rates of Fire|Observed Rates of Fire]]. The only effect of hacking these craft data weapon values is to change what is listed in the in-game UFOPaedia; there is no actual effect. [[User:Spike|Spike]] 20:09, 13 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Damage Mechanics ==&lt;br /&gt;
&lt;br /&gt;
Air combat damage is understood to be a random value between 50% and 100% of the listed damage, which should be understood as the &amp;lt;i&amp;gt;maximum&amp;lt;/i&amp;gt; damage. Unlike for ground combat, the listed damage value is not the expected value per hit. The expected damage per hit will be 75% of the listed damage. &lt;br /&gt;
&lt;br /&gt;
Test Strategy:&lt;br /&gt;
&lt;br /&gt;
This could be confirmed with a similar strategy as described below for UFO Damage Mechanics.&lt;br /&gt;
&lt;br /&gt;
== Accuracy Mechanics ==&lt;br /&gt;
&lt;br /&gt;
Accuracy is a function of the weapon type used, as listed in the in-game UFOPaedia. Unlike ground combat there are almost certain to be no skill factors involved. There are &amp;lt;i&amp;gt;probably&amp;lt;/i&amp;gt; no tactical factors involved. There is some speculation that different Attack Modes might create accuracy modifiers, but no hard evidence. This needs to be tested. &lt;br /&gt;
&lt;br /&gt;
Testing Strategy:&lt;br /&gt;
&lt;br /&gt;
This can be confirmed by deduction from long term damage output tests, once damage mechanics and rate of fire mechanics are confirmed. The testing should control for Attack Mode and for range (separately), to make sure these don&#039;t have an impact on accuracy. They should also control for target size/type in case that is a factor. &lt;br /&gt;
&lt;br /&gt;
== Control of Range ==&lt;br /&gt;
&lt;br /&gt;
In general, the craft with the higher airspeed is able to control the engagement range within the Interception Window. Reportedly, Aggressive mode can override this behaviour for a short period of time. On the other hand, it may just be that the target is travelling below its maximum airspeed, as UFOs often do, but then accelerates to maximum speed to avoid a range it does not prefer to be at. &lt;br /&gt;
&lt;br /&gt;
Update: An XCom craft with equal airspeed (Interceptor buffed to 2200 vs Small Scout @ 2200) can move to any desired range. A UFO with equal airspeed is unable to break off. So it seems that superior airspeed is required to break off, but equal airspeed is sufficient to control range. Or it may be simpler than that: if the opponent can&#039;t break off, then the attacker can always control the range. [[User:Spike|Spike]] 20:09, 13 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Question: Is it ever impossible for an XCom craft to break off from a UFO, due to the UFO&#039;s higher speed and/or aggression? I don&#039;t think so. The rules seem pretty different for UFOs, as opposed to XCom craft. &lt;br /&gt;
&lt;br /&gt;
Question: do UFOs attempt to hold an advantageous stand off range, as XCom craft do in Cautious and Standard attack modes? &lt;br /&gt;
&lt;br /&gt;
Question: Do UFOs use Attack modes in the same way that XCom craft do, and if so, what are the effects?&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
= UFO Behaviour =&lt;br /&gt;
&lt;br /&gt;
== General Notes ==&lt;br /&gt;
&lt;br /&gt;
The game provides very little access to UFO behaviour, so understanding of UFO mechanics is sketchier and information is harder to come by. However there are some facts to go on and some reasonably well-accepted suppositions. &lt;br /&gt;
&lt;br /&gt;
UFO craft weapons have a weapon strength and weapon range value stored in the game executable in the [[Talk:GEOSCAPE.EXE#Craft_type_data|structCraftData]] format. This is the same structure that stores their speed, damage capacity, and size. &lt;br /&gt;
&lt;br /&gt;
UFOs are capable of attempting to hold range, to close, and to break off, just like XCom aircraft. The behaviour is not well understood but appears in part to be influenced by the Attack mode of the XCom craft. Of course, initiating an attack often has an effect on this behaviour (e.g. the UFO attempts to break off).&lt;br /&gt;
&lt;br /&gt;
== UFO Average Damage Output ==&lt;br /&gt;
&lt;br /&gt;
In repeated tests, a Terror Ship (weapon strength 120) killed an Avenger in 480 game seconds (or more specifically, the time required to fire 20 Avalanches at close range in Aggressive mode). The Avenger has 1200 defence points, so this implies that the Terror Ship generates an average of 2.5 damage points per game second, in this test scenario at least. &lt;br /&gt;
&lt;br /&gt;
Obviously some tests with other UFOs would be useful, followed by tests with hacked UFOs. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== UFO Rate of Fire Mechanics ==&lt;br /&gt;
&lt;br /&gt;
There is a value in structCraftData (at offset 0x10) which has a bearing on UFO weapons. This value ranges from 56 (decimal) for the smaller UFOs (including the unarmed Small Scout), down to 24 for the 3 largest types: Terror Ship, Supply Ship, Battleship. This is believed to be the base fire interval for the UFO weapon. The possibility that this is value is a fire interval (or an accuracy factor) should be easily testable, once the damage output of UFOs is understood well enough to be predicted. &lt;br /&gt;
&lt;br /&gt;
Test Strategy:&lt;br /&gt;
&lt;br /&gt;
Quite simple to test. Hack the structCraftData value to increase or decrease eg. by a factor of 2. Re run the survival tests (see above). If survival time increases or decreases by the expected (linear) proportion, this is probably the fire interval value. If there is an effect of a different magnitude, this could be an accuracy value rather than an RoF value. If there is no effect, the value is probably unrelated to UFO offensive action, but might be a defensive value of some kind (eg &amp;quot;difficulty to hit&amp;quot;). &lt;br /&gt;
&lt;br /&gt;
Also for extra confidence (and a simpler test), try increasing and decreasing the value to extreme levels and observing if UFO fire rate decreases/increases accordingly. &lt;br /&gt;
&lt;br /&gt;
Update: Tests show it&#039;s most likely this value is indeed a UFO firing interval value (inverse rate of fire). Seb76 has found from inspection that the firing interval varies randomly by 100%-200% of this base value, reduced by 2*Difficult Level (i.e. faster firing at higher difficulty level). (XCom craft weapon firing rates are not affected by Difficulty Level).&lt;br /&gt;
&lt;br /&gt;
&#039;&#039;I&#039;m inclined to agree with the rate of fire theory. A countdown is stored in CRAFT.DAT at offset 0x26 and when it hits 0, the UFO fires. It is reset for the next shot with this formula:&lt;br /&gt;
&lt;br /&gt;
 tmp = offset10-2*difficultyLevel&lt;br /&gt;
 nextShot = RAND(0,tmp)+tmp&#039;&#039;&lt;br /&gt;
&lt;br /&gt;
So the average firing interval will be &lt;br /&gt;
&lt;br /&gt;
 1.5 x (structCraftData offset 0x10 - 2 x Difficulty)&lt;br /&gt;
&lt;br /&gt;
=== Effect of Attack Mode on UFO RoF ===&lt;br /&gt;
&lt;br /&gt;
From the formula above it does not seem the UFO RoF varies based on either XCom or Alien attack mode - Aggressive, Cautious, Defensive. This would fit with the UFO weapon being a &amp;quot;plasma cannon&amp;quot; type of weapon. However it would be good to test this by engaging a UFO in each of the 3 modes. This would prove whether XCom attack mode influences UFO RoF. It would not prove whether the UFO has its own independent attack mode, and whether this might or might not influence RoF. Some clues might be found to this by hacking the weapon type of the UFO weapon to make it a &amp;quot;missile&amp;quot; - maybe.&lt;br /&gt;
&lt;br /&gt;
== UFO Damage Mechanics ==&lt;br /&gt;
&lt;br /&gt;
It is not known for sure how air combat damage for alien attacks is calculated. Provisionally, it is reasonable to assume that aliens inflict air combat damage in the same way, i.e. 50%-100% of their listed damage (found in the game executables), with an average of 75% of listed damage per hit. &lt;br /&gt;
&lt;br /&gt;
This should be verified however. &lt;br /&gt;
&lt;br /&gt;
Test strategy:&lt;br /&gt;
&lt;br /&gt;
#Identify a UFO that has the lowest possible rate of fire. &lt;br /&gt;
#Engage with an aircraft.&lt;br /&gt;
#Stay as close to the edge of the UFO&#039;s weapon rang as possible.  &lt;br /&gt;
#Watch the message window like a hawk&lt;br /&gt;
#After the first hit is sustained, break off and save game&lt;br /&gt;
#Check damage vs aircraft by inspection of save game files (or via a logger)&lt;br /&gt;
#Repeat as necessary to build up a statistically valid number of data points&lt;br /&gt;
#Verify that the average damage value is 0.75 of listed weapon strength - or not&lt;br /&gt;
&lt;br /&gt;
Update: UFO damage appears to be the same as XCom craft damage, 0.5-1.0 of base damage, per hit.&lt;br /&gt;
&lt;br /&gt;
== UFO Accuracy Mechanics ==&lt;br /&gt;
&lt;br /&gt;
Accuracy values for aliens are not known, other than that they do appear to miss at least some of the time. Some data suggests that alien UFO weapon accuracy might be a fixed value of 2/3 (66%). This is very preliminary information.&lt;br /&gt;
&lt;br /&gt;
Test Strategy:&lt;br /&gt;
&lt;br /&gt;
Once damage per hit is understood, and alien rate of fire is understood, alien weapon accuracy can be deduced from running the &amp;quot;survival time&amp;quot; tests (see above) and measuring the total damage. &lt;br /&gt;
&lt;br /&gt;
Update: From Seb76&#039;s investigations it seems to be the case that this 2/3 accuracy factor is not an accuracy factor, but the result of the 100%-200% variation in UFO rate of fire. This averages to 1.5 or a 2/3 reduction. It seems the actual accuracy of UFO weapons is 100%, i.e. they always hit.&lt;br /&gt;
&lt;br /&gt;
:Actually, if the code is to be believed, UFOs have a 40.59% chance of missing in a perfect world, but the random number generator isn&#039;t perfect, so it&#039;s probably skewed in some direction. It doesn&#039;t appear to be modified by anything, at all. Here&#039;s a snippet:&lt;br /&gt;
&amp;lt;pre&amp;gt;.text:004470B7 6A 64                         push    100&lt;br /&gt;
.text:004470D5 E8 76 67 FF FF                call    GetRandom_0_n&lt;br /&gt;
.text:004470DA 83 C4 04                      add     esp, 4&lt;br /&gt;
.text:004470DD 66 3D 28 00                   cmp     ax, 40&lt;br /&gt;
.text:004470E1 0F 86 C4 00 00 00             jbe     exit&amp;lt;/pre&amp;gt;&lt;br /&gt;
:This could be translated to C as &amp;quot; if(GetRandom_0_n(100) &amp;lt;= 40) { return; } &amp;quot;, for the most part. What this does is skip all of the damage and destruction code if that GetRandom_0_n call rolls 0 through 40, for 41 values, out of 101 total possibilities. I am fairly certain that I recall UFOs missing frequently, as well. --[[User:Xusilak|Xusilak]] 15:36, 11 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Probable UFO Attack Resolution Mechanics ==&lt;br /&gt;
&lt;br /&gt;
Evidence indicates UFO attacks are resolves in this way:&lt;br /&gt;
&lt;br /&gt;
480 game seconds divided by firing interval of 24 (from offset 0x10 for the Terror Ship) = 20 attacks&lt;br /&gt;
20 attacks  x RoF random 2/3 x 120 strength x 0.75 average random damage  = 1200&lt;br /&gt;
&lt;br /&gt;
It&#039;s difficult to reliably count the number of attacks made by a UFO, or even the number of hits, as they flash in and out of the Interception Window status display quickly and somewhat erratically. However, the figure of 20 attacks by the UFO during 20 Avalanche attacks made against it, does not seem unreasonable. If offset 0x10 is actually a fire interval value, this would make sense, as both the Terror Ship and the Avalanche (in Aggressive mode) would have a fire interval of 24 game seconds. &lt;br /&gt;
&lt;br /&gt;
As noted above, faced with multiple opponents, the damage rate of the UFO seems to increase. Maybe this literally is a fudge factor, inserted by the game programmers to prevent these mobbing tactics from being too effective. Or it could be a consequence of something similar to an Attack Mode, for UFOs. Or it might be just an artefact of the test scenario - for example, in the test the UFOs were not taking any damage, perhaps this enables them to be more aggressive.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27999</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27999"/>
		<updated>2010-04-09T01:40:49Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** Approximately 50% of the known X-COM function and variable names have been translated to TFTD.&lt;br /&gt;
**** About 75% of the known Geoscape is translated.&lt;br /&gt;
**** About 25% of the known Battlescape is translated.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27998</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27998"/>
		<updated>2010-04-09T01:40:28Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: Minor updates.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** Approximately 45% of the known X-COM function and variable names have been translated to TFTD.&lt;br /&gt;
**** About 75% of the known Geoscape is translated.&lt;br /&gt;
**** About 25% of the known Battlescape is translated.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Look into the weird alien spawning behavior on floor 2 of alien colonies. I&#039;m not sure what versions this applies to.&lt;br /&gt;
* Fix any remaining research bugs.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27984</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27984"/>
		<updated>2010-04-06T04:55:16Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Current Projects */ TFTD projects update.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
*** Approximately 45% of the known X-COM function and variable names have been translated to TFTD.&lt;br /&gt;
**** About 70% of the known Geoscape is translated.&lt;br /&gt;
**** About 20% of the known Battlescape is translated.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
*** Autosell has been translated.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27974</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27974"/>
		<updated>2010-04-03T15:24:37Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* TFTD Database */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;br /&gt;
:::Also, for clarity, I&#039;ll provide the source code for the TFTD patcher when I start releasing them. --[[User:Xusilak|Xusilak]] 17:38, 2 April 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Database ==&lt;br /&gt;
&lt;br /&gt;
Maybe you could publish the TFTD patch database on this site, as it evolves. Initially it will have a lot of gaps, but if you publish the gaps people will know what to look for. You will probably get volunteers who will hunt down the patches for the things that they are particularly interested in. The work will go faster with collaboration. [[User:Spike|Spike]] 05:19, 3 April 2010 (EDT)&lt;br /&gt;
:For now, I think it will go faster if I focus on it. I&#039;m already about 40% done naming the variables and functions that are already known from X-COM, thanks to Seb. Once I&#039;ve gotten that bit done (should be within a week or so) and gotten the patcher itself to a useful state, I&#039;ll go ahead and publish both the IDA database and the patcher source code here. --[[User:Xusilak|Xusilak]] 11:24, 3 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27968</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27968"/>
		<updated>2010-04-02T21:38:50Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;br /&gt;
:::Also, for clarity, I&#039;ll provide the source code for the TFTD patcher when I start releasing them. --[[User:Xusilak|Xusilak]] 17:38, 2 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27967</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27967"/>
		<updated>2010-04-02T21:33:51Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Potential Projects */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;br /&gt;
::I do not work on TFTD mainly for 2 reasons: first, I don&#039;t play it; second, redoing the same things all over again is not that much interesting to me. If you want to make it happen though, I&#039;ll gladly take the opportunity to make that available for everyone in the loader. Also if you need some help analysing some bits of asm don&#039;t hesitate to ask; I&#039;ll help if I can. Good luck and have fun! [[User:Seb76|Seb76]] 15:46, 2 April 2010 (EDT)&lt;br /&gt;
:::OK, that&#039;s fine. I don&#039;t know how much work I&#039;ll get done on TFTD, but I do want to get it to the point where all of the basic UI upgrades are done. Since you&#039;re not interested in working on it, I may just release it independently as a separate project on my own user page here, if you don&#039;t mind. That way it won&#039;t interfere with your other work. I will credit you as the main developer of it, of course, and continue to contribute original X-COM patches to UFOExtender as I develop them. --[[User:Xusilak|Xusilak]] 17:33, 2 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27964</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27964"/>
		<updated>2010-04-02T17:18:39Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Potential Projects */ Comments on difficulty patch idea, plus notes to Seb about the TFTD patcher&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
== I&#039;m smiling for a reason. ==&lt;br /&gt;
&lt;br /&gt;
TSIA ;) - [[User:Amphibious Tentaculat|Amphibious Tentaculat]] 18:45, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Potential Projects ==&lt;br /&gt;
&lt;br /&gt;
Good set of potential projects, I like! [[User:Spike|Spike]] 19:28, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Especially looking forward to the TFTD patches! By the way, xcomutil already allows you to set the difficulty value to any number you wish. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 08:40, 2 April 2010 (EDT)&lt;br /&gt;
:Interesting; I didn&#039;t know that. However, my experiments with high difficulty levels showed that exceeding the defaults will break certain aspects of the game, like spawning arbitrary numbers of aliens in missions. My primary goal there is to make those difficulty levels fully functional, with expected results for spawn numbers, capping overflows, and so on. My secondary goal is to make it easier to use those difficulty levels by adding the Advanced Difficulty configuration to the main difficulty screen. Thanks for the tip, though.&lt;br /&gt;
:As for TFTD, I have a few usable patches implemented already, but I think I&#039;ll leave it up to Seb to compile and release it with his current patcher, if he wants to. Seb, if you happen to see this, let me know how you feel about the TFTD patches I&#039;m working on. I&#039;d prefer if you compile and release it alongside the X-COM patcher, to ensure compatibility, as I use VS2010 RC for developing right now. Either way, it&#039;ll be a while before that happens, as I&#039;m working on testing and adding more functionality. Thanks! --[[User:Xusilak|Xusilak]] 13:18, 2 April 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27961</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27961"/>
		<updated>2010-04-01T04:32:22Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Current Projects */ TFTD projects update.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Working on TFTD.&lt;br /&gt;
** Adding to my TFTD IDA database.&lt;br /&gt;
** Translating patches from Seb&#039;s X-COM patcher to TFTD. Current progress:&lt;br /&gt;
*** D3D, D3D Windowed, Scale Mouse, Force Language are all implemented and functional. Plus, they haven&#039;t crashed yet.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27960</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27960"/>
		<updated>2010-03-30T18:46:08Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: Added a new crash, updated potentially resolved bugs, updated current projects to TFTD work.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Creating an IDA database for TFTD.&lt;br /&gt;
** Eventually translating some patches over to it.&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
** Probably resolved, unless there&#039;s more than one cause.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
** Probably resolved.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
** Maybe related to the previous crash, but maybe not.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
* Extremely rare &amp;quot;just transitioned from battlescape to geoscape and passed a few seconds&amp;quot; crash. Skyranger was lost; maybe that has something to do with it?&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27946</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27946"/>
		<updated>2010-03-27T00:37:02Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Save Equipment=1 is part (at least) of the problem. If I turn that off, and leave all my other .ini settings as is, I no longer get the Battlescape crash. Seb, did you make some changes there? Maybe after the investigations we were doing with BladeFireLight? [[User:Spike|Spike]] 21:13, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have isolated the problem (on my end) to the fact that the SOLDIER.DAT data in memory is deallocated when the transition to the Battlescape starts. When Seb&#039;s Save Equipment code attempts to use it, it&#039;s getting random unallocated (or unrelated) memory instead of the SOLDIER.DAT data. Interestingly, the dynamic memory used to hold the SOLDIER.DAT data is deallocated on the transition to the Battlescape, and reallocated to a new memory address on the transition out of the Battlescape. I assume this is an artifact of the way the Collector&#039;s Edition merged TACTICAL.EXE with GEOSCAPE.EXE, because TACTICAL.EXE had no need of SOLDIER.DAT, and only used UNITREF.DAT and similar. At any rate, this problem can be resolved by not relying on **(0x49B954) (or **pSoldierDat) to contain the correct data. Instead, a workaround to get the needed data should be used. One option would be to patch the way the transition works to prevent the deallocation from happening, and then ensuring on exiting the Battlescape that the old memory block is still used. I may be able to work in that fix myself. If so, it would require no changes to the Save Equipment code.&lt;br /&gt;
I&#039;m not sure if this is a general issue or local to me only. I&#039;ll try to test on my XP system and see if it suffers from the same problem; if it does, it&#039;s a safe bet this is a general issue, and the likely cause of your crashes. --[[User:Xusilak|Xusilak]] 00:06, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Save Equipment did used to work for me before. Maybe it&#039;s because I also selected Reorder Soldiers In Craft. Does that sort and rewrite SOLDIER.DAT? [[User:Spike|Spike]] 03:39, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have confirmed this behavior in the original X-COM Collector&#039;s Edition UFO Defense.exe copy, running on my XP system. As such, it &#039;&#039;cannot&#039;&#039; be a result of any patches Seb has made (because it still happens even when not using Seb&#039;s loader). I&#039;m not sure if it will crash without Seb&#039;s patches still, but the way Seb uses the *pSoldierDat pointer in GetSoldierUUID() appears to be unsafe, as *pSoldierDat has already been deallocated at that point. On some systems, it may work, because the nature of memory on the heap is such that different systems give different results when dealing with deallocated memory and bad pointers. Regardless, the crashes can be at least partially (maybe entirely) resolved by using a workaround that avoids the deallocation of *pSoldierDat when the battlescape transition starts. I&#039;m going to see if I can implement the fix I suggested, that prevents the memory from ever being deallocated. That should completely resolve it. At the least, I am going to study the assembly responsible for deallocating it to see if I can confirm the exact issue on the code level. --[[User:Xusilak|Xusilak]] 13:26, 26 March 2010 (EDT)&lt;br /&gt;
:It seems that when GotoGeographMode() returns to move into GotoTacticalMode(), it calls FreeEverything() in the process, deallocating all data structures. Then, GotoTacticalMode() never bothers to reinitialize *pSoldierDat, so when the equipment phase comes up, it&#039;s still unallocated. Still working on a fix. --[[User:Xusilak|Xusilak]] 14:29, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Surely at some point the (unmodified) game needs to at least read the *pSoldierDat structure, in order to populate the [[UNITREF.DAT]] and [[UNITPOS.DAT]] structures for Battlescape? Unless it reads SOLDIER.DAT but doesn&#039;t bother storing it, not even temporarily, in *pSoldierDat.[[User:Spike|Spike]] 15:27, 26 March 2010 (EDT)&lt;br /&gt;
:::Nice piece of analyse there :-). I&#039;ll modify the patch to load the soldier data when needed and clean up afterward. [[User:Seb76|Seb76]] 15:30, 26 March 2010 (EDT)&lt;br /&gt;
:::Edit: I uploaded a test version. Can you check if it fixes your crash? [[User:Seb76|Seb76]] 15:47, 26 March 2010 (EDT)&lt;br /&gt;
::::Looking good so far; Save Equipment works for me now, and it never has in the past. I&#039;ll run through a bunch of missions quickly and see if I get any crashes. Thanks Seb! --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
:::No, thank you for figuring out the cause of the crash. [[User:Seb76|Seb76]] 17:21, 26 March 2010 (EDT)&lt;br /&gt;
:::::Just ran through several dozen (very quick, mostly aborted) missions all the way up to June. I never crashed, and Save Equipment always worked correctly. I think we&#039;re good to go. Hopefully it works for Spike as well. --[[User:Xusilak|Xusilak]] 18:00, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve also been narrowing in on another crash, unrelated to the patcher, I believe. It happens rarely upon clicking the air to move somewhere, like stepping out of the Skyranger by clicking the air one tile in front of the soldier, to move onto the ramp. It appears to be the result of a bad calculation on the tile to check in MoveUnitTo(). The calculation is looking at (char *)pMap + 4 * (xpos + (currentUnit_zpos + esi) * map_numTilesPerLevel + dword_4A28AC * tac_mapYSize); // when esi is 2 or greater; this esi factor shouldn&#039;t be there, as far as I can tell, because it results in the offset used being much greater than it should be and frequently going out of bounds of the MAP.DAT data stored at *pMap. Continuing my research into this when I get a chance. --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
:I noticed that crash also (I think it&#039;s the number one crash cause on a genuine XCOM setup) but was never able to reproduce enough to investigate it. I was tempted at one point to patch the GetTileAt function to check its arguments, but finding the cause of the corrupted value would be better. [[User:Seb76|Seb76]] 17:21, 26 March 2010 (EDT)&lt;br /&gt;
::Yes, it&#039;s definitely a hard crash to catch, because of how rare it is. I&#039;ve got a few ideas, though. We&#039;ll see if they help. --[[User:Xusilak|Xusilak]] 18:00, 26 March 2010 (EDT)&lt;br /&gt;
:::Currently, my guess is that this line:&lt;br /&gt;
:::&amp;lt;pre&amp;gt;.text:00420534 BE 01 00 00 00                mov     esi, 1&amp;lt;/pre&amp;gt;&lt;br /&gt;
:::should be &amp;quot;mov   esi, 0&amp;quot; instead.&lt;br /&gt;
:::To sum up the issue:&lt;br /&gt;
:::The way the &#039;click on air to move to a tile below unit&#039; part of MoveUnitTo() works is that it examines each level below the unit until it finds a floor to move to. It does this by looping through the level below you, incrementing esi to loop through the next level below that, and so on. To do this correctly, esi should start at 1. However, the X-COM programmers appear to have made an oversight: they initialized esi to 1, but then incremented esi again before the initial value actually gets used. The net result of this, is that we get zpos += 2 for the very first cycle. This works OK on floors 3 and 4, but for floor 2, it will attempt to access a z level that doesn&#039;t exist (one below the ground), causing this line: &amp;lt;pre&amp;gt;(char *)pMap + 4 * (xpos + (currentUnit_zpos + esi) * map_numTilesPerLevel + dword_4A28AC * tac_mapYSize);&amp;lt;/pre&amp;gt; to exceed the bounds of the *pMap memory block. Obviously, running off the end of that block will cause unpredictable results, and if it reaches into a block that isn&#039;t allocated, it will crash. That&#039;s why the actual crash is very rare: it has to overrun into an unallocated memory block.&lt;br /&gt;
:::Of course, I could be completely wrong, but it makes sense, and patching &#039;mov esi, 1&#039; to &#039;mov esi, 0&#039; doesn&#039;t seem to cause any problems. I&#039;m going to be testing with that patch enabled from now on, to see if I crash in that circumstance anymore.&lt;br /&gt;
:::By the way, Seb, the 1.21 source code doesn&#039;t include autosell.cpp; I assume it&#039;s a simple oversight. I reconstructed it to get it compiling properly. Just wanted to make sure you knew. --[[User:Xusilak|Xusilak]] 20:37, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27941</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27941"/>
		<updated>2010-03-26T22:00:35Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Save Equipment=1 is part (at least) of the problem. If I turn that off, and leave all my other .ini settings as is, I no longer get the Battlescape crash. Seb, did you make some changes there? Maybe after the investigations we were doing with BladeFireLight? [[User:Spike|Spike]] 21:13, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have isolated the problem (on my end) to the fact that the SOLDIER.DAT data in memory is deallocated when the transition to the Battlescape starts. When Seb&#039;s Save Equipment code attempts to use it, it&#039;s getting random unallocated (or unrelated) memory instead of the SOLDIER.DAT data. Interestingly, the dynamic memory used to hold the SOLDIER.DAT data is deallocated on the transition to the Battlescape, and reallocated to a new memory address on the transition out of the Battlescape. I assume this is an artifact of the way the Collector&#039;s Edition merged TACTICAL.EXE with GEOSCAPE.EXE, because TACTICAL.EXE had no need of SOLDIER.DAT, and only used UNITREF.DAT and similar. At any rate, this problem can be resolved by not relying on **(0x49B954) (or **pSoldierDat) to contain the correct data. Instead, a workaround to get the needed data should be used. One option would be to patch the way the transition works to prevent the deallocation from happening, and then ensuring on exiting the Battlescape that the old memory block is still used. I may be able to work in that fix myself. If so, it would require no changes to the Save Equipment code.&lt;br /&gt;
I&#039;m not sure if this is a general issue or local to me only. I&#039;ll try to test on my XP system and see if it suffers from the same problem; if it does, it&#039;s a safe bet this is a general issue, and the likely cause of your crashes. --[[User:Xusilak|Xusilak]] 00:06, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Save Equipment did used to work for me before. Maybe it&#039;s because I also selected Reorder Soldiers In Craft. Does that sort and rewrite SOLDIER.DAT? [[User:Spike|Spike]] 03:39, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have confirmed this behavior in the original X-COM Collector&#039;s Edition UFO Defense.exe copy, running on my XP system. As such, it &#039;&#039;cannot&#039;&#039; be a result of any patches Seb has made (because it still happens even when not using Seb&#039;s loader). I&#039;m not sure if it will crash without Seb&#039;s patches still, but the way Seb uses the *pSoldierDat pointer in GetSoldierUUID() appears to be unsafe, as *pSoldierDat has already been deallocated at that point. On some systems, it may work, because the nature of memory on the heap is such that different systems give different results when dealing with deallocated memory and bad pointers. Regardless, the crashes can be at least partially (maybe entirely) resolved by using a workaround that avoids the deallocation of *pSoldierDat when the battlescape transition starts. I&#039;m going to see if I can implement the fix I suggested, that prevents the memory from ever being deallocated. That should completely resolve it. At the least, I am going to study the assembly responsible for deallocating it to see if I can confirm the exact issue on the code level. --[[User:Xusilak|Xusilak]] 13:26, 26 March 2010 (EDT)&lt;br /&gt;
:It seems that when GotoGeographMode() returns to move into GotoTacticalMode(), it calls FreeEverything() in the process, deallocating all data structures. Then, GotoTacticalMode() never bothers to reinitialize *pSoldierDat, so when the equipment phase comes up, it&#039;s still unallocated. Still working on a fix. --[[User:Xusilak|Xusilak]] 14:29, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Surely at some point the (unmodified) game needs to at least read the *pSoldierDat structure, in order to populate the [[UNITREF.DAT]] and [[UNITPOS.DAT]] structures for Battlescape? Unless it reads SOLDIER.DAT but doesn&#039;t bother storing it, not even temporarily, in *pSoldierDat.[[User:Spike|Spike]] 15:27, 26 March 2010 (EDT)&lt;br /&gt;
:::Nice piece of analyse there :-). I&#039;ll modify the patch to load the soldier data when needed and clean up afterward. [[User:Seb76|Seb76]] 15:30, 26 March 2010 (EDT)&lt;br /&gt;
:::Edit: I uploaded a test version. Can you check if it fixes your crash? [[User:Seb76|Seb76]] 15:47, 26 March 2010 (EDT)&lt;br /&gt;
::::Looking good so far; Save Equipment works for me now, and it never has in the past. I&#039;ll run through a bunch of missions quickly and see if I get any crashes. Thanks Seb! --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
:::No, thank you for figuring out the cause of the crash. [[User:Seb76|Seb76]] 17:21, 26 March 2010 (EDT)&lt;br /&gt;
:::::Just ran through several dozen (very quick, mostly aborted) missions all the way up to June. I never crashed, and Save Equipment always worked correctly. I think we&#039;re good to go. Hopefully it works for Spike as well. --[[User:Xusilak|Xusilak]] 18:00, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve also been narrowing in on another crash, unrelated to the patcher, I believe. It happens rarely upon clicking the air to move somewhere, like stepping out of the Skyranger by clicking the air one tile in front of the soldier, to move onto the ramp. It appears to be the result of a bad calculation on the tile to check in MoveUnitTo(). The calculation is looking at (char *)pMap + 4 * (xpos + (currentUnit_zpos + esi) * map_numTilesPerLevel + dword_4A28AC * tac_mapYSize); // when esi is 2 or greater; this esi factor shouldn&#039;t be there, as far as I can tell, because it results in the offset used being much greater than it should be and frequently going out of bounds of the MAP.DAT data stored at *pMap. Continuing my research into this when I get a chance. --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
:I noticed that crash also (I think it&#039;s the number one crash cause on a genuine XCOM setup) but was never able to reproduce enough to investigate it. I was tempted at one point to patch the GetTileAt function to check its arguments, but finding the cause of the corrupted value would be better. [[User:Seb76|Seb76]] 17:21, 26 March 2010 (EDT)&lt;br /&gt;
::Yes, it&#039;s definitely a hard crash to catch, because of how rare it is. I&#039;ve got a few ideas, though. We&#039;ll see if they help. --[[User:Xusilak|Xusilak]] 18:00, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27939</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27939"/>
		<updated>2010-03-26T21:04:30Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */ Confirmation of test version functionality, and new crash bug information.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Save Equipment=1 is part (at least) of the problem. If I turn that off, and leave all my other .ini settings as is, I no longer get the Battlescape crash. Seb, did you make some changes there? Maybe after the investigations we were doing with BladeFireLight? [[User:Spike|Spike]] 21:13, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have isolated the problem (on my end) to the fact that the SOLDIER.DAT data in memory is deallocated when the transition to the Battlescape starts. When Seb&#039;s Save Equipment code attempts to use it, it&#039;s getting random unallocated (or unrelated) memory instead of the SOLDIER.DAT data. Interestingly, the dynamic memory used to hold the SOLDIER.DAT data is deallocated on the transition to the Battlescape, and reallocated to a new memory address on the transition out of the Battlescape. I assume this is an artifact of the way the Collector&#039;s Edition merged TACTICAL.EXE with GEOSCAPE.EXE, because TACTICAL.EXE had no need of SOLDIER.DAT, and only used UNITREF.DAT and similar. At any rate, this problem can be resolved by not relying on **(0x49B954) (or **pSoldierDat) to contain the correct data. Instead, a workaround to get the needed data should be used. One option would be to patch the way the transition works to prevent the deallocation from happening, and then ensuring on exiting the Battlescape that the old memory block is still used. I may be able to work in that fix myself. If so, it would require no changes to the Save Equipment code.&lt;br /&gt;
I&#039;m not sure if this is a general issue or local to me only. I&#039;ll try to test on my XP system and see if it suffers from the same problem; if it does, it&#039;s a safe bet this is a general issue, and the likely cause of your crashes. --[[User:Xusilak|Xusilak]] 00:06, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Save Equipment did used to work for me before. Maybe it&#039;s because I also selected Reorder Soldiers In Craft. Does that sort and rewrite SOLDIER.DAT? [[User:Spike|Spike]] 03:39, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have confirmed this behavior in the original X-COM Collector&#039;s Edition UFO Defense.exe copy, running on my XP system. As such, it &#039;&#039;cannot&#039;&#039; be a result of any patches Seb has made (because it still happens even when not using Seb&#039;s loader). I&#039;m not sure if it will crash without Seb&#039;s patches still, but the way Seb uses the *pSoldierDat pointer in GetSoldierUUID() appears to be unsafe, as *pSoldierDat has already been deallocated at that point. On some systems, it may work, because the nature of memory on the heap is such that different systems give different results when dealing with deallocated memory and bad pointers. Regardless, the crashes can be at least partially (maybe entirely) resolved by using a workaround that avoids the deallocation of *pSoldierDat when the battlescape transition starts. I&#039;m going to see if I can implement the fix I suggested, that prevents the memory from ever being deallocated. That should completely resolve it. At the least, I am going to study the assembly responsible for deallocating it to see if I can confirm the exact issue on the code level. --[[User:Xusilak|Xusilak]] 13:26, 26 March 2010 (EDT)&lt;br /&gt;
:It seems that when GotoGeographMode() returns to move into GotoTacticalMode(), it calls FreeEverything() in the process, deallocating all data structures. Then, GotoTacticalMode() never bothers to reinitialize *pSoldierDat, so when the equipment phase comes up, it&#039;s still unallocated. Still working on a fix. --[[User:Xusilak|Xusilak]] 14:29, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Surely at some point the (unmodified) game needs to at least read the *pSoldierDat structure, in order to populate the [[UNITREF.DAT]] and [[UNITPOS.DAT]] structures for Battlescape? Unless it reads SOLDIER.DAT but doesn&#039;t bother storing it, not even temporarily, in *pSoldierDat.[[User:Spike|Spike]] 15:27, 26 March 2010 (EDT)&lt;br /&gt;
:::Nice piece of analyse there :-). I&#039;ll modify the patch to load the soldier data when needed and clean up afterward. [[User:Seb76|Seb76]] 15:30, 26 March 2010 (EDT)&lt;br /&gt;
:::Edit: I uploaded a test version. Can you check if it fix your crash? [[User:Seb76|Seb76]] 15:47, 26 March 2010 (EDT)&lt;br /&gt;
::::Looking good so far; Save Equipment works for me now, and it never has in the past. I&#039;ll run through a bunch of missions quickly and see if I get any crashes. Thanks Seb! --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve also been narrowing in on another crash, unrelated to the patcher, I believe. It happens rarely upon clicking the air to move somewhere, like stepping out of the Skyranger by clicking the air one tile in front of the soldier, to move onto the ramp. It appears to be the result of a bad calculation on the tile to check in MoveUnitTo(). The calculation is looking at (char *)pMap + 4 * (xpos + (currentUnit_zpos + esi) * map_numTilesPerLevel + dword_4A28AC * tac_mapYSize); // when esi is 2 or greater; this esi factor shouldn&#039;t be there, as far as I can tell, because it results in the offset used being much greater than it should be and frequently going out of bounds of the MAP.DAT data stored at *pMap. Continuing my research into this when I get a chance. --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27938</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27938"/>
		<updated>2010-03-26T21:01:21Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Save Equipment=1 is part (at least) of the problem. If I turn that off, and leave all my other .ini settings as is, I no longer get the Battlescape crash. Seb, did you make some changes there? Maybe after the investigations we were doing with BladeFireLight? [[User:Spike|Spike]] 21:13, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have isolated the problem (on my end) to the fact that the SOLDIER.DAT data in memory is deallocated when the transition to the Battlescape starts. When Seb&#039;s Save Equipment code attempts to use it, it&#039;s getting random unallocated (or unrelated) memory instead of the SOLDIER.DAT data. Interestingly, the dynamic memory used to hold the SOLDIER.DAT data is deallocated on the transition to the Battlescape, and reallocated to a new memory address on the transition out of the Battlescape. I assume this is an artifact of the way the Collector&#039;s Edition merged TACTICAL.EXE with GEOSCAPE.EXE, because TACTICAL.EXE had no need of SOLDIER.DAT, and only used UNITREF.DAT and similar. At any rate, this problem can be resolved by not relying on **(0x49B954) (or **pSoldierDat) to contain the correct data. Instead, a workaround to get the needed data should be used. One option would be to patch the way the transition works to prevent the deallocation from happening, and then ensuring on exiting the Battlescape that the old memory block is still used. I may be able to work in that fix myself. If so, it would require no changes to the Save Equipment code.&lt;br /&gt;
I&#039;m not sure if this is a general issue or local to me only. I&#039;ll try to test on my XP system and see if it suffers from the same problem; if it does, it&#039;s a safe bet this is a general issue, and the likely cause of your crashes. --[[User:Xusilak|Xusilak]] 00:06, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Save Equipment did used to work for me before. Maybe it&#039;s because I also selected Reorder Soldiers In Craft. Does that sort and rewrite SOLDIER.DAT? [[User:Spike|Spike]] 03:39, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have confirmed this behavior in the original X-COM Collector&#039;s Edition UFO Defense.exe copy, running on my XP system. As such, it &#039;&#039;cannot&#039;&#039; be a result of any patches Seb has made (because it still happens even when not using Seb&#039;s loader). I&#039;m not sure if it will crash without Seb&#039;s patches still, but the way Seb uses the *pSoldierDat pointer in GetSoldierUUID() appears to be unsafe, as *pSoldierDat has already been deallocated at that point. On some systems, it may work, because the nature of memory on the heap is such that different systems give different results when dealing with deallocated memory and bad pointers. Regardless, the crashes can be at least partially (maybe entirely) resolved by using a workaround that avoids the deallocation of *pSoldierDat when the battlescape transition starts. I&#039;m going to see if I can implement the fix I suggested, that prevents the memory from ever being deallocated. That should completely resolve it. At the least, I am going to study the assembly responsible for deallocating it to see if I can confirm the exact issue on the code level. --[[User:Xusilak|Xusilak]] 13:26, 26 March 2010 (EDT)&lt;br /&gt;
:It seems that when GotoGeographMode() returns to move into GotoTacticalMode(), it calls FreeEverything() in the process, deallocating all data structures. Then, GotoTacticalMode() never bothers to reinitialize *pSoldierDat, so when the equipment phase comes up, it&#039;s still unallocated. Still working on a fix. --[[User:Xusilak|Xusilak]] 14:29, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Surely at some point the (unmodified) game needs to at least read the *pSoldierDat structure, in order to populate the [[UNITREF.DAT]] and [[UNITPOS.DAT]] structures for Battlescape? Unless it reads SOLDIER.DAT but doesn&#039;t bother storing it, not even temporarily, in *pSoldierDat.[[User:Spike|Spike]] 15:27, 26 March 2010 (EDT)&lt;br /&gt;
:::Nice piece of analyse there :-). I&#039;ll modify the patch to load the soldier data when needed and clean up afterward. [[User:Seb76|Seb76]] 15:30, 26 March 2010 (EDT)&lt;br /&gt;
:::Edit: I uploaded a test version. Can you check if it fix your crash? [[User:Seb76|Seb76]] 15:47, 26 March 2010 (EDT)&lt;br /&gt;
::::Looking good so far; Save Equipment works for me now, and it never has in the past. I&#039;ll run through a bunch of missions quickly and see if I get any crashes. Thanks Seb! --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve also been narrowing in on another crash, unrelated to the patcher, I believe. It happens rarely upon clicking the air to move somewhere, like stepping out of the Skyranger by clicking the air one tile in front of the soldier, to move onto the ramp. It appears to be the result of a bad calculation on the tile to check in MoveUnitTo(). The calculation is looking at (char *)pMap + 4 * (xpos + (zpos + esi) * map_numTilesPerLevel + ypos * tac_mapYSize); // when esi is 2 or greater; this esi factor shouldn&#039;t be there, as far as I can tell, because it results in the offset used being much greater than it should be and frequently going out of bounds of the MAP.DAT data stored at *pMap. Continuing my research into this when I get a chance. --[[User:Xusilak|Xusilak]] 17:01, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27933</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27933"/>
		<updated>2010-03-26T18:29:51Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Save Equipment=1 is part (at least) of the problem. If I turn that off, and leave all my other .ini settings as is, I no longer get the Battlescape crash. Seb, did you make some changes there? Maybe after the investigations we were doing with BladeFireLight? [[User:Spike|Spike]] 21:13, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have isolated the problem (on my end) to the fact that the SOLDIER.DAT data in memory is deallocated when the transition to the Battlescape starts. When Seb&#039;s Save Equipment code attempts to use it, it&#039;s getting random unallocated (or unrelated) memory instead of the SOLDIER.DAT data. Interestingly, the dynamic memory used to hold the SOLDIER.DAT data is deallocated on the transition to the Battlescape, and reallocated to a new memory address on the transition out of the Battlescape. I assume this is an artifact of the way the Collector&#039;s Edition merged TACTICAL.EXE with GEOSCAPE.EXE, because TACTICAL.EXE had no need of SOLDIER.DAT, and only used UNITREF.DAT and similar. At any rate, this problem can be resolved by not relying on **(0x49B954) (or **pSoldierDat) to contain the correct data. Instead, a workaround to get the needed data should be used. One option would be to patch the way the transition works to prevent the deallocation from happening, and then ensuring on exiting the Battlescape that the old memory block is still used. I may be able to work in that fix myself. If so, it would require no changes to the Save Equipment code.&lt;br /&gt;
I&#039;m not sure if this is a general issue or local to me only. I&#039;ll try to test on my XP system and see if it suffers from the same problem; if it does, it&#039;s a safe bet this is a general issue, and the likely cause of your crashes. --[[User:Xusilak|Xusilak]] 00:06, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Save Equipment did used to work for me before. Maybe it&#039;s because I also selected Reorder Soldiers In Craft. Does that sort and rewrite SOLDIER.DAT? [[User:Spike|Spike]] 03:39, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have confirmed this behavior in the original X-COM Collector&#039;s Edition UFO Defense.exe copy, running on my XP system. As such, it &#039;&#039;cannot&#039;&#039; be a result of any patches Seb has made (because it still happens even when not using Seb&#039;s loader). I&#039;m not sure if it will crash without Seb&#039;s patches still, but the way Seb uses the *pSoldierDat pointer in GetSoldierUUID() appears to be unsafe, as *pSoldierDat has already been deallocated at that point. On some systems, it may work, because the nature of memory on the heap is such that different systems give different results when dealing with deallocated memory and bad pointers. Regardless, the crashes can be at least partially (maybe entirely) resolved by using a workaround that avoids the deallocation of *pSoldierDat when the battlescape transition starts. I&#039;m going to see if I can implement the fix I suggested, that prevents the memory from ever being deallocated. That should completely resolve it. At the least, I am going to study the assembly responsible for deallocating it to see if I can confirm the exact issue on the code level. --[[User:Xusilak|Xusilak]] 13:26, 26 March 2010 (EDT)&lt;br /&gt;
:It seems that when GotoGeographMode() returns to move into GotoTacticalMode(), it calls FreeEverything() in the process, deallocating all data structures. Then, GotoTacticalMode() never bothers to reinitialize *pSoldierDat, so when the equipment phase comes up, it&#039;s still unallocated. Still working on a fix. --[[User:Xusilak|Xusilak]] 14:29, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27932</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27932"/>
		<updated>2010-03-26T17:26:34Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Save Equipment=1 is part (at least) of the problem. If I turn that off, and leave all my other .ini settings as is, I no longer get the Battlescape crash. Seb, did you make some changes there? Maybe after the investigations we were doing with BladeFireLight? [[User:Spike|Spike]] 21:13, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have isolated the problem (on my end) to the fact that the SOLDIER.DAT data in memory is deallocated when the transition to the Battlescape starts. When Seb&#039;s Save Equipment code attempts to use it, it&#039;s getting random unallocated (or unrelated) memory instead of the SOLDIER.DAT data. Interestingly, the dynamic memory used to hold the SOLDIER.DAT data is deallocated on the transition to the Battlescape, and reallocated to a new memory address on the transition out of the Battlescape. I assume this is an artifact of the way the Collector&#039;s Edition merged TACTICAL.EXE with GEOSCAPE.EXE, because TACTICAL.EXE had no need of SOLDIER.DAT, and only used UNITREF.DAT and similar. At any rate, this problem can be resolved by not relying on **(0x49B954) (or **pSoldierDat) to contain the correct data. Instead, a workaround to get the needed data should be used. One option would be to patch the way the transition works to prevent the deallocation from happening, and then ensuring on exiting the Battlescape that the old memory block is still used. I may be able to work in that fix myself. If so, it would require no changes to the Save Equipment code.&lt;br /&gt;
I&#039;m not sure if this is a general issue or local to me only. I&#039;ll try to test on my XP system and see if it suffers from the same problem; if it does, it&#039;s a safe bet this is a general issue, and the likely cause of your crashes. --[[User:Xusilak|Xusilak]] 00:06, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
Save Equipment did used to work for me before. Maybe it&#039;s because I also selected Reorder Soldiers In Craft. Does that sort and rewrite SOLDIER.DAT? [[User:Spike|Spike]] 03:39, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have confirmed this behavior in the original X-COM Collector&#039;s Edition UFO Defense.exe copy, running on my XP system. As such, it &#039;&#039;cannot&#039;&#039; be a result of any patches Seb has made (because it still happens even when not using Seb&#039;s loader). I&#039;m not sure if it will crash without Seb&#039;s patches still, but the way Seb uses the *pSoldierDat pointer in GetSoldierUUID() appears to be unsafe, as *pSoldierDat has already been deallocated at that point. On some systems, it may work, because the nature of memory on the heap is such that different systems give different results when dealing with deallocated memory and bad pointers. Regardless, the crashes can be at least partially (maybe entirely) resolved by using a workaround that avoids the deallocation of *pSoldierDat when the battlescape transition starts. I&#039;m going to see if I can implement the fix I suggested, that prevents the memory from ever being deallocated. That should completely resolve it. At the least, I am going to study the assembly responsible for deallocating it to see if I can confirm the exact issue on the code level. --[[User:Xusilak|Xusilak]] 13:26, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27930</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27930"/>
		<updated>2010-03-26T04:06:47Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */ Isolated geoscape-&amp;gt;battlescape transition crash cause for me.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Save Equipment=1 is part (at least) of the problem. If I turn that off, and leave all my other .ini settings as is, I no longer get the Battlescape crash. Seb, did you make some changes there? Maybe after the investigations we were doing with BladeFireLight? [[User:Spike|Spike]] 21:13, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I have isolated the problem (on my end) to the fact that the SOLDIER.DAT data in memory is deallocated when the transition to the Battlescape starts. When Seb&#039;s Save Equipment code attempts to use it, it&#039;s getting random unallocated (or unrelated) memory instead of the SOLDIER.DAT data. Interestingly, the dynamic memory used to hold the SOLDIER.DAT data is deallocated on the transition to the Battlescape, and reallocated to a new memory address on the transition out of the Battlescape. I assume this is an artifact of the way the Collector&#039;s Edition merged TACTICAL.EXE with GEOSCAPE.EXE, because TACTICAL.EXE had no need of SOLDIER.DAT, and only used UNITREF.DAT and similar. At any rate, this problem can be resolved by not relying on **(0x49B954) (or **pSoldierDat) to contain the correct data. Instead, a workaround to get the needed data should be used. One option would be to patch the way the transition works to prevent the deallocation from happening, and then ensuring on exiting the Battlescape that the old memory block is still used. I may be able to work in that fix myself. If so, it would require no changes to the Save Equipment code.&lt;br /&gt;
I&#039;m not sure if this is a general issue or local to me only. I&#039;ll try to test on my XP system and see if it suffers from the same problem; if it does, it&#039;s a safe bet this is a general issue, and the likely cause of your crashes. --[[User:Xusilak|Xusilak]] 00:06, 26 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27928</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27928"/>
		<updated>2010-03-26T00:48:29Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
::Just tested with your ini, although with D3D and D3D window enabled. Started a mission, didn&#039;t crash. I also noticed one thing: you have General Stores capacity set to 1. I don&#039;t think that&#039;s helping anything, but it&#039;s probably not causing the crash, either. Experimenting more. --[[User:Xusilak|Xusilak]] 20:48, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27927</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27927"/>
		<updated>2010-03-26T00:39:08Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file. &lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve repeated this multiple times now, with a clean install of XCOM and a clean install of UFOExtender 1.21. The game crashes everytime, after the &amp;quot;mission screen&amp;quot; that comes up just before the Equip Phase of Battlescape for the first mission. It&#039;s regardless of my equipment loadout or number of soldiers/tanks: it happens with totally default equipment and Skyranger load. So I imagine it must be due to some combination of the UFOExtender.ini file options I selected, and maybe code changes in 1.21. My .ini file is the upload at the top of this section. The error is always &amp;quot;error 0xC0000005 trying to access 0x0968DF43&amp;quot;, though the crash location (in the code) varies. [[User:Spike|Spike]] 20:31, 25 March 2010 (EDT)&lt;br /&gt;
:If you have time, could you try to 1) confirm it&#039;s specific to 1.21 2) try to correlate it to ini options? Turn everything but the basics off and see what happens... if that works, turn on Save Equipment and try again, etc. I haven&#039;t seen any behavior like that in my local tests, on either of my computers (Win7-64 and XP-32). I&#039;ll try it with your ini, though. Maybe I can find something. --[[User:Xusilak|Xusilak]] 20:39, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27925</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27925"/>
		<updated>2010-03-25T17:16:58Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Potential Projects */ Significant update: Multiplayer, Deconstruct Items, Random Number Generator, Advanced Difficulty, Unit Limit, All Tanks Base Defense, etc.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Still thinking!&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
* (Will break old saves) Increase the unit limit in battles to at least 256.&lt;br /&gt;
* Advanced Difficulty: Allows you to manually set the skill number (which is used as a modifier for many things). This would let you use much higher difficulties than Superhuman.&lt;br /&gt;
** This will require capping various things and (potentially) using formulae instead of tables for other things.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 34% detection each, and allow it to stack.&lt;br /&gt;
* Deconstruct Items: Allow players to deconstruct any researched item and receive a portion of the special materials used to make it (e.g. receive 1-2 elerium for deconstructing a heavy plasma magazine).&lt;br /&gt;
* Replace the random number generator with a mersenne twister-based system.&lt;br /&gt;
** Toss in a patch that allows one to configure how random various aspects of X-COM are (e.g. change weapon damage range from 0-200% to 75-125%).&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
* (Very distant future) Multiplayer!&lt;br /&gt;
** Currently, Alien Pets already allows for an improved form of multiplayer over the normal system of using XCOMutil swapping. It should be possible to write some net code on top of it that transfers the appropriate gamestate information to the other player, forcing one player to wait during &#039;next turn&#039;, and so on. There are various levels of implementation for this, like showing enemy movement during the &amp;quot;Hidden Movement&amp;quot; phase properly; it would be far easier to simply transfer the gamestate after the turn is done, rather than updating it in real time, but it is not impossible.&lt;br /&gt;
*** Essentially, the easiest (?) implementation of this takes a &#039;save state&#039; of the game as the turn finishes, transfers it to the other player, replaces that player&#039;s gamestate with the new &#039;save state&#039;, and runs from there. It is basically automated XCOMutil swapping, with greatly improved functionality since Alien Pets works much better (e.g. grenades work).&lt;br /&gt;
*** Next would be tracking visibility properly; the players shouldn&#039;t share visibility with each other, but in the raw save state system, they would. So, visibility needs to be excluded from the save states. This shouldn&#039;t be too much harder, barring unforeseen difficulties.&lt;br /&gt;
*** Next would be showing enemy movement. This essentially requires a total rewrite of the &amp;quot;easy&amp;quot; system to transfer each player&#039;s actions in real time, instead of in bulk at the end of turns. This is much more difficult, and probably not worth the pay-off. Far easier would be analyzing the differences in the gamestates at the end of the enemy&#039;s turn and reporting to the player anything important that happened, like units dying, being stunned, or firing off reaction fire (and whether or not any enemies were killed from it).&lt;br /&gt;
*** Next would be taking multiplayer to the Geoscape level, which is simply so far out there at the moment that speculating about it isn&#039;t terribly worthwhile. Most likely, implementing such a feature would be so arduous that rewriting the entire game would be easier (and there are plenty of X-COM remakes as-is).&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short. This is also another feature that may be so difficult that it would be easier to do in a total rewrite.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* Add special materials overlays to the Geoscape.&lt;br /&gt;
* Fix autosell/autoproduce &amp;quot;time to produce&amp;quot; indicator to display nothing when they&#039;re enabled.&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
* Make &amp;quot;all tanks&amp;quot; base defense missions work properly.&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Various bugs with the mission phase transfer process. Primarily a TFTD issue, so will probably wait until work on TFTD starts.&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Port existing patches over to TFTD.&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27924</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27924"/>
		<updated>2010-03-25T12:34:13Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]] contains the UFOExtender.ini file&lt;br /&gt;
This was a New Game but not a new install of XCOM, just an overlay of updated UFOExtender. &lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Sorry I&#039;m guilty of reporting a bug I didn&#039;t (couldn&#039;t) repeat. But as I had no previous save game positions I couldn&#039;t repeat anything - the crash happened on the first Battlescape mission which for me is unusual, I would say that for me that transition crashes less than 1 in 100 times, if even that many. I had enabled Save Equipment I think and on instinct I would suspect that mod as being responsible. Those UFOExtender functions would run while setting up the Battlescape presumably. The equipment handling functions and structures &#039;&#039;already&#039;&#039; present in the game are known to be buggy. BladeFireLight and I just found another issue with them last week. Manipulating them is still risky. If you can investigate that would be very helpful. &lt;br /&gt;
&lt;br /&gt;
::In the meantime I will see if I can try to repeat the fault, with and without Save Equipment enabled, and starting from a clean XCOM install. One trick I may use is to set No Score Game Over and then just abort from each mission rather than fighting it, to speed up the testing. &lt;br /&gt;
&lt;br /&gt;
::Thanks for your good work Xusilak, it is appreciated! [[User:Spike|Spike]] 03:25, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
One possibility: On this mission I had only 6 soldiers (2 HWPs) but enough weapons in the Skyranger to equip 14 soldiers. Is there some known issue with needing to allocate &#039;&#039;&#039;all&#039;&#039;&#039; weapons to soldiers during the equip phase, in order to avoid a crash? If so that might be the cause. I will try to recreate those conditions and see if it provokes a crash. In case it&#039;s not clear, Battlescape never appeared to start, no Equip Phase screen ever came up. [[User:Spike|Spike]] 03:31, 25 March 2010 (EDT)&lt;br /&gt;
:Assuming the same crash is afflicting us, then the crash is when the very first soldier is accessed, when the Soldier.Dat data is first used for that mission. It&#039;s unlikely that volume of equipment is affecting that, and in particular, I hadn&#039;t changed my Skyranger&#039;s loadout to any degree whatsoever, having only briefly touched researching and manufacturing; it was otherwise a gamestate set entirely by doing one quick regular mission and one quick terror mission. However, I was also in debug mode, which enables certain cheats, like Alien Pets, automatically. This might, itself, have unseen bugs that could corrupt the data structures and cause a similar crash. When I get the time to, I&#039;ll be testing again with those cheats disabled, trying to further isolate the conditions involved. --[[User:Xusilak|Xusilak]] 08:34, 25 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Minor cosmetic  enhancements? ==&lt;br /&gt;
&lt;br /&gt;
Had these ideas come to mind while I was at work today, and since your loader is doing some amazing things for the game, I thought I&#039;d ask if the possibility of any of these enhancements exist. &lt;br /&gt;
&lt;br /&gt;
The short of it is: Are you able to overlay any additional bitmap surface on top of the battlescape view, and are you able to play additional sounds?&lt;br /&gt;
&lt;br /&gt;
The main idea for drawing an extra bitmap (semi-transparent) over them map would be to simulate rain/snow for some outdoor maps. Lightning even - though that would require clever use darkening and lightening the overlay. This would have some issues attached to it such as knowing when to display it and when not to, thanks to the various other screens available. &lt;br /&gt;
&lt;br /&gt;
As for playing sounds, which would be simpler, would be to play a looping sound clip to provide environmental sound effects, such as insects chirping and owls hooting at night in woodland maps or town noises at terror sites. Or during the day in a jungle map, some tropical bird calls made at random intervals. TFTD already does the looping environmental sounds, such as teh under water bubbly noises or the wind and sea noises when on land mission. Would it be possible to duplicate this for UFO CE? &lt;br /&gt;
&lt;br /&gt;
Not the most important of enhancements, but I was still wondering if the possibility is there. &lt;br /&gt;
&lt;br /&gt;
-[[User:NKF|NKF]] 01:41, 25 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27919</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27919"/>
		<updated>2010-03-25T03:41:53Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]]&lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;br /&gt;
:It appears the &amp;quot;invalid&amp;quot; pointer is actually set by malloc() - 0x0771D380 (for me). I can only assume something along the way disrupted the data on the heap, as the pointer was the same when examined on a battlescape transition that didn&#039;t crash. Still researching. Note that for me, the crash itself happened inside GetSolderUUID() in the Save Equipment patch functions when it attempted to use that *pSoldierDat pointer. However, I assume it would still happen if the Save Equipment patch were disabled, just elsewhere. This is something I&#039;ll test as well. --[[User:Xusilak|Xusilak]] 23:41, 24 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27918</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27918"/>
		<updated>2010-03-25T02:26:37Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]]&lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I&#039;m doing some research into this; I started up in debugging mode and spammed missions until I hit a crash. The crash (on this occasion) is an access violation caused by an invalid pointer stored at 0x49B954 (the offset that pSoldierDat points to). This means *pSoldierDat is being changed at some point. It took many, many tries to get this crash to happen; I reloaded something like 20 times hitting the same mission, went ahead and did the mission quickly, proceeded, did another mission, proceeded, then the next mission crashed. Given that I&#039;m in debug mode, it&#039;s not impossible this is due to the various hacks enabled by it, so that should be kept in mind. I&#039;m going to continue working on this. --[[User:Xusilak|Xusilak]] 22:26, 24 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27917</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27917"/>
		<updated>2010-03-25T01:00:31Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]]&lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random geoscape-&amp;gt;battlescape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27916</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27916"/>
		<updated>2010-03-25T01:00:04Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* v1.21, Battlescape crashes */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
== v1.21, Battlescape crashes ==&lt;br /&gt;
&lt;br /&gt;
I enabled the new mods and they worked ok in Geoscape. Then this Popup box starting the first Battlescape:&lt;br /&gt;
&lt;br /&gt;
 Application failure&lt;br /&gt;
 XCOM crashed at 0x10002571 with error 0xC0000005 trying to access 0x0968DF43&lt;br /&gt;
&lt;br /&gt;
[[Media:UFOExtender1.21.BSCrash.zip]]&lt;br /&gt;
&lt;br /&gt;
*Win XP Pro 2002 SP2 32bit PAE&lt;br /&gt;
*Pentium-4 3.00GHz 3.5GB RAM&lt;br /&gt;
&lt;br /&gt;
Any ideas? Need more info? [[User:Spike|Spike]] 20:20, 24 March 2010 (EDT)&lt;br /&gt;
:Does it happen consistently? I&#039;ve been plagued by a random battlescape-&amp;gt;geoscape transition crash in the collector&#039;s edition. It&#039;s one of the things I&#039;m looking to fix at some point. The current UFOExtender doesn&#039;t appear to crash any more than previous ones do for me. I managed to do four missions in a row just now. --[[User:Xusilak|Xusilak]] 21:00, 24 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27909</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27909"/>
		<updated>2010-03-24T20:07:05Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Still thinking!&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 30% (?) detection each, and allow it to stack.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Nothing yet&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27908</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27908"/>
		<updated>2010-03-24T19:50:53Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Finished Projects */ Added descriptions to finished projects.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
** This patch allows the player to activate an automatic production and automatic selling mode in manufacturing. By pressing the down arrow button to reduce the quantity of desired items below zero, the mode will switch to the autosell mode, represented by three dollar signs (&amp;quot;$$$&amp;quot;). In this mode, production will never cease unless resources become unavailable, and all produced items will be immediately sold. By pressing the down arrow a second time, it will switch to autoproduce mode, represented by three asterisks (&amp;quot;***&amp;quot;). This functions in the same way as autosell, but the results will not be sold, merely stockpiled forever; caution should be used with this mode, as it can drain resources quickly.&lt;br /&gt;
* Show Money&lt;br /&gt;
** The Doubleclick Movement patch changes the requirement for moving a unit in the battlescape from clicking a tile once, to doubleclicking it (within 500ms). Failing to doubleclick will result in no action being taken. This allows for a considerable safety margin with movement, as the default movement controls are easy to accidentally trigger on the wrong tiles.&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
**This patch shrinks the clock in the date/time panel on the main geoscape screen, and adds a funds display above it. It is useful for examining remaining funds during manufacturing projects, while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Still thinking!&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 30% (?) detection each, and allow it to stack.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Nothing yet&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27907</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27907"/>
		<updated>2010-03-24T19:44:04Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Xusilak&amp;#039;s Patch Additions */ Note about creating my user page.&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
I went ahead and set up my own user page: [[User:Xusilak]]. If possible, direct discussion about my patches to my [[User_talk:Xusilak|discussion page]] there. Thanks again! --[[User:Xusilak|Xusilak]] 15:44, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27906</id>
		<title>User talk:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Xusilak&amp;diff=27906"/>
		<updated>2010-03-24T19:42:29Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: New page: Feel free to discuss anything related to my projects here! --~~~~ ----&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Feel free to discuss anything related to my projects here! --[[User:Xusilak|Xusilak]] 15:42, 24 March 2010 (EDT)&lt;br /&gt;
----&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27905</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27905"/>
		<updated>2010-03-24T19:34:18Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: &lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Still thinking!&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 30% (?) detection each, and allow it to stack.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===Bugs===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Nothing yet&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27904</id>
		<title>User:Xusilak</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User:Xusilak&amp;diff=27904"/>
		<updated>2010-03-24T19:33:11Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: New page: Hi, I&amp;#039;m Xusilak. X-COM is my favorite game ever! This is why I&amp;#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of Seb76. I use ...&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hi, I&#039;m Xusilak. X-COM is my favorite game ever! This is why I&#039;m obsessed with it to the point of trying to understand its base assembly code, with the help of [[User:Seb76|Seb76]]. I use that knowledge to build patches for it that add new features, enhance existing features, or fix bugs. Currently, I am contributing these patches to Seb&#039;s UFOExtender X-COM patching tool. He&#039;s done a great job with it. Look it up if you haven&#039;t yet!&lt;br /&gt;
&lt;br /&gt;
=Finished Projects=&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
* Doubleclick Movement&lt;br /&gt;
&lt;br /&gt;
=Current Projects=&lt;br /&gt;
* Still thinking!&lt;br /&gt;
&lt;br /&gt;
=Potential Projects=&lt;br /&gt;
This is a list of the projects I may consider working on in the future (it&#039;s basically my personal wish list). Don&#039;t modify it directly; if you wish to comment, please do it in my discussion page. Feel free to make suggestions regarding things I&#039;m working on or considering working on; my imagination is limited, after all. I have read the UFOpaedia wish list, so you don&#039;t need to repeat things from there.&lt;br /&gt;
==X-COM: UFO Defense (both where applicable)==&lt;br /&gt;
===Features===&lt;br /&gt;
====Limits Expansion====&lt;br /&gt;
* (Will break old saves) Expand Object Limit.&lt;br /&gt;
** Increase the size of the objects array to 256, and increase the objects allowed to each side to fill up the space. (115 xcom?)&lt;br /&gt;
** (Maybe) Increase the size of the objects array even more. 4096 shouldn&#039;t be difficult, and will most likely be more objects than anyone could ever need in X-COM&#039;s current state.&lt;br /&gt;
*** I&#039;m not sure if stockpiling thousands of ammo magazines and having them fill up a base defense mission is a good thing, though.&lt;br /&gt;
* (Will break old saves) 2-byte scientists and engineers.&lt;br /&gt;
	&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Improved UFO Behavior:&lt;br /&gt;
** UFOs telegraph their intentions more apparently; e.g. as they&#039;re finishing their mission they start increasing their height and speed gradually, instead of instantly to max. This will allow you to trail a UFO to find out if it&#039;s going to land or not, making interceptors more useful.&lt;br /&gt;
* Improved Grenade Throwing Arcs; make throwing more realistic by allowing soldiers to try more methods of throwing. Ideally this would try all possible throwing angles and velocities available (with throwing velocity capped by strength); throwing range can be increased by increasing the elevation or the velocity of the throw. This allows for many, many combinations of throws, and should greatly increase the utility of throwing, as soldiers with extremely high strength could throw grenades down long corridors with ceilings.&lt;br /&gt;
* Infiltrations Can Be Stopped.&lt;br /&gt;
** Move the infiltration success point to after the second Battleship takes off. If the second Battleship never takes off, the infiltration fails completely; funding is uninterrupted.&lt;br /&gt;
** The alien base is created after the infiltration success. If all alien bases in the infiltrated country are destroyed, the nation&#039;s funding reactivates but starts at a minimal level.&lt;br /&gt;
* Stacking Hyperwave. Make the Hyperwave Decoder only provide 30% (?) detection each, and allow it to stack.&lt;br /&gt;
* (Maybe) Explosions!&lt;br /&gt;
** Make explosions able to propagate around corners until they run out of energy.&lt;br /&gt;
** Make explosions have a (weak, since X-COM is limited to 2-4 stories) vertical component.&lt;br /&gt;
** Make explosions use more realistic damage fall-off scaling, so they&#039;re not quite as overpowered with these changes.&lt;br /&gt;
	&lt;br /&gt;
====User Interface====&lt;br /&gt;
* (Distant future) Add a &#039;load game&#039; button to the Battlescape.&lt;br /&gt;
* (Distant future) Tooltips. Add tooltips to buttons, objects, and similar entities, that display relevant data and information about them.&lt;br /&gt;
&lt;br /&gt;
===BUGS===&lt;br /&gt;
====Crashes====&lt;br /&gt;
* Geoscape-&amp;gt;Battlescape Crash. Fix the crash upon transitioning from the Geoscape to the Battlescape.&lt;br /&gt;
* Alt-Tab Crash. Fix existing alt-tab crashes. These primarily occur in the Battlescape.&lt;br /&gt;
* Unknown Battlescape Crash. Probably related to base defense or object table being full. Happened when walking down stairs from general stores, tank semi-under soldier.&lt;br /&gt;
* Unknown Battlescape Crash. Situation: Alien base, 10 soldiers, 1 tank, varied equipment including flying suits, two blaster launchers, heavy plasma, an assortment of grenades and flares, and so on. First turn. Click next turn. Hear a door opening. Crash.&lt;br /&gt;
&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Nothing yet&lt;br /&gt;
&lt;br /&gt;
==X-COM: Terror from the Deep (specific)==&lt;br /&gt;
===FEATURES===&lt;br /&gt;
====Miscellaneous====&lt;br /&gt;
* Allow Melee On Environment; allow drills to attack walls, etc.&lt;br /&gt;
* Remove underwater limitations from everything.&lt;br /&gt;
** Weapons&lt;br /&gt;
** Magnetic ion flight&lt;br /&gt;
** Alien types, such as tentaculats, allowing them in terror missions.&lt;br /&gt;
* (Extremely distant future) Merge the two games into one, with the superset of all equipment from both games, all aliens, all terrain types, all ships, etc. This has been discussed elsewhere, so until actual progress is being made on it, this will be kept short.&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
	<entry>
		<id>https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27903</id>
		<title>User talk:Seb76</title>
		<link rel="alternate" type="text/html" href="https://temp.ufopaedia.org/index.php?title=User_talk:Seb76&amp;diff=27903"/>
		<updated>2010-03-24T18:51:37Z</updated>

		<summary type="html">&lt;p&gt;Xusilak: /* Xusilak&amp;#039;s Patch Additions */&lt;/p&gt;
&lt;hr /&gt;
&lt;div&gt;Hey, sorry to pester you again. :) I&#039;ve gotten access to IDA, as you suggested, and with it I&#039;m making some slow progress toward my mod. I wanted to ask, though, do you know of any sort of tutorial or useful intro for it? The user interface is pretty obtuse, the built-in help has nothing useful, and I&#039;ve been struggling just to make comments go where I want them to.&lt;br /&gt;
&lt;br /&gt;
(I mean, I understand that it&#039;s meant for very advanced users, but Jesus, who writes an enterprise-grade utility and doesn&#039;t bother to implement an Undo function?!?)&lt;br /&gt;
&lt;br /&gt;
Thanks again for your help! [[User:Phasma Felis|Phasma Felis]] 23:15, 16 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Okay, a little more progress since I discovered anterior comments. Couple of more specific questions: what&#039;s the difference between a &amp;quot;comment&amp;quot; and a &amp;quot;repeatable comment&amp;quot;? Or any of the several other types of comments, for that matter.&lt;br /&gt;
&lt;br /&gt;
What exactly does &amp;quot;mov cs:word_102F9, ax&amp;quot; do? At first I thought it was just copying the accumulator into the data word at 02F9, but the &amp;quot;cs:&amp;quot; part is confusing. word_102F9 is 0, I think (&amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot;). Does that mean it&#039;s copying AX into the current code segment, offset 0, modifying the code in progress? That seems odd.&lt;br /&gt;
&lt;br /&gt;
Okay, one more and then I&#039;ll go to bed: what does &amp;quot;jmp short $+2&amp;quot; do? It looks like it just means &amp;quot;jump to next instruction&amp;quot;, which is kinda redundant, but it could be &amp;quot;jump &#039;&#039;over&#039;&#039; next instruction&amp;quot;, which...still seems unnecessarily verbose. I dunno. [[User:Phasma Felis|Phasma Felis]] 00:51, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: The last two questions are actually general Intel 16-bit assembly ;)&lt;br /&gt;
&lt;br /&gt;
: The cs in &amp;quot;mov cs:word_102F9, ax&amp;quot; is the 16-bit code segment base, yes.  It *might* be self-modifying code, but more likely there is a C global or static variable that was implemented there and being updated.  The &amp;quot;seg000:02F9 word_102F9 dw 0&amp;quot; is probably from C default initialization, but could be from an explicit initialization to 0.&lt;br /&gt;
::Back in the 16bit days, there were several memory models. My knowledge on this is quite rusty, but IIRC COM executables were using the &amp;quot;tiny&amp;quot; one which means that the code and data use the same segment (I assume you&#039;re working on the music TSR?). Modification of data via the CS segment is not necessarily self-modifying code. Also TSRs were usually signaled using software interruptions so the code most likely sets up an interrupt vector and bails out. e.g.:&lt;br /&gt;
 seg000:0140 mov     dx, 157h&lt;br /&gt;
 seg000:0143 push    ds&lt;br /&gt;
 seg000:0144 push    cs&lt;br /&gt;
 seg000:0145 pop     ds&lt;br /&gt;
 seg000:0146 mov     ax, 2566h&lt;br /&gt;
 seg000:0149 int     21h                             ; DOS - SET INTERRUPT VECTOR&lt;br /&gt;
 seg000:0149                                         ; AL = interrupt number&lt;br /&gt;
 seg000:0149                                         ; DS:DX = new vector to be used for specified interrupt&lt;br /&gt;
 seg000:014B pop     ds&lt;br /&gt;
 seg000:014C call    sub_1067A&lt;br /&gt;
 seg000:014F mov     dx, ax&lt;br /&gt;
 seg000:0151 mov     ax, 3100h&lt;br /&gt;
 seg000:0154 int     21h                             ; DOS - DOS 2+ - TERMINATE BUT STAY RESIDENT&lt;br /&gt;
 seg000:0154 start endp                              ; AL = exit code, DX = program size, in paragraphs&lt;br /&gt;
&lt;br /&gt;
::In this example (from music.com), there is code at 157h but IDA does not detect it. You can get there, type &#039;C&#039; and create a new function. The code there is the most important. HTH [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::: There were at least six common memory models.  *.COM not only assumed a single code and single data segment, it assumed their base addresses were the same.  You get four more (with one segment of static data) by 1 or more than 1 of each of code and data segments [near and far pointer distinctions].  The last allowed more than 64K of static data.&lt;br /&gt;
&lt;br /&gt;
::: XCOM most likely used one of the double-far memory models.  -- [[User:Zaimoni|Zaimoni]], 9:31 Jun 19 2008 CDT&lt;br /&gt;
&lt;br /&gt;
: &amp;quot;jmp short $+2&amp;quot; is jump over the next instruction, if the next instruction is 2 bytes.  This probably came from an if-then-else in C (it&#039;s a common idiom in translating C to assembly).  -- [[User:Zaimoni|Zaimoni]], 12:36 Jun 17 2008 CDT&lt;br /&gt;
&lt;br /&gt;
:: I can see several instances of this in music.com for simple &amp;quot;return value&amp;quot; functions. Most likely a &amp;quot;feature&amp;quot; of the compiler. If used for padding, it is equivalent to 2 nop instructions, but takes only one cycle to execute. This was before deeply pipelined processors though ;-) [[User:Seb76|Seb76]] 12:10, 17 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I sidelined off IDA onto general assembly there :) Probably a good thing, means I&#039;m getting used to it. Sort of.&lt;br /&gt;
&lt;br /&gt;
(Holy crap. I just discovered that hitting &amp;quot;P&amp;quot; (Create Function) in the right place is all it takes to enable graph display mode and give me a vast, improbably pretty flowchart of, well, a lot of stuff. I&#039;d been wondering how to make that work.)&lt;br /&gt;
&lt;br /&gt;
Anyway! Seb, you&#039;re correct, I&#039;m working on the music TSR. I&#039;ve pretty much figured out how the entry code works, setting up an interrupt vector and terminating, which I think is decent progress for three days&#039; experience with x86 assembler. I did find a web reference to &amp;quot;jmp short $+2&amp;quot; [http://www.programmersheaven.com/mb/x86_asm/484/484/ReadMessage.aspx here], which suggests that it&#039;s &amp;quot;used to clear the cache, before going in or out of protected mode&amp;quot;. Not entirely sure what clearing the cache does, but it&#039;s good to know.&lt;br /&gt;
&lt;br /&gt;
Thanks to the both of you for your help. Seb, do you mind if I continue to ask questions here? I don&#039;t know where else it should go. Maybe we need a &amp;quot;ridiculous hacking ideas&amp;quot; section of the wiki... ;) [[User:Phasma Felis|Phasma Felis]] 01:10, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Hehe, sounds like fun. When I can find time to write a dll injector, I may add some stuff to it ;-) I&#039;d start with increasing the max number of smoke entries. (Not possible right off the bat because it&#039;s using a static array instead of malloc-ed data :( ). Other ideas: fix the proxmine bugs, or maybe the disjoint base bug. I found the piece of code and it is not a simple &amp;quot;off by one&amp;quot; issue so it cannot just be patched in place... [[User:Seb76|Seb76]] 12:22, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
::Yeah, there&#039;s a lot of bugs and odd behaviors that could be fixed by just using larger arrays somehow. The 80-item limit causes all sorts of problems, the smoke limit, the 20-armed-proxmine limit...I wouldn&#039;t mind having more than 8 bases in the late game...stuff like that. [[User:Phasma Felis|Phasma Felis]] 12:42, 18 June 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hmm. The loader thing looks wonderful, but as I&#039;m using a dos version in dosbox I&#039;m guessing I&#039;m out of luck for now? Or are you a dos wizard as well? :)&lt;br /&gt;
[[User:Knan|Knan]] 12:35, 9 July 2008 (PDT)&lt;br /&gt;
:Using a loader coupled with dll injection, there is no limit to the size of what you want to patch. You can also use higher level languages instead of plain assembler. However it is windows specific (won&#039;t work on anything pre-XP because of CreateRemoteThread usage BTW). For CD music in DOS, [[User:Phasma Felis|Phasma Felis]] may be your ticket. I&#039;m willing to help but as I said before, my knowledge of DOS is quite rusty. [[User:Seb76|Seb76]] 12:49, 9 July 2008 (PDT)&lt;br /&gt;
::It&#039;s really the equipment screen hack that looks compelling. Figure it might be unreasonably hard to do that in dos. But I can&#039;t seem to get the windows version to run at a reasonable speed these days, always far too fast. That&#039;s why I&#039;m using dosbox. Ah well, have fun modding :) [[User:Knan|Knan]] 14:14, 9 July 2008 (PDT)&lt;br /&gt;
:Well, actually I have the speed issue too. It&#039;s just that setting the laptop to max battery and scroll speed to one is enough to work around the problem ^^. The geoscape has a sleep routine to prevent too fast updates. The mecanism is not present in the tactical part. [[User:Seb76|Seb76]] 14:45, 9 July 2008 (PDT)&lt;br /&gt;
:Edit: might be your lucky day. I made a modification, it should slow down the scroll now. Can you check? [[User:Seb76|Seb76]] 15:42, 9 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Seb76, since you appear to be on a roll with the findings lately, I thought I&#039;d mention this as something to look out for if you haven&#039;t already found it. Can you track down the tables that determine a few other object properties that aren&#039;t stored in obdata.dat? I mean for properties like if it can cast light, what bullet image to use if the object is fired, whether its melee attack/mind probe/psi attacks are available for that item, etc. This would certainly allow for much more robust equipment modding. I&#039;m guessing it&#039;ll be a part of the tactical.exe portion of the game. - [[User:NKF|NKF]] 19:56, 11 July 2008 (PDT)&lt;br /&gt;
:Only flares can cast light currently. It is not a property in obdata, but a hardcoded &amp;quot;objectType=0x1B&amp;quot; check. I can hack in a piece of code to enable light for some other object types, but we&#039;ll need a way to say which ones do (can be done in the ini file but it would not be clean. Maybe we can find an unused bit in obdata.dat and arrange that...). [[User:Seb76|Seb76]] 14:12, 12 July 2008 (PDT)&lt;br /&gt;
:Edit: the routine that populates the item menu has everything almost hardcoded too: stun, mind probe, psi-amp actions, scanner and medkit are all hardcoded by object type. The rest uses known flags from obdata. [[User:Seb76|Seb76]] 15:18, 12 July 2008 (PDT)&lt;br /&gt;
:Edit2: playing with the heavy laser mod, I found the data for bullet image/sound. It is located at offset 0x6D1F8. Each entry is organized like that:&lt;br /&gt;
 struct {&lt;br /&gt;
 	short bulletVisual;&lt;br /&gt;
 	short shootSound;&lt;br /&gt;
 	short impactSound; &lt;br /&gt;
 	short impactAnimation;&lt;br /&gt;
 }&lt;br /&gt;
Entries are sorted per [[OBDATA.DAT]] ID (i.e. the first entry is for pistol, the 0x12th for heavy laser, etc.) [[User:Seb76|Seb76]] 15:31, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Ah, that&#039;ll help with some modding. Although I just remembered something that I was going to ask at the time - but completely forgot about. What controls how the weapon is displayed while in the soldier&#039;s hands? I mean, the pistols are displayed with the weapon extended in the firing position while most other weapons are held across in both hands (mimicking one/two handed items). Would this be hard coded as well in addition to the unique item actions? -[[User:NKF|NKF]] 17:43, 2 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Error running UFOExtender ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb76.  I&#039;ve tried running your UFOExtender as I want to slow down the scrolling in the tactical view.  However I get the following error message:&lt;br /&gt;
&lt;br /&gt;
 C:\Games\X-com\UFO Defense\UFOLoader.exe&lt;br /&gt;
 This application has failed to start because the application configuration is incorrect. Reinstalling the application may fix this problem.&lt;br /&gt;
&lt;br /&gt;
Any ideas what&#039;s going wrong?  I&#039;m on Win XP running Collector&#039;s Edition of UFO. --[[User:Col w|col_w]] 05:34, 12 July 2008 (PDT)&lt;br /&gt;
:Hum, looks like the error you get when there is a missing DLL. I compiled using Visual Studio 9.0 Express Edition, maybe you don&#039;t have the runtime installed? You can get it [http://www.microsoft.com/downloads/details.aspx?FamilyID=9B2DA534-3E03-4391-8A4D-074B9F2BC1BF&amp;amp;displaylang=en here]. Tools like [http://www.dependencywalker.com/ dependency walker] can help identify missing DLLs. Also what OS are you using (service pack number)? I don&#039;t have Vista here to test so it may only be running in XP SP2. Anybody can report it running on Vista? For sure it won&#039;t work on Win9x. [[User:Seb76|Seb76]] 09:02, 12 July 2008 (PDT)&lt;br /&gt;
::Yeah, visual xyz runtime dlls need to be included with things you compile with visual xyz. A common complaint when running small hacks under Wine on Linux as well, since you usually install just a very few programs on each virtual windows install, so it&#039;s unlikely some other program installs the dlls for you. [[User:Knan|Knan]] 17:08, 12 July 2008 (PDT)&lt;br /&gt;
:Especially since they made up that manifest stuff. Supposed to solved DLL hell... Well, so far it caused me more trouble than it solved issues. The funny part is when you install a new VS service pack on your build servers and have half the development team freak out because their target system won&#039;t boot the latest piece of code... [[User:Seb76|Seb76]] 18:04, 12 July 2008 (PDT)&lt;br /&gt;
Awesome, that fixed it! Now I can enjoy this classic game once again.  Love the language screen joke too :)  Many thanks --[[User:Col w|col_w]] 11:08, 12 July 2008 (PDT)&lt;br /&gt;
:My pleasure man. Glad you enjoyed it ;-) [[User:Seb76|Seb76]] 12:07, 12 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
My problem is the following: if I try to run the loader normally, a console window pops up for a few seconds then I get an &amp;quot;illegal instruction&amp;quot; error from NTVDM (and the window disappears, yet it&#039;s button remains on the taskbar until I kill the process). If I try to run it with DosBox however, I get &amp;quot;illegal command: UFOLOADER.EXE&amp;quot;. Point is, I can&#039;t run this at all.--[[User:Amitakartok|amitakartok]] 11:27, 13 October 2009 (EDT)&lt;br /&gt;
:Looks like you&#039;re trying to use the DOS version here. Only the CE (windows) version is supported. [[User:Seb76|Seb76]] 13:48, 13 October 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== UFOloader and Xcomutil ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb76 awesome work with this patch! Just wondering though if it would be possible to run this together with XcomUtil somehow. Thanks!&lt;br /&gt;
Oh and btw when&#039;s the TFTD version coming out? ;-)&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 14:09, 24 July 2008 (PDT)&lt;br /&gt;
:You can try this version: [[Image:UFOExtender-dev.zip ]]. I did not really have time to test it. Use the modified batch and keep me posted ;-) You&#039;ll get a crash if you activate the patch to disable the introduction movie. I checked the equipment screen patches, they were OK. TFTD will wait till I&#039;m satisfied with the XCOM version. Anyway, I&#039;m not in a disassembling frenzy right now :p [[User:Seb76|Seb76]] 15:29, 24 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hey fast response, thanks! I tried the new version but unless I&#039;m missing something I&#039;ve been unable to get it to include f0dder&#039;s bugfix loaders. I edited the ini file&#039;s Executable= to &#039;xcloader.exe&#039;, xcomutil&#039;s included bugfix loader, and when I run UFOloader.exe directly it works fine, but when using your modified runxcomW.bat it seems to be disregarded. This was not the case with your previous version. (I actually thought of modifying runxcomW.bat like that :-) ) Can&#039;t seem to find any reason for it in runxcomW.bat.&lt;br /&gt;
:The only modification I did to this version is forward the parameters passed to the loader to the XCOM executable (geoscape is passed an argument which tells it if it needs to start from scratch, or use the data from the missdat folder). Also it cannot work with f0dder&#039;s patch the way you tried: doing so, you are patching the xcloader binary itself, which obviously is not what you want.&lt;br /&gt;
:Edit: I added a &amp;quot;Video Pitch&amp;quot; bug fix to compensate for the incompatibility of the 2 loaders ;)&lt;br /&gt;
:: also a minor note, but on a fresh xcom install the console echoes a read error on MISSDAT\saveinfo.dat (I assume this is the work of xcomutil) and minimizes Xcom to the tray. It still works fine though.&lt;br /&gt;
:: while on the subject of minor notes the &#039;Rank In Inventory=&#039; in your ini file actually has the letter O instead of the number 0 by default ;-)&lt;br /&gt;
:Hm, I guess that&#039;s what you get when experimenting stuff at 1:00 am ;-) (GMT+2 here)&lt;br /&gt;
:: edit: I decided to do some testing first by manually disabling directdraw to circumvent the bugfix loader problem. Unfortunately the game crashes as soon as I enter tactical combat (when it should go to the equipment screen) even when all features are disabled. But unless I delete the MISSDAT folder&#039;s contents the next time I run runxcomW.bat I can hear the battlescape music playing. Unfortunately the batch file seems to get stuck in an infinite loop or something as it just keeps starting xcom over and over until it finally kills my system! :-) (all my base really belong to you ;-) )&lt;br /&gt;
:I start the runxcomw.bat batch from a shell and I have to do a &amp;quot;ctrl-C&amp;quot; between phases . Maybe it is because I replied yes to &amp;quot;Do you want to see XcomUtil messages after combat?&amp;quot; &lt;br /&gt;
:: using the previous version I can enter battles just fine, but none of the UFOloader features work.&lt;br /&gt;
:Did you try disabling every XComUtil features? I don&#039;t know how extensively it modifies the main executable. Here it works with the following config: replied &amp;quot;no&amp;quot; to everything while installing XComUtil (so that only executable splitting is done), enabling only equipment screen patches with my loader, and starting via the attached batch file. I can start a new game, down a UFO, go into tactical mode and go back to the geoscape view after taking down all the aliens. Did you try renaming UFOLoader.exe into xcloader.exe? It might work [[User:Seb76|Seb76]] 12:21, 25 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Thanks for your efforts, but still no luck. I downloaded the new version and did a fresh install of xcom. Running the UFOloader without xcomutil works fine (with your directdraw patch I get a ~3sec pause everytime the game zooms in/out on an interception though, which does not occur with f0dder&#039;s patch). Running xcomutil without the UFOLoader also works fine (using ctrl+C). I then did another fresh install and put the both of &#039;em together. I enabled the equipment screen patch and the directdraw fix on UFOLoader and told xcomutil to use f0dder&#039;s loader, answering no to all other questions. Renamed UFOLoader.exe to xcloader.exe and started runxcomW.bat. The game crashed when it should go to the equipment screen. (no ctrl+C possible) Disabling the equipment screen patch and/or enabling xcomutil&#039;s messages after combat yielded the same result. :(&lt;br /&gt;
:About the 3sec pause, it may be related to the musicfix that f0dder&#039;s patch does: it runs the MCI commands in a separate thread to remove the pause due to synchronous calls (with the unpatched version, there is a &amp;quot;slight&amp;quot; pause (~0.5sec on my computer) each time the music changes). Do you have the same pause in the main menu? Also if you activate the PSX music patch (even with no CD in the tray), it should remove the pause (if it is indeed the same problem). For your crash, I haven&#039;t got a clue. Maybe it&#039;s time I release the source code so people with different configurations can try more stuff. I know there are imaginative people out there ;-) [[User:Seb76|Seb76]] 07:02, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Ah that fixed the delays, thanks! Strangely the battlescape now works fine (using ctrl+C) as long as I don&#039;t enable the equipment patch with xcomutil... Don&#039;t know about the other fixes&amp;amp;flags. I&#039;ll do some more testing. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:31, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: edit: quick testing reveals that it actually crashes exactly 1 times in 2, apparently regardless of what fixes are on. (though I did not yet test any xcomutil features) I guess it&#039;s probably related to one of the MISSDAT files? [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:37, 27 July 2008 (PDT)&lt;br /&gt;
:: edit2: OK here&#039;s what I have so far: It crashes if the previous mission worked. It works if it crashed on the previous mission. If I delete the contents of the MISSDAT folder it always crashes until I do a mission without xcomutil and/or without the loader. After that the normal rules apply. (i.e. next mission I play with both xcomutil&amp;amp;the loader it&#039;ll crash, as the previous mission worked, but the next one will work again) very strange :s Note that I did not yet try to play out a full mission, I always aborted on the first turn. Hope you can narrow the problem down a bit this way :-) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 10:50, 27 July 2008 (PDT)&lt;br /&gt;
:Can you give me the address of the error when it crashes? (accessible in the crash window dialog)[[User:Seb76|Seb76]] 11:29, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: There is nothing when it crashes, not even the console remains. Unless you&#039;re talking about a log file?&lt;br /&gt;
:I was talking about the &amp;quot;a program has cause xxx to close unexpectedly&amp;quot; (or whatever it is in the US version) dialog box. This looks more like a silent crash (the worth case). I modified the loader and it looks better. I still have the &amp;quot;ctrl-C&amp;quot; issue however. [[User:Seb76|Seb76]] 12:38, 27 July 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: &amp;lt;3 don&#039;t know what you did but the latest version works perfect! Just did 3 missions in a row, restarted xcom and did another 2 (only actually completed one of &#039;em tho :) ) without any crashes at all! *crosses fingers* I enabled all the settings I wanted in both xcomutil and the UFOLoader without problems. Thanks Seb, excellent work! ;-)&lt;br /&gt;
:: oh and the ctrl+C thing is a problem in the xcomutil batch file, it&#039;s not your program&#039;s fault. The Xcopy commands in the runxcomW.bat file are missing a /Y parameter. Here&#039;s a link to the xcomufo.com forum thread discussing it for anyone interested: [http://www.xcomufo.com/forums/index.php?showtopic=242025489]&lt;br /&gt;
:: Whew, was quite a ride... Now, where&#039;s my ammo clip fix? ^^&lt;br /&gt;
:Thanks for the feedback, it is good to know that it is possible to have this work with xcomutil. BTW, the fix I did in the test version is also in the latest package with the ammo clip hack ;-) [[User:Seb76|Seb76]] 16:16, 27 July 2008 (PDT)&lt;br /&gt;
:::After spending an hour with reading through this double discussion and trying to find the right batch file in the old archives and make the game work, I decided to put your &#039;&#039;&#039;Xcomutil + UFOloader solution&#039;&#039;&#039; here: [[Image:RunXcomW.zip]] with a simple explanation. Hope you don&#039;t mind.--[[User:Kyrub|Kyrub]] 15:43, 8 September 2008 (PDT)&lt;br /&gt;
::::Actually you don&#039;t need the modified runxcomw.bat file, the way I do it is I tell xcomutil to use f0dder&#039;s loaders and then I simply replace xcloader.exe (xcomutil&#039;s included f0dder patch) with UFOLoader.exe! [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:01, 9 September 2008 (PDT)&lt;br /&gt;
: Hey there, I&#039;ve read about this project and I&#039;m wondering if I can ran it with XComUtil but I play with the DOS versions (through DosBox) and thus use RunXCom. [[User:Hobbes|Hobbes]] 16:27, 13 September 2008 (PDT)&lt;br /&gt;
::Sorry there, this project uses modifications of the binary so it&#039;ll work only on the windows version. Why do you have to stick to the DOS version BTW? [[User:Seb76|Seb76]] 04:29, 14 September 2008 (PDT)&lt;br /&gt;
:::DOS version was the first I played and I prefer its sounds (specially the alien death cries). I also prefer the DOS bugs (some on CE are too annoying). Thanks anyway :) [[User:Hobbes|Hobbes]] 11:26, 14 September 2008 (PDT)&lt;br /&gt;
:::Hmm, something I remembered: IIRC, XComUtil splits the binary of CE into Tactical and Geoscape, in order for it to run with CE. I think I&#039;ll download your program and give it a try [[User:Hobbes|Hobbes]] 11:34, 14 September 2008 (PDT)&lt;br /&gt;
::::No success, doesn&#039;t surprise since I have the barest clue of what I should be doing. [[User:Hobbes|Hobbes]] 11:44, 14 September 2008 (PDT)&lt;br /&gt;
::There&#039;s no way it could work like that, windows binaries cannot run in DOS environment; split binaries or not. If you&#039;re pissed about a particular bug, just tell. I may be able to fix it ;-) Concerning the sounds, I don&#039;t know exactly what is the problem about CE version. If someone can give some details, I may have a look at that too. [[User:Seb76|Seb76]] 12:09, 14 September 2008 (PDT)&lt;br /&gt;
:Hey Seb is it possible the latest versions of your extender don&#039;t work with xcomutil anymore? Did you drop support? Love the new features but I rather miss xcomutil&#039;s automatic re-equipping :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:58, 26 April 2009 (EDT)&lt;br /&gt;
::Yeah, it is possible ^_^ But you now, it was never officially supported, it worked more or less by chance ;-) As I said on the forum, it might be possible the older version of the loader still works (you can use the old loader with a recent patcher DLL, it should be OK), but I got little feedback so I don&#039;t know if I&#039;m correct... [[User:Seb76|Seb76]] 16:13, 27 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Heavy Laser Mod ==&lt;br /&gt;
&lt;br /&gt;
Hey Seb, I&#039;ve been trying the new heavy laser. It&#039;s a cool idea, adds some new options during battle :) But I think currently the full auto option is overpowered. I hardly use the burst mode at all. I&#039;d suggest lowering the accuracy and/or (if possible) reducing the amount of shots fired? Currently when I see a single alien I use full auto (can&#039;t miss with 10 shots), when I see a terror unit I use full auto (2x2 + 10 shots = dead terror unit :) ), and when I see a group of aliens I also use full auto (10 shots &amp;gt; 5 shots). A few units still standing? Bring on the next heavy laser.&lt;br /&gt;
Also because these new fire modes don&#039;t mind line of fire restrictions cover won&#039;t help aliens at all (unless the cover is strong enough to withstand HL power). Just use full auto to blast through any house that&#039;s in the way and in most cases it&#039;ll still kill the alien as well. (do need to make sure no agents/civilians are standing in the line of fire though) &lt;br /&gt;
Should note that ATM I&#039;m still only dealing with sectoids and the occasional floater. Will let you know how it fares against the later races.&lt;br /&gt;
[[User:J&#039;ordos|J&amp;amp;#39;ordos]] 05:44, 31 August 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
OK, it&#039;s cool but it really is overpowered. Accuracy must be lower in Auto modes than in Snap, that&#039;s basic in the game. If you assume the Heavy Laser is somehow better optimised for autofire than the Laser Rifle, and set the TUs for normal Auto at say 30% (vs 34% with Laser Rifle) that would let you get off 3 bursts, which would be better. (I could live with the idea that you can also only fire 3 snap shots). Then your &amp;quot;Full Auto&amp;quot; mode would be 100% TUs for 10 rounds and your &amp;quot;Burst Mode&amp;quot; could be 50% TUs for 5 rounds, and that would be consistent with the &#039;standard&#039; Auto mode. But the accuracy per shot needs to be much lower. I would suggest the base Accuracy per shot is reduced to 33% (one third less than Snap, similar to a Laser Rifle). You are still making the weapon MUCH more effective this way. [[User:Spike|Spike]] 12:47, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: On further analysis, even this is too powerful. The stats I just cited would give firepower only a fraction less than a Heavy Plasma - with much lower cost, unlimited ammo and easier-to-reach technology. That&#039;s not balanced. Unfortunately, you can&#039;t really go above 6 shots per turn without unbalancing the game, as none of the 2 handed weapons fire more than 6 shots/turn. So the TUs for Auto need to be 34%-40%, and you can&#039;t really have it fire more than 6 shots per turn even in the Full Auto mode. I would suggest Auto = 35%, Burst = 75%, Full Auto = 80%. Burst and Full Auto only fire 6 shots. Burst Mode fires 2 shots each at 2 waypoints, and a further 2 rounds spread in between the 2 waypoints. Full Auto fires one each at 2 waypoints and 4 shots spread between the waypoints. And maybe the Burst Mode should be the more expensive one as it is more &#039;concentrated&#039; fire. The reason you can&#039;t really exceed 6 shots per turn, even if you reduce the accuracy drastically, is because otherwise you create a super-effective shock weapon at point blank range (and a super effective terrain-clearing weapon). Somehow the &#039;shock power&#039; in particular seems inappropriate for something as clumsy as a Heavy Laser. To rationalise it, think of it this way - it&#039;s not a machinegun, it&#039;s an energy weapon. The &#039;cyclic rate of fire&#039; is limited by the energy circuitry as much as anything else. So squeezing six shots per turn out rather than 3 (the limit with Snap fire) is a pretty good improvement. With the Auto Mode I&#039;ve suggested here, you have still double the &#039;shock&#039; firepower of the Heavy Laser at short range, and increased its firepower by two thirds at longer ranges. Not a bad way to put some life back into a weapon that otherwise has very limited uses. Probably in the &#039;Area&#039; modes (Burst / Full Auto) the Accuracy should drop, say to 25% (vs 33% in standard Auto). [[User:Spike|Spike]] 13:48, 1 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Ok I finally shut down my NeXCom Workstation and turned out the lights in the Bean Counter&#039;s Department at X-Com HQ - and headed down to the Armoury. I checked out one of the new, experimental Super Heavy Auto Lasers and ducked onto an Avenger heading into a hot LZ. &lt;br /&gt;
&lt;br /&gt;
Seb, let me tell, you, it was SPECTACULAR! You are the Ayatollah of Rock-and-Rolla! I was like Jesse Ventura in Predator, carving up the jungle with his minigun. I love your gun. It is too cool. It must not be nerfed. So I have another suggestion for your coding skillz: &lt;br /&gt;
&lt;br /&gt;
See if you can get the &amp;quot;hidden item&amp;quot;, Gatling Laser, working. Add your Super Heavy Auto Laser as a new item, using the Gatling Laser image and OBDATA entry. I don&#039;t know if you can add a new Research option or a new Manufacturing option. If you can&#039;t, maybe you can offer it to Purchase (once Heavy Laser is researched, or perhaps Laser Cannon). Given the power of the weapon (as spec&#039;d above), the cost to buy or manufacture should be similar to a Heavy Plasma: around a total cost of $164K to manufacture (including &#039;&#039;all&#039;&#039; costs) or around $225K to buy. As a quick hack, for the time being, if you are still using the Heavy Laser object for the Super Heavy Auto Laser (with 10 shot Full Auto), increase the manufacturing costs and buy/sell prices to roughly the same as the Heavy Plasma. [[User:Spike|Spike]] 13:29, 3 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for the nice feedback! The initial idea for this mod came when watching a Laser Squad speedrun (never played the game myself) and seeing the guy waste several baddies with one auto-shot sweep (in this game you can also select the number of shots when auto-firing). I chose to try a modification of the heavy laser for 2 reasons: everybody agrees to say that the default one sucks and second, since it uses no ammunition there is no need to handle out-of-ammo conditions. I personally see this weapon more as a recipe for new doors than a direct way to kill aliens. Several things could nerf it a bit but I didn&#039;t try them yet:&lt;br /&gt;
:*make accuracy lower and lower during a burst (to account for the laser lens deformation caused by overheating). This would restore the advantage of cover and make people thing twice before firing when a friendly unit stands in front&lt;br /&gt;
:*reduce accuracy even further when shooting out of sight (this was mentionned in another post)&lt;br /&gt;
:*change the damage model and reduce the probability that terrain is destroyed when shot&lt;br /&gt;
:*have a cooldown period where the weapon is not useable (not sure if it&#039;s feasible though)&lt;br /&gt;
&lt;br /&gt;
::Yeah cooldown periods! Then restore functionality of the melee HIT command. Hey it worked for incubation: time is running out. ^^ [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 16:27, 7 September 2008 (PDT)&lt;br /&gt;
:::Hm, I already cannibalized the unused &amp;quot;open&amp;quot; and &amp;quot;close&amp;quot; actions for the heavy laser mod, there is no more room for a new &amp;quot;hit&amp;quot; command. Unless... ;-) [[User:Seb76|Seb76]] 11:28, 8 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:OK, here is the last draft before I finalize:&lt;br /&gt;
:*Shooting the HL will cost ~50 energy so you won&#039;t be able to abuse it (the shooter will be a sitting duck)&lt;br /&gt;
:*Each shot of a burst will reduce the accuracy (amount not determined yet)&lt;br /&gt;
:*The [[User:Seb76#Range_Based_Accuracy|Range Based Accuracy]] will always apply to the HL&lt;br /&gt;
:If everybody likes it, I&#039;ll got with that. Any comment? [[User:Seb76|Seb76]] 09:16, 22 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
Sounds good to me. [[User:Spike|Spike]] 17:25, 22 November 2008 (CST)&lt;br /&gt;
:OK, here we go. I won&#039;t tell you exactly what I did, just give me your feedback ;-) [[User:Seb76|Seb76]] 05:24, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
It&#039;s been a while, but recently tried your newest version and it seems the heavy laser is bugged? No matter which firing mode I choose it is extremely inaccurate and a lot of shots after travelling in one direction suddenly &#039;deflect&#039; into another direction for some reason. It&#039;s a miracle none of my own guys were hit :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 12:41, 28 February 2009 (CST)&lt;br /&gt;
:It may have been broken by other stuff indeed. I&#039;ll have a look [[User:Seb76|Seb76]] 17:29, 28 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Hey, is it just me or is full auto not affected by range based accuracy, while burst is? I am using the RB accuracy mod on all weapons, and maybe that is affecting it. All I know is, even at long distance, full auto shows full accuracy. Not sure if the burst mode is showing the RB decrease I programmed or not though.&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:01, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:The heavy laser and range based accuracy stuff were developped in parallel and merged later. It is almost sure that things will go wrong if you activate both ;-) I could reproduce some issues and will try to fix them. BTW, I got no feedback for the &amp;quot;shortcuts&amp;quot; patch. Is it broken that badly that nobody wants to have it fixed? [[User:Seb76|Seb76]] 17:00, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I just used an unpatched version (CE, as I always use), and used your patch on it. The only things I even activated in the patch are the video fix so it was playable, the heavy laser mod, and the accuracy mod. Still have the same problem, so yeah... they don&#039;t work well together at the moment. But... I am hooked on the accuracy mod, so I guess Ill just deal with it and not use full auto. As far as shortcuts go... I had enabled it at one time, but I found that I just never used them. Maybe I will try to use it a bit to give you some feedback. I added a comment for alien bases, too, btw. --[[User:Talon81|Talon81]] 15:18, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Wish List please please please ==&lt;br /&gt;
&lt;br /&gt;
=== New and Outstanding Requests ===&lt;br /&gt;
&lt;br /&gt;
* Remember soldier load outs from last mission and re-equip accordingly. Or maybe just prevent units from taking more than they can carry. Removing grenades first, then magazines and ammo and lastly guns.&lt;br /&gt;
: &#039;&#039;&#039;Save Equipment&#039;&#039;&#039; is under development, still some bugs&lt;br /&gt;
&lt;br /&gt;
* Make it so you can drop more than one screen worth of stuff in the pre-mission equipping phase.&lt;br /&gt;
&lt;br /&gt;
* Allow human side soldiers to reaction fire in their currently saved Reserved Fire mode - eg to take Autofire or Aimed reaction shots. That would be very, very cool. It would also be a balanced trade-off, if these Reacting soldiers were not allowed to &#039;switch&#039; to Snap fire after they no longer have the TUs left to use their Reserved mode. &lt;br /&gt;
&lt;br /&gt;
: Has this been completed via the &amp;quot;Save Reserve Mode&amp;quot; feature? Not entirely I guess as Reaction fire is still always in Snap. To be honest that&#039;s not a bad thing. [[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* Implement your &#039;Area Fire&#039; (as per Heavy Laser) for &#039;&#039;&#039;all&#039;&#039;&#039; large automatic weapons (AutoCannon, Heavy Plasma) or maybe just for all automatic weapons, period. It would be very handy for Autocannon bursts to cover a wider area, firing a narrow burst is often not what you want at all in many tactical situations. There might be a problem implementing this for Plasma weapons, if you couldn&#039;t persuade the Aliens&#039; AI to use the Area modes - it wouldn&#039;t be fair. &lt;br /&gt;
&lt;br /&gt;
* Close down Exploits. (I&#039;ve just been reorganising the Exploits pages so it&#039;s on my mind.) Maybe this is pointless for those who have the willpower just to abstain from using Exploits. But as these are actually bugs I think it would be good to fix them. The worst exploits in my opinion are:&lt;br /&gt;
** [[ExploitsA#Free Manufacturing|Free Manufacturing]]. Probably needs to add a check that the manufacturing project has &amp;gt;0 units before allowing it to start. &lt;br /&gt;
** [[ExploitsA#Free Wages|Free Wages]]. Pay wages regardless of whether staff are in transit. They are on the payroll after all. This has a drawback that you pay twice (1.5x) for staff you hired very near the end of the month, which would affect some styles of gameplay.&lt;br /&gt;
** [[Tactical Exploits]]: The worst ones are the Collision Detection bugs, those I imagine are &#039;&#039;&#039;hard&#039;&#039;&#039; to fix. &lt;br /&gt;
** Eliminate &amp;quot;infinite fuel&amp;quot; exploit for conventional aircraft.&lt;br /&gt;
* Side-arm throws for grenades: It would be nice if the game could first check for a direct fire solution (side-arm throw or straight throw) for a grenade attack, if the target is in range for a straight throw, Range for straight throws would be reduced (to 1/4 or so of the parabolic range). It would only go on to attempt the indirect fire solution (parabolic vertical throw) if the direct fire attack returns &amp;quot;no line of fire&amp;quot;. This would avoid a lot of the &amp;quot;hit the ceiling&amp;quot; issues with grenade indirect fire.[[User:Spike|Spike]] 08:54, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
* With View All Locations, put some kind of indicator or (better yet) counter on the Geoscape screen when there are UFOs in flight. In case the UFO is on the other side of the world from where you are currently looking. &#039;&#039;&#039;-OR-&#039;&#039;&#039;&lt;br /&gt;
* Make the world rotate at normal speed (i.e. once per 24 hrs. Rotation starts after say 12 or 24 hrs of looking at the Geoscape and not touching anything. Stops again if you touch the globe controls.&lt;br /&gt;
* Make Aliens able to pick up a weapon if they are empty handed! Or just make them pick up anything Alien in their square, if that&#039;s easier. Maybe move them towards a weapon if they have no weapon - much harder to do I suppose. But at least, if they are empty handed and happen to walk over an Alien weapon, pick it up! See discussion [[Wish List#Alien AI|here]]. &lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* [[Wish List#Prior Recon of Battlefield|&amp;quot;Eye in the Sky&amp;quot;]]. Map (set to visible) all terrain features on Turn 1 (but do not sight any hostile units). Ideally this should be only the exterior of buildings but that&#039;s probably too tricky. Assume we have something like a FLIR on the Skyranger that can do basic imaging of the inside of buildings.  &lt;br /&gt;
&lt;br /&gt;
* Grenades that [[Wish List#Warm Grenades|function normally]].&lt;br /&gt;
&lt;br /&gt;
* Fix Base Storage display problems that lead to storage weirdness. Discussion and recommendations [[Talk:Base Stores#Base Stores Anomalies|here]].&lt;br /&gt;
&lt;br /&gt;
* Enable native alien melee attacks within Alien Pets.  The Floaters are pleading.  (At the moment, Alien Pets+Big Brother means a crashed Superhuman Floater Large Scout costs 6-8 X-COM agents; corresponding crashed Sectoid Superhuman Large Scout is only worth 3-5 X-COM agents.  Floater Large Terror Ship on just Big Brother : only one agent, and that was due to the top-of-stair pinning bug providing enough TU to do something.) -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Do something to help out the psi aliens as well within Alien Pets, as above. -- [[User:Zaimoni|Zaimoni]] 12:39, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
* Would it be possible to change the master volume level in the game, or at least have a no sound option? [[User:Epiceuropean|Epiceuropean]] 00:26, 12 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
=== A few more ===&lt;br /&gt;
&lt;br /&gt;
Do any of these take your fancy:&lt;br /&gt;
&lt;br /&gt;
* Draw the Radar detection radii onto the map as a circle(s) around the base (also for moving aircraft?)&lt;br /&gt;
&lt;br /&gt;
* Show All UFOs (Ultrawave Detector - like Show All Locations, but doesn&#039;t show Alien Bases, you still have to hunt for those).&lt;br /&gt;
&lt;br /&gt;
* Sensible Ammo Recovery = add up all remaining rounds of ammunition at the end of a mission (in the ship, if Aborting), and recover a number of (full) clips equal to that number divided by the clip capacity (rounded down maybe).&lt;br /&gt;
: There&#039;s a reason I didn&#039;t turn Clip Recovery on, and it&#039;s that I guessed that it didn&#039;t work exactly as it&#039;s suggested here. If it did work like this, I would use it. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
* Implement tactical time limits for UFO Assaults/Recoveries. After a random period (within a pre-defined upper and lower time limit), the aliens leave. Pop up warnings appear at the end of each turn, saying the UFO engines are powering up. When the aliens leave, all aliens/items/equipment inside the UFO is gone - no loot, no score. Any soldiers still inside the UFO are considered MIA. The soldiers are &#039;&#039;captured&#039;&#039; in fact - score penalty worse than MIA? There must be one conscious alien inside the UFO for it to leave or attempt to leave. Maybe any live aliens outside are &#039;beamed&#039; or &#039;tractored&#039; inside the UFO, complete with their equipment? (E.g. the mission ends and you don&#039;t get score for them or their equipment either - just for the corpses and dropped loot).&lt;br /&gt;
&lt;br /&gt;
* No Milk Please: After XCom withdraws from an Alien Base, randomise the base&#039;s location and make it hidden again. Just like what happens to the aliens after they fail to assault an X-Com base. Though you would probably still need to locate it within the same country or region so finding it again wouldn&#039;t take long I guess. Would it mess things up to move the base to a random part of the world?&lt;br /&gt;
&lt;br /&gt;
* [[User:Spike#Tank mods|Tank Armour and Equipment Mods]]&lt;br /&gt;
&lt;br /&gt;
But I should probably code this up myself, looking at your source code it doesn&#039;t look &#039;&#039;&#039;too&#039;&#039;&#039; hard. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Burning Zombies&lt;br /&gt;
&lt;br /&gt;
It&#039;s more or less impossible to prevent Zombies from hatching into Chryssalids by killing the Zombies with fire, since fire does such a small amount of damage, and the requirement is that the actual killing point of damage is done by an incendiary. Apart from hitting them with an incendiary and running away, then waiting about ten turns for them to die (probably repeating the attack once or twice), this is only ever going to happen by blind luck. &lt;br /&gt;
&lt;br /&gt;
It would be much more viable if the rule was (also?) that a Zombie which is &#039;&#039;&#039;on fire&#039;&#039;&#039; at the time of death would not hatch into a Chryssalid. This is not exactly easy either, but it is at least possible. It requires hitting the Zombie repeatedly with incendiary weapons until it catches on fire, then killing it right away with regular weapons (before the fire goes out). &lt;br /&gt;
&lt;br /&gt;
A much easier version of this approach would be to say that if the Zombie is killed while it is &#039;&#039;&#039;in fire&#039;&#039;&#039;, it does not hatch. But that is probably too easy. &lt;br /&gt;
&lt;br /&gt;
A way to do this by hacking game files, without code changes, would be to increase the Zombie susceptibility to fire, to 200%. This would make incendiary weapons a viable way of killing them, as well as increasing the likelihood that the killing shot was an incendiary shot. &lt;br /&gt;
&lt;br /&gt;
An alternative approach would be for the Zombie to have a chance of not turning into a Chryssalid, proportional to the percentage of health damage that had been caused by incendiaries. But that&#039;s probably too hard to track, it would require an extra/unused field in UNITREF.DAT. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:12, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Fear of Fire&lt;br /&gt;
&lt;br /&gt;
Apparently there is no morale effect from [[Incendiary#Damage|Incendiary damage]]. If anything, for humans, and maybe be for other humanoid aliens, fire should probably have a greater morale effect than ordinary damage, not none. A basic fix would treat fire damage the same as normal damage when reducing morale. A more complicated fix could add a weighting to this morale effect: multiply by the creatures susceptibility to fire (or reduce by its resistance to fire). Any creature or soldier that is immune to fire should not have its morale affected. Actually the affects of fire vary quite a lot (different aliens, different human armour types). Maybe this is why the designers didn&#039;t get around to implementing morale effects for fire, as it&#039;s a bit complicated. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 13:40, 7 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Multi Stage Missions ===&lt;br /&gt;
&lt;br /&gt;
Between each stage of a multi-stage mission:&lt;br /&gt;
&lt;br /&gt;
* Send all artefacts (non-usable items), corpses and recoverables back to base&lt;br /&gt;
* If possible, remember the score for these items, and apply it to the score at the end of the mission&lt;br /&gt;
* Alternatively, pop up a score window between the mission stages, and apply the score then?&lt;br /&gt;
* Gather all loose usable equipment into the &amp;quot;equipment pile&amp;quot; for the next stage&lt;br /&gt;
* Or possibly re-run the Equip Screen between mission stages, again gathering all loose usable items into the equipment pile first.&lt;br /&gt;
* Keep an 80 item limit on what you can take into the next stage&lt;br /&gt;
* Prune down to the 80 item limit using some sensible rules, not sure what exactly.&lt;br /&gt;
&lt;br /&gt;
This is of limited use in X-Com EU but would be much more use for TFTD, one day. EU has only one multi stage mission, and it ends the game, so only some of these points above will be relevant. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 20:54, 2 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== Even More ===&lt;br /&gt;
&lt;br /&gt;
Tremendous work, you&#039;ve pretty much made the game worth playing again.  Best work since Xcomutil.  As with everone else, I have a few requests. [[User:KingMob4313|KingMob4313]] 23:59, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: Ability to change damage modifier.  Right now the damage runs from 0-200% of damage values on the weapon.  I&#039;d love to see a way to change it to 50-150%, 75-125% or the like. &lt;br /&gt;
&lt;br /&gt;
: A modifier to increase or decrease the explosion radius modifier.  Right now the radius is either keyed to the explosive or to the explosive damage.  I&#039;ll investigate it further.  But it would be nice to have a very small radius, but high powered explosive for use as a breaching charge. &lt;br /&gt;
:: There is a &amp;quot;crimping&amp;quot; function on some of the explosions already so it might be possible to exploit that. Check the [[Explosions]] page. [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: A modification of the range based accuracy.  One handed weapons have a shorter range, to the point that even their aimed shots have an effective range, two handed weapons have a further range (and no aimed shot effective range) and really heavy two handed weapons have an even further range. &lt;br /&gt;
&lt;br /&gt;
: A modification so that on the alien&#039;s side first turn, they do not have their full time units in reserve for reaction fire. Nothing like getting shot 3 times from the same sectiod after missing ONE shot on them.&lt;br /&gt;
&lt;br /&gt;
:: You could always wait a turn before you open the door. :) [[User:Spike|Spike]] 14:46, 24 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
=== More Exploits to Close ===&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
Probably the worst single exploit in the game. What is needed is to disable any mind control actions for a Psi Amp, if the unit holding the Psi Amp is currently mind controlled. &lt;br /&gt;
&lt;br /&gt;
Also a general mind control bug/exploit fix for:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Civilian Traitors]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Resurrect Zombified Agents]]&lt;br /&gt;
* [[Exploiting Mind Control#Exponential Mind Control|Zombie&#039;s Permanent Control of Aliens via Stunning]]&lt;br /&gt;
: Above 3 bugs are fixed by &#039;&#039;&#039;Hostile Civilians&#039;&#039;&#039; fix.&lt;br /&gt;
&lt;br /&gt;
* Probably many other missing/MIA-type bugs&lt;br /&gt;
&lt;br /&gt;
These probably all arise from the daft decision to save a single byte (or even bit), by not recording separately the current vs default &amp;quot;side&amp;quot; a unit is on. The game only tracks the &amp;quot;current side&amp;quot;. Consequently when mind control ends, the game often makes dumb decisions as to what side to &amp;quot;restore&amp;quot; the unit to. We could use an unused byte to track the default &amp;quot;side&amp;quot;, but that would require overloading a presumed &amp;quot;unused&amp;quot; field and that could be risky. But actually we can always deduce the &amp;quot;default side&amp;quot; from the unit type: XCom for soldiers and tanks, Neutral for Civilians, Alien for everything else. So what is needed is just an end-of-turn check to restore everything to its correct side, based on its unit type. Actually it&#039;s slightly complicated by alternating turns. You need to update all (originally) Alien units at the end of the Alien turn, all originally XCom units at the end of the XCom turn. You might also need a special end-of-game update, to avoid the MIA-type bugs. [[User:Spike|Spike]] 12:22, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: AlienSWP.py implements turnswapping via mind control, like XCOMUtil.  Handling the alternating turns, as you described, is necessary to make mind control work properly (a mind-controlled alien remains with X-COM during the alien turn, and so on).&lt;br /&gt;
&lt;br /&gt;
: I would assume that the original programming team had a coding policy forbidding both bitfields, and emulating them with bitwise shifts.  That&#039;s really the only way I can explain most of the idiosyncrasies of the file format.  [[User:Zaimoni|Zaimoni]] 12:07, 26 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
=== See Also ===&lt;br /&gt;
&lt;br /&gt;
*[[Wish List]]&lt;br /&gt;
*[[Known Bugs]]&lt;br /&gt;
*[[Exploits]]&lt;br /&gt;
&lt;br /&gt;
== Completed Items - Thanks Seb! ==&lt;br /&gt;
&lt;br /&gt;
See also the lists at: [[User:Seb76#Mods]] and [[User:Seb76#Bug_Fixes]]&lt;br /&gt;
&lt;br /&gt;
* Add 1-2 UFO Navigation to the haul after a successful Alien Base Assault. &lt;br /&gt;
:The game actually has specific code to remove these from the recovered items, it&#039;s just a matter of bypassing it. Next version will have an option to do so. [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:: Completed with the &amp;quot;Keep Base Navigation Tables&amp;quot; option. &lt;br /&gt;
&lt;br /&gt;
* Random chance (1-2%, and only for Scouts) per mission that a UFO accidentally crashes - like the &amp;quot;Roswell Incident&amp;quot;. Crash site would be automatically detected &amp;amp; UFO would have random damage. &lt;br /&gt;
:Sounds like a nice idea. I&#039;m working on it but I still have some crashes, and the routine to check if a ship is over water does not seem to work properly :( [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
:Update: feature almost complete, time to bake a new version ;-)&lt;br /&gt;
&lt;br /&gt;
:[[Image:Roswell.png]]&lt;br /&gt;
&lt;br /&gt;
:There are probably some bugs lurking (the most likely problem would be unfreed CRAFT.DAT entries), but I don&#039;t think I&#039;ll change the code much now. [[User:Seb76|Seb76]] 07:47, 13 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Got an idea while I was at work today that I thought I&#039;d throw onto the wish list. Some means to completely fast-forward the base defense screen. Either by making all the firing sequences happen in an instant, or completely skip the screen altogether. I always advise against making impenetrable bases if only to preserve your sanity. I mean you eventually get sick of being interrupted to watch the defense module firing screen for the umpteenth time. If you never got the interruptions then an impenetrable base would be quite satisfactory. You shouldn&#039;t be getting any points for a failed base attack so you won&#039;t be gaining from it. About the only problem would be when an undefended base gets destroyed, unless you can make a dialog box pop up to announce it. -[[User:NKF|NKF]] 03:10, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
: Fixed with &amp;quot;Faster base defence sequence&amp;quot; option. [[User:Spike|Spike]] 06:40, 14 December 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Multiple Radar - Fixed. &lt;br /&gt;
&lt;br /&gt;
Can I ask what algorithm you used for Multiple Radar? The algorithm in my BaseFixer.py Python script is actually much better than the fairly lame one described on my User page. [[User:Spike|Spike]]&lt;br /&gt;
:As I said, I used about the same as in you BaseFixer script:&lt;br /&gt;
 float shortDetection=pow(0.9f,smallRadars);&lt;br /&gt;
 float largeDetection=pow(0.8f,largeRadars);&lt;br /&gt;
 &lt;br /&gt;
 *(short *)(&amp;amp;base[0x10])=(short)((1.0-shortDetection*largeDetection)*100.0);&lt;br /&gt;
 *(short *)(&amp;amp;base[0x12])=(short)((1.0-largeDetection)*100.0);&lt;br /&gt;
:However I keep the computed value even for the one small/one big radar combo ;-) [[User:Seb76|Seb76]] 07:19, 7 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
* Accuracy reductions for long range snap and auto fire - Fixed. &lt;br /&gt;
* Aircraft always ready for mission despite re-fuel/re-arm status - Fixed&lt;br /&gt;
* Stack up base build orders in advance - Implemented&lt;br /&gt;
* More smoke and fire - Fixed&lt;br /&gt;
* Blaster drift and waypoint bug - Fixed&lt;br /&gt;
* Stats visible during Equip phase - Implemented&lt;br /&gt;
* Melee combat (bludgeoning) with any weapon - Fixed&lt;br /&gt;
* With &amp;quot;Council Funding Only&amp;quot;, allow items to be sold for money if they are &#039;&#039;purchasable&#039;&#039; (i.e. conventional weapons). Buying and selling these is loss making, and there is no source of them on the Battlescape, so it does not create any &amp;quot;income&amp;quot; (except at the start of the game perhaps). But it does help to manage a tight budget. And you need all the help you can get with &amp;quot;Council Funding Only&amp;quot;. Check offset 18 of [[PURCHASE.DAT#Structure|PURCHASE.DAT]] If byte 18 is true then it&#039;s ordinarily Purchasable, so it&#039;s ok to sell that item. - OK, here is your christmas gift ;-) You can sell what you can purchase now. [[User:Seb76|Seb76]] 08:28, 28 December 2008 (CST)&lt;br /&gt;
* Close Down Exploits&lt;br /&gt;
** [[ExploitsA#Robotic Manufacturing|Robotic Manufacturing]] / [[ExploitsA#Cybernetic Laboratories|Cybernetic Laboratories]] - Fixed&lt;br /&gt;
&lt;br /&gt;
* More video options. In particular, an option to put padding at the top and the bottom of the screen to preserve the aspect ratio on a 4:3 monitor. Maybe it&#039;s just me, but stretching the original height of the game to fit a 4:3 screen makes the Battlescape look weird. (Actually, if you update the source code link, I could try to do it myself. The current source doesn&#039;t seem to include your more recent changes. --[[User:Mikawo|Mikawo]] 20:30, 12 August 2009 (EDT))&lt;br /&gt;
** Thanks for uploading the new source code. I managed to add the letterboxing that I wanted. If you wanted to make it an official feature I could upload the updated files. And I don&#039;t think I said this before, but thanks for the great loader! --[[User:Mikawo|Mikawo]] 18:40, 14 August 2009 (EDT)&lt;br /&gt;
:Go ahead and upload/PM me the file (d3d.cpp I presume?), I&#039;ll gladly incorporate your modification. [[User:Seb76|Seb76]] 19:14, 14 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Fix the [[Tactical Exploits#Fire|bug]] where all units in smoke/fire take stun/fire damage, whenever any smoke/fire hex is hit with an [[Incendiary]].&lt;br /&gt;
&lt;br /&gt;
:: Boy oh boy this is a tough one. First we need to figure out how Incendiary actually works. Zombie is getting in to some heavy testing over on [[Talk:Incendiary]]. Right now, the more we learn, the more we know we &#039;&#039;don&#039;t&#039;&#039; know. With this &#039;Funky Fire&#039; bug, presumably what is going on is that during an Incendiary explosion, the game engine loops through all units that are in fire(and on fire?). This is wrong. What it should be doing is testing to see if they are within the Area of Effect of this particular IN round. The game definitely has working code to correctly select units within an area of effect, since that&#039;s what happens for HE and Stun explosions. But in this case it does not apply the correct selection criteria. What is looks like it does is scans the Unitref table (copy in memory) for every unit standing on a tile with fire in it, and maybe also with the &#039;on fire&#039; flag set. Both of these lookups are actually irrelevant to an exploding IN round. These looks would make exact sense for the end-of-turn processing of fire damage, but not for the instantaneous effect of an IN round. They should use the HE/Stun routine instead, to select the units for processing. Then when the units are selected, it should apply the IN effects - still to be determined. So yes, I think what&#039;s happened is the coders mistakenly used the &amp;quot;end of turn&amp;quot; criteria to select units for instantaneous damage/effect when an IN round explodes. Anyway, once Zombie has sorted out the facts, maybe you could take a look at these IN explosion routines? I guess one difficulty is that the HE routine is performing 2 functions - it&#039;s doing damage to terrain, and also flagging units to apply damage to. It may also be setting smoke. Similarly, the IN routine ought to have 2 functions - to apply fire/burning time to the tile, but also to apply IN damage effects to the occupants of the tiles. This really could be coded badly and just hard to fix. [[User:Spike|Spike]] 19:17, 11 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
OK I&#039;m pretty sure this is the whole problem with the Funky Smoke/Fire bug. What&#039;s going on is the Incendiary Explosion routine is calling the whole end-of-turn smoke/fire processing routine, every time an IN round explodes anywhere on the map. That&#039;s why you get smoke induced stun as well as fire-induced damage. All you need to do is find this IN Explosion routine and make it return unconditionally before it calls the end-of-turn routine. That will substantially solve the bug. What the IN Explosion routine ought to do is:&lt;br /&gt;
&lt;br /&gt;
# In area of effect&lt;br /&gt;
##add fire to tiles&lt;br /&gt;
##&#039;&#039;&#039;possibly&#039;&#039;&#039; do 33% check for units to catch fire - &#039;&#039;&#039;unless&#039;&#039;&#039; this is performed by the end of turn routine (probably)&lt;br /&gt;
# IF a unit was hit directly&lt;br /&gt;
## check to see if it catches fire&lt;br /&gt;
## &#039;&#039;possibly&#039;&#039; do &amp;quot;impact&amp;quot; damage. &lt;br /&gt;
# Return, &#039;&#039;&#039;without&#039;&#039;&#039; calling the end-of-turn smoke/fire routine&lt;br /&gt;
&lt;br /&gt;
And it&#039;s entirely possible there was never supposed to be any &amp;quot;impact&amp;quot; damage, all that was intended was to set tiles and units on fire, with any damage only coming at the end of turn. You can easily imagine a last minute and ill-considered coding decision to run the end of turn routine upon every IN explosion, as an attempt to increase IN lethality, without thinking through the implications properly. So the &amp;quot;impact&amp;quot; damage could just be a side effect of the funky fire bug - applying the 5-10 &amp;quot;on fire&amp;quot; damage right away, when it was meant to be applied at end-of-turn. &lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 22:11, 11 March 2009 (CDT)&lt;br /&gt;
:Hey, that&#039;s a nice piece of supposition:) There is actually what I called an ApplyFireAndStunDamage function which is indeed called after IN explosions and at the end of the turn... It basically damages/stuns every unit on fire/in smoke and makes units standing in firing tiles possibly take fire. The function is called 5 times, one of which is at the end of the turn so patching the 4 other locations should remove the bug; but also weaken the IN rounds...[[User:Seb76|Seb76]] 16:22, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks! :) But now you&#039;re scaring me - why would there be &#039;&#039;&#039;4&#039;&#039;&#039; calls to this function, apart from end-of-turn? Why wouldn&#039;t there just be one piece of common code, one call, for IN explosions? I&#039;m racking my brains. I guess there could just be 4 different situations when an IN round could explode. Maybe - direct impact, impact with terrain, reaction fire, large units, auto fire... guesswork! Reaction fire is a good guess - we already know lots of things that are bugged with reaction fire, which suggests the code for reaction fire may be a separate loop. There are hints that auto fire may be handled differently for IN - only hints. I&#039;d be worried patching out all 4 calls. But, if you can do it, I&#039;m very happy to test for unintended consequences. &lt;br /&gt;
&lt;br /&gt;
::It will be interesting to see if patching out all 4 calls eliminates &amp;quot;impact&amp;quot; IN damage from direct hits - suggesting it was only ever an unintended effect of the bug. It may not be possible, but &amp;quot;impact&amp;quot; damage might be the one thing to retain, to avoid making IN weapons too weak. Still it might not be an option. Interesting stuff! &lt;br /&gt;
&lt;br /&gt;
::Any chance you could do 5 separate config file flags to mask out the 5 calls? Then I could determine by experiment what each one does. [[User:Spike|Spike]] 18:27, 12 March 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Replace the batch file that runs xcomutil. Make it so the loader will call an outside program at certian points. Add a section to the config file that will allow the user to pick a program to be run.&lt;br /&gt;
[Utilities]&lt;br /&gt;
Run Utilities=0|1&lt;br /&gt;
Run before battle=&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run after battle =&amp;quot;xcomutil ...&amp;quot;&lt;br /&gt;
Run before base screen=&amp;quot;xcomutil ...&amp;quot; &lt;br /&gt;
:The above works perfectly. [[User:KingMob4313|KingMob4313]] 00:05, 13 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Allow scrolling the map with the keyboard. &amp;quot;WASD&amp;quot; as default maybe, since you used the arrow keys and most people have thier left hand free anyway. Allow moving units one square at a time with the numpad. First tap changes facing if not looking that way, second one moves you in that direction.&lt;br /&gt;
:Fixed via Keyboard Shortcuts - and configurable too.&lt;br /&gt;
&lt;br /&gt;
== Warm Grenades ==&lt;br /&gt;
&lt;br /&gt;
It would be nice to have a Mod where grenades / HE  explode a set number of half-turns after you drop/place them. &lt;br /&gt;
&lt;br /&gt;
This could be implemented by an extra bit of logic that increments the &amp;quot;Turn When I Will Explode&amp;quot; field by +2 if the grenade is being held/worn when the Explode check happens. &lt;br /&gt;
&lt;br /&gt;
For me this is a more natural way for grenades to work: set the fuse, then the fuse only starts when you release the spring or set the HE pack in position. Certainly hand grenades should behave this way. I guess people could argue that HE packs should behave in the standard way. In which case, you could check the weapon type and use different logic for HE.  &lt;br /&gt;
&lt;br /&gt;
Hopefully the Alien AI would not be confused by any of these changes. I suspect the AI cheats anyway? Or always sets to 0 and throws right away? [[User:Spike|Spike]] 02:00, 2 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Facility maintenance cost bug ==&lt;br /&gt;
&lt;br /&gt;
Could you fix that? [[User:Spike|Spike]] 16:15, 3 September 2008 (PDT)&lt;br /&gt;
:I&#039;m a bit confused about this one. Some says that the fund graph is OK but not the amount of money taken. I had a look at the code and found that what is shown on the graphs is exactly the same amount as removed (the graph data is updated at the same place and the computation is done once for both). I think I remember also someone saying that the bug does not exist at all... Can someone clarify? [[User:Seb76|Seb76]] 02:31, 15 September 2008 (PDT)&lt;br /&gt;
::The graph is ok and the amount of money taken is ok (tested). What is wrong is the maintenance displayed in the &#039;Base overview&#039; screen (in every respective base you go to &#039;overview&#039; and something like &#039;maintenance&#039;). The wrong way is very well described here [[Base_Facilities#Displayed_Base_Maintenance_Cost_Bug]], I think you will guess what exactly is wrong in the code. --[[User:Kyrub|Kyrub]] 15:34, 17 September 2008 (PDT)&lt;br /&gt;
:Thanks, I found the code and it is indeed completely f*cked up. I&#039;ll try a fix tomorrow. [[User:Seb76|Seb76]] 16:53, 17 September 2008 (PDT)&lt;br /&gt;
:Edit: Done. What&#039;s next? ;-) [[User:Seb76|Seb76]] 01:15, 18 September 2008 (PDT)&lt;br /&gt;
::Blimey. Seeing the work you have put in (below), it is impressive beyond measure. And... what next? Well... Could you possibly fix a game harming BUG of the blind spots? How come he sees you, and you do not see him, and vice-versa? There must be some strange way the line of sight is implemented in the code... See here: [[http://www.ufopaedia.org/index.php?title=Line_of_sight]], &amp;quot;Blind spots around the corner&amp;quot;.&lt;br /&gt;
Just how bad was the mess up? Curios minds demand to know! By the way, my mind was wandering while at the office and one thing came to mind to add to your already useful inventory display: Armed grenade status. Ever drop one you&#039;ve just armed and lose it in a pile of other unarmed grenades on the ground? &lt;br /&gt;
:Well, from the look of it, I think they were trying to compute the maintenance cost using an array. Obviously something was wrong.&lt;br /&gt;
:*they first try to clear an array of 0x11 entries at the begining of the function (there are 0x11 base elements types, hangar count as 1). Note that there is already a bug here and the array is not cleared as expected, only the first entry is cleared 0x11 times...&lt;br /&gt;
 mov     esi, 11h&lt;br /&gt;
 ...&lt;br /&gt;
 loc_44004C:&lt;br /&gt;
 dec     esi&lt;br /&gt;
 mov     word ptr [esp+3Ch+elementsArray], 0&lt;br /&gt;
 jnz     short loc_44004C&lt;br /&gt;
:*ecx is initialized to point to the maintenance cost data (nothing wrong here)&lt;br /&gt;
 mov     ecx, offset baseElements.maintenance&lt;br /&gt;
:*then they loop on each base element, but the inner loop is nonsense (at this point ax contains the base element type. edi is the total maintenance cost):&lt;br /&gt;
 movsx   eax, ax&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     eax, [eax+eax*4]&lt;br /&gt;
 lea     edi, [edi+eax*8]                        ;totalMaintenaceCost+=elementMaintenanceCost*1000&lt;br /&gt;
:we see that they increment the array element, but the content of the array is discarded and the maintenance cost (edi) is computed simply from [ecx].&lt;br /&gt;
:*then after each row, we have this:&lt;br /&gt;
 add     ecx, 10h&lt;br /&gt;
:which explains why the cost changes for each row.&lt;br /&gt;
:I don&#039;t see what kind of C code could produce such disassembly; maybe there is a bug in the compiler,at least the address calculation should have been removed (optimized out).&lt;br /&gt;
:The fix required two patches:&lt;br /&gt;
:*remove the incrementing of ecx for each row&lt;br /&gt;
 char nop[]={0x90,0x90,0x90};&lt;br /&gt;
 PatchInPlace(0x44066E,nop,3);&lt;br /&gt;
:*make a working inner loop:&lt;br /&gt;
 char patch[]={&lt;br /&gt;
   0x03, 0xc0,                  // add eax,eax&lt;br /&gt;
   0x8a, 0x04, 0xc1,            // mov al, BYTE PTR [ecx+eax*8] ;get the maintenance cost for the *specific* base element&lt;br /&gt;
   0x0f, 0xb6, 0xc0,            // movzx eax, al&lt;br /&gt;
   0x90, 0x90, 0x90, 0x90, 0x90 // nop the remaining&lt;br /&gt;
 };&lt;br /&gt;
 PatchInPlace(0x440651,patch,13);&lt;br /&gt;
:this takes care of the nonsense code&lt;br /&gt;
 inc     word ptr [esp+eax*2+44h+elementsArray]  ;increment the array entry corresponding to the base element type&lt;br /&gt;
 lea     eax, [esp+eax*2+44h+elementsArray]      ;get the address of the array entry we just incremented&lt;br /&gt;
 xor     eax, eax                                ;discard the address we just computed (!)&lt;br /&gt;
 mov     al, [ecx]                               ;get the maintenance cost from ecx; the element type is not used here (!)&lt;br /&gt;
&lt;br /&gt;
Very interesting stuff! By the way I&#039;m playing a &amp;quot;Roswell&amp;quot; game at the moment and loving it - thanks Seb! [[User:Spike|Spike]] 10:31, 20 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
==Grenade Status Indicator==&lt;br /&gt;
&lt;br /&gt;
Is it possible to include an indicator on the end of the grenade&#039;s name string to show whether the grenade has been armed? Or perhaps even show how many grenade ticks are left to go? &lt;br /&gt;
:Hmm, I&#039;ll see if I can find something&lt;br /&gt;
&lt;br /&gt;
== Keyboard Support ==&lt;br /&gt;
&lt;br /&gt;
Would it be possible to introduce some keyboard shortcuts for simple tasks? -[[User:NKF|NKF]] 00:48, 19 September 2008 (PDT)&lt;br /&gt;
:sSuch as? [[User:Seb76|Seb76]] 02:52, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Hmm, perhaps a few keys like they had in Apocalypse for ending the turn and raising/lowering the elevation with the page up and down keys would be a good start, or jumping to the inventory screen. Perhaps keys in the Geoscape for setting the time compression settings. I can already see a bit of an obstacle with adding a key capture function in the Geoscape, you&#039;d have to know when you&#039;re entering strings or every other time when you&#039;re just toggling the Geoscape overlay. I&#039;ve always admired this game for relying on a two button mouse for pretty much everything except when entering strings, but if it&#039;s within the realm of possibility I think it would be great to have some keyboard shortcuts. -[[User:NKF|NKF]] 12:39, 19 September 2008 (PDT) &lt;br /&gt;
&lt;br /&gt;
Well, since it has been a little while now, and nobody has said anything, let me be the first. Thank you for the shortcuts on the geoscape. As I mentioned before, I had the shortcuts on battlescape on, but personally I never used them because it is not timed. But the geoscape, being that there is no pause, I have found a lot of use in shortcuts. Works perfectly for me, too. Secondly, the obdata editing feature is fantastic. If only it worked on accuracy, too....&lt;br /&gt;
Thanks again, my friend. --[[User:Talon81|Talon81]] 17:19, 22 May 2009 (EDT)&lt;br /&gt;
:I&#039;ve put a new version with support for more settings, give it a shot ;-) [[User:Seb76|Seb76]] 06:25, 23 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
First off have to say that this is outstanding work Seb, sincere thanks for what you have done here. I have started playing this again after years thanks to your hard work. I was going to suggest the old smoke limit problem but before I could you fixed it!! I have some other ideas, I know there are a lot but I thought I would throw them in anyway. Don’t mind if you think there all rubbish, you’ve done loads already. &lt;br /&gt;
:Thanks. Don&#039;t hesitate to suggest stuff, if it is not too difficult I&#039;ll try to make something :)&lt;br /&gt;
BTW is there a separate loader with your new Laser weapon? Can’t see it listed in the extender file (not researched it in my current game yet).&lt;br /&gt;
:There is a special [[Image:UFOExtender-dev.zip|dev version]] for the HL mod. It is not in the normal package since it is still too experimental. &lt;br /&gt;
A suggestion for a mod would be the following; I understand that if you defeat an alien assault on your base with base defense measures, then the aliens will continue to attack that base with more battleships until defeated inside the base (they then have to ‘find’ your base again before launching another attack). Can this be altered so that if their battleship is destroyed then they have to find your base again before dispatching anther battleship? Or a chance that they have to find it again. &lt;br /&gt;
:I&#039;d gladly work on that, but I need a savegame to reproduce the problem. I have one but when the battleship is destroyed, no other comes back later so there must be something wrong with it.&lt;br /&gt;
Another suggestion is that I also understand that when the aliens use psi attacks they always go for your guys with the most chance of failing the attack and going nuts. Is it possible to make those pesky aliens attack random soldiers, regardless of their psi skill/strength? &lt;br /&gt;
:At one time I had the idea of having aliens target only visible units, but then I thought that the scout units would be doomed. Maybe targeting any unit randomly would be better. I&#039;ll give it a try.&lt;br /&gt;
If you psi control a human in a terror mission, they become enemies when you lose control (meaning you have to kill the poor idiots to finish the mission). Any chance that they could revert to friendlies/non enemies again when you lose control? &lt;br /&gt;
&lt;br /&gt;
Men who are under alien control when you win become MIA, any chance they could be saved (you will have killed all the aliens after all).&lt;br /&gt;
:These two are on my secret todo list ;-)&lt;br /&gt;
::I was doing a Terror mission and getting creamed by Sectoids and Cyberdisks. Had a couple of guys left and got them back into the Skyranger only to find a civilian cowering at the back (must of walked in at some point). When I took off the civilian was counted as being killed by the aliens. Would it be possible to count any civilians in x-com craft at end of Terror as recued if you have to blast off? I think this would work interestingly with the civilians psi control issue above if they no longer became enemies after you control them. :-)--[[User:Mal310|Mal310]] 09:23, 22 September 2008 (PDT)&lt;br /&gt;
80 item bug on base defense mission&lt;br /&gt;
:May be hard to pull off. IIRC there is a 170 objects limit in the battlescape, and we must leave some room for the aliens...&lt;br /&gt;
I have noticed that sometimes you can shoot through hard objects, for example, recently I had a soldier up on the roof of a house overlooking a large scout craft. When a Sectiod moved through one of the inner doors of the UFO, my man shot him straight through the intact ufo roof!  &lt;br /&gt;
:I think this is a known issue with LOS, not sure though&lt;br /&gt;
I don’t know if this is already implemented in the game? When the aliens attack your base and you defend it with base defense measures does the following occur and if not a mod maybe? When you hit the battleship with your weapons but it still gets through (e.g. you hit the battleship with some missiles before it lands) can the number of attackers be reduced accordingly. For example if you hit it with some missiles then maybe they could have a couple less soldiers attacking (could be random small amount) or when you hit with loads of stuff like plenty of fusion balls and the battleship just makes it then their attack could be reduced to a few aliens (all others got killed in the defense). As I say not sure if this is already there to some degree (not played in a long time and I’m not at that stage yet this time round). &lt;br /&gt;
:I don&#039;t think this is done already. It may be possible to modify the number of units according to the damage done to the attacking ship, I&#039;ll have to take a look&lt;br /&gt;
This one is way out there. Alien v Alien battles outwith main game, just ramdom battlescape maps. Sectoid and their terrorists against Floters and theirs etc. One side human controlled the other computer . Choice of ships involved etc. &lt;br /&gt;
:Hmm, you do know I don&#039;t have the original source code available, don&#039;t you? :p&lt;br /&gt;
Any plans to work on Terror from the deep? &lt;br /&gt;
:I had a look and reidentifying the specific patch locations is quite tedious, and I&#039;m quite lazy... The loader source is available however, if anyone feels like giving it a shot ;-) [[User:Seb76|Seb76]] 16:38, 19 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
Thanks for the reply. If I get a suitable saved game re the base attack I’ll let you know. Great to hear that a couple of the ideas are on your list already. I have been playing around with the smoke bombs since your fix. I have not noticed any problems, seems to be working fine. --[[User:Mal310|Mal310]] 12:10, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Inventory screen ammo weight bug ==&lt;br /&gt;
&lt;br /&gt;
I think there is a small bug. The weight of loaded weapons is not initially calculated. The base weight of the weapon is used but the weight of the ammunition is ignored. However if you reload the weapon in the inventory screen, the correct weight is then calculated. I have seen this repeatedly with AutoCannons. I am using XcomUtil to &#039;remember&#039; the equipment loads - maybe this might be part of the problem? [[User:Spike|Spike]] 09:24, 21 September 2008 (PDT)&lt;br /&gt;
:Yeah, I noticed this one already but flagged it as minor :) I&#039;m using a function that I found in the executable to calculate the weight (the one that&#039;s actually used by the game to see if a soldier is overburdened) so it is an original bug. Anyway, this calls for a fix ;-) [[User:Seb76|Seb76]] 09:47, 21 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
:: Is this the same bug that is present when calculating the throwing range of a loaded weapon? (NKF)&lt;br /&gt;
:Does not ring any bell. Any link?&lt;br /&gt;
&lt;br /&gt;
There are major issues with your current weight calculations. I&#039;m not exactly sure how it was occurring, but repeatedly messing around unloading and loading weapons, switching clips from the ground them putting them back in... at least one of these functions causes &#039;phantom weight&#039; to be added to the soldier (e.g. strip them bare and they are still carrying a load). This was happening by 3 units of weight at a time; the weight of a clip. It&#039;s so bad that I managed to get 18 phantom weight units on a soldier before getting bored. Occasionally, 3 units of phantom weight would be removed again! It&#039;s hard to tell if this was in the original game, due to the lack of weight display in  the inventory screen. &lt;br /&gt;
&lt;br /&gt;
Edit: I&#039;ve worked out what&#039;s happening. Add a loaded weapon to a soldier, unload it, and remove the ammo and gun: this &#039;&#039;removes&#039;&#039; 3 phantom weight units. But, add an unloaded weapon to a solider and load it... this &#039;&#039;adds&#039;&#039; 3 phantom weight units. [[User:Stubbs|Stubbs]]&lt;br /&gt;
:This is a genuine bug because they forgot to unassign the clip of a weapon when you drop it. Also the default weapon&#039;s clip is not initially assigned to the wearer so if you unload and reload the clip, your soldier weights more. [[User:Seb76|Seb76]] 13:27, 3 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Equipment issue ==&lt;br /&gt;
Also, something that I was reminded of while in the rifle vs. laser pistol discussion. It&#039;s not related to the weight bug but it is inventory related: The weird pistol arming bug where sometimes no one arms any pistols, or only one guy will arm one pistol and then fill every available inventory slot with the respective pistol clip. I&#039;m sure it was thrown in so that pistols were always the last to be armed, but is it possible to make the game ignore this and arm the pistol like every other weapon? -[[User:NKF|NKF]] 15:20, 26 September 2008 (PDT)&lt;br /&gt;
:There is a lot of possible work to do with how the soldiers are equiped (equip stuff on shoulders first instead of belt, keep equipment from last battle à la xcomutil, stop having one guy get stuffed up with every ammo available, etc). Since obviously all that is tightly intertwined, it requires some thought before getting into it... Plus this is a part of code that I did not analyse yet ;-) [[User:Seb76|Seb76]] 03:40, 27 September 2008 (PDT)&lt;br /&gt;
&lt;br /&gt;
== Request For UFO PS Explosion Offset ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb, in the [[Talk:Explosions#UFO_Power_Source_Explosions|Explosions Talk page]] you mention the following:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;i&amp;gt;Looks like before the first turn, the engine will look for every tile in the map (it scans the MAP.DAT data linearly) ; when it finds a power source (it checks if the MCD special property is set to 2), there is a 25% chance that it will leave it alone. Otherwise, it&#039;ll generate an explosion at the UPS location with a strength of 180+RND*70. Whether the UPS blows up on top of that or is just destroyed, I do not know. Can someone hack the MCD data and see if it&#039;s possible to generate an explosion on a tile that is not a UPS just by messing with the special property? PS: I am almost certain of the 75% probability of explosion vs 70% that is often stated here. [[User:Seb76|Seb76]] 09:31, 12 February 2008 (PST)&amp;lt;/i&amp;gt;&lt;br /&gt;
&lt;br /&gt;
I&#039;m just wondering where the power source explosion is coded in the executable. If you could tell me that, I&#039;d be able to edit it down so that units don&#039;t take quite so much damage. This is a whole heck of a lot better than editing unit stats to near maxed-out levels as the number of trials needed to find the average would be cut by a few orders of magnitude. Also, if you have an email address where I could contact you directly, it would be appreciated (email me with it). Thanks! --[[User:Zombie|Zombie]] 23:58, 2 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
== Great new features ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb! I just saw you uploaded a version with lots of new features. It was a great idea to add some of the [[Making the Game Harder]] scenarios. I look forward to trying all the new features out (some previous ones I&#039;ve missed as well). Cheers! [[User:Spike|Spike]] 16:37, 19 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:OK I dusted off my Windows version of XCOM and installed your latest loader. I have to say I love it! The range-based accuracy is great. I use about half the default values, I might try returning them to the default levels as it makes snap&amp;gt;auto for everything above point blank. But it&#039;s definitely working as designed. And I love the %Acc indicators over the target square. Not to mention the (primed) indicator on grenades. &lt;br /&gt;
&lt;br /&gt;
:I played with Alien Pets and Big Brother and View All Locations and found a few strange bugs:&lt;br /&gt;
:* If you use the left and right arrows in the Inventory screen to try to move to a different Alien unit, you only see human units&lt;br /&gt;
:* The character graphic displayed on the Inventory screen is a human, not the appropriate type of Alien&lt;br /&gt;
:* For some reason if you check on turn one the aliens weapons are not loaded and not in their hands. This was in a Roswell scenario, so might be more to do with Roswell. - No, I also got it on my base defence mission. Hang on, silly me, this is just normal for Aliens under mind control isn&#039;t it? &lt;br /&gt;
:* In night missions, even with Big Brother &amp;lt;strike&amp;gt;and View All Locations&amp;lt;/strike&amp;gt; set, I could only see what my guys had illuminated &amp;amp; seen. &lt;br /&gt;
:* View All Locations showed the incoming Battleship before my radars detected it on the half-hour, which gave me a brief chance to prepare my base for attack. Not exactly a bug, more a feature - different. Sadly I wasn&#039;t quick enough so ended up defending with loads of ammo clips and not enough weapons. :)&lt;br /&gt;
::The &amp;quot;Hack&amp;quot; section is really not to be used for gameplay; there I put patches that are useful to test my stuff, nothing more. I only make them available in case it can help someone with her analyse of the game. All the strange things you mention are expected behaviors ;-) [[User:Seb76|Seb76]]&lt;br /&gt;
:* With Alien Bases and View All Locations, the X-COM bases show up as pink.&lt;br /&gt;
:* It wasn&#039;t obvious to me that I needed to set e.g. &amp;quot;Initial Alien Bases=20&amp;quot; rather than just &amp;quot;Initial Alien Bases=1&amp;quot;. I is dumb! [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:Now I need to check the notes on this page to get it working with XComUtil. The one thing that really p____s me off about playing without XComUtil is having to allocate equipment to my guys before every mission. It&#039;s really tedious! Especially as I tend to take 14 guys on each mission. &lt;br /&gt;
:I have not developed Heavy Laser yet, &amp;lt;strike&amp;gt;nor beaten up any aliens in melee,&amp;lt;/strike&amp;gt; but I will let you know how that goes. Thanks for all your amazing work! [[User:Spike|Spike]] 19:00, 23 November 2008 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Awesome. I just completed a mission by my Captain pistol-whipping a Floater Navigator into unconsciousness. How cool is that? But - possible bug - it cost my guy only 8 TUs per attack when he has about 58 total TUs. Is that intended, or is that an error? [[User:Spike|Spike]] 19:38, 23 November 2008 (CST) &#039;&#039;(Later)&#039;&#039; I&#039;m regularly beating up aliens, it&#039;s a giggle. The close quarters combat feels much more authentic now, I love it. &lt;br /&gt;
:::The small TU usage for the pistol is normal (it goes with small stun damage). I liked the idea of having to bash an alien for a while before he falls. Did you not experience reaction fire from the alien? [[User:Seb76|Seb76]]&lt;br /&gt;
::::The TU costs are percentage based instead of fixed(this has been clarified on the main page).  15% of 58 is 8.7 TUs, which truncates to 8.  [[User:Arrow Quivershaft|Arrow Quivershaft]] 14:15, 24 November 2008 (CST)&lt;br /&gt;
: I&#039;m having so much fun and doing so well I got a Base Defence on Superhuman on Jan 12th.  And with the old, sucky starting base layout (hangars take 25 days to move!). I&#039;ve never seen so many Floaters and Reapers at one time. I knew there was a reason to hang on to those Incendiary rounds - bad doggie, down! Loads of fun, however one or two bugs have cropped up:&lt;br /&gt;
::Glad you&#039;re having fun :-) [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
::* The game crashed as a soldier walked down the stairs from Living Quarters. This is probably a bug in the game and not a bug in your loader. &lt;br /&gt;
: Let me know what details I can give you. [[User:Spike|Spike]] 20:43, 23 November 2008 (CST)&lt;br /&gt;
::Can you provide me with a savegame that reproduces the crash? I think it is the bug that makes defence missions crash around turn 5-6 sometimes (it crashes during the alien turn). I could not reproduce it. [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
== Base Disjoint Bug Fix ==&lt;br /&gt;
A Base Disjoint has occurred, despite enabling your Based Disjoint bug fix. &amp;lt;strike&amp;gt;It may be an usual one because it&#039;s not on the bottom nor the right edge of the map (isn&#039;t that where Disjoints are supposed to happen?)&amp;lt;/strike&amp;gt;. It&#039;s the normal, bottom of the map edge kind. Here is a [[Media:BaseDisjointGenStores.ZIP|screenshot]] (anyone got a freeware TGA converter?).&lt;br /&gt;
: Hum, the code was badly f***ed up. Can you retry with the last version? [[User:Seb76|Seb76]]&lt;br /&gt;
&lt;br /&gt;
I downloaded the latest version but unfortunately no effect. It didn&#039;t fix the saved Base Defence scenario. I also restarted from 3 hours before the attack and so created a new Base Defence mission, twice, but no change - still bugged. I&#039;ll post the [[Media:IncomingRetaliation.zip|savegame from 3 hrs before]] in case that helps. [[User:Spike|Spike]] 14:24, 25 November 2008 (CST)&lt;br /&gt;
:Kinda weird, it works here. Maybe I made a faulty delivery... [[User:Seb76|Seb76]] 15:34, 25 November 2008 (CST)&lt;br /&gt;
:Edit: nope, took the patcher from the delivery and it worked. Are you sure you enabled the fix? [[User:Seb76|Seb76]]&lt;br /&gt;
Yes I doubled checked a couple of times. I set the flag as&lt;br /&gt;
&lt;br /&gt;
 Base Disjoint=1&lt;br /&gt;
&lt;br /&gt;
Is that correct? I&#039;ll try again anyway. [[User:Spike|Spike]] 17:20, 25 November 2008 (CST)&lt;br /&gt;
: Oops my fault. I updated the .exe but not the patcher.dll. (I didn&#039;t want to overwrite my UFOExtender.ini - very lazy of me.) Doh!&lt;br /&gt;
&lt;br /&gt;
== A couple of bugs to report ==&lt;br /&gt;
&lt;br /&gt;
Two things so far. With wreck analysis enabled I am getting analysis reports even after raiding alien bases. On one occasion this seemed to have fairly random strings inserted into the variables, resulting in the message &amp;quot;The Alien Food UFO was on an Damage Capacity mission in Power Sources.&amp;quot; All things considered, this is just a cosmetic problem as the actual UFOs are being properly analysed. However, this has got me curious as to what enables you to perform these analyses? It doesn&#039;t happen right from the beginning of the game, at least for me. From the description of the feature I thought maybe it was after researching UFO navigation, but then the messages started popping up before that.&lt;br /&gt;
&lt;br /&gt;
The other bug I have encountered is more severe. After building my first Firestorm I was completely unable to send it out for interception. Clicking on the craft in the list simply returned me to the Geoscape screen without allowing to pick a target, and the game continued to play normally. Disabling the feature for crafts to always be ready despite rearming, repairs and refueling fixed this. [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
:Been out for a while... I&#039;ll have a look at these two. [[User:Seb76|Seb76]] 11:04, 2 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Another case of erroneous wreck analysis, this time from an actual UFO: I followed a battleship on an alien base mission and assaulted it when it landed on its own. After the battle the analysis claimed it was on a raiding mission. Perhaps this has something to do with how alien bases are created the moment the battleship appears? [[User:Crowley|Crowley]] 15:52, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:I use the data from [[MISDATA.DAT]] to get the mission details. Perhaps it is not correctly set at the time I retrieve the information. I&#039;ll investigate further. As for the firestorm problem, do you have a savegame just before the craft is finished so I can reproduce the bug easily? [[User:Seb76|Seb76]] 18:23, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Unfortunately not, but I did make a separate save shortly after the craft was finished. I tested it, and turning on the &amp;quot;crafts always ready&amp;quot; option still disables Firestorms with all my saves. With more testing I found out this also affects Lightnings, but not Avengers. [[User:Crowley|Crowley]] 08:36, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Instead of MISDATA.DAT, maybe grabbing the first byte out of [[LOC.DAT]] might be more accurate? I&#039;m not entirely positive if offset 76 of MISDATA is for just crash sites or all sites in general. BB would know for sure. --[[User:Zombie|Zombie]] 20:25, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:&amp;quot;Raiding&amp;quot; &#039;&#039;is&#039;&#039; what you&#039;re supposed to get if you&#039;re not lucky enough to get both the mission type &#039;&#039;and&#039;&#039; the zone, as in the .ini file: &amp;lt;pre&amp;gt;Zone Discovered=Intel found out that the %s UFO was raiding %s&amp;lt;/pre&amp;gt;If I remember correctly, difficulty level and the number of recovered navigation modules determine the chance of finding out both pieces of information, so it can&#039;t be Christmas every day ;)&lt;br /&gt;
&lt;br /&gt;
:Regarding the &#039;Craft always ready&#039; option, I had some Interceptors not launching as described by Crowley above but turned out they had 0% fuel, thanks to the [[Known_Bugs#Fuel_dump_on_transfer|transfer bug]] (shuffled them around ages ago to make room for Avengers and forgot about them ;) ). Maybe Crowley&#039;s Firestorms were also transferred around? In any case enabling this option is a bit tricky, if you happen to have craft with the fuel bug sitting around without realising it (or knowing about the bug to begin with); all I can think of right now is to have this option enforce the transfer bug fix &#039;&#039;and&#039;&#039; somehow have buggy craft (0% fuel but ready) update their status to &#039;refuelling&#039;... Wouldn&#039;t be surprised if there&#039;s a global &#039;update interval&#039; in Geoscape when all craft marked as &#039;refuelling&#039; get their fuel level increased; if so, it might be possible to change that status check to use fuel level instead (much like what this option already does, for the selected craft only) [[User:Goran|Goran]] 00:09, 4 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
::Repairing interception craft repair one point of damage capacity per hour (XX:00), refuelling interception craft are granted an amount of fuel each half hour(XX:00 and XX:30) dependent on craft, and rearming interception craft are given an amount of ammo each hour(XX:00) dependent on the weapon being loaded. [[User:Arrow Quivershaft|Arrow Quivershaft]] 05:12, 11 January 2009 (CST)&lt;br /&gt;
:Being busy with work ccurrently so I&#039;ve not much time for the loader. I already use the fuel level instead of the status. I used a value of 30 as a threshold for readyness which is OK for standard fuel ships, but for elerium ships it&#039;s too high: even when fully refuelled, they don&#039;t exceed it. Reducing the value should be enough to fix the problem. [[User:Seb76|Seb76]] 05:22, 11 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Some more comments:&lt;br /&gt;
# Limited Military = 1 gives you only 1 soldier. OK, I guess it&#039;s meant to do that, but it was not obvious. User error! But maybe it&#039;s time to add &amp;quot;usage&amp;quot; comments to the .INI file?&lt;br /&gt;
# Personnel Overflow works ok, even when the extra personnel are transferred in from another base (instead of being Recruited) - good job!&lt;br /&gt;
[[User:Spike|Spike]] 13:20, 2 January 2009 (CST)&lt;br /&gt;
:What&#039;s wrong with the info from readme.txt? [[User:Seb76|Seb76]] 05:13, 3 January 2009 (CST)&lt;br /&gt;
 *Limited Military: you start with this specified amount of soldiers and cannot recruit any more during the game&lt;br /&gt;
&lt;br /&gt;
:: User Error ^2 - I didn&#039;t read the readme.txt either :) [[User:Spike|Spike]] 12:17, 3 January 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
Errr.... why do Launchers do more stun damage than the Stun Rod? ... Electrocuting someone should do more than just hitting them with a large object? ... for that matter, stun damage of 80 is a LOT... remember that being shot with a rifle does 30, and a grenade does 50. (IMHO, the stun rod is likely to use VERY high voltage... it is much larger than a normal stun gun, and X-com doesn&#039;t mind doing permanent damage to the aliens)&lt;br /&gt;
Here&#039;s a challenge for your coding skills, and a logical one too: make melee do more damage based on Strength stat. My 80 strength goliath should do more damage than my 10 strength rookie wimp... [[User:Jasonred|Jasonred]] [[User:Jasonred|Jasonred]] 18:40, 26 February 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
== Glitches with Alien Pets ==&lt;br /&gt;
&lt;br /&gt;
OK I know that Alien Pets is a Hack and we should expect side effects. I just want to list them here for information purposes - please do not feel under any obligation to fix them!&lt;br /&gt;
&lt;br /&gt;
* If Alien Pets is set to 1 at the start of a Battlescape mission, Aliens generate with all their equipment in slot 2, i.e. no clips in weapon, no weapon in hand. They remain in this state until they spot a human in their own turn, at which point they lose 19 TUs drawing and loading the weapon. Furthermore, they are incapable of reaction fire until they have seen a human, drawn and loaded their weapon as a result, and survived the experience. From [[Talk:Alien Inventory Use|discussions]] it seems likely that there is a pre-battle routine which moves a weapon from slot 2 on each alien, and arms it, prior to the start of Battlescape turn 1. This routine bypassed - possibly because Alien Pets flags the alien units as human-controlled, and so this &#039;arming&#039; routine ignores those units?&lt;br /&gt;
* It is possible to get to an Inventory screen for large terror units. Normally this is blocked (even when using the Alien Inventory &#039;trick&#039;). This has these effects:&lt;br /&gt;
** Large terror units can pick up and drop items. To pick up, position the topmost/northwest corner of the unit over the item. The Cyberdisc makes a great cargo vehicle!&lt;br /&gt;
** Terror units can also equip weapons in their &amp;quot;hands&amp;quot;. Move the weapon to the left hand slot and it will appear in the Battlescape display. However the weapon can&#039;t actually be used. Using the left weapon will cause the unit&#039;s built-in ranged weapon to be used instead. (But test with Reapers or when the built-in is out of ammo?)&lt;br /&gt;
* I also saw some very weird TU and Weight/Encumbrance behaviour. Aliens at 200% encumbrance, unable to do anything and losing TUs each round. I need to characterise this more clearly. &lt;br /&gt;
&lt;br /&gt;
This might or might not be unrelated (might be due to me using Bomb Bloke&#039;s object editor wrongly):&lt;br /&gt;
&lt;br /&gt;
* When an Alien loads a clip into a weapon and fired it, the ammo count goes negative. This clip (or even single rocket/bomb) then becomes an infinite ammo supply. Probably a signed vs unsigned integer error? &lt;br /&gt;
&lt;br /&gt;
Now regardless of all these minor points, Alien Pets has been very helpful for me doing research on the Alien AI and Inventory handling, so thanks very much for this useful hack!&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 19:04, 5 March 2009 (CST)&lt;br /&gt;
:My pleasure. It was the very reason I allowed it in the loader in the first place!&lt;br /&gt;
:FYI: the weapons are not handed in a hidden turn but while the aliens are spawned. Also I think reaction fire is completely disabled for the aliens when the hack is activated [[User:Seb76|Seb76]] 13:37, 6 March 2009 (CST)&lt;br /&gt;
&lt;br /&gt;
:: Alien reaction fire works fine for me within Alien Pets. -- [[User:Zaimoni|Zaimoni]] 12:41, August 12 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
I dropped by after three months or so (you&#039;ve inspired me to start an disassembly work on another oldie strategy -&amp;gt;&amp;gt; no time), and I am really astonished, Seb. Behold, incredible work with one of my old wishes, the decreasing accuracy. Fantastic for the gameplay!&lt;br /&gt;
So - ehm - I&#039;ll try to wish for one more, hope you do not mind. There is the last, very (game-wise) frustrating issue: the AI fires a weapon and then sidesteps the alien just out of your view. I am bored to death to make that one step forward and always find the bad guy and shoot him in the back. If you could make this &amp;quot;retreating&amp;quot; a somewhat random thing (random APs, random where to), it would thicken the atmosphere (where he is??) and make the game 10x better. I guess you can&#039;t make them &#039;search cover&#039;, but make them running away RANDOMLY will do the job for me. I&#039;ll be very thankful to you. --[[User:Kyrub|Kyrub]] 20:26, 1 April 2009 (EDT)&lt;br /&gt;
:Thanks for the support, I&#039;m bored of the &amp;quot;the stuff does not work with ET&amp;quot; thing ;-) I can have a look but the alien AI is one of the points I&#039;m clueless about, I don&#039;t really know what to look for. When I study the parts that interact with ROUTE.DAT data, I cannot figure what the hell is going on... Do you know if the backing alien has ran out of TUs? Maybe the game tries to keep some for reaction fire but no-one realized that turning your back on danger is not the best tactic for reaction shots ^_^ [[User:Seb76|Seb76]] 15:46, 2 April 2009 (EDT)&lt;br /&gt;
::The situation happens always a) in the open b) during the alien turn c) when the enemy spots you, fires and then retreats out of view. I think he even turns back to face you sometimes, but not sure. But the main (gameplay) problem is that you are totally safe to advance 1 step and shoot because you have full TUs, no reaction fire, no support from other aliens. Perhaps the program determines the quadrant with human, via substracting the positions and finding the angle with a pre-made table in the exe (I have the same thing in my disassembling game)? Or it just loops next fields until it finds the one without eye-contact? -- I am almost sure that this was repaired in the Ufo Tftd. The aliens are very nasty and retreat totally out of view... -- BTW, the aliens do well in the vessels in UFO-eu, they search cover in the next room!--[[User:Kyrub|Kyrub]] 16:22, 2 April 2009 (EDT)&lt;br /&gt;
:Hum, too bad I never got to disassemble TFTD then ;-) BTW, which game do you work on? [[User:Seb76|Seb76]] 17:22, 2 April 2009 (EDT)&lt;br /&gt;
::Master of Orion I, correcting the bugs and improving AI. (Hey, noticed the doors&#039; thing. Another great one.) --[[User:Kyrub|Kyrub]] 20:09, 2 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== TFTD Door problem ==&lt;br /&gt;
&lt;br /&gt;
Seb, there seems to be a problem using the TFTD Doors with the Proximity Mine bug fix. I do have several other patches to my game, and it is possible that they are complicating the matter, but simply by turning off the PM fix I can suddenly open doors again. --[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
:Hi Talon81, what do you mean by &amp;quot;other patches&amp;quot;. Are you using ET or xcomutils? Or are you just enabling other patches from the loader? Also what are the symptoms exactly. Can&#039;t you open any door? [[User:Seb76|Seb76]] 14:24, 6 April 2009 (EDT)&lt;br /&gt;
:Edit: Nevermind, I could reproduce the problem. Can you try the new version I just uploaded? [[User:Seb76|Seb76]] 15:08, 6 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Yeah, I tried it, and it works fine. As you no doubt have already figured out, it wasnt working on any kind of door, as far as I could determine. The other things I am using should not interfere. They are minor patches such as Zombie&#039;s combo patch for terrain, etc, CE to DOS sound editor, and the aimed accuracy adjustment patch. I am not using Xcomutil or ET (would like to use ET, but I know that it doesnt work well with your patch).&lt;br /&gt;
&lt;br /&gt;
If it means anything to you, I would like to say that your work has meant a LOT towards making this game what it should have been. I fell in love with this game in 94, and never have more than a couple years gone by without me playing it. Your patch is the best thing to come along since it was made. ;-)&lt;br /&gt;
--[[User:Talon81|Talon81]] 06:02, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
: I second that, wholeheartedly. [[User:Spike|Spike]] 16:44, 14 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks guys! This game is the best and I try not to divert it from its spirit with my patches... Actually the fix for the doors *might* increase compatibility with ET, but it&#039;s a wild guess. [[User:Seb76|Seb76]] 16:56, 18 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Initial Alien Bases ==&lt;br /&gt;
&lt;br /&gt;
OK, so I was having some problems getting alien bases to work, so I created a new folder of X-Com with nothing but your video patch on, and alien bases. I am still having the same problems I was having on my more heavily patched version. For example, I created one with 3 alien bases. Looks fine. I run it with the show all locations patch and sure enough, no alien bases. I make a new game with the show all patch on and there are the alien bases, shown until the point that I place my own base. Then they disappear and my base now looks like an alien base. There are some other minor bugs associated, too; however, that seems to be the main problem. In short, I have yet to get an alien base to survive past the placement of my base. I thought it could be a glitch in the show all patch, but scouting the areas where the alien bases were shown prior to base placement has returned nothing. --[[User:Talon81|Talon81]] 15:23, 19 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
By the way, Seb, are you the same as Strife67? --[[User:Talon81|Talon81]] 13:13, 24 April 2009 (EDT)&lt;br /&gt;
:Nope, never heard of that guy. What&#039;s he doing? [[User:Seb76|Seb76]] 15:13, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Nothing anymore. He created a sound patch a year ago or so, and there were some things he said that reminded me of you, not to mention in my head I was thinking you were Seb67 instead of Seb76. I just now noticed my mistake. --[[User:Talon81|Talon81]] 20:16, 24 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:OK, I uploaded a new version. Can you confirm it fixes the problem on your rig? [[User:Seb76|Seb76]] 07:57, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Seems to have solved the problem to me. The alien bases now appear after placement of mine instead of before like they previously did. X-Com bases are correctly shown, as well. --[[User:Talon81|Talon81]] 13:34, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Won&#039;t work on my rig Vista+CE version ==&lt;br /&gt;
&lt;br /&gt;
Nice work! I really want to play this, it&#039;s not working on my PC though. I may be stuck with the Dos version in Dosbox forever.&lt;br /&gt;
&lt;br /&gt;
My screen flashes between the squashed look of the unpatched EXE and the OK version. On screens without animation it changes back and forth as I move the mouse. On the Geoscape it just flashes and gives me a headache. Sorry about the big images, to lazy to cut them down.&lt;br /&gt;
&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Scrambled%20P1010264.JPG&lt;br /&gt;
* http://darksun.lunarpages.com/XCOM/Fine%20P1010265.JPG&lt;br /&gt;
--[[User:SaintD|SaintD]] 19:09, 19 April 2009 (EDT)&lt;br /&gt;
:Hum, looks like another Vista problem... Do you have the problem when using [http://appaholic.co.uk/2007/10/16/dxwnd-force-almost-anything-into-a-windowed-mode/ DXWnd]? I use the following settings (but I&#039;m under XP...):&lt;br /&gt;
&lt;br /&gt;
[[Image:Dxwnd.png]]&lt;br /&gt;
&lt;br /&gt;
[[User:Seb76|Seb76]] 14:57, 20 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Awesome. That worked. My 1440x900 regular resolution means that the window is really tiny though. You should really get the upscaler working now. Heheh. Dxwnd makes Internet Explorer crash on vista. Does that happen to you?&lt;br /&gt;
&lt;br /&gt;
http://darksun.lunarpages.com/XCOM/xcomWindowed.png --[[User:SaintD|SaintD]] 00:34, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
[edit] I didn&#039;t realize you can just drag the Dxwnd window bigger. I still miss the advinterp3x from dosbox.&lt;br /&gt;
&lt;br /&gt;
:I dunno exactly how DXWnd works but I think it may screw up aero stuff... I played with scale2x a bit and got that but it only works with DXWnd:&lt;br /&gt;
:[[Image:Scale2x.png]]&lt;br /&gt;
&lt;br /&gt;
:When I try fullscreen, it looks like DirectX won&#039;t allow me to go to 640x400 resolution :( Any DX guru out there? [[User:Seb76|Seb76]] 14:36, 21 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
::Can I get a copy of the new version? :) I can only use Dxwnd anyway. If you can boil the problem down I might be able to get some Direct X help. I know a couple guys who have been playing with XNA a lot. Can you create a stand alone sample program to illustrate your issue maybe?&lt;br /&gt;
:I uploaded this: [[Image:UFOExtender-dev.zip]]. It works only in window mode on my laptop, maybe you can give it a try? You&#039;ll most likely have to alt-tab out of the black screen though... [[User:Seb76|Seb76]] 11:08, 26 April 2009 (EDT)&lt;br /&gt;
:Edit: version updated with support for HQ4x (in 1280x800). Feedback appreciated... [[User:Seb76|Seb76]] 09:55, 3 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
The above version works perfectly on my PC but only through DXWmd. I&#039;d also like to note that using DXWnd eliminates fast speed issues in Battlescape for some reason. I&#039;m really excited Seb is pulling this off. &amp;lt;3&lt;br /&gt;
:Uploaded a new version, you need to add a &amp;quot;HQ4x=1&amp;quot; line under the &amp;quot;Mod&amp;quot; section to enable it. [[User:Seb76|Seb76]] 15:36, 6 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Works perfect without the use of DXWnd, but there&#039;s some sort of frameskip feeling. Great work, this is getting better and better. :-)&lt;br /&gt;
&lt;br /&gt;
Now the question is, how do you use DXWnd with the loader?&lt;br /&gt;
[[User:KingMob4313|KingMob4313]] 11:02, 12 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
==Works but won&#039;t multitask==&lt;br /&gt;
&lt;br /&gt;
Target system: prefab HP Vista with global data execution prevention.  Problem is the same native, with D3D, and/or with HQ4X.  (The two do combine nicely, visually, but a bit laggy for my tastes).&lt;br /&gt;
&lt;br /&gt;
ALT-TAB terminates all further screen display on restore; the sea of blackness continues until Task Manager is used to kill the application, at which point D3D admits that it has &amp;quot;lost the device&amp;quot;.  (This is after the improved error reporting patch.  Before, 0xc0000005 as Data Execution Prevention takes over.)&lt;br /&gt;
&lt;br /&gt;
-- [[User:Zaimoni|Zaimoni]] 12:27, 12 August 2009 (CDT)&lt;br /&gt;
&lt;br /&gt;
==Heavy laser mod==&lt;br /&gt;
My heavy laser only has the two new firing modes. Also, when I fire, the beams don&#039;t go where I point. They seem to be grouped correctly, just off in the wrong direction. [[User:SaintD:SaintD]]&lt;br /&gt;
&lt;br /&gt;
:Yeah, it is a problem when you enable range based accuracy at the same time. I&#039;ll try to fix that when I get some time... [[User:Seb76|Seb76]] 14:25, 23 April 2009 (EDT)&lt;br /&gt;
:Made a new version. Can you try it and let me know if the problem is gone? [[User:Seb76|Seb76]] 09:19, 26 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::I tried it. The new modes now work, but Snap Mode is still missing from my HL. Also it&#039;s not clear the difference between burst and full auto since they both have the same accuracy and TU cost.--[[User:SaintD|SaintD]] 19:25, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::: Hmmm, on mine the burst and full auto have different accuracies (80% and 60%, respectively); and they fire 5 and 8 rounds, also respectively. I believe the snap shot was taken out on purpose to coincide with the idea of the heavy laser as being more suited to being a support weapon. Of course the last part is conjecture on my part, but I am pretty certain it is not supposed to be there. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am not the original poster in this heading, and I have not had the same problems with the heavy laser that others had (only one I had was about the Range Based Acc not affecting full auto), so I cannot confirm whether this patch has solved that. But I will tell you what you probably already know: everything is fuzzy, kinda like [ Mok&#039;s 2xSaI]. It is also a little bit jumpy. Due to that, I can&#039;t take advantage of the Funky Fire fix, or any other future fix, unless I am willing to deal with the fuzziness, or unless you create 2 runs; 1 with the Heavy Laser fix, and one without. --[[User:Talon81|Talon81]] 13:42, 28 April 2009 (EDT)&lt;br /&gt;
:Hum, I&#039;m not sure I understand. What has the fuzziness to do with the HL fix? [[User:Seb76|Seb76]] 14:15, 28 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Wow, to think I almost didnt bother to post because I was sure you would already be aware of it. As soon as I updated your loader from 6 April (TFTD door fix) to 26 April (funky fire fix), everything got fuzzy. After that, I tried the update without funky fire (HL fix). Still fuzzy. Then I rolled back to the previous one (Initial Alien Base fix). No more fuzzy. I even went back to HL fix, then back again to Alien Base fix. Same deal. I will try using it on a fresh X-Com install without my other patches. But yeah, you should seriously install the patch I linked to in my above post. Will only take a minute to try. Looks VERY much like it (I know that many people have the fuzzy problem with that patch). --[[User:Talon81|Talon81]] 02:17, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK, it is indeed still fuzzy on a fresher copy of X-Com. It is not a genuine fresh install as I no longer have the disk, it is just the original files copied on my computer in another location. Furthermore, I forgot to mention there is also slight video garble (yes, even with the garble fix on) at the bottom of the menu screens. That in itself is not a problem as it is not throughout the game, and is only a few pixels in height. I can&#039;t wait to see if anyone else has these problems or if its just me. --[[User:Talon81|Talon81]] 02:27, 29 April 2009 (EDT)&lt;br /&gt;
:I have a crash with Mok&#039;s patch so I cannot check the problem. By fuzzy you mean something like the image is bilinearly filtered and all smoothed? [[User:Seb76|Seb76]] 17:20, 29 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I am a total programming/graphics newb, so I don&#039;t know if that is a good description or not. The UFO&#039;s for example, instead of being crosses, are blurbs that slightly change shape as they fly, and everything has softer transitions that make it look like it is done with pastels or something. I can tell you I tried to take a screen capture but it did not reflect the screen as it appears in game. In any case, unless other people have this same problem, I would not worry about it for my sake. If it is something you want to tackle anyway, just tell me what I can do to help you. --[[User:Talon81|Talon81]] 23:51, 29 April 2009 (EDT)&lt;br /&gt;
:Hum, are youe using the &amp;quot;dev&amp;quot; version instead of the official one? It features a scale2x filter that craps the image up.[[User:Seb76|Seb76]] 14:40, 30 April 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Not sure what you mean by &amp;quot;dev&amp;quot; version, but I am guessing you are referring to my version of CE. I do not know for sure, because it has been years since I got it, but I am guessing the answer is yes because mine runs in full screen without any mods. --[[User:Talon81|Talon81]] 12:22, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Your newest version seems to have gotten rid of my problem. --[[User:Talon81|Talon81]] 12:32, 1 May 2009 (EDT)&lt;br /&gt;
:That&#039;s great ;-) By dev I was refering to the &amp;quot;dev&amp;quot; version of the loader linked on this page. It is an experimental version that uses scale2x with 640x400 resolution. [[User:Seb76|Seb76]] 12:53, 1 May 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== REng UFO with IDA ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb =)&lt;br /&gt;
&lt;br /&gt;
I&#039;ve just started working with IDA in an attempt to understand the inner workings of TACTICAL.EXE. I have never used IDA or related tools before, nor do I really know what I&#039;m doing ;) I have removed the DOS/4GW loader and am examining the LE code currently.&lt;br /&gt;
&lt;br /&gt;
So far my only progress (using DOSBox debugger) has been to isolate the calls in main() which display the equip screen and handle the interative section of the mission. You could say progress has been slow, as this has taken a couple days (including time spent figuring out the basics of IDA/DOSbox debug).&lt;br /&gt;
&lt;br /&gt;
Would it be possible to see your notes? You will no doubt have discovered most (all?) functions and exactly what they do. If I could see this data (such as comments, renamed funtions, cleaned up code) it would take months off of the time I would need to understand the underlying assembler code.&lt;br /&gt;
&lt;br /&gt;
I also recently discovered a plugin called HexRays for IDA. Do you use this? I&#039;m really a newb so would love to get some input on which tools are best for this job.&lt;br /&gt;
&lt;br /&gt;
My long, long-term goal will be to implement TACTICAL as a native windows program, as it would be a great project to have whilst learning to program (I should say I have some basic programming already, but nothing beyond a simple Windows game in Delphi).&lt;br /&gt;
&lt;br /&gt;
Any advice is deeply appreciated mate =)&lt;br /&gt;
&lt;br /&gt;
XCom forever!&lt;br /&gt;
--[[User:K9wazere|K9wazere]] 09:51, 17 June 2009 (EDT)&lt;br /&gt;
:Hi k9,&lt;br /&gt;
:Slow progress at the start is a normal thing. In the windows version I got help from the developers because they left a few error messages around to guide me during my initial analysis ^_^ I don&#039;t know about the DOS version, maybe they are also present.&lt;br /&gt;
:For the DB, just PM me an email address where I can send you the file (~1.7MB)... I gave a shot at HexRays (early versions), but I didn&#039;t find it that much useful in helping to understand what&#039;s going on. Well, if you&#039;re not used to asm, it may be interesting for you ;-) Still, for re-engineering a function it may prove useful. All in all, I&#039;m just using a standard 5.2.0.908 version, it got everything I need. Also for debugging, I use DXWnd because breakpoints and fullscreen DX apps don&#039;t live well together...&lt;br /&gt;
:Good luck with your project,&lt;br /&gt;
:[[User:Seb76|Seb76]] 14:15, 17 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:::Thanks for that, Seb! I&#039;m trying to understand how your loader and patcher works...&lt;br /&gt;
&lt;br /&gt;
 void InsertCall(int dst, void *func)&lt;br /&gt;
 {&lt;br /&gt;
 	DWORD oldProtect;&lt;br /&gt;
 	DWORD *pOffset=(DWORD *)(((char *)dst)+1);&lt;br /&gt;
 &lt;br /&gt;
 	VirtualProtect((void *)dst,5,PAGE_EXECUTE_READWRITE,&amp;amp;oldProtect);&lt;br /&gt;
 	*(char *)dst=(char)0xE8;&lt;br /&gt;
 	*pOffset=(int)func-(int)dst-5;&lt;br /&gt;
 	VirtualProtect((void *)dst,5,oldProtect,&amp;amp;oldProtect);&lt;br /&gt;
 }&lt;br /&gt;
&lt;br /&gt;
::: This calculation here is interesting:&lt;br /&gt;
&lt;br /&gt;
 *pOffset=(int)func-(int)dst-5;&lt;br /&gt;
&lt;br /&gt;
:::I assume 0xEA is assembler for CALL ... but then the reason for subtracting &#039;dst&#039; from &#039;func&#039; is not apparent. All in all I&#039;m a bit confused as to how code in one area of memory (UFO Defense) can call code in another area of memory, belong to a different process (UFO Loader).&lt;br /&gt;
:The 0xEA is indeed the CALL opcode, but it is a relative jump so you must feed it the delta between source and destination (the 5 is the size of the CALL instruction itself that must be removed).&lt;br /&gt;
:The beauty of the thing is that the loader injects the code in the address space of the main executable image so you can call functions from/to it with no trouble :)&lt;br /&gt;
&lt;br /&gt;
:::Can you suggest some good reading material to better understand this? Cheers!&lt;br /&gt;
:::--[[User:K9wazere|K9wazere]] 14:36, 20 June 2009 (EDT)&lt;br /&gt;
:You can search for DLL injection methods on the web, that&#039;s the name of the trick. In a nutshell I spawn the &amp;quot;UFO Defense&amp;quot; process in a suspended state, then use the CreateRemoteThread/LoadLibrary trick. HTH, [[User:Seb76|Seb76]] 14:48, 21 June 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== D3D ==&lt;br /&gt;
&lt;br /&gt;
If I select the D3D option, UFO Defense and patcher.dll crash and generate a Windows Error Report. It won&#039;t let me copy and paste the contents unfortunately. My XCom machine is an old laptop, Win XP Pro 2003, Pentium III 851MHz, 376Mb RAM. I&#039;m not sure what version (if any) of DirectX it has. &lt;br /&gt;
&lt;br /&gt;
I&#039;m still checking out the Save Equipment / Auto Flares mods. Very welcome! Once these are working there will be no reason for most people to use XComUtil. I will get back to you when I have specific feedback - but thanks again, Seb. [[User:Spike|Spike]] 12:59, 18 July 2009 (EDT)&lt;br /&gt;
:You need DirectX 9 installed (couldn&#039;t easily locate any older SDK, I&#039;m sure I could&#039;ve gotten away with DX7...), maybe I should make the code more robust and exit gracefully instead of crashing... [[User:Seb76|Seb76]] 13:04, 18 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm. I&#039;ve installed DirectX version 9 (March 2009 version) and with D3D enabled the Loader just fails silently; no error message, nothing in the event log. Maybe the install didn&#039;t work properly. I&#039;ll see if I can find some kind of DirectX test/verification utility somewhere. [[User:Spike|Spike]] 21:23, 19 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
OK I ran the &amp;lt;b&amp;gt;dxdiag&amp;lt;/b&amp;gt; utility which comes with DirectX 9.0c. This tests DirectDraw and Direct3D levels 7/8/9. There were no problems and no issues detected, apart from my laptop does not support hardware sound buffering (software only). I can send you the full dxdiag.txt report if it will help. When the Loader fails, all I see is a little black square in the top left, which I think is a normal part of the loading sequence (some kind of command window), and then nothing. [[User:Spike|Spike]] 21:39, 19 July 2009 (EDT)&lt;br /&gt;
:Might be related to using none power of two textures. Maybe your hardware does not support it? I&#039;ll add some more checks to make sure that&#039;s the problem.&lt;br /&gt;
:Edit: Can you try the latest version? I added some more error handling, can you tell me if you have an error message at some point? [[User:Seb76|Seb76]] 19:18, 20 July 2009 (EDT)&lt;br /&gt;
Unforunately I don&#039;t have access to the original laptop now, I won&#039;t do for a few months. I have tried on another PC (XP 2002 Professional SP3, DirectX9.0c, dxdiag tests all ok) and I also get a crash. Instead of dropping out right away, I see the smallish black square in the top left for a while, then I go to a full screen black or grey-black screen. This lasts for minutes. It doesn&#039;t eat up CPU and I can task switch out of it. I don&#039;t see any popup error messages and nothing in the event logs. When I kill UFO Defense the black full screen goes away. Sorry I know that&#039;s not much help. [[User:Spike|Spike]] 17:59, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
D3D mode isn&#039;t working for me either, I simply get a black screen. When I alt+tab out of it though I can see an error box titled &#039;D3D error&#039; which tells me it &#039;Cannot create texture&#039;. [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 19:09, 8 August 2009 (EDT)&lt;br /&gt;
:edit: forgot to mention, I have directx 9.0c installed and dxdiag reports no problems. I have a Geforce2 MX *blushes*&lt;br /&gt;
:Do you know if this card supports non power of two textures? [[User:Seb76|Seb76]] 05:10, 9 August 2009 (EDT)&lt;br /&gt;
::no idea, but since your new version works fine with the D3D option on I assume it doesn&#039;t :) [[User:J&#039;ordos|J&amp;amp;#39;ordos]] 11:38, 9 August 2009 (EDT)&lt;br /&gt;
:That&#039;s great. Spike, does it fix your problems too? [[User:Seb76|Seb76]] 16:04, 9 August 2009 (EDT)&lt;br /&gt;
::Sorry for the late reply - yes that fixes my problems too, D3D is working fine now. Thanks, [[User:Spike|Spike]] 15:55, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Save equipment ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I&#039;ve tried out the Save Equipment and Auto Flares (good idea by the way). I&#039;ve seen some quirks. I had a few weapons (a Rifle and maybe a Pistol) that weren&#039;t loaded. Normally the game loads all weapons unless there isn&#039;t sufficient ammo. I moved some stuff around so this might have been due to me. So I restarted. Then I got a situation where:&lt;br /&gt;
&lt;br /&gt;
*1 soldier had no weapons, just a grenade in a belt, even though there were Rifles and Auto Cannon (both with ammo) not allocated. Actually this soldier was showing 54/40 encumbrance from one grenade. Carrying a lot of &amp;quot;invisible&amp;quot; equipment!&lt;br /&gt;
*Heavy weapons (Auto Cannon, Heavy Cannon, Rocket Launcher) were allocated only once each. Spare heavy weapons were not allocated. The soldiers allocated the heavy weapons carried 3 spare ammo clips and were overloaded. Also, a weak soldier (strength 21 or so) was selected to carry the Auto Cannon and 3 spare clips. &lt;br /&gt;
*The mission appeared to be a night mission but no flares were allocated. (the previous mission, the Auto Flares worked fine). Maybe it was a Dusk mission? It looked dark out there.&lt;br /&gt;
*Also the game crashed when I moved the first guy out of the transport. Of course this is not necessarily related to using Save Equipment. &lt;br /&gt;
&lt;br /&gt;
Actually, making sensible automatic rules for weapon and ammo allocation is hard to do, and a matter of personal taste, and this is really a different goal than just saving equipment allocations that have been picked manually by the player. So I&#039;m probably being really unfair. Maybe it would be easier not to allocate any weapons other than what the player has picked? &lt;br /&gt;
&lt;br /&gt;
Anyway I have a save game file for the 2nd game if that is any use to you for debugging. Cheers, [[User:Spike|Spike]] 18:53, 18 July 2009 (EDT)&lt;br /&gt;
:Thanks for the feedback, it got in the dev version for 2 months and nobody sent any comment so I figured I might as well put it in the official version ;-) I&#039;m not surprised with the kind of problems you encountered, I got lots of &#039;em while making this... The crash at the start is most likely due to reaction fire.&lt;br /&gt;
:The autoflare feature should trigger at the same time as the visibility reduction caused by the night. Were you able to see up to 20 tiles away?&lt;br /&gt;
:As for the auto-allocation, I&#039;m afraid there is no other easy option that I can see: when the mission starts, everybody is already equiped with the default stuff. I have to remove everything to be able to reassign items properly :( The default reequiping rules are quite simple: strength is not taken into account, and you require a set amount of free clips to be able to equip a weapon.&lt;br /&gt;
:I had a look at your savegame, but one just before the mission would be better. Also can you attach your ini file? Maybe some problems are caused by incompatibilities between mods. [[User:Seb76|Seb76]] 04:08, 19 July 2009 (EDT)&lt;br /&gt;
::OK uploaded what I hope is the right .ini file. Unfortunately that was my first savefile of the game, I don&#039;t have any earlier one. All I did was bought some guns &#039;n ammo and landed on the first (Roswell) crash site. The weirdest thing was the female soldier (Martha Stewart? or am I hallucinating?) with 54/40 encumbrance but only carrying one grenade. Could this be connected to [[Known_Bugs#Weightless_Loaded_Ammo|the problem you discovered in the game&#039;s weight routine]]? Anyway I will try and recreate the problem with more savefiles so you have a &amp;quot;before&amp;quot; and &amp;quot;after&amp;quot;. [[User:Spike|Spike]] 07:15, 19 July 2009 (EDT)&lt;br /&gt;
:In your savegame I indeed see that the Maria chick is overweight, but if I bail out of the mission and go on a new one, she only have a grenade and a weight of 3... Another strange thing is that in the equip.ini file of the savegame, she&#039;s marked as having a large rocket loaded in the weapon that she&#039;s holding, but she has no weapon... Did you equip her with the rocket launcher and changed your mind afterward? [[User:Seb76|Seb76]] 11:27, 19 July 2009 (EDT)&lt;br /&gt;
::OK I restarted from a new game. I took lots of savegames after each step. Everyone has your default basic loadouts - loaded pistol or rifle, one reload, one grenade. I see a couple of anomalies. Look for Jacques. He is overweight despite only carrying a Rifle. Also, he is carrying a grenade that shows as Primed - it isn&#039;t. I even threw it to make sure - no explosion. Like Maria before him, Jacques is the last soldier in the equip.ini list. Also like Maria, Jacques is carrying more guns &amp;amp; ammo in equip.ini than are shown in the inventory screen. He has 5 items but they don&#039;t add up to the 54 or so Encumbrance he is showing. Like Maria, he is carrying ammo (type 13) in a slot1 (left hand) weapon that doesn&#039;t exist, and it seems to weigh about 20! The crazy encumbrance persists into the next turn and it is still there after I restore a savegame. I will upload a full set of play-by-play savegame files. I did move some equipment around for some guys in the later saves. But never for Jacques. [[User:Spike|Spike]] 21:10, 19 July 2009 (EDT)&lt;br /&gt;
:OK, I&#039;ll have a look at this, thanks for the effort.&lt;br /&gt;
:Edit: I could not reproduce the problem staight away: I see the crapped up weight if I load your tactical games, but when using the &amp;quot;i/b&amp;quot; one, Jacques is alright... Does this problem happens 100%  of the time on your PC? Maybe it&#039;s a problem with the ini file handling (W2K3?), who knows... I&#039;ll keep trying. Feedback from XP/Vista users could be useful on this one. BTW are you using split binaries? [[User:Seb76|Seb76]] 15:44, 20 July 2009 (EDT)&lt;br /&gt;
::I&#039;ve uploaded another save game, this time on a different PC (better XP version, CPU, RAM). Same symptoms - the last man has phantom equipment. Actually I notice the last TWO men have 2 items of equipment on them, but only visible one item shown in equip.ini. Also I keep forgetting to send the UFO Extender.ini file. My games don&#039;t use split binaries. I don&#039;t think it&#039;s a problem parsing the equip.ini file because the problem appears right away, if I save as my first action when the battlescape appears - the equip.ini already has the weirdness, and on the battlescape the soldier already has the weirdness. Although - let me check this - but I don&#039;t think the phantom equipment weirdness is there during the Equip Screen, it only appears when the actual Battlescape starts. So, if you pass the equipment information from the Equip screen to the Battlescape via the equip.ini file, that&#039;s a possibility. [[User:Spike|Spike]] 17:21, 20 July 2009 (EDT)&lt;br /&gt;
::Uploaded another New game, same/similar symptoms. This time the last guy is carrying weapons. But still, he is too heavy. The effect is NOT present in Equip Screen; his weight only increases once on the Battlescape. He is carrying a Rocket (object type 13) inside an invisible second weapon. So this could be a problem parsing the equip.ini file. [[User:Spike|Spike]] 17:38, 20 July 2009 (EDT)&lt;br /&gt;
::Last note tonight. The guy is overweight by 13 x 2 = 26  units. His equip.ini shows him carrying a phantom type 13 object (in a nonexistent 2nd weapon). Is this a coincidence? Maybe check the other savefiles and see if the last man was also overweight by 26 units, or by 2 x the index of the phantom item. [[User:Spike|Spike]] 18:00, 20 July 2009 (EDT)&lt;br /&gt;
:I uploaded a new version, can you check it out? [[User:Seb76|Seb76]] 19:16, 20 July 2009 (EDT)&lt;br /&gt;
:: Re tried with New game after your fix. Still seeing last 2 characters with incorrect weights. The weights were the same on the Equip screen as on the Battlescape. Excess weights are 6 and 3 units. Uploaded the save game. [[User:Spike|Spike]] 14:14, 21 July 2009 (EDT)&lt;br /&gt;
:Actually you&#039;re now hitting another bug: when putting a loaded gun to the floor, the ammo stays assigned to the soldier so its weight is still taken into account... [[User:Seb76|Seb76]] 15:21, 21 July 2009 (EDT)&lt;br /&gt;
::Yes you are right. In fact the weight errors were not 6 and 3 but 6 and 5 - the weight of heavy cannon ammo and auto cannon ammo, respectively. When I dropped the loaded heavy cannon and the loaded auto cannon, the encumbrance weights drop by 18 and 19 respectively. This is the weight of the unloaded weapon, not the correct weight of the loaded weapon. (Though normally, due to the buggy weight routine in the game, that *is* the actual (but incorrect) weight of the loaded weapon if you haven&#039;t yet unloaded it). So this is just a matter of ignoring the ammo weight from the soldier&#039;s encumbrance when dropping a loaded weapon. And it does look like the original problem has been fixed. [[User:Spike|Spike]] 18:18, 22 July 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Hmm more problems with Save Equipment. Ammo of all types seems to disappear. Eg I have 6 pistols and 6 pistol clips on the craft, but the Equip screen just gives me 6 empty pistols. Other weapons are short of ammo too. Is the Save feature perhaps &amp;quot;remembering&amp;quot; empty weapons (or loaded weapons) and somehow eliminating the clips. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
:This looks like an issue with &#039;&#039;UnloadClips&#039;&#039;(). I noticed that the clip object&#039;s &#039;&#039;loaded_into&#039;&#039; is set to 0xff, but the &#039;&#039;not_loaded&#039;&#039; remains as 0. The game may see this as the clip still being loaded in an object, so the clip effectively disappears. --[[User:Mikawo|Mikawo]] 11:05, 19 August 2009 (EDT)&lt;br /&gt;
::This is possible. The wiki is wrong on these 2 fields BTW: it is in fact just one field (loaded_into signed extended to 16bit). I&#039;ll have a look at that. [[User:Seb76|Seb76]] 14:33, 19 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
I think Mikawo is right. UnloadClips() should look something like this:&lt;br /&gt;
&lt;br /&gt;
 void UnloadClips()&lt;br /&gt;
 {&lt;br /&gt;
 	obpos_dat *pObPos=pObpos_dat;&lt;br /&gt;
 &lt;br /&gt;
 	for(unsigned char i=0;i&amp;lt;170;i++)&lt;br /&gt;
 	{&lt;br /&gt;
 		if(pObPos-&amp;gt;itemType != 0xff &amp;amp;&amp;amp; pObPos-&amp;gt;not_loaded == 0  &amp;amp;&amp;amp; IsXComItem(i))&lt;br /&gt;
 		{&lt;br /&gt;
 			pObPos-&amp;gt;loaded_into=0xff;&lt;br /&gt;
 			&amp;lt;big&amp;gt;&#039;&#039;&#039;pObPos-&amp;gt;not_loaded=0xff;&#039;&#039;&#039;&amp;lt;/big&amp;gt;&lt;br /&gt;
 		}&lt;br /&gt;
 		pObPos++;&lt;br /&gt;
  	}&lt;br /&gt;
 } &lt;br /&gt;
 &lt;br /&gt;
Quite a few other functions in &#039;&#039;&#039;equipment.cpp&#039;&#039;&#039; use this check &#039;&#039;&#039;pObPos-&amp;gt;not_loaded == 0xff&#039;&#039;&#039; so it is important to set this flag just for UFOExtender, regardless of whether the game needs it set (which it probably does). Eg items unloaded by UnloadClips will thereafter fail to be found by GetFreeItem, during execution of LoadSoldierEquipment. That probably explains the problems observed.&lt;br /&gt;
[[User:Spike|Spike]] 15:24, 26 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:I did some rework based on that. Do you have other problems? [[User:Seb76|Seb76]] 16:08, 30 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
::Thanks Seb. This seems to be working mostly ok now. Some remaining smaller issues I have seen:&lt;br /&gt;
&lt;br /&gt;
::* The weight calculation is so accurate, it is more accurate than the unmodified game. So the &amp;quot;weight free ammo&amp;quot; (the first clip loaded into a weapon, before the user takes any action in the Equip screen) is no longer weight free. Not sure if you want to &amp;quot;fix&amp;quot; this or not? It is debatable. Really, you have fixed a bug. But the normal game behaviour has changed. Maybe make the &amp;quot;weight free ammo&amp;quot; optional?&lt;br /&gt;
::* There is a weird glitch. If I unload a weapon, put it and the clip on the ground seperately, that works fine. But if I pick up the clip &#039;&#039;&#039;directly from the ground&#039;&#039;&#039; and load it straight into the weapon, then drop the weapon, the weight of the clip is still shown on the soldier. And actually the same thing happens with a clip that is first moved into the soldier&#039;s equipment. So in fact the problem is that a clip loaded into a weapon, doesn&#039;t get removed from the soldier weight when the weapon is dropped onto the ground. It happens even if the clip is pre-loaded by your routine.&lt;br /&gt;
::* Still outstanding - you can&#039;t use the right arrow to move onto a second screen of equipment. So you can&#039;t have more than one screenload of equipment on the ground. Or maybe you can, if you start the Equip screen with more than one screenload on the ground - I didn&#039;t check that.&lt;br /&gt;
&lt;br /&gt;
::[[User:Spike|Spike]] 13:10, 1 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Glitch with Alien Pets and Big Brother? ==&lt;br /&gt;
&lt;br /&gt;
Hi Seb. I was trying to do some initial research on the idea of [[User:Spike#Tank mods|Tank mods]] but it looked like these 2 useful features of your Loader, Alien Pets and Big Brother, have both stopped working. Can you test this, on the latest version? I&#039;m using a very recent version (last 2 weeks) but not the absolute latest as I have internet download problems. &lt;br /&gt;
&lt;br /&gt;
Also, have you seen this new Wiki article: [[Enemy Unknown Extended]]. It is a package including your loader plus a few other odds and ends.&lt;br /&gt;
&lt;br /&gt;
cheers,&lt;br /&gt;
[[User:Spike|Spike]] 11:16, 17 August 2009 (EDT)&lt;br /&gt;
:My mistake, I commented out that part of code a while ago and only recently noticed that. It was corrected one or two versions ago.&lt;br /&gt;
:The article is a good idea, it should allow less techies an easy start. [[User:Seb76|Seb76]] 13:51, 17 August 2009 (EDT)&lt;br /&gt;
:: OK cool yes the Hacks are back in place, thanks. [[User:Spike|Spike]] 20:34, 18 August 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Alien Bleeding ==&lt;br /&gt;
&lt;br /&gt;
Test results:&lt;br /&gt;
&lt;br /&gt;
* 1-unit and 4-unit aliens can be healed by anyone (alien or human) holding a Medkit&lt;br /&gt;
* 4-unit aliens can be healed by standing in any of their 4 squares&lt;br /&gt;
* 4-unit aliens can only be healed while they are stunned. Pointing to their &amp;quot;control&amp;quot; square does not seem to work.&lt;br /&gt;
* 1-unit aliens can be healed either while conscious or while stunned&lt;br /&gt;
* Wounds on aliens can be correctly seen with Medkits&lt;br /&gt;
* The Medkit display shows a human silhouette regardless of the alien type, of course&lt;br /&gt;
* Healing aliens with Medkits, stops them from dying of wounds (not 100% tested but seems to be true)&lt;br /&gt;
* Aliens (large and small) seem to lose the correct amount of Health per turn from Wounds&lt;br /&gt;
* Aliens with wounds that are not treated, eventually die (not 100% tested but seems to be true)&lt;br /&gt;
* A Mind Probe can see if an alien has Wounds.&lt;br /&gt;
&lt;br /&gt;
Anomalies:&lt;br /&gt;
&lt;br /&gt;
* I had a lot more reports of Reapers dying than I would expect. I would not have expected any to die, and I had 3 reports of death by wounds. Even heavily wounded Reapers take a long time to die. In my test I was only shooting them with Pistols. Maybe there is a problem with the reporting? Maybe the death of the same Reaper was reported more than once? More testing needed on this. &lt;br /&gt;
:I wonder if Reapers are receiving wounds on all 4 sections when hit by explosives (I don&#039;t know which weapon you were using). They really shouldn&#039;t, although I&#039;m unsure how you&#039;d get around this. If possible, put a cap on the maximum number of wounds something can ever have (perhaps 6). You could argue their multiple hearts really empty their blood out quickly, but I don&#039;t think fatal wounds should ever become more dangerous than burning alive.&lt;br /&gt;
&lt;br /&gt;
:: Well, why not: hit four times by one explosive, check for incurring fatal wounds four times.  -- [[User:Zaimoni|Zaimoni]], 13:49 Sept. 6 2009 CDT&lt;br /&gt;
&lt;br /&gt;
* Question: should the death of an alien by wounds be reported, or should it die silently? Did I only see these messages because I was using Alien Pets, and so they were on &amp;quot;my&amp;quot; side?&lt;br /&gt;
:Regarding death reports, I enabled the dialog for aliens/civilians (it usually only shows up for xcom operatives) to help in testing. The final version will not show them. [[User:Seb76|Seb76]] 14:10, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Caveats:&lt;br /&gt;
* I used the Alien Pets, Big Brother, and Alien Inventory hacks to do this test. I also hacked a save game to give me Pistols, Medkits, PsiAmps and Mind Probes. [[User:Spike|Spike]] 16:03, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
To Do:&lt;br /&gt;
* Test if aliens (small, large and mechanical) suffer from [[Fatal Wounds#Other effects of Fatal Wounds|other effects of wounds]], e.g. penalties to Energy, Accuracy, Time Units&lt;br /&gt;
* Do Cyberdisks, which have no legs or arms and probably no head, only ever receive Torso wounds?&lt;br /&gt;
&lt;br /&gt;
=== Mechanical Bleeding ===&lt;br /&gt;
&lt;br /&gt;
* Question: Do Cyberdiscs and Sectopods receive Fatal Wounds? I&#039;m wondering whether an unconscious Cyberdisc is safe to be around. Even if they didn&#039;t explode, Fatal Wounds would be stupid for a robot. If XCOM tanks can&#039;t end up leaking fuel and sparking dangerously, neither should enemy robots. [[User:Stubbs|Stubbs]]&lt;br /&gt;
: I think you can make a case for tanks and robots having &amp;quot;wounds&amp;quot;, i.e. damage that gets progressively worse by itself. You can even make a case for them being &amp;quot;stunned&amp;quot; - temporarily non-operational. You can even make a case for it applying to alien robots but not to X-COM tanks, since alien robots all have some degree of organic component (which is why they can be Mind Controlled). But I still think you are right, neither effect should apply to machines, whether alien or human. As for your question, see the tests below:&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding Test Findings:&lt;br /&gt;
* Cyberdisks take Wounds (with Alien Bleeding option enabled)&lt;br /&gt;
* Cyberdisk wounds can be healed (though only after unit is stunned)&lt;br /&gt;
* Cyberdisks lose health from wounds&lt;br /&gt;
* Cyberdisks can die from wounds&lt;br /&gt;
* Cyberdisks don&#039;t seem to explode when they die from wounds (&amp;quot;has died from wounds&amp;quot; popup)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Cyberdisk Bleeding TestTest Caveats:&lt;br /&gt;
* Same caveats as previous tests (above), plus:&lt;br /&gt;
* The Cyberdisks were modified from Reapers using xcomutil :rpl&lt;br /&gt;
* Some Pistols were changed to Laser Rifles using xcomutil :chg&lt;br /&gt;
* (xcomutil was not installed in the game directory however, it was used from another location)&lt;br /&gt;
* The stats (Armour 34 all round, Health 120) appeared normal for Superhuman&lt;br /&gt;
* However the Cyberdisks seemed to fall too easily to Laser Rifle fire (e.g. 1 hit)&lt;br /&gt;
* Also, they seemed not to explode as often. This was because they were often stunned.&lt;br /&gt;
* Hard to tell in-game whether a Cyberdisk is dead or stunned. The graphic is the same, you can&#039;t use a Mind Probe, nor look on the ground, nor even check by changing sides.&lt;br /&gt;
* Actually there is one way to tell: stand over it and use a Medkit. Didn&#039;t think of that. [[User:Spike|Spike]] 08:22, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:Thanks for finding out, Spike. Autopsy text shows you are right about the Sectopod( but not about the Cyberdisc) having biomechanical components, but it&#039;s not like there are gallons of blood pumping around the thing to gush out. One thing: did you check both conscious and unconscious death-by-wounds for the Cyberdisc? [[User:Stubbs|Stubbs]]&lt;br /&gt;
::No problem Stubbs. I didn&#039;t deliberately test this, but I had numerous deaths-by-wounding while unconscious and I think at least a few while conscious. I believe those that died while conscious, exploded. (I think this is the basic rule for Cyberdisks. If they are stunned, they don&#039;t explode. This typically happens with stun weapons but can also happen with regular weapons, if you are lucky.) [[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
* Seb76: maybe robots receiving wounds was an oversight, or maybe you really do want robots to take wounds. In either case, it would be nice to have a separate option for this. My arguments against robot wounds are pretty simple: tanks do not receive them, the bled-out dialogue &amp;quot;X has died from a fatal wound&amp;quot; sounds silly for a robot that was never alive, and finally that a Medkit should not be able to heal a robot.&lt;br /&gt;
: It&#039;s reasonable that alien mechanisms (Sectopod, Cyberdisk) would not suffer from wounds. Possibly also Zombies should remain immune to wounds? From a note Seb made elsewhere, I think the UNITREF.DAT &amp;quot;can be wounded&amp;quot; flag is the same as the &amp;quot;can be stunned&amp;quot; flag. Wounding is probably prohibited globally for aliens, by an override somewhere in the executable. Seb has probably removed this override, unconditionally. To remove the override more selectively, I suspect Seb would need to put a logic test in the code, to check the alien type. .[[User:Spike|Spike]] 20:54, 5 September 2009 (EDT)&lt;br /&gt;
::There was a check for ownership that I simply removed. Next version will have an explicit check for robots/chryssies/zombies not to bleed. [[User:Seb76|Seb76]] 12:29, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* If you want a sense of &amp;quot;the Sectopod&#039;s leg got damaged&amp;quot; or even &amp;quot;the tank&#039;s track was broken&amp;quot;, perhaps robotic units could be &#039;wounded&#039; by damaging max TUs. &lt;br /&gt;
* If, however, the above won&#039;t let weapon usage TU %s recalculate as TUs are lost (i.e. the units lose firing ability as well as walking), then certain values of Energy with the correct Energy usage modifier could emulate loss of speed without losing firing ability. Since Energy is returned at a rate of 1/3 of TUs, these units could have an Energy value of (slightly less than) exactly 1/3rd of their TUs. Their energy usage modifier is then changed to allow this small energy value to usually suffice. Now, when Energy is damaged, the units will be permanently slowed, but their weapons won&#039;t be affected. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
=== Zombie Bleeding ===&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Zombies that bleed to death don&#039;t seem to turn into Chryssalids. As discussed above, it might be better to disable wounding for Zombies. (Death by wounding for Zombies was already possible, without this fix, if the Zombie was mind controlled, wounded while mind controlled, then released back to Alien control.) [[User:Spike|Spike]] 21:07, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Hostile Civilians ==&lt;br /&gt;
&lt;br /&gt;
This fix also seems to prevent:&lt;br /&gt;
* [[Exploiting_Mind_Control#Zombie&#039;s_Permanent_Control_of_Aliens_via_Stunning|Permanent Control of Aliens via Stunning]] Exploit - as was hoped for. &lt;br /&gt;
* [[Exploiting_Mind_Control#Resurrect Zombified Agents|Permanent Control of a Chryssalid/Tentaculat]]&lt;br /&gt;
&lt;br /&gt;
It does not fix:&lt;br /&gt;
&lt;br /&gt;
* Various Mind Control bugs: &lt;br /&gt;
** [[Known_Bugs#Mind_Controlled_Soldiers_go_MIA]]&lt;br /&gt;
** [[Known_Bugs#Mind Controlled Aliens Count as MIA if you Abort]]&lt;br /&gt;
&lt;br /&gt;
(Probably because fixing both of these requires special, end-of-mission processing)&lt;br /&gt;
&lt;br /&gt;
Still To Be Fixed:&lt;br /&gt;
&lt;br /&gt;
* [[Exploiting_Mind_Control#Exponential Mind Control|Exponential Mind Control]]&lt;br /&gt;
&lt;br /&gt;
(This requires a check in UNITPOS to ensure that the unit attempting Mind Control is not, itself, already mind controlled.)&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:16, 3 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Fixed Funky Fire and Zombies ==&lt;br /&gt;
&lt;br /&gt;
Fixed Funky Fire still permanently kills Zombies, when the killing damage comes from (end of turn) fire damage. [[User:Spike|Spike]] 21:02, 5 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== Research Tree ==&lt;br /&gt;
&lt;br /&gt;
I&#039;ve found a way of modding the research tree and was wondering if people are interested in an updated version. I&#039;ve read of stuff like enabling hovertanks from cyberdisc autopsies or flying suits with floater research, but I think there is more that can be done. The limitations from the original game is that having researched a topic cannot unlock more than 4 new topics, and cannot unlock the production of more than 4 new item types. Any ideas? [[User:Seb76|Seb76]] 12:40, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
* Another one I mentioned was: Mind Probe before Psi-Amp, although I&#039;m going to retcon that to &amp;quot;Mind Probe before Psi-Lab&amp;quot; (which then leads to Psi Aimp as per usual). The logic behind this is that the first step of a psi-attack must be scanning for enemy brainwaves to pick them out of the other signals. Before you can teach soldiers to do this, you&#039;d have to have studied the mind probe to see how the non-psychic aliens are managing to find targets. You&#039;ve got to walk before you can run, after all.&lt;br /&gt;
* I&#039;m unsure if the next suggestion is possible, given what you have said. I&#039;d like some kind of necessity to research at least some corpses/aliens - is it possible to require, say, any 6 alien &#039;live&#039; or &#039;autopsy&#039; reports finished before Alien Origins unlocks? You might also make it dependent on difficulty (6/7/8/9/10 needed). You could also include alien missions in this count.&lt;br /&gt;
* My only other suggestions are: you should have to research Elerium before you can build anything that requires Elerium to build. You should have to research Alien Alloys before you can build anything that uses those (which is true only for some things currently. It doesn&#039;t seem to be a prerequisite for building alien weapons). Is it possible for a manufactured item to require two separate research entries to be manufactured?&lt;br /&gt;
* Question: is there also a limit of 4 prerequisites for a research item? [[User:Stubbs|Stubbs]]&lt;br /&gt;
:There is no limit on prerequisites, it&#039;s the code that shows &amp;quot;you can now build/research xxx&amp;quot; that has a 4 entries limitation. [[User:Seb76|Seb76]] 15:05, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
A boring suggestion but how about making sure that for all weapon research, you need to do the pistol before the rifle before the heavy weapon, etc. And similarly with the ammo types. Apart from that, I&#039;ll think on it. [[User:Spike|Spike]] 17:42, 6 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
Another boring suggestion: each specific laser weapon should take a little longer to research - force you to use the starting weapons for a little longer. You could also rebalance the Plasma research times so that the rifle took a little longer and the Heavy Plasma took significantly longer. It might then be more viable to research them from weakest to strongest, without forcing your hand as Spike suggested. [[User:Stubbs|Stubbs]]&lt;br /&gt;
&lt;br /&gt;
:Yep that&#039;s a good alternative. &lt;br /&gt;
&lt;br /&gt;
You could make the Stun Launcher a little harder by requiring (as well as Alloys and Elerium), perhaps a live Medic to be researched before the Stun Launcher (since it&#039;s usually Medics that carry them and presumably understand how to operate them), and an Engineer for a Blaster Launcher. It&#039;s not much extra but it helps to make these powerful weapons a little harder to get. If you wanted to make Blaster Launcher quite a lot harder to get you could add something like UFO Navigation (something to do with plotting all those waypoints, alien-stylee), or at least a Mind Probe for similar reason. &lt;br /&gt;
&lt;br /&gt;
But, what are we trying to do here? Make things harder in general? That&#039;s one option. Or &amp;quot;rebalance&amp;quot;, i.e. make things that are relatively too easy to get, relatively harder to get? Or make things more &amp;quot;logical&amp;quot;? There&#039;s lots of ways to play this. &lt;br /&gt;
&lt;br /&gt;
It&#039;s a shame there&#039;s not a distinction in the game between using, and manufacturing, alien weapons - as is done in XcomUtil. Really, there should be a world of difference between figuring out how to use scavenged alien weapons, and actually being able to manufacture them. But that&#039;s not really a research tree topic, &#039;&#039;&#039;unless&#039;&#039;&#039; - would it be possible to create new topics? Could you separate out the using of an item from the manufacturing of it? (If not, it would be good to have a game variant in which nothing that can be scavenged, is allowed to be manufactured).&lt;br /&gt;
&lt;br /&gt;
UFO Navigation might also be a good prerequisite for Hyperwave Decoder. I&#039;m sort of rambling here, but what are the most powerful technologies, that are kind of easy to get... which ones need to be made harder. (Are there any that need to be made easier?)&lt;br /&gt;
&lt;br /&gt;
Powerful technologies:&lt;br /&gt;
* Psionics (Psi Lab == Psi Amp). Adding the Mind Probe, as suggested, would be a good idea. Maybe a psionic Commander capture required for each. &lt;br /&gt;
* Blaster Launcher - maybe require an Engineer and a Soldier research, as well as Elerium &amp;amp; Alloys. Mind Probe or  UFO Navigation for the &amp;quot;plotting&amp;quot; element? A separate Engineer capture to produce the ammo? What else?&lt;br /&gt;
* Stun Launcher - Medic and an Engineer? Maybe a full set of autopsies - but that&#039;s too onerous. &lt;br /&gt;
* Heavy Plasma - stretching the research time would be good, though this can already be done. Additional pre-reqs - maybe add a live Engineer requirement (maybe for &#039;&#039;each&#039;&#039; Plasma weapon type?). If you keep making these requirements you probably need to add a hint in the UFOPaedia along the lines of &amp;quot;we will need to interrogate alien technical experts to further understand this weapon technology&amp;quot;. (OK that&#039;s hardly a hint.)&lt;br /&gt;
* Laser Cannon (?) - But I&#039;m not sure this Laser Cannon factory thing is a big deal. Arguably building a new intercept base is a better cash cow than building a 50-Engineer Laser Cannon factory.&lt;br /&gt;
&lt;br /&gt;
[[User:Spike|Spike]] 16:34, 8 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
== 64 bit compatibility ==&lt;br /&gt;
&lt;br /&gt;
Any way to make the loader compatible with 64-bit operating systems, like 64-bit XP/Vista/7? [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
: I&#039;m using it on Windows 7 and it&#039;s working fine. Not sure if that&#039;s 64 bit though. [[User:Spike|Spike]] 07:26, 9 September 2009 (EDT)&lt;br /&gt;
&lt;br /&gt;
:: If you&#039;re not sure, you are probably running the 32-bit version of Windows 7. Starting from XP, Windows comes in both 32-bit and 64-bit flavors. Most 32-bit programs are backwards compatible, but apparently not X-COM from my experience. [[User:Jwilcox25|Jwilcox25]]&lt;br /&gt;
&lt;br /&gt;
== Music bug ==&lt;br /&gt;
&lt;br /&gt;
When enabled &amp;quot;MIDI freeze&amp;quot; bugfix, after entering first combat the music stops playing completely, for the remaining game session.&lt;br /&gt;
&lt;br /&gt;
Also, when using Extender, for some reason music is playing at really low volume, i have to manually reduce my main sound channel and crank up the volume to hear it. When just starting normal UFO CE volume levels of music and sfx are about equal. I have SB Live &amp;amp; WinXP.&lt;br /&gt;
&lt;br /&gt;
== Fire Speed bug ==&lt;br /&gt;
&lt;br /&gt;
Sometimes, for no apparent reason, fire speed setting jumps to 3, instead of what you had it set on.&lt;br /&gt;
&lt;br /&gt;
== Reserve TU for x-Shot ==&lt;br /&gt;
&lt;br /&gt;
Not sure if this has been addressed or fixed, but if you reserve Time Units for any shot type, all you get is Snap Shots for the reaction phase - never aimed or auto. Is there any way you could enable these two unused types for reaction shots? --[[User:Zombie|Zombie]] 22:51, 25 October 2009 (EDT)&lt;br /&gt;
:As far as I can tell, the reserve is only meant to be used during the active turn. Reaction shots are hardcoded to snapshots (that&#039;s true for the aliens too), it&#039;s no bug that your guys don&#039;t use reaction autoshots. [[User:Seb76|Seb76]] 12:10, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== TFTD ==&lt;br /&gt;
&lt;br /&gt;
I know you&#039;re hoping to perfect the current version before taking on any new projects, but I just want to add my plea to the others requesting a TFTD version.  Even some of the basic functionality would be awesome and probably completely portable, such as the stats on the equipments screen, default new base, etc.&lt;br /&gt;
&lt;br /&gt;
== Can&#039;t change tasks in D3D ==&lt;br /&gt;
&lt;br /&gt;
Hey, I&#039;m having an issue with D3D. If I alt-tab out, I can&#039;t switch back to the X-Com task. I&#039;ll switch to it but nothing can happen. I&#039;m on Windows 7 x64 with an ATI Radeon HD 5770. [[User:Rlbond86|Rlbond86]] 20:19, 15 January 2010 (EST)&lt;br /&gt;
:I too have hangups sometimes when alt-tabbing out of XCom, sadly I&#039;m no D3D expert :( I&#039;ll add more checks to see if resetting the D3D device worked though. If anyone knows of a 100% working way of dealing with &amp;quot;device lost&amp;quot; conditions, now is your chance... [[User:Seb76|Seb76]] 12:06, 16 January 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Battlescape Soldier&#039;s Stats Crash ==&lt;br /&gt;
&lt;br /&gt;
I&#039;m having this little problem with this and I wanted to know if I&#039;m the only one that&#039;s suffering with it: everything works fine, but when in battlescape mode I want to check the stats of a soldier (by clicking his rank icon) the entire game CTD. Does it happen to anyone else? How can I fix it?&lt;br /&gt;
:Never saw such problem...&lt;br /&gt;
:* Does it still crash when you disable the extender (and what options did you enable)?&lt;br /&gt;
:* Do you have the address where the crash happens?&lt;br /&gt;
:[[User:Seb76|Seb76]] 15:55, 22 January 2010 (EST)&lt;br /&gt;
::It didn&#039;t, but now I reinstalled the game and it works wonderful. This is a great job you did here. Is there any chance that you could access to the stats of the soldiers from the assign crew screen? --[[User:Slibluhr|Slibluhr]] 16:56, 22 January 2010 (EST)&lt;br /&gt;
::OK, I could reproduce the crash this time, it has nothing to do with the stats screen as I supposed to do. The game crashes RANDOMLY if I have turned on the D3D thingy, any clue? I&#039;ve also noted that if I turn on the caps mod (to put most of &#039;em in 150-200 to overcome the distance penalty) the soldiers do NOT improve, even after kicking a large scout&#039;s butt with KAtherine Sharpe, she didn&#039;t get any FAc point! --[[User:Slibluhr|Slibluhr]] 05:30, 23 January 2010 (EST)&lt;br /&gt;
:The caps bug is a known one, and a fix is available. I thought I&#039;d wait for more substancial stuff before releasing a new version though. You can try the latest dev version that has the fix included.&lt;br /&gt;
:As for your crash I cannot do much without a crash address... [[User:Seb76|Seb76]] 11:46, 24 January 2010 (EST)&lt;br /&gt;
::This is what it said during last crash:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00011689&lt;br /&gt;
&lt;br /&gt;
::--[[User:Slibluhr|Slibluhr]] 15:29, 24 January 2010 (EST)&lt;br /&gt;
:Sadly the address is of no use (crash inside Windows code, most likely because of wrong arguments). I&#039;ve put a new version up with better D3D error handling, does it help with your crashes? Also since I was feeling like it, I updated the &amp;quot;Reorder Soldiers&amp;quot; feature so that when you click the name of the soldier, his stats show up. You must click the rank/name of the ship to assign the soldier. [[User:Seb76|Seb76]] 18:00, 24 January 2010 (EST)&lt;br /&gt;
::Thank for the access to the stats of the soldiers via crew screen, it releases them from having their FAcc and PStr in the name.&lt;br /&gt;
&lt;br /&gt;
:: btw, the crash moved to this location now:&lt;br /&gt;
&lt;br /&gt;
::AppName: ufo defense.exe	 AppVer: 1.0.0.1	 ModName: ntdll.dll&lt;br /&gt;
::ModVer: 5.1.2600.5755	 Offset: 00028c0b&lt;br /&gt;
&lt;br /&gt;
::could it be that&#039;s my pc&#039;s fault? does this happen to anyone else?&lt;br /&gt;
&lt;br /&gt;
::------------------&lt;br /&gt;
::System Information&lt;br /&gt;
::------------------&lt;br /&gt;
::Time of this report: 1/25/2010, 01:25:00&lt;br /&gt;
::       Machine name: 0X000001&lt;br /&gt;
::   Operating System: Windows XP Professional (5.1, Build 2600) Service Pack 3 (2600.xpsp_sp3_gdr.090804-1435)&lt;br /&gt;
::           Language: Spanish (Regional Setting: Spanish)&lt;br /&gt;
::System Manufacturer: FOXCONN&lt;br /&gt;
::       System Model: A6VMX&lt;br /&gt;
::               BIOS: BIOS Date: 03/13/09 09:59:28 Ver: 08.00.14&lt;br /&gt;
::          Processor: AMD Sempron(tm) Processor LE-1250,  MMX,  3DNow, ~2.2GHz&lt;br /&gt;
::             Memory: 3072MB RAM&lt;br /&gt;
::          Page File: 466MB used, 4490MB available&lt;br /&gt;
::        Windows Dir: C:\WINDOWS&lt;br /&gt;
::    DirectX Version: DirectX 9.0c (4.09.0000.0904)&lt;br /&gt;
::DX Setup Parameters: Not found&lt;br /&gt;
::     DxDiag Version: 5.03.2600.5512 32bit Unicode&lt;br /&gt;
&lt;br /&gt;
== Store limit question ==&lt;br /&gt;
Nice to see you&#039;ve implemented the general store change (unfortunately, UFOExtender doesn&#039;t work under wine, so I can&#039;t test this). I&#039;m curious why 187 is the limit? I thought it would be a power of 2 (possibly minus 1)... Possibly you wanted to write 127? [[User:Cesium|Cesium]] 19:43, 21 February 2010 (EST)&lt;br /&gt;
:You can build 35 general stores max in a base and 65535/35 ~= 1872 (the internal representation is ten times what&#039;s shown ingame). [[User:Seb76|Seb76]] 00:19, 22 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Mouse scaller not working on Windows 7 x64 ==&lt;br /&gt;
&lt;br /&gt;
with d3d=1 and Scale Mouse=1 I still have issues with the mouse going way off screen.&lt;br /&gt;
--[[User:BladeFireLight|BladeFireLight]] 01:57, 22 February 2010 (EST)&lt;br /&gt;
:I have noticed that alt-tabbing out of X-COM at the title menu (or any other point that won&#039;t crash it) and then alt-tabbing back into it fixes this problem for me in Win7-64. --[[User:Xusilak|Xusilak]] 13:12, 22 February 2010 (EST)&lt;br /&gt;
::Thanks for the heads-up. I uploaded a test version here: http://www.ufopaedia.org/index.php?title=Image:UFOExtender-dev.zip&lt;br /&gt;
::Does it fix you problems? [[User:Seb76|Seb76]] 14:36, 22 February 2010 (EST)&lt;br /&gt;
:::Yep. Seemingly no issues with the mouse going off the screen using it, although I didn&#039;t test for long. I&#039;ll try to get more test time in later. --[[User:Xusilak|Xusilak]] 20:46, 24 February 2010 (EST)&lt;br /&gt;
::::Actually, it doesnt work for me either, in WinXP. And it was broken since the version of 7th November, the one with windowed mode addition. Also, Alt-Tabbing didnt work too. This fix makes things right, though.&lt;br /&gt;
::::Edit : also, this dev version crashes in 100% cases when going to battlescape.&lt;br /&gt;
::Strange, I do not have any trouble even when using split binaries. Do you have an address for the crash? [[User:Seb76|Seb76]] 14:03, 1 March 2010 (EST)&lt;br /&gt;
:::Okay, i hope this is what you wanted, but it says the adress is 0x0000000000bd22ca. I can load an actual save with tactical mode, but cant go into tactical from geoscape. So i use the version from 1st November still.&lt;br /&gt;
:Hum, you say the dev version crashes and that you are stuck with the version from 1st november. Do you mean you have the problem since the version of november the 7th, independently from the dev version? [[User:Seb76|Seb76]] 14:08, 4 March 2010 (EST)&lt;br /&gt;
::Actually yes. At first i didnt want to use it, because i use a tablet instead of mouse, and its really noticeable when a window failed to scale properly, since a tablet works in absolute screen coordinates. But just now i checked several new (non-dev) versions for the crash - its there. Crashes every time i try to enter tactical mode from geoscape. Saves from tactical load up fine. Version from Nov.1st gives no problems whatsoever.&lt;br /&gt;
:Do you still have the problem if you disable D3D or use windowed mode? Also if you load a tactical game, don&#039;t you get a crash when it goes back to geoscape? [[User:Seb76|Seb76]] 03:20, 6 March 2010 (EST)&lt;br /&gt;
::When disable D3D - yes. When enable windowed - yes. When going from tactical to geoscape - no.&lt;br /&gt;
:OK, I suspect this has to do with the &amp;quot;Save Equipment&amp;quot; feature. Can you try disabling it if you have it on? [[User:Seb76|Seb76]]&lt;br /&gt;
::OK, um...i tried all my saves, and with that feature disabled all my saves load up fine, and i can go from geoscape to tactical and back. So i thought everything was alright, and kept playing - the very next tactical mission loads up fine, but as soon as i try to move anyone - it crashes. And that is the same in all my saves, first mission is alright - second one always crashes. The crash adress is 42064f, in case you&#039;re gonna ask.&lt;br /&gt;
:Alright, can you PM me a savegame before the crash? I doubt it&#039;ll help but who knows...[[User:Seb76|Seb76]] 12:43, 6 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Extender in Steam (+ maybe XComUtil) ==&lt;br /&gt;
&lt;br /&gt;
Hi do you know of any way to use the two apps together with the Steam version?  I would really like to be able to combine the &#039;Reorder Soldiers&#039; feature of Extender and the &#039;Capturing Aliens for Research&#039; of XcomUtil.&lt;br /&gt;
&lt;br /&gt;
Actually now that Ive put a bit more time into it I can&#039;t get UFOLoader.exe to run in steam&#039;s dosbox implementation at all.  I can just run UFOLoader but it doesn&#039;t run in dosbox which makes the game run horribly.  If you don&#039;t have a steam copy for testing / integration of the basic Extender program please let me know and I would be happy to send you a gift copy.&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
P.S. What a great program, you are a credit to gaming.&lt;br /&gt;
:As far as I know, the Steam version also ships with the windows CE edition, the default shortcut just happens to point to the dosbox one. Also the latest version of XComUtil is able to detect the loader presence and act accordingly. [[User:Seb76|Seb76]] 15:42, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
:: STEAM comes with both EXE. XcomUtil and UFO Extender work together with STEAM. To use Setup UFO Extender in the game folder. Then Download and install the latest build of XcomUtil 9.7. It will auto start XcuSetup in windows, Detect UFO Extender and allow you to configure RunXcom to use it. To use UFO Extender, or UFO:CE you can&#039;t launch the game from STEAM. You have to create a short cut for RunXcom. (Right click &amp;gt; send to &amp;gt; Desktop as Shortcut)  --[[User:BladeFireLight|BladeFireLight]] 19:13, 25 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Thanks guys I was able to start the game with both mods.  I apparently had everything configured correctly but I kept launching it from steam.  Is there a way to play in windowed mode (since its not using dosbox)?  I tried launching dosbox and running &#039;RunXCom.bat&#039; file from there but it does not recognize UFOExtender.&lt;br /&gt;
&lt;br /&gt;
Oh boy the game is fast, even on slowest scroll it is difficult play a battle :)&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
-Dogfish&lt;br /&gt;
:What options did you turn on? [[User:Seb76|Seb76]] 14:18, 26 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
Show Stats=1&lt;br /&gt;
Apply=1 (wreck analysis)&lt;br /&gt;
Proximity Grenades Experience=1&lt;br /&gt;
Elerium-fueled Craft Bug=1&lt;br /&gt;
Save Reserve Mode=1&lt;br /&gt;
Rank In Inventory=1&lt;br /&gt;
Manual Interception Fire Mode=1&lt;br /&gt;
Crafts Always Ready=1&lt;br /&gt;
Reorder Soldiers In Crafts=1&lt;br /&gt;
No Funkers=1&lt;br /&gt;
TFTD Doors=1&lt;br /&gt;
&lt;br /&gt;
Full System Specs:&lt;br /&gt;
Win Vista 64 &lt;br /&gt;
Intel i7 920&lt;br /&gt;
6GB RAM&lt;br /&gt;
GTX 285 Video&lt;br /&gt;
Asus p6t &lt;br /&gt;
&lt;br /&gt;
Everything is fast the geoscape tics are at least 5 times faster than running the non-Extender mode via dosbox.&lt;br /&gt;
&lt;br /&gt;
Would you have any suggestions how to slow it down?  I&#039;ve actually been playing in steam(dosbox) with XComUtil only and then saving/loading between missions so I can reorder the soldiers.&lt;br /&gt;
&lt;br /&gt;
Aha!  I found the D3D Windowed option...&lt;br /&gt;
HQ4x=0&lt;br /&gt;
D3D=1&lt;br /&gt;
D3D Windowed=1&lt;br /&gt;
Always On Top=0&lt;br /&gt;
Clip Cursor=1&lt;br /&gt;
Scale Mouse=1&lt;br /&gt;
Screen Ratio=0.833333 &lt;br /&gt;
&lt;br /&gt;
I can manually resize it to be bigger, excellent!&lt;br /&gt;
What is strange is that running it in windowed mode seems to slow it down enough for the scroll speed settings to make it playable :)&lt;br /&gt;
&lt;br /&gt;
I ran into a &amp;quot;Unsupported 32/16/64 bit error message switching from geoscape to battlescape but it happens only 1/3 times maybe?&amp;quot;&lt;br /&gt;
&lt;br /&gt;
I will be playing this and let you know if I run into any more problems.&lt;br /&gt;
&lt;br /&gt;
Thanks a bunch!&lt;br /&gt;
-Dogfish&lt;br /&gt;
&lt;br /&gt;
&lt;br /&gt;
Hi guys, dogfish again I&#039;ve been getting a couple of glitches.&lt;br /&gt;
&lt;br /&gt;
1.  Switching from battlescape back to geoscape in the cmd prompt it displays&lt;br /&gt;
&#039;echo----------------------------Leaving&#039; is not recognized as an internal or external command, operable program or batch file.&lt;br /&gt;
&lt;br /&gt;
2.  This has happened twice&lt;br /&gt;
&lt;br /&gt;
Get someone who has been shot is at low health and has fatal wounds&lt;br /&gt;
&lt;br /&gt;
Have them pass out due to smoke inhalation&lt;br /&gt;
&lt;br /&gt;
Let them bleed to death and get the &amp;quot;Joe McSoldier has died from a fatal wound&amp;quot; *while unconsious from the smoke*&lt;br /&gt;
&lt;br /&gt;
I will lose points for the mission but the soldier will be recovered at the end of the mission but terribly wounded.  (Currently Hans &#039;Jesus&#039; Vogel is taking 55 days to recover his 41 health.)&lt;br /&gt;
&lt;br /&gt;
:Both of these are XcomUtil issues. 1 has been fixed in Build 413 but I need a saved from just before ending combat to fix 2.  --[[User:BladeFireLight|BladeFireLight]] 18:19, 28 February 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
::Sent the savegame to your gmail (whatever was listed on my paypal reciept from your donate button).  Just hit end turn (all the aliens are dead) and the bug is triggered. -Dogfish&lt;br /&gt;
::: I got it. Was up all night with Bomb Bloke and we worked out what was going on. The fixed works with your save. The next build will fix the zombie bug. Also Thanks for the donation. Every little bit helps. --[[User:BladeFireLight|BladeFireLight]] 16:02, 1 March 2010 (EST)&lt;br /&gt;
&lt;br /&gt;
== Manually Select Promotions ==&lt;br /&gt;
&lt;br /&gt;
Just an Idea, not sure how easily done it is but I was thinking it would be really cool if (when its time for promotions) it would bring up a soldier screen with the eligible soldiers so that you could pick who gets promoted.  Bonus if you could click on the candidates and be taken to their stats screen.&lt;br /&gt;
&lt;br /&gt;
Love,&lt;br /&gt;
Dogfish&lt;br /&gt;
&lt;br /&gt;
== Xusilak&#039;s Patch Additions ==&lt;br /&gt;
&lt;br /&gt;
Since my patches are being integrated into the main release now, everyone should let me know if any issues are found with them. I&#039;ll try to get on fixing them as quickly as possible.&lt;br /&gt;
&lt;br /&gt;
For clarity, the patches in the current build that I developed are:&lt;br /&gt;
&lt;br /&gt;
* AutoSell&lt;br /&gt;
* Show Money&lt;br /&gt;
&lt;br /&gt;
Thanks! --[[User:Xusilak|Xusilak]] 14:51, 24 March 2010 (EDT)&lt;br /&gt;
&lt;br /&gt;
----&lt;br /&gt;
&lt;br /&gt;
Hi Seb,&lt;br /&gt;
I&#039;ve been working with IDA, your database, and your patcher&#039;s code for some time now, learning my way around it, and so on. So far, I&#039;ve managed to come up with three UI improvement patches, although they still need some polish and testing.&lt;br /&gt;
&lt;br /&gt;
The first one is a battlescape movement confirmation patch; it requires the user to click twice (double-click with no time limit) on the same tile to move, instead of once, to eliminate movement errors. In practice, I have found this very helpful.&lt;br /&gt;
&lt;br /&gt;
The second one shrinks the geoscape clock and adds your current funds above it, letting you see your financial situation at a glance while waiting for time to pass.&lt;br /&gt;
&lt;br /&gt;
The third one enables auto-selling of manufacturing items. Pressing the down arrow when the production quantity is at 0 engages this mode. When in this mode, production of that item never ceases (unless resources become unavailable), and the item is immediately sold upon completion.&lt;br /&gt;
&lt;br /&gt;
Would you like me to make the code for these available once I&#039;ve finished polishing them up? They currently consist of a few C functions accompanied by some InsertCall()s and Nop()s, as well as some additions to XCOM.h. I haven&#039;t added INI options to enable them, so I&#039;d leave that up to you. You may use them as you wish, with no conditions.&lt;br /&gt;
&lt;br /&gt;
Note: I&#039;m still learning x86 assembly, so the patches may not be bug-free. I&#039;m hoping to give them a good testing myself, though.&lt;br /&gt;
--[[User:Xusilak|Xusilak]] 16:10, 19 March 2010 (EDT)&lt;br /&gt;
:Glad to see you could make something out of this database :-) Do not hesitate to send me your modifications, I&#039;ll incorporate them in the codebase so others can enjoy them. I&#039;m sure your autosell feature will make a few happy ones ;-) [[User:Seb76|Seb76]] 19:12, 19 March 2010 (EDT)&lt;br /&gt;
:::Yeah those features would all be &#039;&#039;&#039;great!&#039;&#039;&#039; Thanks Xusilak. [[User:Spike|Spike]] 15:08, 22 March 2010 (EDT)&lt;br /&gt;
::OK. I&#039;m going to finish up my last touches on them, then test them for a while; they should be ready within a couple days. --[[User:Xusilak|Xusilak]] 21:59, 19 March 2010 (EDT)&lt;/div&gt;</summary>
		<author><name>Xusilak</name></author>
	</entry>
</feed>