gustavowizard Posted December 29, 2015 Share Posted December 29, 2015 Hey guys! Im using 1.51 Xenonauts with X:CE 0.34, I´m doing a mod, my first try, im trying to add a new weapon with sounds, today finally sucess! But for some dark reason, i cant add the ammo new .png lol i know must be something basic but i cant figger it out : Ok so the ammo file is a .png, its 103x103, i think its all good here, the name is magnum_ammo (weapons/ballistic folder) This is my AMMO file: <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <Ammos xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"> <Ammo name="ammo.ballistic.magnum"> <stockTextureName>weapons/ballistic/magnum_ammo</stockTextureName> <dragTextureName>weapons/ballistic/magnum_ammo</dragTextureName> <slotsizex>1</slotsizex> <slotsizey>1</slotsizey> <weight>1</weight> </Ammo> </Ammos> Quote Link to comment Share on other sites More sharing options...
gustavowizard Posted December 29, 2015 Author Share Posted December 29, 2015 My ITEMS File: <?xml version="1.0"?> <?mso-application progid="Excel.Sheet"?> <Workbook xmlns="urn:schemas-microsoft-com:office:spreadsheet" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:x="urn:schemas-microsoft-com:office:excel" xmlns:ss="urn:schemas-microsoft-com:office:spreadsheet" xmlns:html="http://www.w3.org/TR/REC-html40"> <DocumentProperties xmlns="urn:schemas-microsoft-com:office:office"> <LastAuthor>John</LastAuthor> <LastSaved>2014-02-17T20:29:51Z</LastSaved> <Version>12.00</Version> </DocumentProperties> <OfficeDocumentSettings xmlns="urn:schemas-microsoft-com:office:office"> <DownloadComponents/> <LocationOfComponents HRef="/"/> </OfficeDocumentSettings> <ExcelWorkbook xmlns="urn:schemas-microsoft-com:office:excel"> <WindowHeight>4605</WindowHeight> <WindowWidth>14355</WindowWidth> <WindowTopX>360</WindowTopX> <WindowTopY>195</WindowTopY> <RefModeR1C1/> <ProtectStructure>False</ProtectStructure> <ProtectWindows>False</ProtectWindows> </ExcelWorkbook> <Styles> <Style ss:ID="Default" ss:Name="Normal"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Font ss:FontName="Arial" x:Family="Swiss"/> <Interior/> <NumberFormat/> <Protection/> </Style> <Style ss:ID="s62" ss:Name="Normal 2"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Interior/> <NumberFormat/> <Protection/> </Style> <Style ss:ID="s63" ss:Name="Normal 2 2"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Font ss:FontName="Arial" x:Family="Swiss"/> <Interior/> <NumberFormat/> <Protection/> </Style> <Style ss:ID="s64" ss:Name="Normal_Sheet1"> <Alignment ss:Vertical="Bottom"/> <Borders/> <Font ss:FontName="Arial" x:Family="Swiss"/> <Interior/> <NumberFormat/> <Protection/> </Style> <Style ss:ID="s65"> <Borders/> </Style> <Style ss:ID="s66"> <Alignment ss:Horizontal="Center" ss:Vertical="Center"/> <Borders> <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/> <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/> <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/> <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/> </Borders> <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/> </Style> <Style ss:ID="s67"> <Alignment ss:Horizontal="Center" ss:Vertical="Center"/> <Borders> <Border ss:Position="Bottom" ss:LineStyle="Continuous" ss:Weight="3"/> <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/> <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/> <Border ss:Position="Top" ss:LineStyle="Continuous" ss:Weight="3"/> </Borders> <Font ss:FontName="Arial" x:CharSet="238" x:Family="Swiss"/> <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/> </Style> <Style ss:ID="s69" ss:Parent="s64"> <Font ss:FontName="Arial" x:Family="Swiss"/> <Interior/> <NumberFormat ss:Format="@"/> </Style> <Style ss:ID="s70" ss:Parent="s64"> <Interior/> <NumberFormat ss:Format="@"/> </Style> <Style ss:ID="s71"> <Protection ss:Protected="0"/> </Style> <Style ss:ID="s72"> <Borders/> <Interior/> </Style> <Style ss:ID="s75"> <Alignment ss:Vertical="Bottom"/> <Borders/> </Style> <Style ss:ID="s77" ss:Parent="s63"> <Alignment ss:Vertical="Center" ss:WrapText="1"/> <Interior/> </Style> <Style ss:ID="s78" ss:Parent="s63"> <Borders/> <Interior/> </Style> <Style ss:ID="s79" ss:Parent="s63"> <Alignment ss:Vertical="Center"/> <Interior/> </Style> <Style ss:ID="s80"> <Alignment ss:Horizontal="Center" ss:Vertical="Center"/> <Borders> <Border ss:Position="Left" ss:LineStyle="Continuous" ss:Weight="3"/> <Border ss:Position="Right" ss:LineStyle="Continuous" ss:Weight="3"/> </Borders> <Interior ss:Color="#C0C0C0" ss:Pattern="Solid"/> </Style> </Styles> <Worksheet ss:Name="Sheet1"> <Table ss:ExpandedColumnCount="7" ss:ExpandedRowCount="258" x:FullColumns="1" x:FullRows="1" ss:DefaultRowHeight="13.3125"> <Column ss:AutoFitWidth="0" ss:Width="220.5"/> <Column ss:AutoFitWidth="0" ss:Width="150" ss:Span="1"/> <Column ss:Index="4" ss:AutoFitWidth="0" ss:Width="210.75"/> <Column ss:AutoFitWidth="0" ss:Width="258"/> <Column ss:AutoFitWidth="0" ss:Width="150"/> <Column ss:Width="69"/> <Row ss:AutoFitHeight="0" ss:Height="14.25" ss:StyleID="s65"> <Cell ss:StyleID="s66"><Data ss:Type="String">Name</Data></Cell> <Cell ss:StyleID="s66"><Data ss:Type="String">Sell value</Data></Cell> <Cell ss:StyleID="s66"><Data ss:Type="String">Alenium value</Data></Cell> <Cell ss:StyleID="s67"><Data ss:Type="String">Type</Data></Cell> <Cell ss:StyleID="s67"><Data ss:Type="String">Image</Data></Cell> <Cell ss:StyleID="s66"><Data ss:Type="String">DestroyText</Data></Cell> <Cell ss:StyleID="s80"><Data ss:Type="String">Storage space</Data></Cell> </Row> <Row ss:AutoFitHeight="0"> <Cell ss:StyleID="s70"><Data ss:Type="String">weapon.magnum</Data></Cell> <Cell><Data ss:Type="Number">0</Data></Cell> <Cell><Data ss:Type="Number">0</Data></Cell> <Cell ss:Index="4"><Data ss:Type="String">Unlimited</Data></Cell> <Cell><Data ss:Type="String">weapons/airplane/rocket</Data></Cell> <Cell ss:StyleID="s65"><Data ss:Type="String">Item.Dispose.Destroyed</Data></Cell> <Cell><Data ss:Type="Number">1</Data></Cell> </Row> <Row ss:AutoFitHeight="0"> <Cell ss:StyleID="s70"><Data ss:Type="String">ammo.ballistic.magnum</Data></Cell> <Cell><Data ss:Type="Number">0</Data></Cell> <Cell><Data ss:Type="Number">0</Data></Cell> <Cell ss:Index="4"><Data ss:Type="String">Unlimited</Data></Cell> <Cell><Data ss:Type="String">weapons/airplane/rocket</Data></Cell> <Cell ss:StyleID="s65"><Data ss:Type="String">Item.Dispose.Destroyed</Data></Cell> <Cell><Data ss:Type="Number">1</Data></Cell> </Row> </Table> <WorksheetOptions xmlns="urn:schemas-microsoft-com:office:excel"> <Unsynced/> <Print> <ValidPrinterInfo/> <PaperSizeIndex>9</PaperSizeIndex> <HorizontalResolution>300</HorizontalResolution> <VerticalResolution>600</VerticalResolution> </Print> <Selected/> <FreezePanes/> <FrozenNoSplit/> <SplitHorizontal>1</SplitHorizontal> <TopRowBottomPane>216</TopRowBottomPane> <ActivePane>2</ActivePane> <Panes> <Pane> <Number>3</Number> </Pane> <Pane> <Number>2</Number> <ActiveRow>257</ActiveRow> <ActiveCol>6</ActiveCol> </Pane> </Panes> <ProtectObjects>False</ProtectObjects> <ProtectScenarios>False</ProtectScenarios> </WorksheetOptions> <DataValidation xmlns="urn:schemas-microsoft-com:office:excel"> <Range>R2C4:R761C4</Range> <Type>List</Type> <CellRangeList/> <Value>"Normal,Capped,Uncapped,Airplane,Vehicle,Unlimited,UnlimitedOnResearch"</Value> <ErrorMessage>Please use the combo box to select the type.</ErrorMessage> <ErrorTitle>Invalid value!</ErrorTitle> </DataValidation> </Worksheet> </Workbook> Quote Link to comment Share on other sites More sharing options...
gustavowizard Posted December 29, 2015 Author Share Posted December 29, 2015 (edited) Sorry for the last post, i will post only relevant part of the code i guess: My STRING files: <Row ss:AutoFitHeight="0" ss:Height="255"> <Cell><Data ss:Type="String">weapon.magnum</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell><Data ss:Type="String">S&W Magnum</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> </Row> <Row ss:AutoFitHeight="0" ss:Height="255"> <Cell><Data ss:Type="String">ammo.ballistic.magnum</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell><Data ss:Type="String">44 Rounds</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> </Row> <Row ss:AutoFitHeight="0"> <Cell><Data ss:Type="String">weapon.magnum.desc</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s63"><Data ss:Type="String"><font face="fonts/arial.mvec"\><b>S&W Magnum 44:</b> The .44 Magnum is based on a lengthened .44 Special case, loaded to higher pressures for greater velocity (and thus, energy). Range: 12 Damage: 40 Kinetic Suppression: 20 Single Mitigation: 0 Ammo Capacity: 6 shots Reaction Modifier: 1.5x Fire Modes: - 30%% TU 50 Acc x 1 shot - 45%% TU 85 Acc x 1 shot</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> </Row> WEAPONS file: <Row ss:AutoFitHeight="0"> <Cell ss:StyleID="s62"><Data ss:Type="String">name</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">stockTextureName</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">dragTextureName</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">type</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">twoHanded</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">damage</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">range</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">clipsize</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">accuracy</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">weight</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">slotsizex</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">slotsizey</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">ammo</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">reloadCost</Data></Cell> <Cell ss:StyleID="s62"><Data ss:Type="String">reloadSound</Data></Cell> <Cell ss:StyleID="s63"><Data ss:Type="String">inventoryCategory</Data></Cell> <Cell ss:StyleID="s64"><Data ss:Type="String">isBigGun</Data></Cell> </Row> <Row ss:AutoFitHeight="0"> <Cell ss:StyleID="s65"><Data ss:Type="String">weapon.magnum</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s65"><Data ss:Type="String">weapons/ballistic/magnum</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s65"><Data ss:Type="String">weapons/ballistic/magnum</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s65"><Data ss:Type="String">ballistic</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Boolean">0</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">40</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">12</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">6</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">0.9</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">4</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">3</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">2</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s65"><Data ss:Type="String">ammo.ballistic.magnum</Data><NamedCell ss:Name="_FilterDatabase"/></Cell> <Cell ss:StyleID="s66"><Data ss:Type="Number">20</Data></Cell> <Cell ss:Index="16"><Data ss:Type="String">Ballistics</Data></Cell> </Row> WEAPONS CG file: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <Weapons> <Weapon MODMERGEATTRIBUTE="name" MODMERGE="insert" name="weapon.magnum" bulletType="normal" emptySound="Empty Click 1"> <props range="12" hands="1" recoil="0" weight="3" isHeavy="0" clipSize="6" reloadAPCost="25" reloadSound="Weapon Pistol Reload" reactionModifier="1.5" /> <SingleShot sound="Weapon Magnum Single" delay="0.4" suppressionValue="20" suppressionRadius="1"> <Set1 ap="30" accuracy="50" /> <Set2 ap="45" accuracy="85" /> </SingleShot> <BurstFire/> <GUIImage name="weapons/ballistic/magnum.png"/> <GroundImage name="grounditemimages/ballistic_pistol.png"/> <Ammos> <Ammo name="ammo.ballistic.magnum" type="kinetic" damage="40" mitigation="0"> <Projectile spectre="projectiles/bullet/bullet" speed="1500" showAfterDistance="60.0" /> <Impact spectre="particles/bulletplume/bulletplume"/> </Ammo> </Ammos> </Weapon> </Weapons> When i replace the bold code 'magnum' with 'pistol' it work ok with the vanilla pistol clip image, i just cant put the new image, its odd since i did with the gun lol, can anybody plz help? this would help me a lot i plan to give this mod free later Edited December 29, 2015 by gustavowizard Quote Link to comment Share on other sites More sharing options...
aajs Posted December 31, 2015 Share Posted December 31, 2015 erm not sure If I have got the wrong end of the stick here, however it looks like you are creating your ammo entries in only the strings file and weapons files. You would additionally have to define you ammo in the items.xml file and most importantly the ammo xml file where you will define what picture to use. If this does not cover your question post back as I could answer your question more fully if I was in front of my pc. Quote Link to comment Share on other sites More sharing options...
gustavowizard Posted January 3, 2016 Author Share Posted January 3, 2016 nvm that i found the problem, as u can see thereis no MODMERGE 'insert' argument on the ammo so the game wont understand its a add EDIT - FIXED 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.