Sid Meier's Railroads Fan Site with the latest and largest Growing Mods database.    

  • PortalPreviousForumsPreviousRailroads ForumsPreviousBuilding BlocksPreviousAnnexes Are Us!

    New Annexes Needed.........

    Annexes Building Blocks

    Forum rules

    This Sub-Forum is for Annexes Are Us! only.

    Please Discuss them In the Post named Annexes Are Us! Write About them here..
    Dennis079Member
     
    Posts: 9
    Joined: Wed Nov 16, 2011 1:08 am
    Location: Nederland

    Post Posted » Wed Nov 23, 2011 2:29 am

    But these two are both in city !

    Doesn't that matter in the animation?
    snoopy55User avatar
    Site Admin
     
    Posts: 4272
    Joined: Thu Aug 14, 2008 1:47 am
    Location: Centralia, ill - 2787

    Post Posted » Wed Nov 23, 2011 5:49 am

    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.
    I NEVER MAKE MISTEAKS
    derailedMember
     
    Posts: 65
    Joined: Fri Sep 02, 2011 5:53 am
    Location: Germany

    Post Posted » Wed Nov 23, 2011 5:57 am

    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.


    very important is that you do an annex file if you want to do not in city industries at the RRT_xxx_depots File! (you can use any annex you want)

    <Depot>
    <szName>Coal Mine Annex</szName>
    <szModel>Coal_mine_annex.kfm</szModel>
    <szCreateKFM>coal_mine_Annex_Creation.kfm</szCreateKFM>
    <InfluenceRadius>500.0</InfluenceRadius>
    <IsAnnex>1</IsAnnex>
    <BuildCost>25000</BuildCost>
    <fScale>1</fScale>
    </Depot>

    sz Name you have to put the Industrie name with Annex
    sz Model shows what you want as an annex
    fScale changes the size of the Model
    Dennis079Member
     
    Posts: 9
    Joined: Wed Nov 16, 2011 1:08 am
    Location: Nederland

    Post Posted » Wed Nov 23, 2011 7:48 am

    Well i got this:

    <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>


    That are the only changes made in the XML's

    Look at the attachment for the XML Files
    And this i my scenario
    <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>


    But stil i crashes... i'm getting really frustrated with this :( :Helps
    You do not have the required permissions to view the files attached to this post.
    derailedMember
     
    Posts: 65
    Joined: Fri Sep 02, 2011 5:53 am
    Location: Germany

    Post Posted » Wed Nov 23, 2011 7:58 am

    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
    Dennis079Member
     
    Posts: 9
    Joined: Wed Nov 16, 2011 1:08 am
    Location: Nederland

    Post Posted » Wed Nov 23, 2011 10:59 am

    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



    Mhh but in the tut's there is something about making 3 coal mines, same animations but other names so i thought that was possible,

    Ill look up how to change those,
    Thanks for the help!
    snoopy55User avatar
    Site Admin
     
    Posts: 4272
    Joined: Thu Aug 14, 2008 1:47 am
    Location: Centralia, ill - 2787

    Post Posted » Wed Nov 23, 2011 2:33 pm

    First derailed, I did mention that an Annex was needed for an Out-of-City Industry. Read what you quoted.

    Now, Derailed, have you tested this out? There is nothing stopping you from using the same model for every car in your map, except mass confusion when you run them.

    First thing to remember when you reply to a post. Be sure you have tested, repeatedly. opinions do not work in programming. There is very little I do not know about this game as I have been editing and repairing maps for 5 years now. I have written more BBs than any other member of either forum. Posting sections of XMLs does not give the reader the full picture of what a map is doing.

    Dennis079 - pull out all three of your mods. Test your map. If it runs, find an Out-of-City Industry and set it to output your Gasoline. Then add the Gasoline Good and set the car that runs the original Good from that Industry to run your Gasoline. Example:

    <RRTIndustry>
    <szName>Grain Farm</szName>
    <szModel>Grain_Elevator.kfm</szModel>
    <szGrowKFM>Grain_Elevator_Build_Up.kfm</szGrowKFM>
    <szTerrainmap>TerrainMap_GrainElevator.tga</szTerrainmap>
    <fScale>1.0</fScale>
    <bIsCoastal>0</bIsCoastal>
    <bIsMountainous>0</bIsMountainous>
    <bHasFields>1</bHasFields>
    <bInCity>0</bInCity>
    <iCost>-1</iCost>
    <Production>
    <Resource>
    <Input>None</Input>
    <Output>Gasoline</Output>
    <InputOutputRatio>1.0</InputOutputRatio>
    </Resource>
    </Production>
    <DisplayNames>
    <szDisplayName>The @CITY Grain Farms</szDisplayName>
    <szDisplayName>@CITY Feed Co.</szDisplayName>
    <szDisplayName>@CITY Grain Company</szDisplayName>
    <szDisplayName>@CITY Seed and Grain</szDisplayName>
    <szDisplayName>@CITY Mills, Ltd.</szDisplayName>
    </DisplayNames>
    <szIcon>
    <szFile>icon_wine_32.tga</szFile>
    </szIcon>
    </RRTIndustry>

    <TrainCar>
    <szName>Grain Car</szName>
    <szGood>Gasoline</szGood>
    <szModel>Grain_Car.Kfm</szModel>
    <szDummyModel>Grain_Car_dummies.nif</szDummyModel>
    <szIcon>ICON_Car_Grain.dds</szIcon>
    <szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
    <szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
    <RunLength>30</RunLength>
    </TrainCar>

    Use whichever you want, those are examples. Run the map again. Run a load from the Industry you edited to any town. The game will say you can't, but tell it to do it anyway. If the Good is OK it will run the cars.

    If that works pull that car out and place your car in having it run the Gasoline. Again, test the map. If it runs, pull that Industry and put the one you want to run it in and test it.

    If you cannot get this to work, PM me the files you are using as BBs, not full XMLs and I'll test them. I have a test map that was made for me years ago that I use to test Mods and do the photos for the engines. I'll post a referal to you for that map as soon as I can find it.

    And derailed, please make a working map with all the exotic goodies and doings before you try and instruct others of how to do things.
    If we think that you know all this stuff then you may not get the assistance you will need later when you need help.
    This forum was created to get away from those who offer 'opinions without testing'. I spent way to much time proving others were wrong, time that I cannot get back. TEST, TEST, TEST, then post your findings if you must.

    Sorry bout that Dennis079, but it had to be said.
    I NEVER MAKE MISTEAKS
    snoopy55User avatar
    Site Admin
     
    Posts: 4272
    Joined: Thu Aug 14, 2008 1:47 am
    Location: Centralia, ill - 2787

    Post Posted » Wed Nov 23, 2011 2:55 pm

    OK, found the SMR_Picture_Studio map i mentioned above!!

    viewtopic.php?p=2881#p2881

    Put single things on it to test them out. Things like your Gasoline. Place those Blocks you have there into this and run it. Work on them til you get them working out OK. You then copy them to thier own XML and pull them from the map. Move the folders elsewhere also. Keep the map clean, testing one thing or set at a time. If you have any questions, post them in the thread listed.
    I NEVER MAKE MISTEAKS
    bobbyUser avatar
    Site Admin
     
    Posts: 937
    Joined: Mon Apr 08, 2002 3:51 am
    Location: Sydney Australia

    Post Posted » Thu Nov 24, 2011 12:52 am

    OK Dennis I just worked through the files you sent to Snoopy and I now have your map running.
    i could not get it going there for a while but after checking the XML files i noticed that the Cities xml file was not complete yet.
    So i added a few lines to it for the Production Modifiers. These are usually added when you have made the map and get it to a working state before adding your new mods to the map. these are an example only in the code box.
    Code: Select all
             <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>

    Also after checking my Games Log folder and the file for the goods called Goods.log I noticed that it was not Using your Gas Good and there in was the problem. I renamed your RTT_Goods_Middle_East.xml to RRT_Goods.xml and then changed that Line also to match in the RRT_Scenario_User_Middle_East.xml and saved it all.
    See attached screen shots of the Gas Pomp and its annex and Gas Traincar using the Oilcar. Also another screenshot of both the Gas Car and Oil Car both pulling into the station to unload.
    You can use the same Traincar for every Good used in your Map as long as you change the Line<szGood> just as you have now in your maps RRT_TrainCars_Middle_East.xml and it will work with no trouble at all. Not like derailed has stated in his post and he is wrong in saying that and should not be replying to posts he knows nothing about until he has made Quite a few maps.
    Code: Select all
          <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>

    So the best way is to make you map using all the standard Items get it working properly and after it is running add you New Items one at a time test run it and then add the next item. Also make a backup copy after each new item is added and working and save it somewhere safe so if you do have a problem you can go back the the Copy and try again.
    You do not have the required permissions to view the files attached to this post.
    erikcarsonMember
     
    Posts: 97
    Joined: Wed Jan 10, 2024 5:34 am
    Location: United States

    Post Posted » Thu Mar 28, 2024 7:46 am

    Has anyone thought to make an annex that could load both cows and pigs? Kind of like how the sheep farm annex can load either wool or nitrates depending on what your train is picking up. On a map I've been toying with I decided to combine the cow and pig farms into one place but anytime my train is loading, I'm stuck with it either looking like I'm loading cows instead of pigs or vice versa depending on which annex I use.
    snoopy55User avatar
    Site Admin
     
    Posts: 4272
    Joined: Thu Aug 14, 2008 1:47 am
    Location: Centralia, ill - 2787

    Post Posted » Thu Mar 28, 2024 3:26 pm

    Interesting challenge.

    I'll have to open up the Sheep Farm, Cattle Ranch and Swine Farm and see what might be possible. Hard Labor pweese :crashed
    I NEVER MAKE MISTEAKS
    Previous

    Return to Annexes Are Us!

    Information

    Who is online

    Users browsing this forum: No registered users and 1 guest

    comment-drinking
    comment-drinking
    comment-drinking
    comment-drinking