Units fire red lines (instahit)

Moderators: Uveso, burnie222

Units fire red lines (instahit)

Postby CSI » 08 Jul 2017, 12:14

Hi,

So I edited pretty much every .bp file during the last month, it worked fine before I continue the editing with week and suddenly most of the units fire red lines.

In the log it says :
INFO: brnt1hpd:Gauss Cannon:CreateProjectile: no projectile blueprint, doing instahit instead.
INFO: brnt1hpd:Gauss Cannon:CreateProjectile: no projectile blueprint, doing instahit instead.
INFO: brnt1hpd:Gauss Cannon:CreateProjectile: no projectile blueprint, doing instahit instead.
INFO: brnt1hpd:Gauss Cannon:CreateProjectile: no projectile blueprint, doing instahit instead.

But I didn't edit anything in the projectiles folder except the path in the .lua files (because I changed the name of the mod so I can see both mine and the original).
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby Uveso » 08 Jul 2017, 16:10

Hello CSI,

Yes, this INFO message is our warning/error.

Open the file
Code: Select all
BRNT1HPD_unit.bp


search for ProjectileId:
Code: Select all
ProjectileId = '/mods/TotalMayhem/projectiles/BRNT1BTproj/BRNT1BTproj_proj.bp',


And correct the filepath.
(Also check, if the file is in the right folder. Mabye you deleted the projectile folder ?)
User avatar
Uveso
Supreme Commander
 
Posts: 1197
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 44 times
Been liked: 178 times
FAF User Name: Uveso

Re: Units fire red lines (instahit)

Postby Uveso » 08 Jul 2017, 16:25

You can also use my debuggermod to find the right filepath.

install the debuggermod as a normal mod:
http://faforever.uveso.de/forum/UvesoDebuggerV48.zip

Enable the debugger mod and your light mayhem mod. (Only the 2 mods, or the debuggermod dont know what to check)

After starting the game, open the debugwindow [F9].

Now you can debug all projectile ID's of your mod if you press [SHIFT]+[S].
(The game will freeze as long as the mod is searching for files. Can last up to 2 minutes)

If you see a message to delete your blueprintID, then the mod did not find any files matching the blueprint.
But if the file exist, the mod will print the full filepath to copy paste it to the unitblueprint.

PS: Press [SHIFT]+[H] for more keybindings.
User avatar
Uveso
Supreme Commander
 
Posts: 1197
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 44 times
Been liked: 178 times
FAF User Name: Uveso

Re: Units fire red lines (instahit)

Postby CSI » 08 Jul 2017, 17:19

Oooh thanks I didn't see there was a path in the unit.bp file, because all the code is the same color :p
When I edited paths in the .lua files, strings had a specific color you know.

Thanks for the debugger I'll use it for my next mistakes ^^
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby CSI » 08 Jul 2017, 22:12

So another little thing that your debugger didn't solve :

INFO: Can't find texture "/mods/TotalMayhem/textures/particles/mizura_laser_blue.dds" -- trying fallback.

I looked everywhere and didn't see where with path is called. The requested .dds file exists but the parent folder is not TotalMayhem anymore.
Are there other files than .bp and .lua that I need to edit ?

EDIT : I think it's somewhere in the emit.pb files nevermind
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby Uveso » 09 Jul 2017, 17:05

Yes, the unitdebugger only checks units, not emitter or projectiles itself.

Search for the emitter Blueprint file:

Code: Select all
mizura_bluelaser_emit.bp


then search this line:
Code: Select all
TextureName = '/mods/TotalMayhem/textures/particles/mizura_laser_blue.dds',


You know what you have to do then :D

Btw, here is a list with all (448) files, where you need to change the 1130 filepath:

aeonfigther_munition_emit.bp
AeonT2EXTH_polytrails_emit.bp
AeonT3NCM2_polytrails_emit.bp
AeonT3SHPD_polytrails_emit.bp
battlespider_laser_emit.bp
bm2rockethit_12_emit.bp
BRMAT1ADVFIG_unit.bp
BRMAT1EXGS_script.lua
BRMAT1EXGS_unit.bp
BRMAT1INTC_unit.bp
BRMAT2ADVBOMBER_unit.bp
BRMAT2ADVBOMBERproj_script.lua
BRMAT2FIG1_unit.bp
BRMAT2GUNSHIP_script.lua
BRMAT2GUNSHIP_unit.bp
BRMAT3ASUP_unit.bp
BRMBT1PERI_Script.lua
BRMST1BATTLECRUISER_unit.bp
BRMST1DESTR_unit.bp
BRMST3BOMproj_script.lua
BRMT1ADVART_unit.bp
BRMT1ADVBOT_Script.lua
BRMT1ADVBOT_unit.bp
BRMT1ADVBOTRLproj_proj.bp
BRMT1ADVBOTRLproj_script.lua
BRMT1AT_Script.lua
BRMT1AT_unit.bp
BRMT1BEETLE_Script.lua
BRMT1BEETLE_unit.bp
BRMT1BM_unit.bp
BRMT1BM2_unit.bp
BRMT1BMproj_script.lua
BRMT1BT_Script.lua
BRMT1BT_unit.bp
BRMT1BTRLproj_script.lua
BRMT1BTT2_unit.bp
BRMT1BTT3_unit.bp
BRMT1EXM1_unit.bp
BRMT1EXM1proj_script.lua
BRMT1EXTANK_Script.lua
BRMT1EXTANK_unit.bp
BRMT1EXTANKproj_script.lua
BRMT1HT_unit.bp
BRMT1HVYproj_script.lua
BRMT1MT_unit.bp
BRMT1MTproj_script.lua
BRMT1PD_unit.bp
BRMT1PDT2_unit.bp
BRMT2ABT_unit.bp
BRMT2ABTT3_unit.bp
BRMT2BEETLE_Script.lua
BRMT2BEETLE_unit.bp
BRMT2BEETLEproj_script.lua
BRMT2BM_unit.bp
BRMT2EPD_Script.lua
BRMT2EPD_unit.bp
BRMT2EPDproj_script.lua
BRMT2HT_unit.bp
BRMT2HTT3_unit.bp
BRMT2HVY2proj_script.lua
BRMT2HVYproj_script.lua
BRMT2MEDM_Script.lua
BRMT2MEDM_unit.bp
BRMT2PD_unit.bp
BRMT2ST_unit.bp
BRMT2WILDCAT_Script.lua
BRMT2WILDCAT_unit.bp
BRMT3AA_unit.bp
BRMT3ADVBTBOT_polytrails_emit.bp
BRMT3ADVBTBOT_Script.lua
BRMT3ADVBTBOT_unit.bp
BRMT3ADVBTBOTproj_script.lua
BRMT3AVA_unit.bp
BRMT3AVAproj_script.lua
BRMT3AVARLproj_script.lua
BRMT3BM2MK2_Script.lua
BRMT3BM2MK2_unit.bp
BRMT3BM2TLproj_script.lua
BRMT3BMRLproj_script.lua
BRMT3BT_Script.lua
BRMT3BT_unit.bp
BRMT3BTproj_script.lua
BRMT3BTRLproj_script.lua
BRMT3CLOAKER_unit.bp
BRMT3EXBM_Script.lua
BRMT3EXBM_unit.bp
BRMT3EXBMRLproj_script.lua
BRMT3FFAR2proj_script.lua
BRMT3FFARproj_script.lua
BRMT3GARG_unit.bp
BRMT3HAMRLproj_Script.lua
BRMT3HT_unit.bp
BRMT3HT3proj_script.lua
BRMT3LZT_Script.lua
BRMT3LZT_unit.bp
BRMT3MCM_Script.lua
BRMT3MCM_unit.bp
BRMT3MCM2_Script.lua
BRMT3MCM2_unit.bp
BRMT3MCM2proj_script.lua
BRMT3MCM4_Script.lua
BRMT3MCM4_unit.bp
BRMT3MCM4proj_script.lua
BRMT3MCM4RLproj_script.lua
BRMT3ML_unit.bp
BRMT3MLproj_script.lua
BRMT3PD_unit.bp
BRMT3PDproj_script.lua
BRMT3PDRO_unit.bp
BRMT3PDROproj_script.lua
BRMT3RAP_unit.bp
BRMT3RAPproj_script.lua
BRMT3SNAKE_Script.lua
BRMT3SNAKE_unit.bp
BRMT3VUL_unit.bp
BRNAT1ADVFIG_unit.bp
BRNAT1ADVFIGproj_proj.bp
BRNAT1ADVFIGproj_script.lua
BRNAT1EXGS_script.lua
BRNAT1EXGS_unit.bp
BRNAT1INTC_unit.bp
BRNAT2FIGHTER_unit.bp
BRNAT2FIGHTERproj_proj.bp
BRNAT2FIGHTERproj_script.lua
BRNAT3BOMBER_Script.lua
BRNAT3BOMBER_unit.bp
BRNAT3BOMBERproj_script.lua
BRNBAAFAC_Script.lua
BRNBAAFAC_unit.bp
BRNBT1PERI_Script.lua
BRNST1ARTILLERY_unit.bp
BRNST1BATTLESHIP_unit.bp
BRNST2ADVBATTLESHIP_unit.bp
BRNST2ADVBATTLESHIPproj_script.lua
BRNT1ADVBOT_unit.bp
BRNT1ADVBOTproj_script.lua
BRNT1ADVNAVYGUN_unit.bp
BRNT1BT_Script.lua
BRNT1BT_unit.bp
BRNT1BTproj_script.lua
BRNT1BTRLproj_script.lua
BRNT1BTT2_Script.lua
BRNT1BTT2_unit.bp
BRNT1EXART_unit.bp
BRNT1EXM1_unit.bp
BRNT1EXM1proj_script.lua
BRNT1EXMOB_Script.lua
BRNT1EXMOB_unit.bp
BRNT1EXTK_Script.lua
BRNT1EXTK_unit.bp
BRNT1HPD_unit.bp
BRNT1HPDT2_unit.bp
BRNT1HT_Script.lua
BRNT1HT_unit.bp
BRNT1HTT2_Script.lua
BRNT1HTT2_unit.bp
BRNT1HTT3_Script.lua
BRNT1HTT3_unit.bp
BRNT1MT_unit.bp
BRNT1MTproj_script.lua
BRNT1MTT2_unit.bp
BRNT1MTT3_unit.bp
BRNT2BM_unit.bp
BRNT2BT_unit.bp
BRNT2BTproj_script.lua
BRNT2EPD_unit.bp
BRNT2EPDproj_script.lua
BRNT2EPDT3_unit.bp
BRNT2EXART_unit.bp
BRNT2EXARTproj_script.lua
BRNT2EXLM_Script.lua
BRNT2EXLM_unit.bp
BRNT2EXLMproj_script.lua
BRNT2EXM1_Script.lua
BRNT2EXM1_unit.bp
BRNT2EXM2_Script.lua
BRNT2EXM2_unit.bp
BRNT2EXM2proj_script.lua
BRNT2EXMDF_Script.lua
BRNT2EXMDF_unit.bp
BRNT2HT_unit.bp
BRNT2HTproj_script.lua
BRNT2HTRLproj_script.lua
BRNT2HTT3_unit.bp
BRNT2MTRLproj_script.lua
BRNT2PD2_Script.lua
BRNT2PD2_unit.bp
BRNT2POTSHOT_unit.bp
BRNT2SNIPER_Script.lua
BRNT2SNIPER_unit.bp
BRNT2SNIPERproj_script.lua
BRNT3AA_Script.lua
BRNT3AA_unit.bp
BRNT3ABB_unit.bp
BRNT3ABBproj_script.lua
BRNT3ADVBTBOT_Script.lua
BRNT3ADVBTBOT_unit.bp
BRNT3ARGUS_unit.bp
BRNT3ARGUSLASERproj_script.lua
BRNT3ARGUSMINIproj_script.lua
BRNT3BAT_unit.bp
BRNT3BLASP_unit.bp
BRNT3BLASPproj_script.lua
BRNT3BT_unit.bp
BRNT3BTproj_script.lua
BRNT3BTRLproj_script.lua
BRNT3DOOMSDAY_Script.lua
BRNT3DOOMSDAY_unit.bp
BRNT3DOOMSDAYproj_script.lua
BRNT3DOOMSGUNproj_script.lua
BRNT3FFARproj_script.lua
BRNT3HT_unit.bp
BRNT3ML_unit.bp
BRNT3MLproj_script.lua
BRNT3MOBproj_script.lua
BRNT3OW_unit.bp
BRNT3PDRO_unit.bp
BRNT3PDROproj_script.lua
BRNT3PERSES_Script.lua
BRNT3SHBM_Script.lua
BRNT3SHBM_unit.bp
BRNT3SHBM2_Script.lua
BRNT3SHBM2_unit.bp
BRNT3SHBM2EMPproj_script.lua
BRNT3SHBM2proj_script.lua
BRNT3SHBMNEWRL2Aproj_script.lua
BRNT3SHBMNEWRL2proj_script.lua
BRNT3SHBMNEWRLAproj_script.lua
BRNT3SHBMNEWRLproj_script.lua
BRNT3SHBMproj_script.lua
BRNT3SHPD_Script.lua
BRNT3SHPD_unit.bp
BRNT3SHPDproj_script.lua
BRNT3WKproj_script.lua
BRNT3WKRLproj_script.lua
BROAT1EXGS_script.lua
BROAT1EXGS_unit.bp
BROAT1FIG_unit.bp
BROAT1FIGproj_script.lua
BROAT1INTC_unit.bp
BROAT2EXGS_script.lua
BROAT2EXGS_unit.bp
BROAT2FIBO_unit.bp
BROAT3BOMBER_Script.lua
BROAT3BOMBER_unit.bp
BROAT3BOMBERproj_script.lua
BROAT3PRIDE_personalshield_mesh.bp
BROAT3PRIDE_script.lua
BROAT3PRIDE_unit.bp
BROAT3PRIDEproj_Script.lua
BROAT3PRIDESMALLproj_Script.lua
BROBT1PERI_Script.lua
BROBT1PERI_unit.bp
BROST1BATTLESHIP_unit.bp
BROST1DESTR_unit.bp
BROST2ADVBATTLESHIP_unit.bp
BROST2ADVBATTLESHIPproj_script.lua
BROST3BSHIP_unit.bp
BROST3BSHIPproj_Script.lua
BROT1ADVNAVYGUN_unit.bp
BROT1BT_Script.lua
BROT1BT_unit.bp
BROT1BTCLAWproj_script.lua
BROT1BTproj_script.lua
BROT1BTT2_Script.lua
BROT1BTT2_unit.bp
BROT1BTT2a_Script.lua
BROT1BTT2a_unit.bp
BROT1BTT3_Script.lua
BROT1BTT3_unit.bp
BROT1EXM1_Script.lua
BROT1EXM1_unit.bp
BROT1EXM1proj_script.lua
BROT1EXM2_Script.lua
BROT1EXM2_unit.bp
BROT1EXM2proj_script.lua
BROT1EXMOBART_Script.lua
BROT1EXMOBART_unit.bp
BROT1EXMOBART2proj_script.lua
BROT1EXMOBARTproj_script.lua
BROT1EXPD_Script.lua
BROT1EXTANK_Script.lua
BROT1EXTANK_unit.bp
BROT1HPD_unit.bp
BROT1MT_unit.bp
BROT1MTT2_unit.bp
BROT1MTT3_unit.bp
BROT1PDROproj_script.lua
BROT2ASB_Script.lua
BROT2ASB_unit.bp
BROT2EPD_Script.lua
BROT2EPD_unit.bp
BROT2EXBM_Script.lua
BROT2EXBM_unit.bp
BROT2EXBMproj_Script.lua
BROT2EXM2_Script.lua
BROT2EXM2_unit.bp
BROT2EXTH_Script.lua
BROT2EXTH_unit.bp
BROT2EXTHproj_Script.lua
BROT2HT_Script.lua
BROT2HT_unit.bp
BROT2HTproj_Script.lua
BROT2MLproj_script.lua
BROT2MT_Script.lua
BROT2MT_unit.bp
BROT2MTproj_script.lua
BROT2MTRLproj_script.lua
BROT3AA_Script.lua
BROT3AA_unit.bp
BROT3ABB_Script.lua
BROT3ABB_unit.bp
BROT3ABBproj_Script.lua
BROT3BT_personalshield_mesh.bp
BROT3BT_Script.lua
BROT3BT_unit.bp
BROT3BT2_personalshield_mesh.bp
BROT3BT2_Script.lua
BROT3BT2_unit.bp
BROT3BTBOT_unit.bp
BROT3BTBOT2proj_script.lua
BROT3BTBOTproj_script.lua
BROT3BTproj_Script.lua
BROT3COUG_Script.lua
BROT3COUG_unit.bp
BROT3COUGproj_Script.lua
BROT3EXM1_Script.lua
BROT3EXM1_unit.bp
BROT3EXM1proj_Script.lua
BROT3HADES_Script.lua
BROT3HADES_unit.bp
BROT3HADES2proj_Script.lua
BROT3HADESproj_Script.lua
BROT3HAM_unit.bp
BROT3HM_unit.bp
BROT3HTproj_Script.lua
BROT3ML_Script.lua
BROT3ML_unit.bp
BROT3ML2proj_Script.lua
BROT3MLproj_script.lua
BROT3NCM_Script.lua
BROT3NCM_unit.bp
BROT3NCM2_Script.lua
BROT3NCM2_unit.bp
BROT3NCM2proj_Script.lua
BROT3NCMPproj_script.lua
BROT3NCMproj_script.lua
BROT3NCNlaserproj_script.lua
BROT3PDRO_unit.bp
BROT3PDROproj_script.lua
BROT3SHBM_unit.bp
BROT3SHBMEMPproj_script.lua
BROT3SHBMproj_Script.lua
BROT3SHPD_unit.bp
BROT3SHPD2proj_Script.lua
BROT3SHPDproj_Script.lua
BROT3THproj_Script.lua
BRPAT1ADVBOMB_unit.bp
BRPAT1EXGUNSHIP_script.lua
BRPAT1EXGUNSHIP_unit.bp
BRPAT2FIGBO_unit.bp
BRPBT1PERI_Script.lua
BRPT1ASTA_unit.bp
BRPT1BT_unit.bp
BRPT1BTBOT_unit.bp
BRPT1EXM1_unit.bp
BRPT1EXPBOT_unit.bp
BRPT1EXTANK2_script.lua
BRPT1EXTANK2_unit.bp
BRPT1EXTANK2proj_Script.lua
BRPT1HT_unit.bp
BRPT1PD_unit.bp
BRPT2EXBOT_unit.bp
BRPT2HVBOT_unit.bp
BRPT3BT_unit.bp
BRPT3ML_unit.bp
BRPT3SHBM_script.lua
BRPT3SHBM_unit.bp
BRPT3SHBMproj_Script.lua
comedaeon_fire_emit.bp
comedred_fire_emit.bp
comedred2_fire_emit.bp
cybran_advancedt1tank_polytrail_01_emit.bp
CybranBattleMechRockets_Script.lua
darkfireblue_emit.bp
fireblue_emit.bp
gamecommon.lua
green_gatling_plasma_cannon_polytrail_01_emit.bp
green_gatling_plasma_cannon_polytrail_02_emit.bp
green_gatling_plasma_cannon_polytrail_03_emit.bp
HeavyLaserPolyTrail_polytrail_01_emit.bp
HvyClawproj_script.lua
landgauss_cannon_hit_05_emit.bp
landgauss_cannon_hit_05a_emit.bp
landgauss_cannon_hit_05b_emit.bp
LightLaserPolyTrail_polytrail_01_emit.bp
madcatmk4laser_emit.bp
MadCatMolecular_script.lua
MadCatMolecular2_script.lua
MadCatRockets_script.lua
mizura_bluelaser_emit.bp
mod_info.lua
novacat_bluelaser_emit.bp
novacat_greenlaser_emit.bp
NULLWEAPON_script.lua
pridehitflames.bp
pridehitflames2.bp
pridehitflames3.bp
red_gatling_plasma_cannon_polytrail_01_emit.bp
red_gatling_plasma_cannon_polytrail_02_emit.bp
red_gatling_plasma_cannon_polytrail_03_emit.bp
seramegabot_04_emit.bp
seramegabot_04a_emit.bp
seramegabot_04b_emit.bp
seramegabot_07_emit.bp
seramegabot_07a_emit.bp
seramegabot_08_emit.bp
seramegabot_08a_emit.bp
seramegabot_09_emit.bp
seramegabot_09a_emit.bp
seramegabot_09b_emit.bp
seramegabot_10_emit.bp
seramegabot_10a_emit.bp
seramegabot_10b_emit.bp
TMAeonWeapons.lua
TMavaEffectTemplates.lua
TMavaprojectiles.lua
TMcollisionbeams.lua
TMEffectTemplates.lua
TMprojectiles.lua
tmwhiteglowbig_emit.bp
UAB1108_unit.bp
UEB1107_unit.bp
UEB1108_unit.bp
uefexmgauss_cannon_hit_05_emit.bp
UEFT2EXART_polytrails_emit.bp
UEFT2Exocet_script.lua
uiutil.lua
unitview.lua
URB1107_unit.bp
URB1108_unit.bp
vulture_polytrail_01_emit.bp
w_u_gau03_p_01_polytrails_emit.bp
w_u_gau03_p_02_polytrails_emit.bp
w_u_gau03_p_03_brightglow_emit.bp
w_u_gau03_p_04_smoke_emit.bp
XSB1108_unit.bp
yellowlaser_polytrail_01_emit.bp

(Yes there is a short way to change them all!)
User avatar
Uveso
Supreme Commander
 
Posts: 1197
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 44 times
Been liked: 178 times
FAF User Name: Uveso

Re: Units fire red lines (instahit)

Postby CSI » 09 Jul 2017, 21:30

Yeah thanks I solved all this ^^

About my arti problem, here is the code of the weapon : https://pastebin.com/A3LnNAjx

As you can se I tried setting the pitch range to 360 but it doesn't change anything.
Also how do I add the cooldown bar ?
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby Uveso » 10 Jul 2017, 00:14

Set the MuzzleVelocity to 35:

Code: Select all
MuzzleVelocity = 35,
User avatar
Uveso
Supreme Commander
 
Posts: 1197
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 44 times
Been liked: 178 times
FAF User Name: Uveso

Re: Units fire red lines (instahit)

Postby CSI » 10 Jul 2017, 01:42

Yeah it worked, I don't understand why but okay.

So I can set the pitch range back to 60 ? And what about the cooldown bar ? Thx

EDIT : Ok I found RenderFireClock = true
CSI
Avatar-of-War
 
Posts: 100
Joined: 09 Apr 2017, 18:59
Has liked: 18 times
Been liked: 5 times
FAF User Name: CSI

Re: Units fire red lines (instahit)

Postby Uveso » 10 Jul 2017, 03:10

Yes you can reset the pitch back to 60. It was just a guess.

Why a higer MuzzleVelocity ?

Well, a slow projectile has a lower range then a fast projectile.

If you increase the range of the weapon, then you need a faster projectile.
User avatar
Uveso
Supreme Commander
 
Posts: 1197
Joined: 11 Dec 2015, 20:56
Location: Germany
Has liked: 44 times
Been liked: 178 times
FAF User Name: Uveso

Next

Return to Total Mayhem

Who is online

Users browsing this forum: No registered users and 1 guest