Introduction
After some discussion in THIS and THIS topic, me(djohe) and DeeZire and LKO and Longshanks came up with the answer why the Harvester unloading/loading animation ain't working like it should and how to fix it:
Here is what this tutorial helps you to enable/fix:
This tutorial is written for the unmodded version of tiberian sun with no changes to the refinery art in the Rules.ini or Art.ini but will work with modified versions too if you adapt the code for it. The tutorial is in four/five steps that you have to do and has nothing to do with the Rules.ini at all if you have not changed refinery naming earlier.
Step 1
You can skip this step if you have not done any changes to the naming of the refinery earlier
If you have changed naming of the refinery in the Rules.ini to [NAREFN] or anything else and disabled/deleted Image=NAREFN you need to change it back again. Here are the other lines you may need to change back again to their orginal values:
in the Rules.ini (all default/orginal values)
[AI]
BuildRefinery=PROC
[HARV]
Prerequisite=FACTORY,PROC
Dock=PROC
[HORV]
Dock=PROC
[GAWEAP]
Prerequisite=PROC,GAPILE
[NAWEAP]
Prerequisite=PROC,NAHAND
[PROC]
Image=NAREFN
[GASILO]
Prerequisite=PROC
[GARADR]
Prerequisite=PROC
[GAPLUG]
Prerequisite=PROC,GATECH
[NASTLH]
Prerequisite=PROC,NATECH
[NARADR]
Prerequisite=PROC
and by default the refinery is called [NAREFN] in Art.ini without any Image=NAREFN line
Step 2:
Start by opening your Art.ini file for Tiberian Sun
Step 3:
Add the following lines under [NAREFN] :
PreProductionAnimZAdjust=-40
ProductionAnimZAdjust=-40
Step 4:
Add this like if it was a new building under [NAREFN]
[PROC]
Image=NAREFN
Remapable=yes
Cameo=REFICON
Foundation=4x3
Height=2
ZShapePointMove= 24, -12
Buildup=NAREFNMK
DemandLoadBuildup=true
FreeBuildup=true
BibShape=NAREFNBB
NewTheater=yes
ActiveAnim=NAREFN_C
ActiveAnimZAdjust=-100
ActiveAnimTwo=NAREFN_B
ActiveAnimTwoZAdjust=-250
ActiveAnimTwoPowered=no
PreProductionAnim=NAREFN_A
ProductionAnim=NAREFN_AR
PreProductionAnimZAdjust=-40
ProductionAnimZAdjust=-40
Step 5:
Also if you dont change the following the animation will get drawn behind the voxel like in this picture made by LKO at TiberiumWeb
Go to (or just use the built in search function) [NAREFN_A] in Art.ini
Now delete or disable the line Surface=yes under [NAREFN_A] and [NAREFN_AR]
( [NAREFN_AR] is right under [NAREFN_A] and is NAREFN_A in reverse)
Final Words:
If you did everything correctly your Tiberium refinery should now display the animation shown in the pictures above
Congratulations
Credits:
Westwood for their coding errors and their great modifyable games
Deezire for being the first? person to enable this animation and helping us enabling it like in his Deezire 4.5 mod (not completly the same way, this one is better)
SMIFFGIG for not answering my messages and PM's
Lin Kuei Ominae for explaining why this animation dont work, also thanks for posting it at TiberiumWeb forum also LKO ( http://www.tiberiumweb.com/forums/index.php?showtopic=1135 )
(Sorry about hotlinking your refinery picture at tibweb)
Blubb for also managing to enable this animation in his TS:Squared and not able to provide any info on how to do it
Longshanks for making me check the TS:Retro Art.ini again and find the [PROC] right under [NAREFN]
Dutchygamer for trying to make a tutorial
One or four last things:
1. If anyone have any complains about the credits I will change it
2. And if anyone has a question about this tutorial just post here
3. Also if anyone wonders why I did not include these lines in this tutorial:
ProductionAnimX= or ProductionAnimY= or
PreProductionAnimX= or PreProductionAnimY=
is becaus they are not needed, they just change the offset of the animation in the X and Y axis. If you dont like the current offset change it yourself, I like the default offset (me points at TSHyper)
4. If you want to do any changes to the refinery in Art.ini do the same changes to both [NAREFN] and [PROC] otherwise they might not work correctly like adding new active anims or changing the selection box height.



