Project Perfect Mod Forums
:: Home :: Get Hosted :: PPM FAQ :: Forum FAQ :: Privacy Policy :: Search :: Memberlist :: Usergroups :: Register :: Profile :: Log in to check your private messages :: Log in ::


The time now is Fri Apr 19, 2024 3:34 pm
All times are UTC + 0
FDSFGH WEEDDUDE
Moderators: Global Moderators, Tiberian Sun Moderators
Post new topic   Reply to topic Page 1 of 1 [12 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Ixonoclast
General


Joined: 11 Aug 2008
Location: Somewhere up high.

PostPosted: Wed Aug 20, 2008 11:32 pm    Post subject:  FDSFGH WEEDDUDE Reply with quote  Mark this post and the followings unread

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 :

[WeedSequence]
Ready=0,1,1
Guard=56,1,1
Prone=64,1,6
Walk=8,6,6
FireUp=56,1,1
Down=125,2,0
Crawl=64,6,6
Up=114,2,0
FireProne=116,1,1
Idle1=128,8,0,E
Idle2=136,15,0,W
Die1=152,8,0
Die2=197,5,0
Die3=160,6,0
Die4=166,11,0
Die5=177,20,0

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... Rolling Eyes

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Wed Aug 20, 2008 11:56 pm    Post subject: Reply with quote  Mark this post and the followings unread

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

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Ixonoclast
General


Joined: 11 Aug 2008
Location: Somewhere up high.

PostPosted: Thu Aug 21, 2008 2:02 am    Post subject: Reply with quote  Mark this post and the followings unread

Yes. Two empty .mix's, one expand02 and the other ecache02.

I'll try again later...

Back to top
View user's profile Send private message
Tratos
General


Joined: 01 Jan 2003

PostPosted: Thu Aug 21, 2008 2:21 am    Post subject: Reply with quote  Mark this post and the followings unread

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.

Back to top
View user's profile Send private message Send e-mail
Ixonoclast
General


Joined: 11 Aug 2008
Location: Somewhere up high.

PostPosted: Thu Aug 21, 2008 2:27 am    Post subject: Reply with quote  Mark this post and the followings unread

I called him weedinf.shp

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Aug 21, 2008 9:13 am    Post subject: Reply with quote  Mark this post and the followings unread

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

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Ixonoclast
General


Joined: 11 Aug 2008
Location: Somewhere up high.

PostPosted: Thu Aug 21, 2008 10:08 am    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
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.


AHAH!

Now I know! Thanks.

Back to top
View user's profile Send private message
Somebody Else
Cyborg Soldier


Joined: 05 Mar 2008

PostPosted: Thu Aug 21, 2008 8:57 pm    Post subject: Reply with quote  Mark this post and the followings unread

Lin Kuei Ominae wrote:
Every art entry after the [Movies] section is ignored by the game.


Actually that isn't true, all of mine is after the [Movies] section and works fine Smile

_________________


- Somebody Else

Back to top
View user's profile Send private message
Lin Kuei Ominae
Seth


Joined: 16 Aug 2006
Location: Germany

PostPosted: Thu Aug 21, 2008 9:09 pm    Post subject: Reply with quote  Mark this post and the followings unread

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

Public SHPs
X-Mech Calendar (28 Mechs for GDI and Nod)
5 GDI, 5 Nod, 1 Mutant, 1 Scrin unit, 1 GDI building

Tools
Image Shaper______TMP Shop______C&C Executable Modifier

Back to top
View user's profile Send private message
Blade
Cyborg Commando


Joined: 23 Dec 2003

PostPosted: Thu Aug 28, 2008 12:01 pm    Post subject: Reply with quote  Mark this post and the followings unread

The last line of art.ini is not parsed correctly, so if you only had a section header it would have been ignored.

Back to top
View user's profile Send private message
Ixonoclast
General


Joined: 11 Aug 2008
Location: Somewhere up high.

PostPosted: Thu Aug 28, 2008 12:12 pm    Post subject: Reply with quote  Mark this post and the followings unread

Soooooo, how do you circumvent that?

Back to top
View user's profile Send private message
Somebody Else
Cyborg Soldier


Joined: 05 Mar 2008

PostPosted: Thu Aug 28, 2008 12:15 pm    Post subject: Reply with quote  Mark this post and the followings unread

Not use the last line of Art.ini. Put ;_________ like i did #Tongue

_________________


- Somebody Else

Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [12 Posts] Mark the topic unread ::  View previous topic :: View next topic
 
Share on TwitterShare on FacebookShare on Google+Share on DiggShare on RedditShare on PInterestShare on Del.icio.usShare on Stumble Upon
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


Powered by phpBB © phpBB Group

[ Time: 0.1547s ][ Queries: 11 (0.0101s) ][ Debug on ]