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

Bugging me

The general place to discuss MOD''ing Freelancer!

Post Fri Feb 10, 2006 4:33 pm

Bugging me

Hey all, I'm trying to make a new weapon completely from scratch, and I've come so far as to fire the weapon and not cause a CTD.

My last dilema is that when I fire the weapon, theres no projectile. As in: It's invisible. Sorry if this is in an FAQ and I overlooked it, I did a lot of searching, believe me.

I've looked over my effects and beam_effects.ini, plus the weaponequip.ini to check for consistency, but it just wont work. I'll list my codes below.

Effects.ini
[Effect
nickname = fp_photon_04_proj
effect_type = EFT_WEAPON_PROJ
vis_beam = fp_photon_04_proj

Beam_effects.ini ((The colors aren't permanent, I was just trying to get it to work))
[BeamSpear
nickname = fp_photon_04_beam
tip_length = 20
tail_length = 30
head_width = 1.700000
core_width = 5.000000
tip_color = 255, 255, 255
core_color = 255, 255, 255
outter_color = 255, 255, 255
tail_color = 255, 255, 255
head_brightness = 2
trail_brightness = 2
head_texture = star
trail_texture = thin
flash_size = 4

Weapons_ale.ini ((The error might be here))

[VisEffect
nickname = fp_photon_04_proj
alchemy = fx\weapons\ci_photon_04.ale
effect_crc = -443261545 What does this mean, btw?
textures = fx\sarma.txm
textures = fx\standardeffects.txm
textures = fx\smoke.txm
textures = fx\photon.txm

weapon_equip.ini

[Munition
nickname = fp_gun01_mark01_ammo
hp_type = hp_gun
requires_ammo = false
hit_pts = 2
hull_damage = 600
energy_damage = 50
weapon_type = W_Photon01
one_shot_sound = fire_photon5
munition_hit_effect = pi_pulse_03_impact
const_effect = fp_photon_04_proj
lifetime = 10.000000
force_gun_ori = false
mass = 1
volume = 0.000100

[Gun
nickname = fp_gun01_mark01
ids_name = 300001
ids_info = 300001
DA_archetype = equipment\models\weapons\li_laser_beam.cmp
material_library = equipment\models\li_equip.mat
HP_child = HPConnect
hit_pts = 600
explosion_resistance = 1.000000
debris_type = debris_normal
parent_impulse = 20
child_impulse = 80
volume = 0.000000
mass = 10
hp_gun_type = hp_gun_special_10
damage_per_fire = 0
power_usage = 450.000000
refire_delay = 0.100000
muzzle_velocity = 750
use_animation = Sc_fire
toughness = 3.000000
flash_particle_name = ku_photon_01_flash
flash_radius = 15
light_anim = l_gun01_flash
projectile_archetype = fp_gun01_mark01_ammo
separation_explosion = sever_debris
auto_turret = false
turn_rate = 90
lootable = false
LODranges = 0, 20, 40, 80, 100

Edited by - Drako_Starblast on 2/10/2006 4:33:39 PM

Post Fri Feb 10, 2006 5:49 pm

its the ale - you can't rename the viseffect entry because the nickname of the viseffect is a cue to the actual .ale library as to which animation instructions to use(?) - the CRC is an anti-cheat/network security & redundancy check afaik

you can make as many {effect} entries as you need, using all sorts of ALE's but you can't rename the viseffects themselves

also you got your beam/proj mixed up in the {effect} entry - you want vis_beam = whatsit_beam & vis_effect = whatsit_proj

so:

Effects.ini
[Effect
nickname = fp_photon_04_proj
effect_type = EFT_WEAPON_PROJ
vis_beam = fp_photon_04_beam
vis_effect = ci_photon_04_proj

Beam_effects.ini ((The colors aren't permanent, I was just trying to get it to work))
[BeamSpear
nickname = fp_photon_04_beam
tip_length = 20
tail_length = 30
head_width = 1.700000
core_width = 5.000000
tip_color = 255, 255, 255
core_color = 255, 255, 255
outter_color = 255, 255, 255
tail_color = 255, 255, 255
head_brightness = 2
trail_brightness = 2
head_texture = star
trail_texture = thin
flash_size = 4

Weapons_ale.ini ((The error is here))

[VisEffect
nickname = ci_photon_04_proj;<-restored
alchemy = fx\weapons\ci_photon_04.ale
effect_crc = -443261546;<-restored, was -443261545
textures = fx\sarma.txm
textures = fx\standardeffects.txm
textures = fx\smoke.txm
textures = fx\photon.txm

weapon_equip.ini

[Munition
nickname = fp_gun01_mark01_ammo
hp_type = hp_gun
requires_ammo = false
hit_pts = 2
hull_damage = 600
energy_damage = 50
weapon_type = W_Photon01
one_shot_sound = fire_photon5
munition_hit_effect = ci_photon_04_impact ;<-just a little perfectionism
const_effect = fp_photon_04_proj
lifetime = 10.000000
force_gun_ori = false
mass = 1
volume = 0.000100

[Gun
nickname = fp_gun01_mark01
ids_name = 300001
ids_info = 300001
DA_archetype = equipment\models\weapons\li_laser_beam.cmp
material_library = equipment\models\li_equip.mat
HP_child = HPConnect
hit_pts = 600
explosion_resistance = 1.000000
debris_type = debris_normal
parent_impulse = 20
child_impulse = 80
volume = 0.000000
mass = 10
hp_gun_type = hp_gun_special_10
damage_per_fire = 0
power_usage = 450.000000
refire_delay = 0.100000
muzzle_velocity = 750
use_animation = Sc_fire
toughness = 3.000000
flash_particle_name = ku_photon_01_flash
flash_radius = 15
light_anim = l_gun01_flash
projectile_archetype = fp_gun01_mark01_ammo
separation_explosion = sever_debris
auto_turret = false
turn_rate = 90
lootable = false
LODranges = 0, 20, 40, 80, 100

hope that helps/works

Edited by - Cold_Void on 2/10/2006 5:51:50 PM

Post Fri Feb 10, 2006 6:48 pm

Awesome! Big big thanks =D It was annoying and baffling me.

Thanks again

Return to Freelancer General Editing Forum