Difference between revisions of "XComGame.upk"

From Nexus Mods Wiki
Jump to: navigation, search
(References)
(update subject)
Line 1: Line 1:
<div style="margin:0px 10px 10px 10px;border:1px solid #00C600;color: green;background-color:#fff5f5;padding:3px;white-space: pre-wrap;  
+
<div name="WIP Notice" class="boilerplate metadata" id="Missing Links"
white-space: -moz-pre-wrap;  
+
style="color: red;background-color: #fdd; margin: 0 1em; padding: 0 10px;  
white-space: -pre-wrap;
+
border: 1px solid #aaa;
white-space: -o-pre-wrap;
+
/* Remove the next four 'white-space' lines to restore default white-space processing. */
word-wrap: break-word;">
+
word-wrap: break-word;       /* Internet Explorer 5.5+ */
'''This is a placeholder page, based upon a template.'''
+
">
 +
'''This is a Work In Progress (WIP), and not yet complete.'''
  
While a couple of bits of content have been added, a full subject article is needed.
+
Not all elements of the content have been posted as yet.  While the available elements should be functional, other elements are needed to achieve the end-result as described.
Replace anything within {curly braces} with your own appropriate material, and remove this message.
+
 
 +
This message will be removed when the content is complete.
 
</div>
 
</div>
 
<br>
 
<br>
Line 13: Line 15:
 
== Overview ==
 
== Overview ==
  
{ A very general synopsis description of the subject material. }<br>
+
This file is embedded in the [[XComGame.exe]] file.  To be modified it requires decompressing the executable into it's component sub files, one of which becomes '''XComGame.upk'''.
 
 
This file is embedded in the XComGame.exe file.  To be modified it requires decompressing the executable into it's component sub files, one of which becomes XComGame.upk.
 
  
  
 
== Programs and Tools ==
 
== Programs and Tools ==
  
{ This section should list and if possible provide links to any program and/or tools needed to replicate your exploration of this subject.  The section should not be omitted.  Note if 'none are needed'. }
+
See the articles [[Modding XCOM:EU 2012]] and [[Modding Tools - XCOM:EU 2012]].
 
 
See the '''Tools''' section of the article [[Modding XCOM:EU 2012]].
 
  
 
== Details ==
 
== Details ==
Line 28: Line 26:
 
{ Create an many subsections here as are useful to organize the subject matter in detail.  Remember that you can upload and link to screenshot files to illustrate where ever needed.  See [http://www.mediawiki.org/wiki/Help:Managing_files this page] for help on including files in your article. }
 
{ Create an many subsections here as are useful to organize the subject matter in detail.  Remember that you can upload and link to screenshot files to illustrate where ever needed.  See [http://www.mediawiki.org/wiki/Help:Managing_files this page] for help on including files in your article. }
  
==Separate Content==
+
Many functions utilized in Mods are reside in this file:
  
{ 'Tables', 'Lists', 'Code Breakdown', 'Compiled Code', 'Examples', and similar can (and should if necessary to keep the article length within web editor capabilities) be placed on their own pages and linked from the appropriate points in the article. It is desirable to group them in one place, but use whatever works best to convey the information. All referenced links should also be include in the 'References' section below, as that is where people will look when they only want those links. }
+
Utilized by [[DefaultGameCore.ini settings - XCOM:EU 2012]]
 +
* XGTacticalGameCoreData
 +
** [[XGTacticalGameCoreData.EAbility]]
  
See the [[XGAbilityTree.BuildAbilities]] function article.
+
Mod [[Abilities Modding - XCOM:EU 2012]]
 +
* Set Perk Trees: [[XComPerkManager]]
 +
** [[XComPerkManager.GetPerkInTreeAssault]]
 +
** [[XComPerkManager.GetPerkInTreeHeavyWeapons]]
 +
** [[XComPerkManager.GetPerkInTreePsi]]
 +
** [[XComPerkManager.GetPerkInTreeSniper]]
 +
** [[XComPerkManager.GetPerkInTreeSupport]]
 +
* Set abilities' number of charges: [[XGUnit]]
 +
** [[XGUnit.UpdateItemCharges]]
  
== Code Breakdown ==
+
Mod [[Explosive Damage - XCOM:EU 2012]]
 +
* Randomized Explosive Damage File Changes:
 +
** [[XGTacticalGameCore.CalcOverallDamage]]
 +
* Increased Explosive Destruction File Changes:
 +
** [[XGSummaryUI.CollectArtifactsFromDeadAliens]]
 +
* Randomized Explosive Radius File Changes:
 +
** [[XGWeapon.GetDamageRadius]] is re-written.
  
{ 'Code Breakdown' is where the hex code is explained by added comments.  It is placed within a block pair of 'nowiki' and '/nowiki' (within <angle brackets>) HTML 'markup tags' to preserve the formatting.  (Note it is REQUIRED to put a leading space before the 'nowiki' markup tag.  The closing tag can be on the last line or after it, and does not require a leading space.) }
+
==Separate Content==
  
{ For example:
+
{ 'Tables', 'Lists', 'Code Breakdown', 'Compiled Code', 'Examples', and similar can (and should if necessary to keep the article length within web editor capabilities) be placed on their own pages and linked from the appropriate points in the article.  It is desirable to group them in one place, but use whatever works best to convey the information.  All referenced links should also be include in the 'References' section below, as that is where people will look when they only want those links. }
 
 
<nowiki>
 
original hex: (virtual size 0x552)
 
header:
 
DB 7C 00 00 50 55 00 00 00 00 00 00 C0 7C 00 00 00 00 00 00 00 00 00 00 C6 7C 00 00 00 00 00 00 A9 02 00 00 2C 5C 00 00 52 05 00 00 B6 03 00 00
 
  
body:
+
* See the [[XGAbilityTree.BuildAbilities]] function article.
if(!DoesDamage())
 
07 19 00 81 1B 9B 1A 00 00 00 00 00 00 16 16
 
 
 
return iHitChance;
 
04 00 C6 7C 00 00
 
</nowiki>
 
}
 
{This preserves the authors necessary non-HTML format.}
 
 
 
This content can be put on it's own page and referenced here to reduce the length of the article.
 
 
 
==Compiled Code==
 
 
 
{ Sometimes the hex code is translated into 'compile code instructions' as part of the breakdown, because that is easier for humans to read.  It is especially useful when attempting to understand the logic of the code or to restructure or rewrite it, which is called 'refactoring'.  Here is an example: }
 
{
 
<nowiki>
 
Old code:
 
if(m_bReactionFire || XComTacticalGRI(class'Engine'.static.GetCurrentWorldInfo().GRI).m_kBattle.m_kDesc.m_iDifficulty >= 2)
 
{
 
return iHitChance;
 
}
 
// End:0x424
 
</nowiki>
 
}
 
{ This content can be put on it's own page and referenced here to reduce the length of the article. }
 
 
 
==Examples==
 
 
 
{ Examples demonstrating implementations of the article subject should be placed on their own pages and treated as if small 'modlets'.  They should be fully functional and verifiable, but not necessarily complete mods. }
 
  
 
== References ==
 
== References ==
{ Specific page links go here, even if already referenced in the main body of the text.  Put the HTML tag 'br' (in <angle brackets>) twice after each 'refer/referred' section so they will display separated.  Use the asterisk format code ('*') to ensure each link appears on it's own line. If there is no reference, put '* <none>' as a placeholder so it's obviously not merely a missing entry.}
+
Referred to by this article:
 
+
* [[XComGame.exe]]
Referred to by this article:<br>
+
* [[Modding XCOM:EU 2012]]
 +
* [[Modding Tools - XCOM:EU 2012]]
 +
* [[DefaultGameCore.ini settings - XCOM:EU 2012]]
 
* [[XGAbilityTree.BuildAbilities]]
 
* [[XGAbilityTree.BuildAbilities]]
 
* [[Modding_XCOM:EU_2012]]
 
* [[Modding_XCOM:EU_2012]]
 
* [http://www.mediawiki.org/wiki/Help:Managing_files Help:Managing_files]
 
* [http://www.mediawiki.org/wiki/Help:Managing_files Help:Managing_files]
 +
* [[XComPerkManager]]
 +
** [[XComPerkManager.GetPerkInTreeAssault]]
 +
** [[XComPerkManager.GetPerkInTreeHeavyWeapons]]
 +
** [[XComPerkManager.GetPerkInTreePsi]]
 +
** [[XComPerkManager.GetPerkInTreeSniper]]
 +
** [[XComPerkManager.GetPerkInTreeSupport]]
 +
* [[Explosive Damage - XCOM:EU 2012]]
 +
** [[XGTacticalGameCore.CalcOverallDamage]]
 +
** [[XGSummaryUI.CollectArtifactsFromDeadAliens]]
 +
** [[XGWeapon.GetDamageRadius]]
 +
 
<br><br>
 
<br><br>
 
That refer to this article:<br>
 
That refer to this article:<br>
 
* [[XGAbilityTree.BuildAbilities]]
 
* [[XGAbilityTree.BuildAbilities]]
 +
* [[Abilities Modding - XCOM:EU 2012]]
 
<br><br>
 
<br><br>
 
{ Below the specific page links will be the 'Category' links.  The category names be placed within double [square brackets].  Multiple categories are not unusual, but must each be placed on their own line.  The ''Category:XCOM'' is standard and also serves as an example.  These category links will appear when you click on the 'Show preview' button, but in the Category frame below the edit window action buttons.  If a category page does not yet exist, it will appear in RED.  You can click on the red entry and commence the process of creating the category page even before saving the one you are currently editing. }
 
  
 
[[Category:Game Files & Modding - XCOM:EU 2012]]
 
[[Category:Game Files & Modding - XCOM:EU 2012]]
 
[[Category:XCOM Modding]]
 
[[Category:XCOM Modding]]
 
[[Category:XCOM]]
 
[[Category:XCOM]]

Revision as of 02:28, 30 May 2013


Overview

This file is embedded in the XComGame.exe file. To be modified it requires decompressing the executable into it's component sub files, one of which becomes XComGame.upk.


Programs and Tools

See the articles Modding XCOM:EU 2012 and Modding Tools - XCOM:EU 2012.

Details

{ Create an many subsections here as are useful to organize the subject matter in detail. Remember that you can upload and link to screenshot files to illustrate where ever needed. See this page for help on including files in your article. }

Many functions utilized in Mods are reside in this file:

Utilized by DefaultGameCore.ini settings - XCOM:EU 2012

Mod Abilities Modding - XCOM:EU 2012

Mod Explosive Damage - XCOM:EU 2012

Separate Content

{ 'Tables', 'Lists', 'Code Breakdown', 'Compiled Code', 'Examples', and similar can (and should if necessary to keep the article length within web editor capabilities) be placed on their own pages and linked from the appropriate points in the article. It is desirable to group them in one place, but use whatever works best to convey the information. All referenced links should also be include in the 'References' section below, as that is where people will look when they only want those links. }

References

Referred to by this article:



That refer to this article: