A bit of confusion about two goods and their industries.

Discuss maps, trains and other modding topics
Post Reply
User avatar
Galacticruler
Posts: 7
Joined: Sat Mar 01, 2014 8:47 pm
Location: Everywhere and nowhere.

A bit of confusion about two goods and their industries.

Post by Galacticruler » Mon Mar 03, 2014 3:32 pm

Can anyone tell me from looking at this XML code which of these would cause a CTD while loading?(All files present and accounted for btw, so its not a missing file issue...)

Code: Select all

		<RRTIndustry>
			<szName>Nuclear Power Plant</szName>
			<szModel>PowerPlant.kfm</szModel>
			<szGrowKFM>PowerPlant_Build_Up.kfm</szGrowKFM>
			<szTerrainmap/>
			<fScale>1.75</fScale>
			<bIsCoastal>0</bIsCoastal>
			<bIsMountainous>0</bIsMountainous>
			<bInCity>1</bInCity>
			<iCost>10000000</iCost>
			<Production>
				<!--Demands uranium-->
				<Resource>
					<Input>Uranium</Input>
					<Output>None</Output>
					<InputOutputRatio>0</InputOutputRatio>
				</Resource>
			</Production>
			<szAuctionImage>Industry_Power_Plant.dds</szAuctionImage>
			<szReportImage>Report_Industry_Power_Plant.dds</szReportImage>
			<szIcon>
				<szFile>icon_npowerplant_32.tga</szFile>
			</szIcon>
		</RRTIndustry>
				<RRTIndustry>
			<szName>Uranium Refinery</szName>
			<szModel>refinery.kfm</szModel>
			<szGrowKFM>refinery_build_up.kfm</szGrowKFM>
			<szTerrainmap/>
			<fScale>1.05</fScale>
			<bIsCoastal>0</bIsCoastal>
			<bIsMountainous>0</bIsMountainous>
			<bInCity>1</bInCity>
			<iCost>750000</iCost>
			<Production>
				<!--x oil produces y manufactured goods-->
				<Resource>
					<Input>Pitchblende</Input>
					<Output>Uranium</Output>
					<InputOutputRatio>1</InputOutputRatio>
				</Resource>
			</Production>
			<szAuctionImage>Industry_Refinery.dds</szAuctionImage>
			<szReportImage>Report_Industry_Refinery.dds</szReportImage>
			<szIcon>
				<szFile>icon_urefinery_32.tga</szFile>
			</szIcon>
		</RRTIndustry>
		<RRTIndustry>
            <szName>Pitchblende Mine</szName>
            <szModel>iron_mine.kfm</szModel>
            <szSecondaryModel>iron_pile.kfm</szSecondaryModel>
            <szGrowKFM>iron_mine_BuildUp.kfm</szGrowKFM>
            <szTerrainmap>Terrainmap_Coal_Mine.tga</szTerrainmap>
            <fScale>1.0</fScale>
            <bIsCoastal>0</bIsCoastal>
            <bIsMountainous>1</bIsMountainous>
            <bInCity>0</bInCity>
            <bInForests>0</bInForests>
            <bHasFields>0</bHasFields>
            <iCost>-1</iCost>
            <Production>
                <Resource>
                    <Input>None</Input>
                    <Output>Pitchblende</Output>
                    <InputOutputRatio>0.25</InputOutputRatio>
                </Resource>
            </Production>
            <DisplayNames>
                <szDisplayName>The @CITY Pitchblende Mine</szDisplayName>
                <szDisplayName>@CITY Pitchblende Mining Co.</szDisplayName>
                <szDisplayName>@CITY Mining Co</szDisplayName>
                <szDisplayName>@CITY Pitchblende Dredging Co.</szDisplayName>
                <szDisplayName>The @CITY Pitchblende, Ltd.</szDisplayName>
            </DisplayNames>
            <szAuctionImage />
            <szReportImage />
            <szIcon>
                <szFile>icon_uranium_ore_32.tga</szFile>
            </szIcon>
        </RRTIndustry>
		
	<Good>
		<szName>Uranium</szName>
		<szClass>BulkFreight</szClass>
		<szGTMLIcon>icon_uranium_32.tga</szGTMLIcon>
		<BitmapLarge>
			<szFile>icon_uranium_ore_64.tga</szFile>
		</BitmapLarge>
		<BitmapSmall>
			<szFile>icon_uranium_ore_32.tga</szFile>
		</BitmapSmall>
		<BitmapTiny>
			<szFile>icon_uranium_ore_16.tga</szFile>
		</BitmapTiny>
		<BitmapCar>
			<szFile>uraniumcars.tga</szFile>
			<uiX>0</uiX>
			<uiY>0</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCar>
		<BitmapCarEmpty>
			<szFile>uraniumcars.tga</szFile>
			<uiX>0</uiX>
			<uiY>16</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCarEmpty>
		<Color>0,153,51</Color>
		<MinPrice>500000</MinPrice>
		<MaxPrice>750000</MaxPrice>
		<szIndustryLeaderTitle>Mr. Atom</szIndustryLeaderTitle>
		<szIndustryPlayerTitle>Radioactive</szIndustryPlayerTitle>
	</Good>
	<Good>
		<szName>Pitchblende</szName>
		<szClass>BulkFreight</szClass>
		<szGTMLIcon>icon_uranium_ore_32.tga</szGTMLIcon>
		<BitmapLarge>
			<szFile>icon_uranium_ore_64.tga</szFile>
		</BitmapLarge>
		<BitmapSmall>
			<szFile>icon_uranium_ore_32.tga</szFile>
		</BitmapSmall>
		<BitmapTiny>
			<szFile>icon_uranium_ore_16.tga</szFile>
		<BitmapCar>
			<szFile>uraniumorecars.tga</szFile>
			<uiX>0</uiX>
			<uiY>0</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCar>
		<BitmapCarEmpty>
			<szFile>uraniumorecars.tga</szFile>
			<uiX>0</uiX>
			<uiY>16</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCarEmpty>
		<Color>19,0,8</Color>
		<MinPrice>50000</MinPrice>
		<MaxPrice>100000</MaxPrice>
		<szIndustryLeaderTitle>Dr. Blende</szIndustryLeaderTitle>
		<szIndustryPlayerTitle>Pitchblender</szIndustryPlayerTitle>
	</Good>
	
	        <TrainCar>
            <szName>Pitchblende Car</szName>
            <szGood>Pitchblende</szGood>
            <szModel>Iro_Car.kfm</szModel>
            <szDummyModel>Iro_Car_dummies.nif</szDummyModel>
            <szIcon>ICON_Car_uranium_ore.dds</szIcon>
            <szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
            <szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
            <RunLength>30</RunLength>
        </TrainCar>
        <TrainCar>
            <szName>Uranium Car</szName>
            <szGood>Uranium</szGood>
            <szModel>Iro_Car.kfm</szModel>
            <szDummyModel>Iro_Car_dummies.nif</szDummyModel>
            <szIcon>ICON_Car_uranium.dds</szIcon>
            <szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
            <szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
            <RunLength>30</RunLength>
        </TrainCar>

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Re: A bit of confusion about two goods and their industries.

Post by snoopy55 » Tue Mar 04, 2014 12:17 am

Try 1.0 for the first two <InputOutputRatio> lines. Game programming requirement... :roll: .....
I'm correct 97% of the time..... who cares about the other 4%....

User avatar
Galacticruler
Posts: 7
Joined: Sat Mar 01, 2014 8:47 pm
Location: Everywhere and nowhere.

Re: A bit of confusion about two goods and their industries.

Post by Galacticruler » Tue Mar 04, 2014 2:12 am

snoopy55 wrote:Try 1.0 for the first two <InputOutputRatio> lines. Game programming requirement... :roll: .....
Ok, I knew RR had some serious limits and quirks, but lacking a .0 seriously causes a crash?

Alright, going to give it a try, thank you for the help.
EDIT:
Alright, tried it, no go; they still crash the game.
edited code:

Code: Select all

	<Depot>
		<szName>Pitchblende Mine Annex</szName>
		<szModel>coal_mine_annex.kfm</szModel>
		<szCreateKFM>coal_mine_Annex_Creation.kfm</szCreateKFM>
		<InfluenceRadius>500.0</InfluenceRadius>
		<IsAnnex>1</IsAnnex>
		<BuildCost>100000</BuildCost>
		<fScale>1</fScale>
	</Depot>
	<Good>
		<szName>Uranium</szName>
		<szClass>BulkFreight</szClass>
		<szGTMLIcon>icon_uranium_32.tga</szGTMLIcon>
		<BitmapLarge>
			<szFile>icon_uranium_ore_64.tga</szFile>
		</BitmapLarge>
		<BitmapSmall>
			<szFile>icon_uranium_ore_32.tga</szFile>
		</BitmapSmall>
		<BitmapTiny>
			<szFile>icon_uranium_ore_16.tga</szFile>
		</BitmapTiny>
		<BitmapCar>
			<szFile>uraniumcars.tga</szFile>
			<uiX>0</uiX>
			<uiY>0</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCar>
		<BitmapCarEmpty>
			<szFile>uraniumcars.tga</szFile>
			<uiX>0</uiX>
			<uiY>16</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCarEmpty>
		<Color>0,153,51</Color>
		<MinPrice>500000</MinPrice>
		<MaxPrice>750000</MaxPrice>
		<szIndustryLeaderTitle>Mr. Atom</szIndustryLeaderTitle>
		<szIndustryPlayerTitle>Radioactive</szIndustryPlayerTitle>
	</Good>
	<Good>
		<szName>Pitchblende</szName>
		<szClass>BulkFreight</szClass>
		<szGTMLIcon>icon_uranium_ore_32.tga</szGTMLIcon>
		<BitmapLarge>
			<szFile>icon_uranium_ore_64.tga</szFile>
		</BitmapLarge>
		<BitmapSmall>
			<szFile>icon_uranium_ore_32.tga</szFile>
		</BitmapSmall>
		<BitmapTiny>
			<szFile>icon_uranium_ore_16.tga</szFile>
		<BitmapCar>
			<szFile>uraniumorecars.tga</szFile>
			<uiX>0</uiX>
			<uiY>0</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCar>
		<BitmapCarEmpty>
			<szFile>uraniumorecars.tga</szFile>
			<uiX>0</uiX>
			<uiY>16</uiY>
			<uiWidth>32</uiWidth>
			<uiHeight>16</uiHeight>
		</BitmapCarEmpty>
		<Color>19,0,8</Color>
		<MinPrice>50000</MinPrice>
		<MaxPrice>100000</MaxPrice>
		<szIndustryLeaderTitle>Dr. Blende</szIndustryLeaderTitle>
		<szIndustryPlayerTitle>Pitchblender</szIndustryPlayerTitle>
	</Good>
		<RRTIndustry>
			<szName>Nuclear Power Plant</szName>
			<szModel>PowerPlant.kfm</szModel>
			<szGrowKFM>PowerPlant_Build_Up.kfm</szGrowKFM>
			<fScale>1.75</fScale>
			<bIsCoastal>0</bIsCoastal>
			<bIsMountainous>0</bIsMountainous>
			<bInCity>1</bInCity>
			<iCost>10000000</iCost>
			<Production>
				<!--Demands uranium-->
				<Resource>
					<Input>Uranium</Input>
					<Output>None</Output>
					<InputOutputRatio>0.0</InputOutputRatio>
				</Resource>
			</Production>
			<szAuctionImage>Industry_Power_Plant.dds</szAuctionImage>
			<szReportImage>Report_Industry_Power_Plant.dds</szReportImage>
			<szIcon>
				<szFile>icon_npowerplant_32.tga</szFile>
			</szIcon>
		</RRTIndustry>
				<RRTIndustry>
			<szName>Uranium Refinery</szName>
			<szModel>refinery.kfm</szModel>
			<szGrowKFM>refinery_build_up.kfm</szGrowKFM>
			<fScale>1.05</fScale>
			<bIsCoastal>0</bIsCoastal>
			<bIsMountainous>0</bIsMountainous>
			<bInCity>1</bInCity>
			<iCost>750000</iCost>
			<Production>
				<!--x pitchblende produces y uranium-->
				<Resource>
					<Input>Pitchblende</Input>
					<Output>Uranium</Output>
					<InputOutputRatio>1.0</InputOutputRatio>
				</Resource>
			</Production>
			<szAuctionImage>Industry_Refinery.dds</szAuctionImage>
			<szReportImage>Report_Industry_Refinery.dds</szReportImage>
			<szIcon>
				<szFile>icon_urefinery_32.tga</szFile>
			</szIcon>
		</RRTIndustry>
		<RRTIndustry>
            <szName>Pitchblende Mine</szName>
            <szModel>iron_mine.kfm</szModel>
            <szSecondaryModel>iron_pile.kfm</szSecondaryModel>
            <szGrowKFM>iron_mine_BuildUp.kfm</szGrowKFM>
            <szTerrainmap>Terrainmap_Coal_Mine.tga</szTerrainmap>
            <fScale>1.0</fScale>
            <bIsCoastal>0</bIsCoastal>
            <bIsMountainous>1</bIsMountainous>
            <bInCity>0</bInCity>
            <bInForests>0</bInForests>
            <bHasFields>0</bHasFields>
            <iCost>-1</iCost>
            <Production>
                <Resource>
                    <Input>None</Input>
                    <Output>Pitchblende</Output>
                    <InputOutputRatio>0.25</InputOutputRatio>
                </Resource>
            </Production>
            <DisplayNames>
                <szDisplayName>The @CITY Pitchblende Mine</szDisplayName>
                <szDisplayName>@CITY Pitchblende Mining Co.</szDisplayName>
                <szDisplayName>@CITY Pitchblende Dredging Co.</szDisplayName>
                <szDisplayName>The @CITY Pitchblende, Ltd.</szDisplayName>
            </DisplayNames>
            <szAuctionImage />
            <szReportImage />
            <szIcon>
                <szFile>icon_uranium_ore_32.tga</szFile>
            </szIcon>
        </RRTIndustry>
	    <TrainCar>
            <szName>Pitchblende Car</szName>
            <szGood>Pitchblende</szGood>
            <szModel>Iro_Car.kfm</szModel>
            <szDummyModel>Iro_Car_dummies.nif</szDummyModel>
            <szIcon>ICON_Car_uranium_ore.dds</szIcon>
            <szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
            <szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
            <RunLength>30</RunLength>
        </TrainCar>
        <TrainCar>
            <szName>Uranium Car</szName>
            <szGood>Uranium</szGood>
            <szModel>Iro_Car.kfm</szModel>
            <szDummyModel>Iro_Car_dummies.nif</szDummyModel>
            <szIcon>ICON_Car_uranium.dds</szIcon>
            <szGroundClackSound>AS3D_CLACK_PLANET_GROUND</szGroundClackSound>
            <szBridgeClackSound>AS3D_CLACK_PLANET_BRIDGE</szBridgeClackSound>
            <RunLength>30</RunLength>
        </TrainCar>

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Re: A bit of confusion about two goods and their industries.

Post by snoopy55 » Tue Mar 04, 2014 9:10 am

Oh yes, this game has some.... scratch that.... many, many quirks!

And one of them is, even tho the <Output> is None, the <InputOutputRatio> still has to read 1.0

Heck, if my memory serves me right, the word None HAS to have a capital N or it will not work. (yes, yours is correct, just letting you know how picky this game is......)

Also, you cannot have more than one SAM/SAM2 loaded into UserMaps or CustomAssets.

Going on 8 years slapping this game around......thinking about buying myself a wig...... :cry:
I'm correct 97% of the time..... who cares about the other 4%....

User avatar
Galacticruler
Posts: 7
Joined: Sat Mar 01, 2014 8:47 pm
Location: Everywhere and nowhere.

Re: A bit of confusion about two goods and their industries.

Post by Galacticruler » Tue Mar 04, 2014 1:53 pm

Alright.

Also, if I remember right, don't I have to list ALL the depots in the game, because of the custom one(s)?
EDIT:
Tested that, still crashes.

Would it help if I tossed you a copy of the edited map I'm working on?

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Re: A bit of confusion about two goods and their industries.

Post by snoopy55 » Tue Mar 04, 2014 4:42 pm

A couple of things - first, delete the RRT_Goods_America.xml. The map does not use it and it should not have been included, that will cause the map to crash. The Scenario call for RRT_Goods.xml. That is the one you need to add your Goods to.

Second - do not use FPKs. Use folders, FPKs went out years ago. Some of the downloads on this site still have them, but few have been updated.

Third - do not add any files to the original map that you are not calling for in your added items. Take the two original FPKs, open them and put the contents into one or two folders, then add your needed files to it. Not the files from the games FPKs.
I'm correct 97% of the time..... who cares about the other 4%....

User avatar
Galacticruler
Posts: 7
Joined: Sat Mar 01, 2014 8:47 pm
Location: Everywhere and nowhere.

Re: A bit of confusion about two goods and their industries.

Post by Galacticruler » Tue Mar 04, 2014 5:21 pm

1. way ahead of you, got rid of that right when I started modding the map.
2. Oh...well it seems to work with them, even when I add new things to it.
3. I only unpacked and repacked the map's FPKs, and the one time I did unpack the game's was to get the TGV routing icon and fastest speed event to edit them for another train. A bit late to not add anything.

So, why no FPKs? I thought that was the main part of a SAM...
Also, significant changes have occured from that first download link in Maps in-dev.

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Re: A bit of confusion about two goods and their industries.

Post by snoopy55 » Wed Mar 05, 2014 1:53 am

The main reasons for not using FPKs was people making changes in their maps and only 'adding' to them, not removing anything that was no longer needed. Also, as in this case, anyone assisting has to unpak them.

This was an early SAM. The work of us at STEP Inc, the ones who created SAMs and were converting the maps to them. We were hassled about what we were doing. That is when bobby created a forum and we did all the updating and associated work there. Most of the SAMs posted here work fine, they were not all edited for the removal of FPKs. Heck, I had forgotten what the program was that opened them! Barney had to tell me!

As to getting on the other forum - From bobby - "tell him to update his browser. white pages always mean browser is out of date and blocked with zzblock"

Try here: http://www.browser-update.org/update.html
I'm correct 97% of the time..... who cares about the other 4%....

User avatar
Galacticruler
Posts: 7
Joined: Sat Mar 01, 2014 8:47 pm
Location: Everywhere and nowhere.

Re: A bit of confusion about two goods and their industries.

Post by Galacticruler » Wed Mar 05, 2014 2:48 am

snoopy55 wrote: As to getting on the other forum - From bobby - "tell him to update his browser. white pages always mean browser is out of date and blocked with zzblock"
Try here: http://www.browser-update.org/update.html
I have been putting off the update to Palemoon....which is bad, because I'm having issues finding the manual update button.

snoopy55
Posts: 1962
Joined: Mon Nov 06, 2006 5:13 am
Location: Centralia, Ill, USA

Re: A bit of confusion about two goods and their industries.

Post by snoopy55 » Wed Mar 05, 2014 3:29 am

I've always used Opera. I tend to stick with the 12.16 version as the new ones were written by people that figured Bookmarks are a thing of the past and no one really uses them anymore........ Course, if you use a cellphone or Ipad and only access Facebook or twitter and download music or the latest cute rings for your phone, they're right....... I tend to do work and research on the internet. But hey, what do I know........ :shock:


http://www.opera.com/download/guide/?ver=12.16
I'm correct 97% of the time..... who cares about the other 4%....

User avatar
Galacticruler
Posts: 7
Joined: Sat Mar 01, 2014 8:47 pm
Location: Everywhere and nowhere.

Re: A bit of confusion about two goods and their industries.

Post by Galacticruler » Wed Mar 05, 2014 9:46 pm

alright, got in, but now I can't register due to my email being a yahoo based one. :evil:

I refuse to make a NEW email JUST for ONE website, and I really don't see why they're banned. :?:

also, in light of that...how am I supposed to contact the administrator if there is no email listed?
(Or did I just overlook it?)
EDIT:
found it...still don't see why Yahoo emails are banned. they are one of the two most common ones in existance.

Post Reply