Working solution!
Thank you very much :D
- - - Updated - - -
http://i.imgur.com/5iLqLmL.jpg
Printable View
Working solution!
Thank you very much :D
- - - Updated - - -
http://i.imgur.com/5iLqLmL.jpg
About that error, make sure you did the update correctly (using ArmA3Sync).
Before explaining something interesting and important, I want to remember you some things.
-------------------------
init.sqf: located in DZ\server\scripts (when I talk about init.sqf I'm always referring to that file ok?)
------------------------
FUNCTION: a chunk of code between brackets that must be compiled before been used. If the function is in the init.sqf, you don't need to compile it with a command cause the init.sqf will be compiled itself (with all the function inside them). If you include function in a separate sqf file go to the below example of SCRIPT.
Example of a function:
-------------------------Code:EP_linkerIsABrat =
{
CODE HERE;
};
SCRIPT: a file that includes chunks of code that are not included in brackets OR that includes FUNCTIONS (see examples below).
First Example of a script called EP_linkerIsABrat.sqf:
Second Example of a script called EP_linkerIsABrat.sqf:Code:_obj1 = _this select 0;
_obj2 = _this select 1;
_text = "obj1 is far too distant from obj2";
if ((_obj distance _obj2) > 20) then
{
diag_log format["%1 - distance is %2",_text, (_obj1 distance _obj2)];
};
A script, must be either execVM-ed or called/spawned.Code:EP_linkerWantsToBeABrat =
{
_obj1 = _this select 0;
_obj2 = _this select 1;
_text = "obj1 is far too distant from obj2";
if ((_obj distance _obj2) > 20) then
{
diag_log format["%1 - distance is %2",_text, (_obj1 distance _obj2)];
};
};
If you want to call/spawn this script, you need to compile it first and assign a name/variable to it. HOW?
Put this line in the init.sqf:
If (as second example) you already assigned a name to a function inside the script, just put this:Code:Nameoffunction = call compile preprocessFileLineNumbers "\dz\server\scripts\Epidemy\EP_linkerIsABrat.sqf";
and you will execVM the file like this:Code:call compile preprocessFileLineNumbers "\dz\server\scripts\Epidemy\EP_linkerIsABrat.sqf";
------------------------------------------------Code:[obj1,obj2] execVM "\dz\Server\scripts\EP_linkerIsABrat.sqf";
------------------------------------------------
Here is a function for bear trap:
As you can see, it's likely 90% the same as the _fnc_pickupTrap function you can find in the player_beartrap.sqf but...Code:EPfn_PickupTrap =
{
_user = _this select 0;
_trap = _this select 1;
_item = ['Trap_Bear', _user] call player_addInventory;
_item setdamage (damage _trap);
[_user,_trap] call EPfn_DeactivateTrap;
diag_log format["EPfn_PickupTrap:_user = %1, _trap = %2, _item = %3",_user,_trap,_item];
deleteVehicle _trap;
};
I took that function, removed from that file, created a new file (called EP_trapsandmines.sqf) and modified it like the way you can see. then, in the init.sqf I added the string to pre-compile this new script file. (see explanation section first)
To call that function, I simply used
whereCode:[_user,_obj] call EPfn_PickUpTrap;
_user is the player (_user is not a magic variable like _this/_x/_forEachIndex), it's simply a variable with a simple name, I could call it _linker)
_obj is the trap (same as above)
If you open the addon gear_traps.pbo, and open the config, you will notice userActions where there are defined the scripts (both as condition and as statement): you need to modify those strings also according to the new functions (indeed in the config I'm not spawning anymore player_beartrap, but a particular function I've extrapolated.
For example, to activate the trap now I use
Where EPfn_activatetrap is very similar to the _fnc_activatetrap you can find in the script!Code:[_owner, this] spawn EPfn_ActivateTrap;
Hope this helped a bit, don't make me explain also how to make a script, there a plently of example showing the mechanics on BIStudio. Just go to the section (ArmA/ArmA2/ArmA3 editing -> scripting) :D
Here I've grouped some interesting links to help you:
Quote:
Also, this is for people who are always complaining about the fact I only make spoilers!
I also like to help people who DESERVE help!
No problem. Just note that game making copy of beclient.dll in that folder. When you changing beclient.dll in your client folder, then you should delete it in AppData again.
to LinkerSplit
Hello again, i found that Gorka Helmet with new textures doesn't have shock resistance. And visors already attached.
Spoiler:
to others people
I just changed little bit, now Gorka_visor is not attached and possible to attach. New Gorka helmets has same stats with Gorka original.
Spoiler:
Sorry i don't have skills for coding :) but it's work.
I found models of crafted clothes, but pivots is wrong, like Crafted_Hat is between my legs (looks funny), any idea how to fix pivots?
I'm not using your server for public, becouse in my country internet traffic is problem and expensive. We have to play only inside country.
Anyway thank you LinkerSplit and to your team, you made best. I hope that you will share with us (as soon as possible:) ) that cool stuff :). Waiting for farming and tents :)
PS: Sorry for my english.
Yo man thank you for your attention and your improvements!
The reason you have problems with crafted_hat is that Bohemia created a new model character .p3d.
Try to use characters_data model of survivor to see if it will work.
I understand this (a little :P)
Now for my trial and error learning sessions xD
I did not do the arma3 update process, silly me.
Its updating now, so i guess all should be fine.
Except for one thing, i see in the loading screen that you have cars and tents being loaded/saved.
Though the script files that should process these requests are not in my dz/Epidemy folder
Is that intentional?Code:call compile preProcessFileLineNumbers "\dz\server\scripts\Epidemy\EPfn_LoadFromDB.sqf";
call compile preprocessFileLineNumbers "\dz\server\scripts\Epidemy\EPfn_saveData.sqf";
call compile preprocessFileLineNumbers "\dz\server\scripts\Epidemy\EPfn_saveTentData.sqf";
Sorry, must have overlooked that :)
Too bad for me :P
- - - Updated - - -
By the way, sorry for asking so much but i found another problem.
I do not like the clog.sqf file telling me to wait 15 seconds to exit.
I tried commenting out the execvm lines in credits and also renamed the clog.sqf file to clog_backup.sqf.bak.
Still i get the countdown, what am i missing?
I don't know how it's works on LinkerSplit's server, but on another, when you will of that function, then will possible to duplicate equipment. e.g.: you disconnect from server and after again connect, you will have your clon near by you with same equipment, after killing him you can loot his equpment.
to LinkerSlit
1.) Before i have problem with sawing mosin and izh shotgun, i opened gears_tools.pbo and found that there is config.bin and config.cpp, i unpacked it, then deleted config.bin and repacked it, now it's works. I don't know actually that problem was in it, but anyway. :)
2.) I looked in server_data.pbo and found that {CZ75, 0.028} and {1911, 0.02} without "". I don't know this is problem for spawning or not.
Hi man, no I don't5 think it will be a problem, because they were from the original files od dayz standaone :)
Btw, for the cheat you were telling me about, you can't edit a pbo and enter in our server, cause you have to have the exact match of bytes and checksum. If not, you will not be able to join our server.
So suppose somebody modify a pbo, he cant add anything (even two //) and repack it. he will not be able to join
Try it on your server, HEX editor don't modify files on your client folder. It's injecting in RAM, without touching files and changing md5. I just sent to you solutution, i tested it, but i don't know what's will be in the future :) I forgot to translate, will send instruction to you.
Okay, I feel like an idiot but here goes:
I had to format my entire computer and just finished installing Epidemy again.
Weird thing is, I suddenly can't seem to get the save system to work.
The RPT shows me this:
Code:2015/04/03, 18:01:14 "Processing 1 saves for players..."
2015/04/03, 18:01:14 Saving array to database: type Any is not supported
2015/04/03, 18:01:14 Saving array to database: type Any is not supported
2015/04/03, 18:01:14 XXX GetResponse http://localhost/dayzservlet53/lud0/save/?uid=76561197960931169&id=000000
2015/04/03, 18:01:14 XXX finished in 0 result 500
I forgot to enable mod_rewrite in httpd.conf and so I enabled it, but I still get the error 500.
Obviously I did something wrong, but I have no clue to what it might be :(
Always great releases! Does anyone have a tutorial on how to use ARMA3SYNC as an updater so users don't have to download a new client each time there's an update?