Chris Posted March 20, 2014 Share Posted March 20, 2014 Something that some of you modders may find useful - you can use the same debug output we use to test the accuracy / morale / suppression etc calculcations are working correctly to test your own creations. Viewing Debug Output: 1) Download the debug viewer here: http://www.xenonauts.com/devfiles/xeno_debugger.exe 2) Run the Xenonauts_gc_editor.exe version of the game, which can be found in the same directory as Xenonauts.exe is. 3) The debugger will output real-time debug information from Xenonauts as you play (you may need to filter out the debug output from other programs running on your PC at the same time). The debugger outputs a LOT of information, so it takes some getting used to....but it lets you understand exactly what is going on in a lot of combat situations. In-Game Editor / Commands: You can also press U in Xenonauts_gc_editor.exe. If you are in the ground combat and playing in windowed mode, this will pop-up an in-game browser that lets you view the TU / HP of all the units and move them around the battlefield for testing purposes. Ctrl + Q also reveals the entire map, while Q hides it. V automatically wins the mission. Quote Link to comment Share on other sites More sharing options...
Monifix Posted March 20, 2014 Share Posted March 20, 2014 Wait a second... you mean... One sec, brb. *Starts spamming V, V, V, V* Ahahahaha! I AM THE GREATEST XENONAUTS PLAYER OF THEM ALL! Suck it, Aliens! Quote Link to comment Share on other sites More sharing options...
Skitso Posted March 22, 2014 Share Posted March 22, 2014 Hmm, should the debugger be public? It asks for a password. Quote Link to comment Share on other sites More sharing options...
TT3 Posted March 22, 2014 Share Posted March 22, 2014 Use just www.xenonauts.com/devfiles/xeno_debugger.exe Quote Link to comment Share on other sites More sharing options...
Skitso Posted March 22, 2014 Share Posted March 22, 2014 Thanks! Quote Link to comment Share on other sites More sharing options...
Chris Posted March 22, 2014 Author Share Posted March 22, 2014 Yeah, TT3 is correct - I've updated the original link accordingly. Delete the previous one from your brain please Quote Link to comment Share on other sites More sharing options...
Skitso Posted March 23, 2014 Share Posted March 23, 2014 (edited) Uh.. I must say Chris... there doesn't seem to be anything wrong with the hit calculations afterall. Sorry about all the doubts. The situation will surely improve as you get the scattered bullets to fly through the target tile. Edited March 23, 2014 by Skitso Quote Link to comment Share on other sites More sharing options...
Skitso Posted April 6, 2014 Share Posted April 6, 2014 (edited) I was playing with the debugger again and there's one line in shot calculation that is a bit unclear to me. Here a sebillian shot a civilian few tiles away and missed: [6288] >>> Begin calc. projectile trajectory <<<[6288] Target tile = (19, 30)[6288] Unmodified accuracy calculation:[6288] range penalty (1.000000) = 1 - ( max(0, dist. to target (2.828427) - weapon range (30)) / weapon range (30) )[6288] shoot accuracy from props: 0.450000[6288] shoot accuracy (0.450000) = shoot accuracy (0.450000) - max(0, weapon recoil (0) / 100 - strength (0.600000) )[6288] weaponAccuracy (26.000000) = weaponAccuracy (35.000000) * accuracyModifier (0.750000)[6288] unmodified accuracy (11.700000) = shoot accuracy (0.450000) * range penalty (1.000000) * weapon accuracy (26.000000)[6288] Damage for unit:[6288] damage mul. (0.800000) = ( weapon range (30) / max(weapon range (30), dist. to target (2.828427)) ) * difficult mul. (0.800000) * ai race damage bonus (1.000000)[6288] normal damage (55) = weapon damage (65) * random bonus/penalty (1.070000) * damage mul. (0.800000)[6288] stun damage (0) = weapon stun damage (0) * random bonus/penalty (0.560000) * damage mul. (0.800000)[6288] emp damage (0) = weapon emp damage (0) * random bonus/penalty (1.040000) * damage mul. (0.800000)[6288] Terrain bullet score:[6288] terrain bullet score = 1.000000[6288] short range hit bonus (38.059) = (5 - dist. to target (2.828) + 1) * short range hit bonus per tile (12)[6288] chanceToHitTargetTile (49.759) = (unitAccuracy (11.700) + shortRangeHitBonus (38.059)) * terrainAccuracy (1.000)[6288] Random number (89) is > chanceToHitTargetTile (49.759) => miss shot What is [6288] shoot accuracy from props: 0.450000? What halves sebillian's accuracy? EDIT: ah, of course. It's the units accuracy stat. Stupid me. Edited April 6, 2014 by Skitso Quote Link to comment Share on other sites More sharing options...
catmorbid Posted June 10, 2014 Share Posted June 10, 2014 A somwhat related tip: A useful tool for making sure you're mod is compatible with the latest patch is some sort of Merge Tool. E.g. I use winmerge, which is for windows obviously. If you're on another OS there should be a few others as well. What this tool allows is to compare side-by-side different versions of a file and it points out the differences between these files and helps you make decisions on which file to use, or makes it easy to just change either on the fly. You can also compare a folder, which makes it easy to detect which files have been changed in a patch. I don't know if you can already see the changed files through steam or something, but at least I'm not aware of such. Quote Link to comment Share on other sites More sharing options...
Charon Posted June 4, 2016 Share Posted June 4, 2016 The debugger cant read the dump files. Is it supposed to ? Quote Link to comment Share on other sites More sharing options...
Charon Posted June 5, 2016 Share Posted June 5, 2016 Thanks for the debugger Chris, saved our life. Quote Link to comment Share on other sites More sharing options...
KBraid Posted March 27, 2023 Share Posted March 27, 2023 i can't seem to download the debugger, the link just brings me back to the forums homepage. Quote Link to comment Share on other sites More sharing options...
Rynaw Posted April 27, 2023 Share Posted April 27, 2023 Is there anywhere else to get this tool? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.