Talk:UIGLOB.DAT

From UFOpaedia
Jump to: navigation, search

Could some of those offsets also be the next number for XCom Crafts? (Interceptor, Firestorm, Skyranger, Lightning, Avenger) Still leaves 2 unknowns though... Too lazy to test this myself right now --Pi Masta 14:11, 2 March 2007 (PST)

Comparing a couple of saves early and a few months in I can assume that 0x0C is Skyranger (its 2 on a new game, 4 on one where i have 3 of them), 0x12 is the Interceptor count (its 3 in new game, 9 where I had 8 at one point), 0x0E is Lightning which I built only one of, 0x10 is still one - the first Avenger is still in production in that save), 0x14 is Firestorm which I have two of in the late save.

Just leaves 0x06 (always 0 that I have seen) and 0x08 - 01 in the game in early February, 07 in the game in about July from the number of monthly scores inserted. Ground Assaults? I think those number differently to UFO Recovery missions, and it would be about the right number; my new game, I have shot them all down so far, so that also fits being 01 still, in the later game I have had a few ground assaults, 6 sounds about right, and with its location seems a good option.

Hmm, as four of the the first five are alien missions, and its sandwiched in between seems most likely to be another alien mission type - but unlike the rest its zero at the start, not 1. The only thing left I can think of is XCOM base attacks. Do those get a number? Its been a very long time since I got attacked in my base, and it would take some time to work out how to hack the aliens into doing it I imagine, depending on how well that part of the files is known already(in ACTS.DAT I think?).

--Sfnhltb 14:54, 2 March 2007 (PST)

Something to check - at the end of the month the extra score might be 400/16 = 25 per happy country.

--Sfnhltb 14:59, 2 March 2007 (PST)

But that cant be right - because their happiness is based on the score, so that would be a self reference. Per country still could be the key - maybe if you outscored the Alien activity (using that local xcom + (total xcom/10) vs local alien + (total alien/5) calculation that was posted elsewhere as working out whether the countries are happy with your actions.

--Sfnhltb 15:02, 2 March 2007 (PST)

Yeah I think the ground assaults as well as the recoveries get the same number as the UFO involved. 0x06 could be a pad byte and is never used. I'm glad you did this, it would have taken me some time to set up the saves and all. --Pi Masta 15:05, 2 March 2007 (PST)
Havent seen any padding elsewhere. Could be something that go removed late on in development maybe and they didnt want to reset the offsets of the rest of the file in various places in code, so maybe. Of course need to confirm the order of Alien Terror/Alien Bases is correct, because it based on one test where I saw them different atm and thought I remembered which I had done 2 and 3 respectively of, but probably want to confirm that. --Sfnhltb 15:19, 2 March 2007 (PST)

You might try editing MISSIONS.DAT and setting it to a retal, shoot it down and they should keep sending more after you. --Pi Masta 15:08, 2 March 2007 (PST)

Will check that out at some point, still only understand a quarter of the save files so far, and I am behind in translating the ones I know to my analysis program as well so it can decode them all automatically for me when needed. --Sfnhltb 15:19, 2 March 2007 (PST)

What are you using for analysis? I have made some Python modules for nearly all the known file formats if they could be of help. Pi Masta 10:40, 3 March 2007 (PST)

Just a VB program I knocked up in a few hours, it tracks the various save directories and notices when a new save is made and will (if asked to) automatically update on screen either the complete analysis of a file (usually too much information to be useful) or compare the differences between two selected files (all of which can be set fixed, or to dynamically detect the newest/oldest/second newest files as desired). --Sfnhltb 14:35, 3 March 2007 (PST)

0x06

I was working on tracking down the "Minimized Interceptor Bug" and found that 0x06 in UIGLOB.DAT was different in my current (bugged) save game when compared to an older (non-bugged) save game. Long story short, I believe that 0x06 is NOT the next XCOM Base assault number (it didn't make sense for it to start counting at 0 anyway?) but I believe it is the current number of minimized Interceptor windows. Can someone else please confirm this for sure? I'm going to edit the main page with a note to see this discussion. Feel free to change it back if it's incorrect.

PS- I was able to edit 0x06 from 01 to 00, the minimized interceptor icon disappeared, but my interceptor continued on to the target, landed and was able to begin the mission successfully.

No crash on exit from the ground mission?
No crash at all. I didn't crash when it went Geopscape to Battlescape, and it didn't crash when it went back from Battlescape to Geoscape. I'm pretty sure this fixes it.--BarlowBrad 06:07, 27 October 2007 (PDT)


0x06

The same thing happened to me : a "just-after-mission" save game was crashing because before the mission I left two minimized interceptor windows opened. So, "just-after-the-mission", if I close the minimized windows, when i close the second one, the zoom "goes back" (as usual when u've closed all intereception windows) and the game intant-crash. The 0x06 offset was 2, and changing it to 0 made the save no longer crash : I also think that this fix the "Minimized Interceptor Bug". With the 0x06 offset = 0, my two interceptors are following ufos, but there are no intereception windows. I just tell them to return to base, and everything seems to be fine. I tried letting the game "fast-forward" (one day button) for two month, and no crash occured.

An intersting thing is that if I tell one interceptor to "select new target", and target the ufo it is already intercepting, this opens his interception window, and the other interceptor minimized windows incon reappear. I can tell my interceptors to abord the interception (right arrow button), and no crash occurs.

I think someone should make an entry in the ufo bug FAQ about this point, because it may helps people recovering corrupted saved game, as this bug seems to be common.--Princessleila 17:04, 3 November 2009 (EST)


Can't you find alien base 4 before alien base 3, for example, so on the main page it wouldn't be next spotted base it would be next built base wouldn't it. --Ditto51 19:04, 14 July 2012 (EDT)