Danial Posted September 21, 2005 Report Share Posted September 21, 2005 (edited) That's column 45, not offset 45... You have to +1 to get column numbers. Column 45 is the 'Aggression' stat Edited September 21, 2005 by Danial Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 21, 2005 Author Report Share Posted September 21, 2005 Ah... uh... that was a test. You did good, Danial. Proud of ya! Hehe... while you've got your critters out, give that diagonal a try, with [45]=2, eh? Link to comment Share on other sites More sharing options...
Danial Posted September 21, 2005 Report Share Posted September 21, 2005 Well a diagonal is, what, 6 TUs? That'd be 1 EU with a unitref[45] of 2... Is that what you were asking? Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 21, 2005 Author Report Share Posted September 21, 2005 That's right. it would show the integer function etc works just as expected. a nice double-check, is what I was thinking. Link to comment Share on other sites More sharing options...
Danial Posted September 21, 2005 Report Share Posted September 21, 2005 That's right. it would show the integer function etc works just as expected. a nice double-check, is what I was thinking.Ok, well I just found my rogue Muton again with his unitref[45] of 2, and he does, in fact, use 1 EU upon moving a diagonal tile. So I guess that's a big "confirmed" Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 21, 2005 Author Report Share Posted September 21, 2005 Very cool. Thanks for that. One more for the reference books! Good sleuthing, professor! I guess the big question left is whether X:UE/WinCE is the only one with variants, or they happen sometimes in X:UD too sometimes, or... who knows? I'll try to keep an eye on my aliens... If anybody wants to check using EDIT like Danial just showed, go for it and let us know. Or attach it or email it. Or just give yer MC'd pets a look from time to time. don't forget to add 1 to the column count :Blush: Link to comment Share on other sites More sharing options...
Zombie Posted September 21, 2005 Report Share Posted September 21, 2005 Hmmm... I'm confused. Remember when I claimed that Ethereals and Snakemen had a 4:0 for TU used to Energy used? Thinking that perhaps I had a corrupted save on my hands, I started new missions and tried again. This time Ethereals and Snakemen had a 1:1 ratio. Now I saved the game and reloaded it. Back to 4:0! Maybe the act of saving the game is messing stuff up. As it stands right now, I have personally double-checked all the aliens in the game and every last one of them have a TU:EU ratio of 1:1. Only things that differ is normal X-COM soldiers, HWP's and Zombies which have a ratio of 2:1. If I get some time, I'll look into unitref[045] to see what number shows up for my rogue aliens with a ratio of 4:0. Thanks for the research, Danial! - Zombie Link to comment Share on other sites More sharing options...
Danial Posted September 21, 2005 Report Share Posted September 21, 2005 (edited) Hmmm... I'm confused. Remember when I claimed that Ethereals and Snakemen had a 4:0 for TU used to Energy used? Thinking that perhaps I had a corrupted save on my hands, I started new missions and tried again. This time Ethereals and Snakemen had a 1:1 ratio. Now I saved the game and reloaded it. Back to 4:0! Maybe the act of saving the game is messing stuff up. I haven't tried re-saving... Perhaps each save is messing it up somehow... As it stands right now, I have personally double-checked all the aliens in the game and every last one of them have a TU:EU ratio of 1:1. Only things that differ is normal X-COM soldiers, HWP's and Zombies which have a ratio of 2:1.How can you double-check them if your Ethereals and Snakemen keep changing?... As I said above, I have a Muton Battleship map with a 2:1 Silacoid slithering around If I get some time, I'll look into unitref[045] to see what number shows up for my rogue aliens with a ratio of 4:0. Thanks for the research, Danial! You're welcome ... If my observations are correct, your rogue 4:0's will have a unitref[45] of 3 or more... Edited September 21, 2005 by Danial Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 21, 2005 Author Report Share Posted September 21, 2005 What edition of the game are you using, Z? Getting late here... cya tomorrow! Link to comment Share on other sites More sharing options...
Zombie Posted September 21, 2005 Report Share Posted September 21, 2005 @ Danial: My double-check was performed without saving the mission or reloading. I did them all in one sitting. And I'll keep an eye out for a unitref[045] value of 3 with saved games having Ethereals or Snakemen present. @ Mike TheRed: I'm using the Collectors Edition (CE). Nightie-night - Zombie Link to comment Share on other sites More sharing options...
Danial Posted September 21, 2005 Report Share Posted September 21, 2005 And I'll keep an eye out for a unitref[045] value of 3...... or greater One of my savegames has a Snakeman with a value of 239!!!... I think that one's corrupt however, because there's lots of data in there that isn't normally, such as rubbish bytes after the names Check it out: http://members.dodo.com.au/~shoobs/images/corrupt.gif Link to comment Share on other sites More sharing options...
[NKF] Posted September 21, 2005 Report Share Posted September 21, 2005 Danial, I take it that's units with the mind control flag. But what effect does changing this stat have on player owned units? By the way, just to clear up something: Savegames in the collectors edition and the dos edition are identical. The only difference is in what rubbish memory data gets lumped into stats that are unused (like the unitref experience stats, which get filled with rubbish for aliens, but not for X-Com units). The CE version appears to clear most of the memory space it uses (I usually get 233's or 130s or some similar value, or 0's when I'm lucky) before it allocates it for the game, although it has been known to not clear the null terminated string data for strings that have been shortened. The dos versions don't clear the area of memory allocated to it - you can probably imagine my surprise when I found bits of my windows registry in there at one time! - NKF Link to comment Share on other sites More sharing options...
Danial Posted September 21, 2005 Report Share Posted September 21, 2005 Danial, I take it that's units with the mind control flag. But what effect does changing this stat have on player owned units?I just gave my first soldier a unitref[45] of 2, which, if my calculations were correct, would mean he uses 1 EU every 4 TUs. I ran the game and... that's exactly what he did Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 21, 2005 Author Report Share Posted September 21, 2005 Cool Danial - another good test. NKF - the savegames might be the same, but are the games? IOW do all aliens do 1:1 in the DOS game, but it varies in the CE game? I have yet to see anything but 1:1 with my DOS version... but haven't been paying attention long. FWIW XCOM installed just fine for me off of floppies that have been sitting on the shelf for 10 years or whatever. In my general experience, floppies are liable to start going bad after 3-5 years... at least a sector here or there. But remarkably it installed without a single problem (or floppy grinding seek noise). Link to comment Share on other sites More sharing options...
Bomb Bloke Posted September 22, 2005 Report Share Posted September 22, 2005 [rant] Fwahah! Finally I got myself registered. All that trouble so I can come here and say 'Well done Danial'. The board email system is broken, I tell you. I didn't get my validation email, and I'm not getting email notification of PMs, either. [/rant] Ahem. Where was I... I never even knew different units used different amounts of energy until now, and I doubt I'd have worked this one out if I had. I'd consider it highley likely that the stats are used in much the same way by all versions of the game. The CE version of the game is fairly similar to v1.4, with only slight cosmetic differences - for example, there's no 'Quit to DOS' button, and it runs in Windows. I gather there is a bug concerning the blaster bombs going vertically, though. Concerning garbage in the save files, if the stats for a unit look REALLY odd, make sure it's a live unit - dead ones get some really strange stats. You see how there's always a space between the end of a units' name and the garbage? That space is a byte with value of '0', the game uses that to work out where the name ends and the garbage begins. Anyway, that's 91 values in unitref accounted for, in my book! Only 33 to go! Link to comment Share on other sites More sharing options...
Danial Posted September 22, 2005 Report Share Posted September 22, 2005 Anyway, that's 91 values in unitref accounted for, in my book! Only 33 to go! Three-quarters of the way! That's pretty damn good Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 22, 2005 Author Report Share Posted September 22, 2005 Hey Danial (and NKF and BB) - In message 49 of this thread, you mentioned Unitref notes by NKF and BB. (BB is Bomb Bloke, right? Welcome learned ... er... forum newbie. ) Are those notes posted anywhere, folks? the only ones I know where to find, are hatfarm's. Link to comment Share on other sites More sharing options...
Zombie Posted September 23, 2005 Report Share Posted September 23, 2005 I took the liberty of PM'ing you Bomb Blokes Unitref notes (hope you don't mind, BB). - Zombie Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 23, 2005 Author Report Share Posted September 23, 2005 COOL Anybody mind if I put these up on the wiki? Will wait til BB responds first since it's pretty public Link to comment Share on other sites More sharing options...
Danial Posted September 23, 2005 Report Share Posted September 23, 2005 (edited) I've made a Hex Workshop structure file for unitref if you'd like to put it up too... #include "standard-types.hsl" // UNITREF.DAT struct UNITREF_DAT { UBYTE Unit_Type; UBYTE Paper_Doll; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Facing; UBYTE Unknown; UBYTE TUs_Current; UBYTE HPs_Current; UBYTE Stun; UBYTE EUs_Current; UBYTE React_Current; UBYTE Strength; UBYTE F_Armor_Current; UBYTE L_Armor_Current; UBYTE R_Armor_Current; UBYTE B_Armor_Current; UBYTE U_Armor_Current; UBYTE Firing_Acc; UBYTE Throw_Acc; UBYTE TUs_Max; UBYTE HPs_Max; UBYTE EUs_Max; UBYTE React_Max; UBYTE F_Armor_Max; UBYTE L_Armor_Max; UBYTE R_Armor_Max; UBYTE B_Armor_Max; UBYTE U_Armor_Max; UBYTE Unknown; UBYTE EU_Recharge; UBYTE Unknown; UBYTE Psi_Skill; UBYTE obdata_index; UBYTE VPs; UBYTE soldier_index; UBYTE Unknown; UBYTE Rank; UBYTE Unknown; UBYTE Aggression; UBYTE EU_Usage; UBYTE HWP_Turret; UBYTE Unknown; UBYTE Unknown; UBYTE Stand_Height; UBYTE Crouch_Height; UBYTE Unknown; UBYTE Unknown; UBYTE L_Hand_Item; UBYTE R_Hand_Item; UBYTE Unknown; UBYTE Close_Acc; UBYTE Psi_Strength; UBYTE Morale; UBYTE Bravery; UBYTE Unknown; UBYTE Unknown; UBYTE Scanner_Blip; UBYTE Head_Fatal; UBYTE Torso_Fatal; UBYTE R_Arm_Fatal; UBYTE L_Arm_Fatal; UBYTE R_Leg_Fatal; UBYTE L_Leg_Fatal; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; UBYTE Intelligence; UBYTE Unknown; UBYTE Unknown; UBYTE Mission_Count; UBYTE Unknown; USHORT Kills; UBYTE React_Count; UBYTE Shot_Count; UBYTE Rod_Count; UBYTE Throw_Count; UBYTE Psi_Count; UBYTE Panic_Count; CHAR Name[26]; UBYTE Unknown; UBYTE Inventory_Access; UBYTE On_Fire; UBYTE Gender; UBYTE Race; UBYTE Turret_Weapon; UBYTE Turret_Ammo; UBYTE Unknown; UBYTE Bitflags; UBYTE Unknown; UBYTE Unknown; UBYTE Unknown; } Edited September 23, 2005 by Danial Link to comment Share on other sites More sharing options...
MikeTheRed Posted September 23, 2005 Author Report Share Posted September 23, 2005 Great!! I'll get them up there soon as I can... finishing a little testing right now... Hmm now... let's see what happens if I change this byte... Link to comment Share on other sites More sharing options...
Bomb Bloke Posted September 23, 2005 Report Share Posted September 23, 2005 I'm a newbie again. Not for long, I'm thinking, but... while it lasts... Anyone can do what they like with my docs. They're based on a game I didn't write, and besides, the more people who have them the more values will get decoded. That, and my notes are in part a re-write of NKF's notes anyway. I already posted them somewhere in the modding section of StrategyCore, but my notes quickly go out of date, as I update them often. By the way, just a note for you budding hex editor users out there - sometimes opening a file can cause that file to be locked. No other program can edit the file until the hex editor closes it. If you accidently lock a file, and then try to save over it with UFO... It'll remain in it's original state. UFO will just ignore this, and pretend it saved the game correctly - you most likely won't know about it until you try to load the game again. The game itself is fairly robust (that is, it'll ignore most errors it comes across and keep working), so playing with the save files is unlikely to make things blow up. Act weirdly, at worst. Link to comment Share on other sites More sharing options...
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now