Gweincalar
New Member
Did everything like you said but somehow the tents still are not saving/updating after the server has been restarted.Unfortunately this won't get us very far. It may solve the immediate issue of the deletion but it's being deleted as a cleanup since the tent is not getting assigned a correct UID. It is being given an ID of 0, which according to the above (and to my logs) cannot happen. So the tent will still not get sent to database. Commenting that line simply lets the game continue to try and publish the invalid ID.
Which leads to this log spam:
Code:22:32:46 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:32:46 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:32:46 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:00 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:12 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:15 Server: Object 3:155 not found (message 94) 22:33:15 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:16 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:17 Server: Object 3:157 not found (message 70) 22:33:17 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:17 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:17 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:30 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:42 "DEBUG: Deleting object TentStorage with invalid ID at [6885.76,11463.1,0.000823975]" 22:33:52 "DELETE: Deleted by UID: 0"
But hey I got good newsI got a fix finally...
Reality users! If you are still having problems getting this add-on working...
Make 100% sure you have daimyo's original BB1.2 working on your server. Once you know that, follow the directions by Kikyou2, make the changes shown in this post and in my server_publishObject.
Bliss Users!
Same as Reality, but you need also need to follow La.usch.io's post on database tweaks...
Now...
Inside Player_Build.sqf, near the bottom...
Replace this:
Code:// Send to database _fuel = _code / 1000; //added to calculate valid fuel value for the database _object setVariable ["characterID",dayz_playerUID,true]; dayzPublishObj = [dayz_playerUID,_object,[_dir,_location],_classname,_fuel,_code]; //added _code to pass to the publishObj function to prevent calculation errors publicVariableServer "dayzPublishObj"; } else {cutText ["You need the EXACT amount of whatever you are trying to build without extras.", "PLAIN DOWN"];call _funcExitScript;};
With this:
Code:if ((typeOf _object) in allbuildables_class) then { // Send to database if part of the buildlist array _fuel = _code / 1000; //added to calculate valid fuel value for the database _object setVariable ["characterID",dayz_playerUID,true]; dayzPublishObj = [dayz_playerUID,_object,[_dir,_location],_classname,_fuel,_code]; //added _code to pass to the publishObj function to prevent calculation errors publicVariableServer "dayzPublishObj"; } else { //Send to database if part of _allowedObjects _object setVariable ["characterID",dayz_characterID,true]; dayzPublishObj = [dayz_characterID,_object,[_dir,_location],_classname]; publicVariableServer "dayzPublishObj"; }; } else { //Exits construction if you don't have the exact materials cutText ["You need the EXACT amount of whatever you are trying to build without extras.", "PLAIN DOWN"]; call _funcExitScript; };
ALSO! You need to edit your server_publishObject / server_objectPublish! However, because I can't account for what mod/map/changes you have made, use this as a guide:
server_publishObject / server_objectPublish
Merge at your discretion.
You should now have
Enjoy
- Buildables and custom buildables saving to DB again (with Kikyou2's improvements!)
- Tents saving to DB once again
- Loot in tents updating/saving once again (make sure it is a newly placed tent after your changes to the database and with my final fixes, cannot guarantee old tents update properly)
![]()
Using the normal BB1.2 without any fixes is working fine.