Freelancer Community Network
Reminder: Internet Explorer 6 or below are NOT supported.
HomeHome
ForumForum
WikiWiki
DownloadsDownloads
ForgeForge
Multiplayer Connection Tutorial
Collapse/Expand Donations
Monthly costs: -50€
Income (ads): +25€
Donations (last month): +0€

Current balance: -65€
(last updated 2013/05)

Please make a donation if you want to help keeping The-Starport online:

Thanks!
Collapse/Expand Random Image
Collapse/Expand Poll
Would you be interested in Star Citizen modding?
Yes.
No, not interested in SC mods/modding.
No, not interested in SC in general.
Total Votes: 281
3 Comments
Collapse/Expand Login
Username:

Password:

Remember me



Lost Password?

Register now!
Collapse/Expand Chat
Collapse/Expand Twitter
Collapse/Expand Who's Online
15 user(s) are online (7 user(s) are browsing Forum)

Members: 2
Guests: 13

salamandar, sumanuti, more...
Collapse/Expand Links
Collapse/Expand Advertisement
There are currently 272 users playing Freelancer on 86 servers.
May. 26, 2013

Browsing this Thread:   1 Anonymous Users



 Bottom   Previous Topic   Next Topic  Register To Post

(1) 2 »


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
Offline
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:

********SHIPARCH.INI********
[CollisionGroup]
obj = debris_zomgbayz01
separable = true
debris_type = cap_ship_piece
parent_impulse = 0
child_impulse = 10.000000
dmg_obj = m90_wreck_forward
dmg_hp = DpWreck01
fuse = mc90_death, 0.000000, 1
mass = 200.000000
hit_pts = 69300
root_health_proxy = true


[CollisionGroup]
obj = debris_zomgbayz02
separable = true
debris_type = cap_ship_piece
parent_impulse = 0
child_impulse = 10.000000
dmg_obj = m90_wreck_main
dmg_hp = DpWreck02
fuse = mc90_death, 0.000000, 1
mass = 200.000000
hit_pts = 69300
root_health_proxy = true

[CollisionGroup]
obj = debris_zomgbayz03
separable = true
debris_type = cap_ship_piece
parent_impulse = 0
child_impulse = 10.000000
dmg_obj = m90_wreck_rear
dmg_hp = DpWreck03
fuse = mc90_death, 0.000000, 1
mass = 200.000000
hit_pts = 69300
root_health_proxy = true

[Simple]
nickname = m90_wreck_forward 
DA_archetype = TOW\solar\wrecks\mc90\mc90_wreck_forward.3db
material_library = TOW\ships\mc90\mc90.mat
Mass = 1000
LODranges = 0, 20000

[Simple]
nickname = m90_wreck_main 
DA_archetype = TOW\solar\wrecks\mc90\mc90_wreck_main.3db
material_library = TOW\ships\mc90\mc90.mat
Mass = 1000
LODranges = 0, 20000

[Simple]
nickname = m90_wreck_rear 
DA_archetype = TOW\solar\wrecks\mc90\mc90_wreck_rear.3db
material_library = TOW\ships\mc90\mc90.mat
Mass = 1000
LODranges = 0, 20000


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
Open in new window
Report Top
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
Offline
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
Open in new window
Report Top
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
Offline
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
Open in new window
Report Top
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
Offline
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
Open in new window
Report Top
Anonymous
Re: Capital Ship Wrecks
Anonymous-Anonymous
It should reference whatever you define, be it 3db or cmp. It's always shiparch entries for flyable ships and solararch entries for custom wrecks. I've got dead marsfliers and all manner of custom ships defined as wrecks without any problems, even a nice spinning Discovery from 2001 in orbit of my planet Io.

Posted on: 2010/8/3 16:48
Report Top
Re: Capital Ship Wrecks
Just can't stay away
Joined:
2008/6/9 1:11
Group:
Registered Users
Senior Members
Posts: 304
Offline
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
Open in new window
Quote:
OPR8R wrote:
The massive size of the mod is pure result of its quality...
Report Top
Re: Capital Ship Wrecks
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 2990
Offline
Quote:

Why485 wrote:
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.


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
Report Top
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
Offline
Quote:

Why485 wrote:
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.

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
Open in new window
Report Top
Re: Capital Ship Wrecks
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 2990
Offline
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
Report Top
Re: Capital Ship Wrecks
Just can't stay away
Joined:
2008/6/9 1:11
Group:
Registered Users
Senior Members
Posts: 304
Offline
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
Open in new window
Quote:
OPR8R wrote:
The massive size of the mod is pure result of its quality...
Report Top
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
Offline
Quote:

Why485 wrote:
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.


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
Open in new window
Report Top
Re: Capital Ship Wrecks
Starport Admin
Joined:
2009/2/21 21:42
Group:
Webmasters
Registered Users
Posts: 2990
Offline
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
Report Top
Re: Capital Ship Wrecks
Just can't stay away
Joined:
2008/6/9 1:11
Group:
Registered Users
Senior Members
Posts: 304
Offline
Quote:

FriendlyFire wrote:
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.


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.
Open in new window

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
Open in new window
Quote:
OPR8R wrote:
The massive size of the mod is pure result of its quality...
Report Top
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
Offline
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
Open in new window
Report Top
Re: Capital Ship Wrecks

Joined:
2008/7/22 14:10
Group:
Registered Users
Posts: 22
Offline
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 problem challenge.

The "holes" in the model seen are my fault and will be corrected shortly.


Posted on: 2010/8/4 0:38
Report Top
(1) 2 »