Jump to content
Lou

Problems with a New Building

Recommended Posts

Ok, I've added new civilian skyscraper, It works fine, but its' lower corner is cut, and this part is invisible. Whats wrong?

Share this post


Link to post
Ok, I've added new civilian skyscraper, It works fine, but its' lower corner is cut, and this part is invisible. Whats wrong?

do you have some screen shots and what images you basing it off one thats already in the game or one you made, little more detail will help also is this for RA2 or YA.

Share this post


Link to post
Ok, I've added new civilian skyscraper, It works fine, but its' lower corner is cut, and this part is invisible. Whats wrong?

RA2 has a height limit. The only way to fix it is make an invisible base structure and use the building as its active anim. Damage states work as well. I think garrison might as well, but I'm not sure. You will also need the rubble frames on the dummy structure.

Share this post


Link to post

Sure, here is an image:

bank.jpg

this I put in rulesmd:

 

[CASANF19]

Name=Bank of America

UIName=Name:CASANF19

TechLevel=-1

Strength=1000

Insignificant=yes

Nominal=yes

Remapable=yes

;RadarInvisible=yes

Radar=yes

 

@Doctor Destiny

you mean first frame in SHP should be empty?

SpySat=yes

Points=5

Armor=concrete

Explosion=TWLT070,S_BANG48,S_BRNL58,S_CLSN58,S_TUMU60

;DestroyAnim=CACHIG05D

DebrisAnims=DBRI-WM1,DBRI-WM2,DBRI-WM3,DBRI-WM4,DBRI-WM5,DBRI-WM6

MaxDebris=15

MinDebris=5

;Selectable=no

;IsBase=no

BaseNormal=no ;psst....IsBase isn't a Rules flag

Sight=6 ; UC base values

ClickRepairable=no

CanBeOccupied=yes

MaxNumberOccupants=10

;DistributedFire=yes

CanOccupyFire=yes

 

And this in artmd:

 

[CASANF19]

Normalized=yes

Remapable=yes

Foundation=3x5

Height=30

SimpleDamage=no

ExtraDamageStage=yes

;Buildup=CAHOSP

NewTheater=yes

;ActiveAnim=CARUS03A

;ActiveAnimZAdjust=-100

DemandLoad=true

MuzzleFlash0=46,2 ; these are pixel offsets for muzzle flashes from center of base

MuzzleFlash1=-70,-2

MuzzleFlash2=74,12

MuzzleFlash3=-40,44

MuzzleFlash4=-12,18

MuzzleFlash5=44,-82

MuzzleFlash6=-66,-58

MuzzleFlash7=74,-28

MuzzleFlash8=18,68

MuzzleFlash9=-10,-32

AddOccupy1=-7,-9

AddOccupy2=-8,-9

AddOccupy3=-9,-7

AddOccupy4=-9,-8

RemoveOccupy1=-4,-7

RemoveOccupy2=-5,-8

RemoveOccupy3=-7,-4

RemoveOccupy4=-8,-5

CanBeHidden=False

DamageFireOffset0=32,60

DamageFireOffset1=54,-10

DamageFireOffset2=-30,-4

OccupyHeight=20

CanHideThings=True

 

; CASANF19D destroy animation

;[CASANF19DM]

;Image=CASANF19DM

;NewTheater=yes

;Rate=320

;DemandLoad=true

;Shadow=yes

;AltPalette=yes ; use the unit palete

Edited by Lou

Share this post


Link to post

The rules entry is fine, but the art is the issue. The Height is too tall. The [CASANF19] SHP should be blank and you should have the active animation set to the image you want to use. Then the damage state should be done the same way. I knew from your description of the problem the Height was it.

Share this post


Link to post
RA2 has a height limit.

What is the limit?

Share this post


Link to post
It's less than 30.

I gathered that much already. :P

 

I've never made an exceptionally tall building, and do not ever foresee it happening, but I figured it would be good information to know anyway.

 

Share this post


Link to post

I've made casanf19.shp blank, just blue background with 1 frame. Next, I've created new shp CASANF19_A.shp, and put image there.

In artmd.ini I've added this string ActiveAnim=CASANF19_A

and now I cant see my building at all.

:huh:

Share this post


Link to post

Did you add an Art entry for [CASANF19_A]?

 

The animation needs its own entry...

 

And it needs to be listed in the Animations List in Rules too.

Share this post


Link to post

ahh. yeah. I forgot. Thanks!

 

i've added animation description in artmd

[CASANF19_A]

Image=CASANF19_A

NewTheater=yes

Normalized=yes

Start=0

LoopCount=-1

Layer=ground

Shadow=yes

DemandLoad=true

 

is something wrong?

Edited by Lou

Share this post


Link to post

[CASANF19_A]

Image=CASANF19_A

NewTheater=yes

Normalized=yes

Start=0

End=1

LoopCount=-1

Layer=ground

Shadow=yes

DemandLoad=true

 

Should look like that.

 

[CASANF19_AD]

Image=CASANF19_A

NewTheater=yes

Normalized=yes

Start=1

End=2

LoopCount=-1

Layer=ground

Shadow=yes

DemandLoad=true

 

And damaged. Make sure you add these to the [Animations] list and your main entry.

Share this post


Link to post

Yeah, now I got it to work. I couldn't get it, because SHP should have name cnsanf19_A instead of casanf19_A.

But I still have questions. My building is kinda transparent, e.g. I can see water shining through and lightning of explosions, and buildings outline:

babaz.th.jpg

 

And, what about occupied state? Should I make animation for this too? What to write in rulesmd and artmd?

 

Share this post


Link to post

ok, I got it, problem was in height. I made it 30, and image got fine. Now, how do I make it to show occupied state image?

Edited by Lou

Share this post


Link to post

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

  • Recently Browsing   0 members

    No registered users viewing this page.

×