[Release] BaseBuilding 1.2 Improvements 0.1 (better and editable Keycode, permanent Owner)

Not sure heres my player_remove.sqf http://pastebin.com/Et3RpcBY
and
player_build.sqf http://pastebin.com/WsLmDCt2

Let me know if you find something different that you forgot to change...


It appears i've managed to get the Buildings to Save and Delete from the Database, however i appear to be having major problems with tents duplicating items, if you take something out of it, it reappears on reboot, place anything in it and it doesnt appear on reboot.

it appears this has only started happening since i deleted the foreign keys from the database? or am i missing something here?

Edit: Nevermind Buildings also aren't deleting from database, any ideas?
 
It appears i've managed to get the Buildings to Save and Delete from the Database, however i appear to be having major problems with tents duplicating items, if you take something out of it, it reappears on reboot, place anything in it and it doesnt appear on reboot.

it appears this has only started happening since i deleted the foreign keys from the database? or am i missing something here?

Edit: Nevermind Buildings also aren't deleting from database, any ideas?

I think you missed some of the instructions in thread, I can't remember if this was the only file I had to do this in now but basically you need an if/else for basebuilding/non basebuilding objects

here's my server_UpdateObject.sqf to get you started
http://pastebin.com/5fW6JKDd
 
I think you missed some of the instructions in thread, I can't remember if this was the only file I had to do this in now but basically you need an if/else for basebuilding/non basebuilding objects

here's my server_UpdateObject.sqf to get you started
http://pastebin.com/5fW6JKDd


I Can't see much difference with anything to do with base building unless i'm blind..

Here my stuff:

Server_updateobject: http://pastebin.com/7DHmEWd3
server_publishobject: http://pastebin.com/btAjKAhe
server_monitor: http://pastebin.com/4f3tBNN2

i think thats everything, like i said it's all working fine, just stuff isnt deleting from the database and tents items are all messed up.
 
I Can't see much difference with anything to do with base building unless i'm blind..

Here my stuff:

Server_updateobject: http://pastebin.com/7DHmEWd3
server_publishobject: http://pastebin.com/btAjKAhe
server_monitor: http://pastebin.com/4f3tBNN2

i think thats everything, like i said it's all working fine, just stuff isnt deleting from the database and tents items are all messed up.


Notepad+ with the compare plugin http://sourceforge.net/projects/npp-compare/ is the easiest way to check, if its removals that aren't working check player_remove.sqf

There's some other PVDZ_ variables to change in the keypad code files too but the basic owner removal should be covered by player_remove.sqf
 
Notepad+ with the compare plugin http://sourceforge.net/projects/npp-compare/ is the easiest way to check, if its removals that aren't working check player_remove.sqf

There's some other PVDZ_ variables to change in the keypad code files too but the basic owner removal should be covered by player_remove.sqf


Already using that plugin, only few things i noticed was the PVDZ and a Monitor?

I Reverted back to my old Folders and it's working fine again, i'll take a look later and try again
 
I have tried all the fixes here and although each fix fixes something another thing breaks, lol. I have got everything down and working except one thing. Tents!
Code:
12:01:22 "DEBUG: Checking if Object: 41d6cf00# 1055811: a_tent.p3d REMOTE is allowed published by Server"
12:01:22 "DEBUG: Object: 41d6cf00# 1055811: a_tent.p3d REMOTE published by Server is Safe"
12:01:22 Error in expression <uel =        _this select 4;
_code =        _this select 5;
 
#line 1 "z\addons\dayz_serve>
12:01:22  Error position: <select 5;
 
#line 1 "z\addons\dayz_serve>
12:01:22  Error Zero divisor
12:01:22 File z\addons\dayz_server\compile\server_publishObject.sqf, line 8

Every time I try to place a tent I get this in the report. If it comes to it I will take out tents altogether and just add extra cars instead. :)
Chernarus 1.7.7.1 - Reality Build - Hosted with Vilayer
 
Did you tried to build the tent through basebuilding or through the item?

You cannot use both. If you want to use the item thing comment the tent in basebuilding out. If you want to use tent in basebuilding then change the tent_pitch script that you can't build tents with the item.

If you don't know what I'm talking about you have to update publishobject I posted anywhere here in the thread, or just pull it out of the 0.3 Release.

When I'm free to do so I will release a new version of the improvements, but I think I will wait for Epoch 1.0.1.5 release ;)
 
Did you tried to build the tent through basebuilding or through the item?

You cannot use both. If you want to use the item thing comment the tent in basebuilding out. If you want to use tent in basebuilding then change the tent_pitch script that you can't build tents with the item.

If you don't know what I'm talking about you have to update publishobject I posted anywhere here in the thread, or just pull it out of the 0.3 Release.

When I'm free to do so I will release a new version of the improvements, but I think I will wait for Epoch 1.0.1.5 release ;)

I have the same server_publishObject.sqf as the one in your full download file. Tents are commented out. I haven't tried looking at the pitch tent script though. I didn't realise there was 2 different ways.
 
I have the same server_publishObject.sqf as the one in your full download file. Tents are commented out. I haven't tried looking at the pitch tent script though. I didn't realise there was 2 different ways.

Have you double checked it that it was the exact same one of kikyou's server_publishobject.sqf(http://pastebin.com/hjgCwFYv) and also check the file server_updatenearbyobjects.sqf & server_updateobject.sqf make sure they are correct. You may also may want to check the check_publishobject function located in server_functions.sqf and see if those are how they should be.
 
Did you tried to build the tent through basebuilding or through the item?

You cannot use both. If you want to use the item thing comment the tent in basebuilding out. If you want to use tent in basebuilding then change the tent_pitch script that you can't build tents with the item.

If you don't know what I'm talking about you have to update publishobject I posted anywhere here in the thread, or just pull it out of the 0.3 Release.

When I'm free to do so I will release a new version of the improvements, but I think I will wait for Epoch 1.0.1.5 release ;)
Would you be so kind to help me out with a server.pbo for version 1.0.1.4 ???
I have the problem, that the builded objects are not saved to the DB...
I tried to find the problem the past days becomming insane about it :(
Can you help me or tell what is wrong,or changed with the new patch??? That would be awesome!

Thanks!
 
Would you be so kind to help me out with a server.pbo for version 1.0.1.4 ???
I have the problem, that the builded objects are not saved to the DB...
I tried to find the problem the past days becomming insane about it :(
Can you help me or tell what is wrong,or changed with the new patch??? That would be awesome!

Thanks!

Give my server pbo a try see if it works out for you, I've worked on it for the latest Epoch, Base building and epoch items are being saved into Database. http://www.mediafire.com/?81lsc1mzvn2o11h

**EDIT**
This link I have provided is for a Epoch 1.0.1.4 Server only!!!
 
Have you double checked it that it was the exact same one of kikyou's server_publishobject.sqf(http://pastebin.com/hjgCwFYv) and also check the file server_updatenearbyobjects.sqf & server_updateobject.sqf make sure they are correct. You may also may want to check the check_publishobject function located in server_functions.sqf and see if those are how they should be.

I got the file from the start of the thread (http://www.mediafire.com/?juo9s08rp3avtu6). I can see from your link that there are some differences. I will go through them in the morning with a fresh head. Thanks Tactical Force and thanks to kikyou for the previous message.
 
Give my server pbo a try see if it works out for you, I've worked on it for the latest Epoch, Base building and epoch items are being saved into Database. http://www.mediafire.com/?81lsc1mzvn2o11h
so much tanks 4 that...i am so tired but try it out ion a sec...

EDIT: no seems that it does not work, leastwise i get an error now :D

2013-07-11 05:54:21 HiveExt: [Information] Method: 308 Params: 11:Concrete_Wall_EP1:0:63684422:[266.482,[6548.41,5597,-0.522]]:[]:[]:true:654845597052266:
2013-07-11 05:54:21 HiveExt: [Error] Error executing |CHILD:308:11:Concrete_Wall_EP1:0:63684422:[266.482,[6548.41,5597,-0.521759]]:[]:[]:true:654845597052266:|

2013-07-11 05:54:54 HiveExt: [Error] Error executing |CHILD:308:11:Concrete_Wall_EP1:0:63684422:[266.482,[6548.39,5597.03,0.000213623]]:[]:[]:false:65484559700266:|

i shouldn't think that it's causing from my mission but would you upload yours to exclude that mine fails? Or have you done some addin to your database to get it working?
Greez
 
I got the file from the start of the thread (http://www.mediafire.com/?juo9s08rp3avtu6). I can see from your link that there are some differences. I will go through them in the morning with a fresh head. Thanks Tactical Force and thanks to kikyou for the previous message.

It's all working great now, thanks again guys.

Edit: Not working - I can pitch tents but placing items in them does not save to the database although the report and hive log says they are being written
 
Hey,

nice Tutorial. Has somebody a Tutorial for 1.7.7.1 Chernarus? I cannot fugured out how to get it work for my Server.

thanks for any suggestions

EDIT: After i set me as an admin in the player_remove.sqf and codeCompare.sqf i can get acces to every panel but i have no option to Edit the Code =/

Gerne auf per PN
 
so much tanks 4 that...i am so tired but try it out ion a sec...

EDIT: no seems that it does not work, leastwise i get an error now :D

2013-07-11 05:54:21 HiveExt: [Information] Method: 308 Params: 11:Concrete_Wall_EP1:0:63684422:[266.482,[6548.41,5597,-0.522]]:[]:[]:true:654845597052266:
2013-07-11 05:54:21 HiveExt: [Error] Error executing |CHILD:308:11:Concrete_Wall_EP1:0:63684422:[266.482,[6548.41,5597,-0.521759]]:[]:[]:true:654845597052266:|

2013-07-11 05:54:54 HiveExt: [Error] Error executing |CHILD:308:11:Concrete_Wall_EP1:0:63684422:[266.482,[6548.39,5597.03,0.000213623]]:[]:[]:false:65484559700266:|

i shouldn't think that it's causing from my mission but would you upload yours to exclude that mine fails? Or have you done some addin to your database to get it working?
Greez


It's all working great now, thanks again guys.

Edit: Not working - I can pitch tents but placing items in them does not save to the database although the report and hive log says they are being written


To Felixberndt,

It sounds like your using the reality database? If so you'll definetely have to add in some extra rows to your instance_deployables table in which you can obtain by this link (https://github.com/Daimyo21/BaseBuilding-DayZ/tree/master/basebuilding/database). But definetely check to make sure that your database your using is the Reality Database or otherwise that link I sent you will not help your case.

To Johnkok,

What version of DayZ are you using and what database? I don't know exactly what you are using and it will help greatly if you could provide me that information. You can also check one of my threads I made and see if it helps you any http://www.opendayz.net/threads/tent-vehicle-saving-issues-fix-for-1-7-6-1-for-reality-hive.10996/ the fix I have provided you is for a non-epoch server.

**EDIT**
I also made this dayz_server.pbo specifically for Epoch, I apologize for failing to mention it when I posted the link there. I'll see if I can find something that is non-epoch version and may just work for you nice folks :). Those fixes that I have listed above and you run an Epoch server I would not recommend doing the fix I have provided to Johnkok as its for a non-epoch server.
 
Hey Guys,

so my Problem is still the same. I´ve tried the original BB 1.2 codes and everything is working fine (objects are written in the Database and are not destroyable) but after a restart i always get "Access Denied" from the Key Panel.

When i use this Improvements i get a 4 diget Code, but the Code is allways wrong. The "Edit" Option doesnt appear at all nor the objects get written in the Database :confused:
If i put my UID as an admin, i get allways access, but normal players dont.

I´m using Bliss, 1.7.7.1 Chernarus

Here are some Codes:

original BB1.2 player_build.sqf
Code:
// Send to database
_object setVariable ["characterID",dayz_characterID,true];
PVDZ_obj_Publish = [dayz_characterID,_object,[_dir,_location],_classname];
publicVariableServer "PVDZ_obj_Publish";
    if (isServer) then {
        PVDZ_obj_Publish call server_publishObj;
    };
} else {cutText ["You need the EXACT amount of whatever you are trying to build without extras.", "PLAIN DOWN"];call _funcExitScript;};
 
player allowdamage true;
procBuild = false;_playerCombat setVariable["startcombattimer", 1, true];

the 0.1 Improvement:
Code:
// Send to database
  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];
 
        PVDZ_obj_Publish = [dayz_playerUID,_object,[_dir,_location],_classname,_fuel,_code]; //added _code to pass to the publishObj function to prevent calculation errors
            publicVariableServer "PVDZ_obj_Publish";
 
    } else {                                                    //Send to database if part of _allowedObjects
 
    _object setVariable ["characterID",dayz_characterID,true];
 
        PVDZ_obj_Publish = [dayz_characterID,_object,[_dir,_location],_classname];
            publicVariableServer "PVDZ_obj_Publish";
    };
 
} 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;
};

I dont know where i should look at for the solution. I´m grateful for any help
 
Hey Guys,

so my Problem is still the same. I´ve tried the original BB 1.2 codes and everything is working fine (objects are written in the Database and are not destroyable) but after a restart i always get "Access Denied" from the Key Panel.

When i use this Improvements i get a 4 diget Code, but the Code is allways wrong. The "Edit" Option doesnt appear at all nor the objects get written in the Database :confused:
If i put my UID as an admin, i get allways access, but normal players dont.

I´m using Bliss, 1.7.7.1 Chernarus

Here are some Codes:

original BB1.2 player_build.sqf
Code:
// Send to database
_object setVariable ["characterID",dayz_characterID,true];
PVDZ_obj_Publish = [dayz_characterID,_object,[_dir,_location],_classname];
publicVariableServer "PVDZ_obj_Publish";
    if (isServer) then {
        PVDZ_obj_Publish call server_publishObj;
    };
} else {cutText ["You need the EXACT amount of whatever you are trying to build without extras.", "PLAIN DOWN"];call _funcExitScript;};
 
player allowdamage true;
procBuild = false;_playerCombat setVariable["startcombattimer", 1, true];

the 0.1 Improvement:
Code:
// Send to database
  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];
 
        PVDZ_obj_Publish = [dayz_playerUID,_object,[_dir,_location],_classname,_fuel,_code]; //added _code to pass to the publishObj function to prevent calculation errors
            publicVariableServer "PVDZ_obj_Publish";
 
    } else {                                                    //Send to database if part of _allowedObjects
 
    _object setVariable ["characterID",dayz_characterID,true];
 
        PVDZ_obj_Publish = [dayz_characterID,_object,[_dir,_location],_classname];
            publicVariableServer "PVDZ_obj_Publish";
    };
 
} 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;
};

I dont know where i should look at for the solution. I´m grateful for any help

Are you using this improvement mod for a Epoch Server, or for a Non-Epoch server? Also what database system are you using?
 
I´m using Non-Epoch Server and my Database is from myPHPAdmin (if this is the right information?!)

Right now i try to reinstall the Improvements just as a test, maybe i just forget something
 
I´m using Non-Epoch Server and my Database is from myPHPAdmin (if this is the right information?!)

Right now i try to reinstall the Improvements just as a test, maybe i just forget something

I believe that these improvements hasn't been tested fully yet on a non-epoch server it may come with its own set of problems. Also in your phpmyadmin list me atleast three of your table names, are they named like instance_deployables, survivor, profile?

**EDIT**
Also if you want to try to get these improvements to work, you'll have to get somebody that is good and has a good understanding how DayZ works & functions and be able to convert these files to work for a non-epoch server. From what I can see you can use a modified server pbo that you fabricated yourself for Base Building mod 1.2 and than you'll have to modify the keypad files in your dayz_code > external > keypad to make them work correctly for your database. Also you'll have to modifiy player_build.sqf in dayz_code > compile its alot of work to convert the files but it may be worth it in the end for you.
 
Back
Top