Reminder: Internet Explorer 6 or below are NOT supported.





|
There are currently 272 users playing Freelancer on
86 servers. | May. 26, 2013 |
Browsing this Thread:
1 Anonymous Users
Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2008/6/24 16:40 From http://www.freeworlds-tow.net/dev
Group:
Registered Users Starport Admin $$$ Supporters $$$
Posts:
1123
![]() |
So I've been working on creating capital ship wrecks as we want to replicate vanilla capital fuses. We're using dummy groups in the .cmp but the collision groups do not spawn damage objects.
Can the engine only spawn debris if is actually part of the ship? Or is it something in my coding? Code: The .cmp have the appropriate entries. The .3db are dummy pieces, though. I have the collision groups attached to our fuse.ini references, too.
Posted on: 2010/8/3 4:15
Edited by Sushi on 2010/8/3 4:22:15
Edited by Sushi on 2010/8/3 4:29:24 |
|||
|
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Staff
![]()
Joined:
2008/10/25 17:58 From On my way back
Group:
Registered Users Starport Staff FLServer Admins
Posts:
280
![]() |
Sushi, all wrecks are described in the solararch.ini (not shiparch)
as an example, this is one I did for the Osiris a while back [Solar] nickname = suprise_or_osiris type = MISSION_SATELLITE DA_archetype = ships\order\or_osiris\or_osiris.cmp material_library = Ships\order\or_ships.mat LODranges = 0, 600, 800, 1000, 1500, 2000, 3000, 20000 surface_hit_effects = 0, small_hull_hit mass = 100000.000000 solar_radius = 800 shape_name = NAV_surpriseX explosion_arch = explosion_instant hit_pts = 3600 destructible = true fuse = fuse_suprise_or_osiris, 0.000000, 3601 fuse = fuse_suprise_drop_loot, 0.000000, 3590 [CollisionGroup] obj = osiris_cntrltwr_lod1 separable = true child_impulse = 0 parent_impulse = 0 debris_type = debris_vanish dmg_hp = DpCntrltwr dmg_obj = or_osiris_tower_cap hit_pts = 15000 [CollisionGroup] obj = osiris_front_lod1 separable = true child_impulse = 0 parent_impulse = 0 debris_type = debris_vanish dmg_hp = DpFront dmg_obj = or_osiris_neck_dmg_cap hit_pts = 15000 [CollisionGroup] obj = osiris_interior_lod1 separable = true child_impulse = 0 parent_impulse = 0 debris_type = debris_vanish dmg_hp = DpNose dmg_obj = or_osiris_head_dmg_cap hit_pts = 15000 [CollisionGroup] obj = osiris_nose_lod1 separable = true child_impulse = 0 parent_impulse = 0 debris_type = debris_vanish dmg_hp = DpNose dmg_obj = or_osiris_head_dmg_cap hit_pts = 15000 wrecks then have their fuses described in the fx/fuse_suprise_solar.ini like so [fuse] name = fuse_suprise_or_osiris lifetime = 0.100000 [destroy_group] group_name = osiris_cntrltwr_lod1 fate = disappear at_t = 0.100000 [destroy_group] group_name = osiris_front_lod1 fate = disappear at_t = 0.100000 [destroy_group] group_name = osiris_interior_lod1 fate = disappear at_t = 0.100000 [destroy_group] group_name = osiris_nose_lod1 fate = disappear at_t = 0.100000 All parts above in [destroy_group] will be removed and replaced by dmg_obj from the solararch Give it a loadout in solar/loadout.ini, put it in system, use another wreck as a template, make changes as needed and youre done. Hope that makes sense Looking at a bit more, the [simple] blocks only seem to be needed in the shiparch.ini
Posted on: 2010/8/3 8:47
Edited by Thaddeus on 2010/8/3 9:48:26
|
|||
|
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2008/6/24 16:40 From http://www.freeworlds-tow.net/dev
Group:
Registered Users Starport Admin $$$ Supporters $$$
Posts:
1123
![]() |
So, if I place this only in the solararch, it will still work for player ships? That's what I am interested in recreating.
I'll give it a go now and let you know if I'm more successful.
Posted on: 2010/8/3 15:18
|
|||
|
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Staff
![]()
Joined:
2008/10/25 17:58 From On my way back
Group:
Registered Users Starport Staff FLServer Admins
Posts:
280
![]() |
Wrecks (and bases) are seperate items, you still have to have your usual entries in shiparch for npc/player ships for them to become flyable. I think solararch only references the [simple] .3db models from shiparch
Posted on: 2010/8/3 16:44
|
|||
|
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/6/9 1:11 Group:
Registered Users Senior Members
Posts:
304
![]() |
Maybe it's just me but I am a little confused here. I was under the impression Sushi was not talking about Freelancer's definition of wrecks but instead wrecks as in various ship pieces separating as the ship is destroyed. Everyone here seems to be talking about the Freelancer style wrecks as in the solars that just sit there in space.
Posted on: 2010/8/3 17:02
|
|||
![]() Quote: OPR8R wrote: |
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2990
![]() |
Quote:
Indeed. Sushi's speaking of the damage objects you see when you destroy vanilla capitals. The ship visibly breaks up in pieces.
Posted on: 2010/8/3 17:42
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2008/6/24 16:40 From http://www.freeworlds-tow.net/dev
Group:
Registered Users Starport Admin $$$ Supporters $$$
Posts:
1123
![]() |
Quote:
Aye, that's what I am talking about. That being said, thanks for the help so far. I can now get the .3dbs showing up. The problem is that they blow up with the fuse and they don't move at all, which is what I'm trying to get them to do. This is what it looks like as of now : 27CDB6E-AE6D-11cf-96B8-444553540000"> Watch live streaming video from fwtow at livestream.com (sorry for the mic, I had it on the wrong settings) It seems once the death fuse goes, though, the models disappear; that's why the death fuse is delayed.
Posted on: 2010/8/3 17:55
Edited by Sushi on 2010/8/3 18:10:53
Edited by Sushi on 2010/8/3 20:14:31 Edited by Sushi on 2010/8/4 0:12:50 |
|||
|
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2990
![]() |
Think we might've hit a dead end.
Right now what we do is use dummy groups to link wrecks to them. In this way, we can quickly refactor ships to have wrecks instead of having to split up the model into the appropriate groups. The problem with that technique is that when the wrecks are created in the fuse through a destroy_group block, the wrecks are added to an otherwise intact main model. Hence, we'd need to also have the main model disappear when all the wrecks are spawned. Unfortunately, using destroy_root destroys all wrecks that were spawned, too, so we're back to square one. The only way for this to work would be to somehow "unlink" the created debris from the root so that when destroy_root is called the debris still keep on living for their defined period of time.
Posted on: 2010/8/3 20:49
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/6/9 1:11 Group:
Registered Users Senior Members
Posts:
304
![]() |
The most obvious and simplest solution, (and originally what I thought you were doing in the first place) would be to just have the explosion that kills the ship spawn the various debris pieces. That won't give you very much control over where each piece of debris ends up unfortunately, but it's the closest thing I can think of.
Also a minor unrelated niggle, but can't you just use YouTube like everyone else? Livestream is kind of annoying with all those ads.
Posted on: 2010/8/3 22:41
|
|||
![]() Quote: OPR8R wrote: |
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2008/6/24 16:40 From http://www.freeworlds-tow.net/dev
Group:
Registered Users Starport Admin $$$ Supporters $$$
Posts:
1123
![]() |
Quote:
Ya, that's what I did originally by placing the wrecks into the explosion.ini. The results were less than convincing of capital ship wrecks and there was very little control of how the debris reacted and were presented. Considering the pieces are so large (some are 2km in length) I need to have very precise control of how the wrecks breaks apart, thus we decided to go the more direct route. As for the vid, sure. I'm just lazy and it's an easy method for me to show people for a WIP wreck that is bjorked.
Posted on: 2010/8/3 22:54
|
|||
|
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2009/2/21 21:42 Group:
Webmasters Registered Users
Posts:
2990
![]() |
What ads?
Oh wait... AdBlock ![]()
Posted on: 2010/8/3 22:56
|
|||
|
"Cynicism is not realistic and tough. It's unrealistic and kind of cowardly because it means you don't have to try." -Peggy Noonan |
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Just can't stay away
![]()
Joined:
2008/6/9 1:11 Group:
Registered Users Senior Members
Posts:
304
![]() |
Quote:
Thinking about this, I remembered a specific incident where a piece of debris survived the root explosion. Or at the least, that what it appears to have happened. Luckily I just happened to have it on video. Click image for video link. ![]() After the Bretonian Destroyer is destroyed, it goes through its death fuse, and and what is presumably the root is destroyed by the end of it. However a piece is still left over. You can see the big loop piece just sitting there after the ship has been completely destroyed. It's very possible that may only have happened because of the way Freelancer splits up its models, (the method you were specifically avoiding) but that's the only lead I can give.
Posted on: 2010/8/4 0:34
|
|||
![]() Quote: OPR8R wrote: |
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
|
Starport Admin
![]()
Joined:
2008/6/24 16:40 From http://www.freeworlds-tow.net/dev
Group:
Registered Users Starport Admin $$$ Supporters $$$
Posts:
1123
![]() |
Ya, that's exactly what we wanted. Well, lets hope one of the gurus of FL can figure this one out. If not, it's back to the drawing board.
Posted on: 2010/8/4 0:38
|
|||
|
||||
|
||||
Re: Capital Ship Wrecks |
||||
|---|---|---|---|---|
Joined:
2008/7/22 14:10 Group:
Registered Users
Posts:
22
![]() |
Just to add:
Three things must happen in sequential order; the explosion, the swapping of the main model for the wrecked model and finally, the separation of the parts. Control over speed and direction of the wrecked pieces is part two of the The "holes" in the model seen are my fault and will be corrected shortly.
Posted on: 2010/8/4 0:38
|
|||
|
||||










Donations
Forum








