Posted: Wed Aug 20, 2008 11:32 pm Post subject:
FDSFGH WEEDDUDE
I was busy using 'unused' shps in Tiberian Sun as placeholders for mod balance tryouts, and I began messing with the Weeddude or whatever he was called.
I used this tutorial from somewhere.
Code:
Inserting weedinf.shp Into A Mix File:
The best way to insert new shps, voxels, etc. into Tiberian Sun, is through making a new mix file to put your stuff in. To do this, extract any mix file you want, it doesn’t matter. Open up Xcc Mix Editor, then open the mix file that you extracted, and delete all content in it. Go back to the directory that you have the mix file in, and rename it to expandXX, the XX can be any number from 2 to 99. Copy expandXX and paste it, then rename the copy to ecacheXX, once again, the XX can be any number from 2 to 99, just make sure that it is the same number as expandXX. Now, open up Xcc Mix Editor, open ecacheXX, and place weedinf.shp into the mix file, by selecting weedinf.shp and dragging it into the mix editor window. Now, save, compact, then close. Open up expandXX using Xcc Mix Editor and drag ecacheXX into expandXX, then save, compact, then close the Mix Editor. Put expandXX into the Tiberian Sun Directory.
Adding The Entries Into The Art.ini File:
Ok, now we have the renamed unit in our mix file, now all we have to do is add the units coding into the art.ini and rules.ini.
Open art.ini and scroll down until you see the first infantry entry, which should be [JUMPJET]. Above that, put this for the chem spray infantry:
[WEEDINF]
Cameo=WEATICON
Sequence=WeedSequence
Crawls=yes
Remapable=yes
FireUp=1
We are using the WEATICON because that was to be the units icon. Notice that we have included Sequence=WeedSequence, which is a new sequence that we must add to the art.ini. Ok, now search for Infantry Sequences in the art.ini. Scroll down, and you should see [DoggieSequence], ok, now above that insert this :
This sequence tells the game the animation sequence for the weedinf, without this, the unit will look 2d and will not be able to move in all directions. Ok, now we are done with the art.ini, save your work and place the art.ini file in the Tiberian Sun directory.
Adding The Entries Into The Rules.ini File:
Ok, now we are almost done! Now open up the rules.ini and search for InfantryTypeList , scroll to the bottom of the list and add this,
XX=WEEDINF
Again, the XX can stand for whatever number comes next in the list. Now, search for InfantryTypes. It should bring you above the cyborg commando, add this entry above it:
; Chem Spray Infantry
[WEEDINF]
Name=Chem Spray Infantry
Category=Soldier
Primary=
Prerequisite=NATECH,NAHAND
CrushSound=SQUISH6
Strength=200
Fearless=yes
Armor=light
TechLevel=10
Pip=green
Sight=7
Speed=4
Owner=Nod
TiberiumProof=yes
TypeImmune=yes
Cost=800
Points=10
AllowedToStartInMultiplayer=yes
VoiceSelect=42-I000,42-I004
VoiceMove=42-I010,42-I006
VoiceAttack=42-I012,42-I008
VoiceDie=DEDMAN1,DEDMAN2,DEDMAN3,DEDMAN4,DEDMAN5,DEDMAN6
Locomotor={4A582744-9839-11d1-B709-00A024DDAFD1}
PhysicalSize=1
GuardRange=0
MovementZone=InfantryDestroyer
ThreatPosed=20
ImmuneToVeins=yes
TiberiumHeal=yes
AIBuildThis=yes
Now, I have left the weapon entry blank so you can add whatever weapon that you want to, also, you can change whatever other entries that you want, as long as [WEEDINF] stays the same. Now, save the rules.ini file and place it in the Tiberian Sun directory with your mix file and art.ini.
I get a unit without a visual.
Well, I don't know if that shp is broken but his animations differ greatly from the usual. But that is what the art.ini is supposed to fix right? Anyway, I guess there is some mistake in the rules.ini code, but I'm not much of a coder so I probably don't see it.
I'd really like to see this cleared up, I mean, if this is an shp importing problem... I'm sooo screwed... QUICK_EDIT
do you placed the shp in an ecacheXX.mix file? (XX is a number between 02-99)
only in ecache.mix files the game can find shps. _________________ SHP Artist of Twisted Insurrection: Nod buildings
Probably because there isnt an SHP in the game named 'weedinf', the weedguy shp is named just plain 'weed' you'll need to extract the 'weed.shp', rename it and stick it in your currently empty mix file. Should solve your problem. QUICK_EDIT
make sure that you don't placed the art.ini stuff at the end of the file!
Every art entry after the [Movies] section is ignored by the game.
add the [WEEDINF] entry at the top, right after the comments, or between some of the original infantry units.
the WeedSequence should be placed at the end of the other sequences. _________________ SHP Artist of Twisted Insurrection: Nod buildings
that is strange
i once tested it, and the unit was invisible when i placed it after the Movies section.
Now i tested it again and it works. _________________ SHP Artist of Twisted Insurrection: Nod buildings
You cannot post new topics in this forum You cannot reply to topics in this forum You cannot edit your posts in this forum You cannot delete your posts in this forum You cannot vote in polls in this forum You cannot attach files in this forum You can download files in this forum