PDA

View Full Version : 2 Questions:


SickOner
02-20-2008, 10:47 AM
:cool:Hi!

1) i've thinked about make a yuri ore refinery with its ore miner. i dont like that slave miner go on his own for the map because it is very easy killing him. well, i made the ore refinery but i want to know how to do that the slave miner doesnt deploy and doesnt have slaves, like wm or cm.:flamed:

-here is the code for yuri ore factory, if there is something wrong tell me pls:p:

; Yuri Ore Refinery
[Yuri Ore Refinery]
UIName=Name:YAREFN
Name=Yuri Ore Refinery
BuildCat=Resource
DockUnload=yes
Refinery=yes
;//gs revertNumberOfWaitingPoints=8
NumberOfDocks=1
Bib=yes
Prerequisite=POWER,YACNST
Strength=1000
Adjacent=2
Armor=wood
TechLevel=1
FreeUnit=YMIN
Sight=6
Owner=YuriCountry
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=2000
Soylent=300
Points=80
Power=-75
Storage=200
Capturable=true
Crewed=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
HalfDamageSmokeLocation1=0,0,0
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM
MaxDebris=10
MinDebris=5
PipScale=Tiberium
ThreatPosed=0 ; This value MUST be 0 for all building addons
;DamageParticleSystems=SparkSys,SmallGreySSys,BigGreySmokeSys
DamageSmokeOffset=410, 100, 165
AIBuildThis=yes
TogglePower=no
RefinerySmokeOffsetOne=-92, -208, 312
RefinerySmokeOffsetTwo=-92, 208, 312
RefinerySmokeFrames=50
RefinerySmokeParticleSystem=SmallGreySSys;
Spyable=yes
;WantsExtraSpace=yes ; gs This will look for a space AIBaseSpacing+1 when the computer places, but will settle for AIBasSpacing
NumberImpassableRows=3 ; This is the fix to the Repair depots are flat and RadioContact/Enter means I can drive on you assumption. It counts from game west
ImmuneToPsionics=no ; defaults to yes for buildings, no for others
ResourceDestination=yes;gs for the AI to handle the slave miner, it has to understand what makes money
Drainable=yes
Image=YAREFN

2)how to train slaves as harvesters

thanks a lot:D

Tesla
02-20-2008, 03:09 PM
This is what you should have done: Go up to the [BuildingTypes] list, and add the name of your new Yuri Ore Refinery (it has to be in all caps with no spaces, and only letters and/or numbers). Then copy the code for the Allied/Soviet Ore refinery, and paste it in the Yuri Buildings section. Change the name in brackets ([NAME]) to the name you wrote in the BuildingTypes list. Until you can make your own image for it, add Image=NAREFN at the top of the code. Change the Prerequisite to "YAPOWR", and change the Owner to YuriCountry. Next, copy the code for the Soviet Ore Miner, paste it in the Yuri Units section, but change the name in brackets to something else (like YHARV). Change the Prerequisite to YAWEAP plus the name of your new refinery, change the owner to YuriCountry, and add "Image=HARV" at the top of the code. Then go up to the [VehicleTypes] list and add "YHARV" to the bottom of the list. Then, add the name of your new refinery to the "Dock=" line on the code of all the harvesters. Then, on the "FreeUnit=" tag on your refinery, change "HARV" to "YHARV". Then go to the Slave miner building and unit and change the TechLevel to 11. Then change the prerequisites on all Yuri units and buildings from YAREFN to the name of your new refinery (if they have YAREFN in the Prerequisite list).

apple23
02-21-2008, 05:53 PM
One more thing you have to do (I believe if you follow tesla's advice it should work) is to go into the [General] section and find the part where it says PrerequisiteProc= and add the name of your new refinery (I'd suggest something like YAREFN if that dosen't exist already) and take out the old yuri refinery. Also you might want to find PrerequisiteProcAlt=SMIN and delete that or take out the SMIN and add something else (MUST be a vehicle!!!)

Fenring
02-21-2008, 08:20 PM
If you give Yuri a refinery/miner combo, you almost HAVE to make it a new building and replace the prereqs with it instead. I had fits with image replacement but it may have just been me doing it wrong.

However, I recommend my method so you don't have to edit the missions. Slightly lazy solution but it's easier in the long run.