But these two are both in city !
Doesn't that matter in the animation?
snoopy55 wrote:Any In-City Industry can be made into an Out-Of-City Industry and quite a few have been used this way. I'll use Oakboro oil for this example
<RRTIndustry>
<szName>City Oil</szName>
<szModel>Oakboro_Oil.nif</szModel>
<fScale>1</fScale>
<bIsCoastal>0</bIsCoastal>
<bIsMountainous>0</bIsMountainous>
<bInCity>1</bInCity>
<iCost>620000</iCost>
<Production>
<Resource>
<Input>Oil</Input>
<Output>Oil</Output>
<InputOutputRatio>0.9</InputOutputRatio>
</Resource>
</Production>
<szAuctionImage>Industry_Oakboro_Oil.dds</szAuctionImage>
<szReportImage>Report_Industry_Oakboro_Oil.dds</szReportImage>
<szIcon>
<szFile>icon_oil_distirbutor_32.tga</szFile>
</szIcon>
</RRTIndustry>
The parts that need to be changed are highlighted.
Here it is changed:
<RRTIndustry>
<szName>City Oil</szName>
<szModel>Oakboro_Oil.nif</szModel>
<fScale>1</fScale>
<bIsCoastal>0</bIsCoastal>
<bIsMountainous>0</bIsMountainous>
<bInCity>0</bInCity>
<iCost>-1</iCost>
<Production>
<Resource>
<Input>Oil</Input>
<Output>Oil</Output>
<InputOutputRatio>0.9</InputOutputRatio>
</Resource>
</Production>
<szIcon>
<szFile>icon_oil_distirbutor_32.tga</szFile>
</szIcon>
</RRTIndustry>
What you would ned to add would be a <DisplayNames> section:
<DisplayNames>
<szDisplayName>The @CITY Oil Refinery</szDisplayName>
<szDisplayName>@CITY Refinery CoOp</szDisplayName>
<szDisplayName>The @CITY Oil Company</szDisplayName>
</DisplayNames>
These names of course are your choice.
Last is a <szTerrainmap> line. If you open up the Distribution Center BB you will find in the XML the line <szTerrainmap>terrainmap_distributioncenter.tga</szTerrainmap>. Copy that and place it in the Oil Companies XML. Find the TGA file and place that in with the Oakboro Oil folder.
Of course with no Location entries it is a random placement.
At this time use the Oil Annex, just rename a copy of it for this Industry. And of course change the Production lines to what you want.
If you take it easy on the map building I'll see what I can do about editing the existing Oil Annex to make a Gasoline Annex. If you have any preferences, and keep them simple, I can attempt them. The pipe extending to the tank car will still have to be part of it, I'm not an annimater, just an editer.
I hope this helps you and others. It can maybe later edited and placed in the Tutorial section.
<TrainCar>
<szName>Gasoline Car</szName>
<szGood>Gasoline</szGood>
<szModel>Oil_Car.kfm</szModel>
<szDummyModel>Oil_Car_dummies.nif</szDummyModel>
<szIcon>ICON_Car_Oil.dds</szIcon>
<szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
<szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
<RunLength>30</RunLength>
</TrainCar>
&
<RRTIndustry>
<szName>Gas Pump</szName>
<szModel>OilWell.kfm</szModel>
<szSecondaryModel>Oil_Derrick.kfm</szSecondaryModel>
<szGrowKFM>OilWell_Build_Up.kfm</szGrowKFM>
<szTerrainmap>TerrainMap_OilRefinery.tga</szTerrainmap>
<fScale>0.8</fScale>
<bIsCoastal>0</bIsCoastal>
<bIsMountainous>0</bIsMountainous>
<bInCity>0</bInCity>
<iCost>-1</iCost>
<Production>
<Resource>
<!--Produces 1 Oil-->
<Input>None</Input>
<Output>Gasoline</Output>
<InputOutputRatio>1.0</InputOutputRatio>
</Resource>
</Production>
<DisplayNames>
<szDisplayName>@CITY Gas Co.</szDisplayName>
<szDisplayName>@CITY Drilling Inc.</szDisplayName>
<szDisplayName>The @CITY Gas Co.</szDisplayName>
<szDisplayName>@CITY Gas Pump</szDisplayName>
</DisplayNames>
<szIcon>
<szFile>icon_oil_refinery_32.tga</szFile>
</szIcon>
<Locations>
<Location>
<StartX>-42</StartX>
<StartY>114</StartY>
<Rotation>0.000000</Rotation>
<Size>0</Size>
<InCity/>
</Location>
</Locations>
</RRTIndustry>
&
<Good>
<szName>Gasoline</szName>
<szClass>BulkFreight</szClass>
<szGTMLIcon>icon_gasoline_32.tga</szGTMLIcon>
<BitmapLarge>
<szFile>icon_gasoline_64.tga</szFile>
</BitmapLarge>
<BitmapSmall>
<szFile>icon_gasoline_32.tga</szFile>
</BitmapSmall>
<BitmapTiny>
<szFile>icon_gasoline_16.tga</szFile>
</BitmapTiny>
<BitmapCar>
<szFile>G6_CISV.tga</szFile>
<uiX>0</uiX>
<uiY>0</uiY>
<uiWidth>32</uiWidth>
<uiHeight>16</uiHeight>
</BitmapCar>
<BitmapCarEmpty>
<szFile>G6_CISV.tga</szFile>
<uiX>0</uiX>
<uiY>16</uiY>
<uiWidth>32</uiWidth>
<uiHeight>16</uiHeight>
</BitmapCarEmpty>
<Color>4,43,160</Color>
<MinPrice>15000</MinPrice>
<MaxPrice>25000</MaxPrice>
<szIndustryLeaderTitle>Gasoline Guru</szIndustryLeaderTitle>
<szIndustryPlayerTitle>Gas Pumper</szIndustryPlayerTitle>
</Good>
&
<Depot>
<szName>Gas Pump Annex</szName>
<szModel>oilwell_annex.kfm</szModel>
<szCreateKFM>oilwell_annex_creation.kfm</szCreateKFM>
<InfluenceRadius>500.0</InfluenceRadius>
<IsAnnex>1</IsAnnex>
<BuildCost>25000</BuildCost>
<fScale>1</fScale>
</Depot>
<BridgeXMLFile>RRT_Bridges.xml</BridgeXMLFile>
<CityXMLFile>RRT_Cities_Middle_East.xml</CityXMLFile>
<ClutterXMLFile>RRT_Clutter.xml</ClutterXMLFile>
<DecorationsXMLFile>RRT_Decorations.xml</DecorationsXMLFile>
<DepotsXMLFile>RRT_Depots_Middle_East.xml</DepotsXMLFile>
<EraXMLFile>RRT_Eras_Default.xml</EraXMLFile>
<EventsXMLFile>RRT_Events.xml</EventsXMLFile>
<GoodsXMLFile>RRT_Goods_Middle_East.xml</GoodsXMLFile>
<IndustriesXMLFile>RRT_Industries_Middle_East.xml</IndustriesXMLFile>
<NamesXMLFile>RRT_Names_Middle_East.xml</NamesXMLFile>
<QuayleXMLFile>RRT_Quayle.xml</QuayleXMLFile>
<TrainCarsXMLFile>RRT_TrainCars_Middle_East.xml</TrainCarsXMLFile>
<TrainsXMLFile>RRT_Trains.xml</TrainsXMLFile>
<TreesXMLFile>RRT_Trees.xml</TreesXMLFile>
<TunnelXMLFile>RRT_Tunnels.xml</TunnelXMLFile>
derailed wrote:i think you found out what the problem is.. as you said you have the Oil well AND The Gasoline right?
so if you use the same model two times it will crash if you want to use both of them you have to rename them:
<szModel>Oil_Car.kfm</szModel> ---> into <szModel>Gas_Car.kfm</szModel> or something else for that you have to rename the Oil Car files on the Forums you can find some tutorials how to do this
<szModel>OilWell.kfm</szModel> ---> same problem as said
this is my opinion bout that i found no other fails in your Files
<ProductionModifiers>
<Resource>
<Input>Passengers</Input>
<Output>None</Output>
<InputOutputRatio>0.0</InputOutputRatio>
<MaxStorage>0.0</MaxStorage>
</Resource>
<Resource>
<Input>Mail</Input>
<Output>None</Output>
<InputOutputRatio>0.0</InputOutputRatio>
<MaxStorage>0.0</MaxStorage>
</Resource>
<Resource>
<Input>Food</Input>
<Output>None</Output>
<InputOutputRatio>0.0</InputOutputRatio>
<MaxStorage>0.0</MaxStorage>
</Resource>
<Resource>
<Input>None</Input>
<Output>Passengers</Output>
<InputOutputRatio>0.33</InputOutputRatio>
<MaxStorage>4.0</MaxStorage>
</Resource>
<Resource>
<Input>None</Input>
<Output>Mail</Output>
<InputOutputRatio>0.2</InputOutputRatio>
<MaxStorage>2.0</MaxStorage>
</Resource>
</ProductionModifiers>
<TrainCar>
<szName>Oil Car</szName>
<szGood>Oil</szGood>
<szModel>Oil_Car.kfm</szModel>
<szDummyModel>Oil_Car_dummies.nif</szDummyModel>
<szIcon>ICON_Car_Oil.dds</szIcon>
<szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
<szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
<RunLength>30</RunLength>
</TrainCar>
<TrainCar>
<szName>Gas Car</szName>
<szGood>Gas</szGood>
<szModel>Oil_Car.kfm</szModel>
<szDummyModel>Oil_Car_dummies.nif</szDummyModel>
<szIcon>ICON_Car_Oil.dds</szIcon>
<szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
<szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
<RunLength>30</RunLength>
</TrainCar>
Users browsing this forum: No registered users and 1 guest