Jump to content

Forums Announcement

Read-Only Mode for Announcements & Changelogs

Dear Survivors, we'd like to inform you that this forum will transition to read-only mode. From now on, it will serve exclusively as a platform for official announcements and changelogs.

For all community discussions, debates, and engagement, we encourage you to join us on our social media platforms: Discord, Twitter/X, Facebook.

Thank you for being a valued part of our community. We look forward to connecting with you on our other channels!

Stay safe out there,
Your DayZ Team

Sign in to follow this  
Heeeere's johnny!

Custom building_spawnLoot.sqf file and diag_log problem

Recommended Posts

Hey guyz,

I've got an issue which allmost drives me crazy. In order to see what loot spawns in buildings, I wanted to put a simple RPT log output line into the building_spawnLoot.sqf.

Therefor, I put the compiles.sqf and the building_spawnLoot.sqf (both client files in the dayz_code.pbo) into a "fixes" folder in my dayz_mission.pbo and changed the following line in the compiles.sqf:

building_spawnLoot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\building_spawnLoot.sqf";

to

building_spawnLoot = compile preprocessFileLineNumbers "fixes\building_spawnLoot.sqf";

I tried it unchanged and it worked without any problems. But then, I wanted to add this line to the building_spawnLoot.sqf:

diag_log(format["Building_spawnLoot: _obj = %1 | _type = %2 | _config = %3", _obj, _type, _config]);

I've moved it around in the whole file, put it at various locations, but it never shows up in ANY log. Neither RPT, nor any other.

Why is that? What am I doing wrong? And by the way: Am I actually using the right file or should I use the loot_init.sqf?

Have a nice play,

Heeeere's Johnny!

Edited by Heeeere's Johnny

Share this post


Link to post
Share on other sites
Sign in to follow this  

×