Important Message

You are browsing the archived Lancers Reactor forums. You cannot register or login.
The content may be outdated and links may not be functional.


To get the latest in Freelancer news, mods, modding and downloads, go to
The-Starport

Shielded Weapon Platform

The general place to discuss MOD''ing Freelancer!

Post Sat Sep 10, 2005 8:19 pm

Shielded Weapon Platform

As the thread title indicates, I want to make a shielded weapon platform. Cutting straight to business, here is my SolarArch.ini entry:

[Solar
nickname = wplatform_armored_shielded
LODranges = 0, 200, 400, 4000
ids_name = 261164
ids_info = 66171
type = WEAPONS_PLATFORM
DA_archetype = solar\misc\weapons_platform_lod.cmp
material_library = solar\Solar_mat_dockable03.mat
material_library = fx\envmapbasic.mat
envmap_material = envmapbasic
mass = 10000.000000
shield_link = w_platform_shield01, HpMount01, HpShield01
loadout = weapon_platform
solar_radius = 300
shape_name = NAV_weaponplatform
destructible = true
explosion_arch = explosion_wplatform
hit_pts = 10000

And my loadouts.ini entry:

[Loadout
nickname = weapon_platform_armored_shielded_lsf_01
archetype = wplatform_armored_shielded
equip = infinite_power
equip = ge_s_scanner_02
equip = SlowLargeYellow, HpRunningLight01
equip = SlowLargeRed, HpRunningLight02
equip = SlowLargeRed, HpRunningLight03
equip = SlowLargeRed, HpRunningLight04
equip = SlowLargeYellow, HpRunningLight05
equip = SlowLargeRed, HpRunningLight06
equip = SlowLargeRed, HpRunningLight07
equip = SlowLargeRed, HpRunningLight08
equip = SlowLargeRed, HpRunningLight09
equip = SlowLargeRed, HpRunningLight10
equip = li_wp_turret01_mark03, HpTurret01
equip = li_wp_turret02_mark03, HpTurret02
equip = li_wp_turret01_mark03, HpTurret03
equip = li_wp_turret02_mark03, HpTurret04
equip = armor_scale_17
equip = npc_shield01_mark10, HpShield01
equip = weapon_platform_tower1
equip = weapon_platform_tower2
equip = weapon_platform_radar1
equip = weapon_platform_radar2

And finally, my select_equip.ini entry:

[Shield
nickname = w_platform_shield01
;DA_archetype = solar\misc\weapons_platform_lod.sur <---- Causes crash; I know why.
DA_archetype = solar\misc\dyson_door_shield.3db
HP_child = SpConnect

Also note that I've added two hardpoints to the weapons_platform_lod.cmp; HpMount01 and HpShield01. I launch into the system just fine, but the weapon platform has no shield. Help here?

MK

Post Sat Sep 10, 2005 9:57 pm

maybe because weapon platforms have no SpConnect,which i presume stands for shield point

Post Sat Sep 10, 2005 10:33 pm

Having messed with this... I'd have to say that this line is probably the main problem:

shield_link = w_platform_shield01, HpMount01, HpShield01

Instead, use li_freighter_shield or whatever.

And whatever SUR you use should probably have its Type converted with FLModel Tool to "ship/station".

BTW, I'm not sure what, if anything, the Shield 3DBs do at this point. I've investigated this to some degree, but I'm still not sure what they're for, if anything. One day when I have some time, I'll take another look at this issue, because Colin's new 3DB Export Plugin will allow me to do some serious messing about.

Post Sun Sep 11, 2005 2:10 am

Duh, I need to read properly

But looking at the dyson city shield as an example - yes it has a dyson city shield in the select_equip, but it also has this entry - which is actually mounted

[ShieldGenerator
nickname = dyson_city_shield_gen01
DA_archetype = solar\misc\dyson_platform.3db
material_library = solar\solar_mat_dyson_city.mat
ids_name = 0
ids_info = 0
mass = 0
volume = 2
hit_pts = 500000000
HP_child = HpFx01
debris_type = debris_normal
regeneration_rate = 1000000
constant_power_draw = 0
rebuild_power_draw = 0
max_capacity = 1000000000
offline_rebuild_time = 0.001000
offline_threshold = 0.001000
shield_hit_effects = 0, gf_TLR_shield01
shield_collapse_sound = tl_disrupt
shield_collapse_particle = gf_TLR_powerout
shield_rebuilt_sound = tl_regenerate

Maybe you need a more comprehensive entry like this instead? I see no mention of where your hitpoints or anything else for your shield come from - so no wonder its not working, it has no energy...


Edited by - Chips on 9/11/2005 3:59:31 AM

Post Sun Sep 11, 2005 2:33 am

I did try i similar thing a while ago, i wanted to have shield generators and powerplants on weapon platforms that could be targetted and blown off to disable the platform instead.
I'd say that looking through SDK in select_equip there aren't any references to sur files at all. For the archetype, just use a typical shield generator. The archetype would be the mountable object (the box), then add hit effects similar to a small ship instead.

Post Sun Sep 11, 2005 2:11 pm

It works! M-A-C-E had the idea:

shield_link = w_platform_shield01, HpMount01, HpShield01 <----- I changed this line.

It now reads:

shield_link = npc_shield01_mark10, HpMount01, HpShield01

Thanks for the help guys.

MK

Return to Freelancer General Editing Forum