Jump to content

Xenopedia Statistic for Weapons (Bug or?)


drages

Recommended Posts

Hi...

I was working on the Xenopedia part of my mod and i used "weapon.****" first time at researches.xml..

I used this at researches.xml.. the last one for "When finished"..

Researches.NextGenTechnology 30 Weaponary Researches.AlienMatergyPistol(OR)Researches.AlienMatergyRifle UnlockKnowledge( "weapon.ADkinetic.pistol" ); UnlockManufacture("ManTech.ADkinetic.pistol" ); weapon.ADkinetic.pistol

I added Xenopedia entry:

<Row ss:AutoFitHeight="0" ss:Height="165.75">   <Cell ss:StyleID="s74"><Data ss:Type="String">weapon.ADkinetic.pistol</Data></Cell>   <Cell ss:StyleID="s74"><Data ss:Type="String">NEXTGEN Pistol</Data></Cell>   <Cell ss:StyleID="s74"><Data ss:Type="String">xenopediaimages/nextgenpistol</Data></Cell>   <Cell ss:StyleID="s74"><Data ss:Type="String">Xenonaut Weapons</Data></Cell>   <Cell ss:StyleID="s74"><Data ss:Type="String">WEP</Data></Cell>   <Cell ss:StyleID="s74"><Data ss:Type="String">Advanced kinetic pistol</Data></Cell>  </Row>

Then as a result i saw something unexpected. I saw the "Statistic" part at right corner of the Xenopedia page. I thought its hardcoded to the default items but it seems not.

2015_02_27_00001.jpg

So as you see its working and it gets info from weapons.xml...

BUT.. there are some "undefined" parts and for a reason it doesnt take the info. Recoil and mitigation infos are not at weapons.xml and damage type info cant be taken from weapon.xml

I checked the vanilla files and there is no example for this.

Is there anyone out there who saw this and how to handle it? Thx!

Link to comment
Share on other sites

I think you would be able to modify which attributes of the weapon display by modifying the xenopedia lua script file. However, I very much doubt you would be able to change things to display information for mitigation/whatever else without making changes to the .exe itself.

Link to comment
Share on other sites

I think you would be able to modify which attributes of the weapon display by modifying the xenopedia lua script file. However, I very much doubt you would be able to change things to display information for mitigation/whatever else without making changes to the .exe itself.

Kabill i am lookig LUA for hours and the code for missing info is:

DottedLabel

{

font = XenopediaStat,

name = "stat2",

x = 10,

y = Floor( 24 * screenScaleY ) + 1 * Floor( 12 * screenScaleY + 3 ),

w = kMax - 10,

h = 12 * screenScaleY + 3,

left = "VEQ.MITIGATION",

right = "undefined",

fontScale = 0.2 + (0.8 * screenScaleY),

},

You see the "stat". Its the data number. And as you said its linked at exe file... there should be some disconnected data. Maybe its code started but didnt finished right because the missing stats like mitigation and recoil. I think they should be linked to weapon_GC file.

Kabill.. when will you learn C++?

Link to comment
Share on other sites

i remember trying to found out who this features work, because with this,you will tecnically end with the "tooltips missing" issue, because at least player would have an actual data sheet for stats that "automatically" refresh itself no matter the tweaks you make in the weapons.

Sadly after days searching in every xml and lua file...i never found or understand how the system actually works..it was mind blowing

Edited by blackwolf
Link to comment
Share on other sites

i remember trying to found out who this features work, because with this,you will tecnically end with the "tooltips missing" issue, because at least player would have an actual data sheet for stats that "automatically" refresh itself no matter the tweaks you make in the weapons.

Sadly after days searching in every xml and lua file...i never found or understand how the system actually works..it was mind blowing

I want someone pop ups and says "Hey i am master of C++, a big fan of this type of games and got free time.. just tell me what you want"..

Realy i can kiss that guy...

Yeah this will saves my tooltip problem mostly.. even with this info it saves me much work.. The bad things is Chris dont have his old dev members.. I dot think this kind of little issues are hard to correct.. I dont want to ask to Illunak, because he is alone and he try to care game breaking issues..

COME ON C++ users!!! there most be some old xcom fans codders out there who got free time!!!!!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...