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 Sat Apr 20, 2024 10:43 am
All times are UTC + 0
Need help about epic unit factory.
Moderators: Global Moderators, Red Alert 2 Moderators
Post new topic   Reply to topic Page 1 of 1 [13 Posts] Mark the topic unread ::  View previous topic :: View next topic
Author Message
Holy_Master
Commander


Joined: 21 Jul 2004
Location: Thailand

PostPosted: Wed Jan 07, 2009 7:21 pm    Post subject:  Need help about epic unit factory.
Subject description: need code
Reply with quote  Mark this post and the followings unread

i try to convert naval yard to epic unit factory. but i have problem. building still need to place on water. but when i remove "Naval=yes" from code it can be build on ground but working like i 2 normal war factory.that mean i still cant product my epic unit and another in same time [and i want this new factory can product only unit i set.

anyone can help me?

Quote:
; Artmd.ini
[RAAIRC]
Remapable=yes
Cameo=RARADRICON
Foundation=3x2
Height=7
Flat=yes ; while this is a valid BuilType flag, it does nothing.
Buildup=RAAIRCMK
BibShape=RAAIRCBB
ZShapePointMove=60,30 ; SJM is fixing zshape/zshapelocky problems, changed from 0,0
DemandLoadBuildup=true
FreeBuildup=true
NewTheater=yes
DockingOffset0=384,-128,0
ActiveAnim=GAAIRC_A
ActiveAnimDamaged=GAAIRC_AD
ActiveAnimZAdjust=0
ActiveAnimYSort=362
ActiveAnimTwo=GAAIRC_B
ActiveAnimTwoDamaged=GAAIRC_BD
ActiveAnimTwoZAdjust=-80
ActiveAnimTwoYSort=543
CanHideThings=True
CanBeHidden=False
OccupyHeight=2
AddOccupy1=-1,-1
AddOccupy2=-1,0
AddOccupy3=-2,-1
AddOccupy4=-3,-2
RemoveOccupy1=1,0
RemoveOccupy2=2,0
RemoveOccupy3=1,1
RemoveOccupy4=2,2
DamageFireOffset0=-36,23
DamageFireOffset1=-21,6

-----------------------------------------------
[General]
Shipyard=GAYARD,NAYARD,YAYARD,RAAIRC
BuildNavalYard=NAYARD,YAYARD,RAAIRC

Relesmd.ini
; GDI Air Command HQ
[RAAIRC]
UIName=Name:RAAIRC
Name=Air Command HQ
BuildCat=Tech
Prerequisite=GAWEAP,RADAR
WeaponsFactory=yes
Factory=UnitType
Strength=1500
; ShipYard=yes
Armor=concrete
Naval=yes ;GS
; WaterBound=yes ;should help AI, new with water zone
TechLevel=4
Sight=4
Adjacent=2
Owner=British,French,Germans,Americans,Alliance,Russians,Confederation,Africans,Arabs,YuriCountry
AIBasePlanningSide=0 ;gs 0 for Good, 1 for Evil
Cost=1000
Points=55
Power=-50
Powered=false
; BaseNormal=no
Crewed=no
Explodes=yes
Capturable=yes
Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60
DebrisAnims=DBRIS1LG,DBRIS1SM,DBRIS2LG,DBRIS4LG,DBRIS4SM,DBRIS5LG,DBRIS5SM,DBRIS6LG,DBRIS6SM,DBRIS7LG
MaxDebris=12
MinDebris=6
ThreatPosed=0 ; This value MUST be 0 for all building addons
;DamageParticleSystems=SparkSys,LGSparkSys
DamageSmokeOffset=700,700,500
AIBuildThis=yes
UnitRepair=no
; NumberOfDocks=1
; AmbientSound=_Amb_WavesLake
NumberImpassableRows=1 ; 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
TargetCoordOffset=300,200,0
ImmuneToPsionics=no ; defaults to yes for buildings, no for others

---------------------------------

Back to top
View user's profile Send private message Visit poster's website Skype Account
raminator
Commander


Joined: 04 Oct 2005
Location: Bierkasten

PostPosted: Wed Jan 07, 2009 7:59 pm    Post subject: Reply with quote  Mark this post and the followings unread

you can create a new weaoponsfactory...
look for the "dog kennel hack"
if i remember correctly the unit needs the prerequisite of the new weoponsfactory and "owner=" [no owner set]
or something like that...
the unit can only be build from this weap then...

_________________

just a simple logo by bricks @ raminator, on Flickr

Back to top
View user's profile Send private message
Lt Albrecht
Defense Minister


Joined: 25 Jul 2007
Location: Hampshire, England. Creating RA2: Moscow's vengeance

PostPosted: Wed Jan 07, 2009 9:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Nope.
You need a fake (dummy) house and the unit and the "epic unit factory" have to have that Owner=
The factory also has to have the side you want it to belong to.
Kinda like this:
Houses
[GDI]
...

[NOD]
...

[Africans]
...

[Acefactory]
...


;Units
;Mammoth Ace
[ACE]
...
Owner=Acefactory
...

;Buildings
;Mammoth Ace Factory
[ACEFAC]
...
Owner=TERRA,Acefactory
...

_________________
Yes, work on MV continues. It is not forgotten.

Back to top
View user's profile Send private message Skype Account
Holy_Master
Commander


Joined: 21 Jul 2004
Location: Thailand

PostPosted: Wed Jan 07, 2009 9:58 pm    Post subject: Reply with quote  Mark this post and the followings unread

thanks alot. Lt Albrecht, that code is work! now epic unit can create only on Epic Factory but something bug me.

1.other unit can be build/moving out from that factory too.

2.Epic unit and other vehicle still cant build at same time [ i saw Ship in Ra2 have seperate build from another land vehicle it possible to do like that] .

it possible to solve this problem?

Back to top
View user's profile Send private message Visit poster's website Skype Account
Lt Albrecht
Defense Minister


Joined: 25 Jul 2007
Location: Hampshire, England. Creating RA2: Moscow's vengeance

PostPosted: Thu Jan 08, 2009 1:08 pm    Post subject: Reply with quote  Mark this post and the followings unread

Umm... I don't know... I don't know how other units are moving out of it, I might have got something wrong.

_________________
Yes, work on MV continues. It is not forgotten.

Back to top
View user's profile Send private message Skype Account
Holy_Master
Commander


Joined: 21 Jul 2004
Location: Thailand

PostPosted: Thu Jan 08, 2009 3:17 pm    Post subject: Reply with quote  Mark this post and the followings unread

ahh.. nevermind,it still work like C&c3 Epic Factory,where another unit can be build from it.

but i still wonder what code make Ra2 can building ship and tank in same time, i spent my whole night to find the code but failed.

Back to top
View user's profile Send private message Visit poster's website Skype Account
John Galt
Commander


Joined: 01 Aug 2003
Location: Galt's Gulch

PostPosted: Thu Jan 08, 2009 4:51 pm    Post subject: Reply with quote  Mark this post and the followings unread

It's not INI code that makes that happen...

Back to top
View user's profile Send private message Visit poster's website Skype Account
ArvinCool
Tiberian Beast


Joined: 01 Jun 2008

PostPosted: Sun Jan 11, 2009 10:33 am    Post subject: Reply with quote  Mark this post and the followings unread

hey Holy. You can look at gamemates mod called Future Crisis, he have done exactly what you describe

_________________
"I'll be staying strapped cuse my mac-eleven make my nuts bigger"

Back to top
View user's profile Send private message
Holy_Master
Commander


Joined: 21 Jul 2004
Location: Thailand

PostPosted: Sun Jan 11, 2009 11:09 am    Post subject: Reply with quote  Mark this post and the followings unread

thank you i'll check it out.

Back to top
View user's profile Send private message Visit poster's website Skype Account
Mig Eater
Defense Minister


Joined: 13 Nov 2003
Location: Eindhoven

PostPosted: Sun Jan 11, 2009 11:48 am    Post subject: Reply with quote  Mark this post and the followings unread

Naval=yes & PlaceAnywhere=yes or change the terrain types so naval can go on clear/grass...

_________________



Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID YouTube User URL Facebook Profile URL Twitter Channel URL
Holy_Master
Commander


Joined: 21 Jul 2004
Location: Thailand

PostPosted: Thu Jan 15, 2009 4:14 pm    Post subject: Reply with quote  Mark this post and the followings unread

thank to migeater. it work perfect!.

but about first logic, it have problem that make ai can build unit for double,it possible to solve it?

Back to top
View user's profile Send private message Visit poster's website Skype Account
Allied General
General


Joined: 19 Mar 2004
Location: United Kingdom

PostPosted: Thu Jan 15, 2009 11:22 pm    Post subject: Reply with quote  Mark this post and the followings unread

Nope because AI has cloning factory bug (hence why AI only ever builds one factory by default) imo though it adds challenge to AI though.

_________________

Back to top
View user's profile Send private message Visit poster's website ModDB Profile ID Facebook Profile URL Twitter Channel URL
AprilWar
Rocket Infantry


Joined: 05 Sep 2007
Location: Somewhere in rulesmd.ini

PostPosted: Fri Jan 16, 2009 4:38 pm    Post subject: Reply with quote  Mark this post and the followings unread

Yep, future crisis did exactly this.

_________________


My Art

Back to top
View user's profile Send private message Visit poster's website
Display posts from previous:   
Post new topic   Reply to topic Page 1 of 1 [13 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.1529s ][ Queries: 11 (0.0072s) ][ Debug on ]