Renegade Public Forums
C&C: Renegade --> Dying since 2003™, resurrected in 2024!
Home » Tiberian Technologies / Blackhand Studios » Tiberian Technologies Forum » Building Destruction not showing Player
Building Destruction not showing Player [message #457436] Mon, 10 October 2011 14:56 Go to next message
kamuixmod is currently offline  kamuixmod
Messages: 211
Registered: July 2010
Karma: 0
Recruit
also in LE we did setup a Building like Hon or so but with Damage stages. So when you kill a Building, the building its model blows and the wreckage of it lies in front of it. For Example a Bridge which cracked in the middle and collapsed.
After killing the Bridge and rejoining, the Player sees the Bridge so as if it never was killed. but when utry to walk on the "illusion" bridge. you fall through it. So its showing something completely wrong than it is. The Bridge is killed but it shows the Bridge after rejoin the Alife state.


This problem didnt occur on scripts 3.4.4, so any idea?


http://img46.imageshack.us/img46/5836/kmauixsignature.png
Re: Building Destruction not showing Player [message #457518 is a reply to message #457436] Tue, 11 October 2011 06:43 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
Could be that the netcode is failing to inform new players of the correct animation frame for the 'destroyed' state when they join and, since there is no ongoing animation, they never get an update with the correct frame number.

Just a wild guess, this sounds like StealthEyes department though, he knows the most about how the netcode works I believe.


http://steamsignature.com/card/1/76561197975867233.png
Re: Building Destruction not showing Player [message #457520 is a reply to message #457436] Tue, 11 October 2011 07:05 Go to previous messageGo to next message
GEORGE ZIMMER is currently offline  GEORGE ZIMMER
Messages: 2605
Registered: March 2006
Karma: 0
General (2 Stars)
I don't know shit about coding, but shouldn't there be something in place that basically says "hey here's what this building's state is" to every player any time they join?

Toggle Spoiler
Re: Building Destruction not showing Player [message #457524 is a reply to message #457436] Tue, 11 October 2011 07:15 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
If I understand what he has done correctly he is not using building controllers and is instead creating 'buildings' as vehicle objects which spawn a destroyed object upon their destruction which has an animation. Not entirely certain though, if I am wrong perhaps he could post a clarification? Perhaps a few screenshots of LevelEdit presets so the TT team could replicate a similar setup for debugging purposes.

EDIT;
But, regardless, you're correct, upon player join they should be informed of all applicable object states. In this instance it appears as if the animation frame state is not being sent at join, if I understood his post correctly.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 11 October 2011 07:17]

Report message to a moderator

Re: Building Destruction not showing Player [message #457527 is a reply to message #457436] Tue, 11 October 2011 07:21 Go to previous messageGo to next message
iRANian is currently offline  iRANian
Messages: 4308
Registered: April 2011
Karma: 0
General (4 Stars)
Does this also affect the bridge on RA_GuardDuty?

Long time and well respected Renegade community member, programmer, modder and tester.

Scripts 4.0 private beta tester since May 2011.

My Renegade server plugins releases
Re: Building Destruction not showing Player [message #457528 is a reply to message #457436] Tue, 11 October 2011 07:22 Go to previous messageGo to next message
StealthEye is currently offline  StealthEye
Messages: 2518
Registered: May 2006
Location: The Netherlands
Karma: 0
General (2 Stars)

It's not really my department, since I don't know how those damage states work, which is where the problem lies. But you are right that it is likely not sending the damage state/animation frame/whatever it is supposed to send to sync up.

BlackIntel admin/founder/coder
Please visit http://www.blackintel.org/

[Updated on: Tue, 11 October 2011 07:25]

Report message to a moderator

Re: Building Destruction not showing Player [message #457529 is a reply to message #457436] Tue, 11 October 2011 07:22 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
iRANian wrote on Tue, 11 October 2011 15:21

Does this also affect the bridge on RA_GuardDuty?



Does that show a similar bug? If so then yes, it's probably the same thing.


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 11 October 2011 07:23]

Report message to a moderator

Re: Building Destruction not showing Player [message #457530 is a reply to message #457436] Tue, 11 October 2011 07:31 Go to previous messageGo to next message
kamuixmod is currently offline  kamuixmod
Messages: 211
Registered: July 2010
Karma: 0
Recruit
no, im using Building Controllers.
i used the Alive state Frame0=0 Frame1=0 and the destroyed state
Frame0=300 Frame1=300

The model is in the TIle list as Buildingaggregate.
Animation is manual and Animate_linear or so.

i remember there are buildings which collapse on Mutationredux like the Hand of nod, there falls the ball out of the hand to the ground. Its something like that, just a bridge that collapses with the Animation


http://img46.imageshack.us/img46/5836/kmauixsignature.png
Re: Building Destruction not showing Player [message #457532 is a reply to message #457436] Tue, 11 October 2011 07:38 Go to previous messageGo to next message
danpaul88 is currently offline  danpaul88
Messages: 5795
Registered: June 2004
Location: England
Karma: 0
General (5 Stars)
OK, I was assuming you had done it the way I would have done it, since its easier to control 'vehicle' buildings via scripts than it is to control actual building controllers.

Still, what you described *should* work, although the destruction animation type should probably be target rather than linear I believe, and your destroyed state should be frame 0=0, frame1=300. Not sure though, its been a while since I setup building damage states. Give it a go and see if it helps, if not then its easy to swap the values back Razz


http://steamsignature.com/card/1/76561197975867233.png

[Updated on: Tue, 11 October 2011 07:38]

Report message to a moderator

Re: Building Destruction not showing Player [message #457594 is a reply to message #457532] Tue, 11 October 2011 21:42 Go to previous messageGo to next message
Mauler
Messages: 448
Registered: May 2003
Location: Alberta, Canada
Karma: 0
Commander
Well i have created some destruction animations that just change textures not actual animations of things breaking off etc.. I assume it might be an issue the the animation frame settings

The way i did my frames for this animation was kept simple, i only used 9 frames in total to achieve what i wanted and it worked great

But unsure if this would work with your method.... why not try mixing my method and yours to see what happens..

VIDEO LINK OF MY ANIMATION FEATURE
animation i had set up included cracks,emitters,textures that pop up at specific stages of damage, just like stock renegade buildings.

The interior and exterior were proxy's on this test level and the both the exterior and interiors were tiles..

Collision mode: None
Animation mode: Manual
AnimLogicMode: Anim_Logic_linear
Animation Enabled: Checked all frames

Frame 0 - 100% Health/ Power ON
Frame 1 - 75% Health/ Power ON
Frame 2 - 50% Health/ Power ON
Frame 3 - 25% Health/ Power ON
Frame 4 - 0% Health/ Power OFF

Frame 5 - 100% Health/ Power OFF
Frame 6 - 75% Health/ Power OFF
Frame 7 - 50% Health/ Power OFF
Frame 8 - 25% Health/ Power OFF
Frame 9 - 0% Health/ Power OFF

[Updated on: Tue, 11 October 2011 21:44]

Report message to a moderator

Re: Building Destruction not showing Player [message #457599 is a reply to message #457594] Tue, 11 October 2011 22:43 Go to previous message
TankClash is currently offline  TankClash
Messages: 456
Registered: June 2003
Location: Kingston, Ontario
Karma: 0
Commander
No Message Body

http://img.photobucket.com/albums/v453/MrRoberto/smokejag.png

http://www.youtube.com/watch?v=TWG7-SkWpjU&feature=relmfu
Here's a compelling comment instead.

[Updated on: Tue, 11 October 2011 22:46]

Report message to a moderator

Previous Topic: Scripts 4.0 Error
Next Topic: ghost
Goto Forum:
  


Current Time: Sat Dec 21 04:11:25 MST 2024

Total time taken to generate the page: 0.00798 seconds