Jump to content
Sign in to follow this  
Stygs

Weird w3x problem

Recommended Posts

As some of you may know, I tried to turn the CnC4 Nod Widow into an Epic unit for my CABAL faction.

 

However, I am running into quite a lot model related bugs that I just dont understand.

(FYI: I exported to base model as w3x and added the turrets and addons later into the w3x)

 

1. None of the Turrets seem to pitch.

All 5 turrets (main + 4 addons) have AllowsPitch=true and the model should support it, but none seem to move the barrel to target the enemy.

 

2. Lights do not show.

Each addon slot should have 1 light that disappears when that slot is used. They look fine in w3xviewer but are invisible ingame :/

 

3. Turrets dont hide/show the way they should

Initially, there was a repair turret and a cannon turret that worked fine (as far as I remember >_> ). Once I added the laser turret however, it got weird:

-The laser turrets are hiden ingame despite nothing in the xml/LUA telling the game to hide it.

-Once you get the laser ugrade, the turrets are shown.However, it also shows the repair turret at the same time.

-The repair upgrade shows particle effects but doesnt show the turrets despite having worked before.

 

Cannon Turrets still work perfectly so I asumed it was sometinhg with the bones, but Repair and and Laser arent event attached to the same bone in W3DContainer.

 

sshot0210.jpg

 

XML code: http://pastebin.com/Pi4E2fdX

 

I am assuming its some problem with the LUA script hiding the wrong parts of the model, but frankly I have no idea about the whole thing D:

Share this post


Link to post

You'd better set all subobject show, and use LUA to hide them in the game. Don't set the subobject hide in 3dsmax's w3x setting.

 

It seems if subobject is too many it will cause showing bug.

 

And in my opionion. I'm really tired of putting too many subobject in one w3x file. I often make independent model of the sub_turret, and make another scriptdraw for the turret in xml.

Share this post


Link to post

I didnt set the "Hide" setting in 3ds, I did it with LUA.

 

However, it seems if I hide either the Repair or the Laser turret, the other one will also be hidden. No idea why >_>

Share this post


Link to post

Is the one you hide the parent of the other?

Share this post


Link to post

Well, not directly, but they are all attached to the same bone in W3DContainer.

Share this post


Link to post

It should not, but it did - at least laser and repair show again the right way, but the lights are still missing >_>

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
Sign in to follow this  

  • Recently Browsing   0 members

    No registered users viewing this page.

×