Nope you dont need to add new columns or fields. You will use the characterid field which is also used for ownership in tents for ecample.
In my case I added the code to the fuel field. ;)
For me at Win7 its
C:\Users\kikyou2\AppData\Local\ArmA 2 OA\ArmA2OA.RPT
Had cost me much time to discover this for myself :D
Edit: Its a hidden folder by Windows so if you can't find AppData you have to enable it.
http://windows.microsoft.com/en-gb/windows7/show-hidden-files
I'm just learning more each day, too.
Don't give up if the scripts won't work, I often run into problems, too!
Just think straight what it could be and search for missing ; and maybe syntax errors because of some { } this are the most common errors.
Also checking values of variables and...
No problem ;)
If I have released the complete files I think it will be clearer for all to understand. Will try to comment everything that its understandable.
There are just one or two bugs left to fix, then I will release it.
It deletes them from the database but not from the game, that is the trick ;)
For real the old vehicle will stay there till server restart but will have the new variables which you define via setVariable.
After server restart the servermonitor will automatically add to the "new" vehicle the...
If you think that you're still on the wrong way
The same method as I use to edit only one field in the database without using a custom hive request can be used to write the owner of an vehicle into the database.
Normally there is no function to do that, only a function to publish a complete...
Here is a example of my future Change Keycode for BaseBuilding Script. It does nearly the same what you have to do (change one field in the database of a particular item).
Cause there is no CHILD:999 custom Hive Request at the DayZ Epoch Hive (I'm using that), I had to find another solution...
No not really cause this is related to arma engine.
But if your main reason is that you're asking for this that your Keycode isn't working then have a look at this thread:
http://opendayz.net/threads/project-basebuilding-1-2-change-code.10183/page-2#post-44893
I think I will be able to...
Managed to find the bug which was holding me back.
Going to fix the last bug that the edit Button do not save the new Code, if this is done everything works fine.
When you build a 5 digits long code will be shown which work and is saved in fuel field of the object.
With the Edit Button...
Nope that script is only to publish a Vehicle. The delete function is another. Also you would have to write a new script to set everything right up.
If I'm ready with my other projects and this isn't made yet I will maybe give it a try.
If you want to that the owner status to be permanent you always have to write something to the database. If you won't everything will be lost after restart.
If you want it only till next restart you could set owner status via setVariable and look for it with getVariable. Should work too
Not...
You will have to do it like this when I'm right:
Option a)
-do a custom Hive Query with CHILD:999 and add the possibility with a scroll menu to get the owner of the vehicle
-you have to write in the playerUID into the characterID field
possible troubles:
not every Hive has the custom CHILD:999...
Still having that issue.
_code is calculated like that
_coder = random(99999);
if (_coder < 10000) then {
_coder = _coder + 10000;
};
_code = round _coder;
Then I convert it to a value which fits for the fuel field in the database and send it to my modified server_publishObject.sqf just as...
Made some new improvements to fix some bugs, will post everything when it works.
I'm stuck atm with
_object setVariable ["Code",_code,true];
_keycode = _object getVariable["Code","0"];
If I try to get the value of it with
diag_log format["KIKYOU DEBUG: Value of _keycode: %1",_keycode]...
Okay atm the Build Recipe Menu isn't showing anymore. I will post it nevertheless maybe someone see the mistake earlier than me ;)
This isn't working at the moment, its only a capture where I'm stuck at the moment, don't put this onto your server if you don't know what you're doing!
Added to...
I'm currently trying to implement a random Code which is saved into the fuel field.
_fuel= _code / 100000
_code= _fuel * 100000
I also tried to write a function that gives you the ability to edit the code manually if you're the owner of the object. If it works you'll have as owner always a...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.