[Code]Some more possible code bugs

If you find a bug within PR:BF2 (including PRSP), please report it here.
Post Reply
User avatar
Senshi
PR:BF2 Developer
Posts: 358
Joined: 2010-04-29 10:44

[Code]Some more possible code bugs

Post by Senshi »

My parser is getting better and better, and as such it finds more trouble:

Code: Select all

INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\faction_init.con, but does not exist: ../common/tr_scripts/buis/disable.con
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\faction_init.con, but does not exist: ../menu/HUD/HudSetup/Customization/HudCustomizationReset.con
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\faction_init.con, but does not exist: ../menu/HUD/HudSetup/Customization/HudCustomization.con
WARNING: File G:\Project Reality BF2\mods\pr_edit\objects\vehicles\air\ru_the_mi8\ru_the_mi8.tweak has a malformed activeSafe call. Look for: [ObjectTemplate.activeSafe, S_ru_the_mi8_Cargo_Passenger_Camera_RotationRpm]
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\armament\supply\supply_drop_bighelo.con, but does not exist: supply_drop_bighelo.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\chhgr_type82\chhgr_type82_projectile\chhgr_type82_projectile.con, but does not exist: chhgr_type82_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\f1grenade\f1grenade_projectile\f1grenade_projectile.con, but does not exist: f1grenade_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\frhgr_of37\frhgr_of37_projectile\frhgr_of37_projectile.con, but does not exist: frhgr_of37_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\frhgr_smoke\frhgr_smoke_projectile\frhgr_smoke_projectile.con, but does not exist: frhgr_smoke_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\gbhgr_l109\gbhgr_l109_projectile\gbhgr_l109_projectile.con, but does not exist: gbhgr_l109_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\gerhgr_dm51\gerhgr_dm51_projectile\gerhgr_dm51_projectile.con, but does not exist: gerhgr_dm51_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\hgr_smoke\hgr_smoke_projectile\hgr_smoke_projectile.con, but does not exist: hgr_smoke_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\hgr_smoke_signal\hgr_smoke_signal_projectile\hgr_smoke_signal_projectile.con, but does not exist: hgr_smoke_signal_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\hgr_smoke_vietnam\hgr_smoke_vietnam_projectile\hgr_smoke_vietnam_projectile.con, but does not exist: hgr_smoke_vietnam_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\ied_warning_stones\ied_warning_stones_projectile\ied_warning_stones_projectile.con, but does not exist: ied_warning_stones_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\handheld\ushgr_m67\ushgr_m67_projectile\ushgr_m67_projectile.con, but does not exist: ushgr_m67_projectile.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\stationary\common_stationary_mount\common_stationary_mount.con, but does not exist: common_stationary_mount.tweak
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\weapons\stationary\mk19_mount\mk19_mount.con, but does not exist: mk19_mount.tweak
Most are once again about missing include files, but the warning one is definitely an actual bug. Not super-critical, because it's just the cockpit idle sound missing, but still:

Line 208 in objects\vehicles\air\ru_the_mi8\ru_the_mi8.tweak reads

Code: Select all

ObjectTemplate.activeSafe S_ru_the_mi8_Cargo_Passenger_Camera_RotationRpm
and very probably should actually be

Code: Select all

ObjectTemplate.activeSafe Sound S_ru_the_mi8_Cargo_Passenger_Camera_RotationRpm
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: [Code]Some more possible code bugs

Post by Mats391 »

Thanks again!
These are false tho :)

Code: Select all

INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\faction_init.con, but does not exist: ../common/tr_scripts/buis/disable.con
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\faction_init.con, but does not exist: ../menu/HUD/HudSetup/Customization/HudCustomizationReset.con
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\objects\faction_init.con, but does not exist: ../menu/HUD/HudSetup/Customization/HudCustomization.con
Looks like your pr_edit is set up wrong. The faction_init.con belongs to pr_edit/factions not pr_edit/objects. Other files that belong in there would be the folders "spawners" and "muzzleflas_night"
User avatar
Senshi
PR:BF2 Developer
Posts: 358
Joined: 2010-04-29 10:44

Re: [Code]Some more possible code bugs

Post by Senshi »

Ah right. Currently I just move all the .zips from content to objects and use "unzip here". Worked fine so far, as I was mostly interested in vehicles and handweapons.
Looks like I shouldn't neglect parsing the server/clientarchives.con as well to get my sources in order :) .

Thanks for the hint!
User avatar
Senshi
PR:BF2 Developer
Posts: 358
Joined: 2010-04-29 10:44

Re: [Code]Some more possible code bugs

Post by Senshi »

And once more:

Code: Select all

INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\Objects\vehicles\land\us_tnk_m67\us_tnk_m67.tweak, but does not exist: ../../../common/recoil.con
INFO: The following file was referenced by an 'include' call in G:\Project Reality BF2\mods\pr_edit\Objects\vehicles\land\us_tnk_m67\us_tnk_m67.tweak, but does not exist: ../../../common/deviation.con
Line 685ff of that file is

Code: Select all

rem ---BeginComp:WeaponBasedRecoilComp ---
include ../../../common/recoil.con "hmg" "m2hb"
rem ---EndComp ---
rem ---BeginComp:SimpleDeviationComp ---
include ../../../common/deviation.con "hmg" "m2hb"
and probably should be

Code: Select all

rem ---BeginComp:WeaponBasedRecoilComp ---
include ../../../weapons/common/recoil.con "hmg" "m2hb"
rem ---EndComp ---
rem ---BeginComp:SimpleDeviationComp ---
include ../../../weapons/common/deviation.con "hmg" "m2hb"
User avatar
Senshi
PR:BF2 Developer
Posts: 358
Joined: 2010-04-29 10:44

Re: [Code]Some more possible code bugs

Post by Senshi »

*nudges at above* Not yet acknowledged :) .


This time, I come with a map error. Maps are chock-full of errors, but most are very harmless.

Code: Select all

ERROR: File G:\Project Reality BF2\mods\pr_edit\levels\vadso_city\TriggerableTemplates.con has a malformed activeSafe call. Look for: [ObjectTemplate.activeSafe, S_Triggerable_burglerAlarm_Startup]
See line 58 of TriggerableTemplates.con. Same issue as with the Mi8, a missing "sound" identifier in the middle.
PLODDITHANLEY
Posts: 3608
Joined: 2009-05-02 19:44

Re: [Code]Some more possible code bugs

Post by PLODDITHANLEY »

What is the impact of these errors for a player?
User avatar
Senshi
PR:BF2 Developer
Posts: 358
Joined: 2010-04-29 10:44

Re: [Code]Some more possible code bugs

Post by Senshi »

*Necro* Because the Vadso errors still exists.

@Plodd: Nothing significant. In this case I assume it leads to a couple of missing environmental sounds on Vadso that the mapper had intended to appear.
User avatar
Mats391
PR:BF2 Lead Developer
Posts: 7643
Joined: 2010-08-06 18:06

Re: [Code]Some more possible code bugs

Post by Mats391 »

Last time i fixed these, i broke Hades Peak jet layouts. Will let someone else do it :p
Image

Mineral: TIL that Wire-guided missiles actually use wire
User avatar
Senshi
PR:BF2 Developer
Posts: 358
Joined: 2010-04-29 10:44

Re: [Code]Some more possible code bugs

Post by Senshi »

How would you kill Hades Peak when you are editing Vadso. :confused:
Post Reply

Return to “PR:BF2 Bugs”