Oh I see. Sorry, I can't help you with that because I simply don't know :)
Printable View
Oh I see. Sorry, I can't help you with that because I simply don't know :)
About my save system not working:
Turns out enabling mod rewrite in the httpd.conf and restarting the wamp server was not enough.
I had to reboot my computer for the changes to settle (why I didn't try that immediatly, I dont know :P).
So, what DayZ is concerned, I'm back in buisness ^^
Hi guys, perhaps someone can help me out with the following:
For inventory sorting reasons I'm trying to create more colors of protector cases.
I have added the following after the original protector_case_small class:
Ingame the items do show up, but the green and blue classes still have the yellow texture.Code:class Container_Protector_Case_Green : Container_Protector_Small {
scope = 2;
hiddenSelectionsTextures[] = {"dz\gear\containers\data\loot_protectorcase_co_green.paa"};
};
class Container_Protector_Case_Blue : Container_Protector_Small {
scope = 2;
hiddenSelectionsTextures[] = {"dz\gear\containers\data\loot_protectorcase_co_blue.paa"};
};
Any ideas?
- - - Updated - - -
I've created the following class just to see what the result would be:
Still a yellow protector case ingame.Code:class Container_Protector_Case_green1: ContainerBase
{
scope = 2;
displayName = "EDITED Protector Case";
descriptionShort = "$STR_ITEMS_SMALLPROTECTORCASE_DESC";
model = "\dz\gear\containers\Protector_Case.p3d";
itemSize[] = {2,2};
itemsCargoSize[] = {4,2};
randomQuantity = 2;
absorbency = 0;
itemsCargo[] = {};
handAnim[] = {"OFP2_ManSkeleton","\DZ\anims\data\anim\sdr\ik\containers\protector_case.rtm"};
inventoryCondition = "typeOf _parent != typeOf _this";
class Damage
{
tex[] = {};
mat[] = {"DZ\gear\containers\data\Protector_Case.rvmat","DZ\gear\containers\data\Protector_Case_damage.rvmat","DZ\gear\containers\data\Protector_Case_destruct.rvmat"};
};
class Melee
{
range = 0.8;
swingTime = 0.5;
action = "MeleeAttack2";
ammo = "MeleeLightBlunt";
useCursor = 1;
};
hiddenSelectionsTextures[] = {"dz\gear\containers\data\loot_protectorcase_co_green.paa", "dz\gear\containers\data\loot_protectorcase_co_green.paa", "dz\gear\containers\data\loot_protectorcase_co_green.paa"};
tex[] = {"dz\gear\containers\data\loot_protectorcase_co_green.paa"};
};
I've checked the rvmat files to see if they define a texture but those are just bump and lightmapping textures.
I changed the default loot_protectorcase_co.paa with my blue one which does do the trick, the case was blue ingame.
Any help,even wild guesses, will be appreciated!
I did it :D
Thanks a bunch mate ^^
http://i.imgur.com/eaQIfy4.png
By the way, LinkerSplit:
I'm noticing weird behaviour from BattlEye (from the beginning)
I disabled it for now, but could you tell me what's happening?
This is just a partial log, it keeps saying I connected without me ever disconnecting.Code:12:41:42 BattlEye Server: Player #0 Lucchese (127.0.0.1:2316) connected
12:41:42 BattlEye Server: Player #0 Lucchese - GUID: a70d09558fd0fbc9f9373b0b9a4b2fb2 (unverified)
12:42:07 BattlEye Server: Update successfully completed. Restarting...
12:42:07 BattlEye server updated to version: 198
12:42:07 BattlEye Server: Initialized (v1.198)
12:42:07 BattlEye Server: Player #0 Lucchese (127.0.0.1:2316) connected
12:42:07 BattlEye Server: Player #0 Lucchese - GUID: a70d09558fd0fbc9f9373b0b9a4b2fb2 (unverified)
12:42:31 BattlEye Server: Update successfully completed. Restarting...
12:42:31 BattlEye server updated to version: 198
12:42:31 BattlEye Server: Initialized (v1.198)
12:42:31 BattlEye Server: Player #0 Lucchese (127.0.0.1:2316) connected
12:42:31 BattlEye Server: Player #0 Lucchese - GUID: a70d09558fd0fbc9f9373b0b9a4b2fb2 (unverified)
12:42:56 BattlEye Server: Update successfully completed. Restarting...
12:42:56 BattlEye initialization failed
Try to use inside "DAYZ 0.53 Server EPIDEMY\dayzea.ChernarusPlus\BattlEye" Both for client and server, works fine for me.
Been playing with textures a bit and got an idea: Imagine you find a permanent marker you can use on containers:
http://i.imgur.com/cnSV2OQ.png
I just wonder if this is scriptable, I'm thinking entering the text ingame and letting some external program write your input on a texture.
Would be a great improvement for me personally, I hate messy inventories. :)
Now that your server / project is closed will you share your work ?
As said, our project is dead, so also the tent and car saving system.
We are not going to release any new updates, so I hope someone else will WORK with our mod and try to add the things I added.
I'll be around sometimes to help people is scripting and other things :)
Good bye all
-------------------------
<--- What is i founded at pastebin about save tents --->
this is pasted in \dz\server\init.sqf
-------------------------
build_TentContainer =
{
if (isServer) then
{
_person = (_this select 1);
_tentType = (_this select 2) select 0;
_tentOri = (_this select 2) select 1;
_dist = (_this select 2) select 2;
_pos = getPosASL _person;
_ori = direction _person;
_xPos = (_pos select 0) + (sin _ori);
_yPos = (_pos select 1) + (cos _ori);
_zPos = (_pos select 2);
_BigString = (_this select 0) getVariable ["globalID",[]];
_tentID = (_this select 0) getVariable ["internalID",""];
_nmr = _BigString select 1;
_numToCheck = _BigString select 2;
_switcher = _BigString select 9;
if ( !(surfaceIsWater [_xPos, _yPos]) ) then
{
_tent = createVehicle [_tentType, [_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_tent setPosASL [_xPos,_yPos,_zPos];
_tent setDir _ori - _tentOri;
_BigString set [0,_tentType];
_tent setVariable ["globalID",_BigString];
_tent setVariable ["internalID",_tentID];
[_tent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
deleteVehicle (_this select 0);
}
else
{
[_person,'I can not pitch the tent in the water!','colorImportant'] call fnc_playerMessage;
};
};
};
pack_TentContainer =
{
if ( isServer ) then
{
private["_oldTent","_xPos","_yPos","_zPos"];
_oldTent = _this select 0;
_nmr = _this select 1;
_person = _this select 1;
_BigString = _oldTent getVariable ["globalID",[]];
_tentID = _oldTent getVariable ["internalID",""];
// diag_log format["pack_TentContainer DATA ARE %1 ------------ %2",_BigString,_tentID];
//------------------------------------------
_typeTent = (_BigString select 0);
_nmr = (_BigString select 1);
_numToCheck = (_BigString select 2);
_switcher = (_BigString select 9);
_xPos = ((getPosASL _oldTent) select 0);
_yPos = ((getPosASL _oldTent) select 1);
_zPos = ((getPosASL _oldTent) select 2);
//------------------------------------------
Switch true do
{
case (_typeTent == "TentMedium_Pitched"):
{
deleteVehicle _oldtent;
// diag_log format["pack_TentContainer TENT PITCHED IS %1",_typeTent];
_newTent = createVehicle ["TentMedium_Packed",[_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_newTent setPosASL [_xPos,_yPos,_zPos];
_BigString set [0,"TentMedium_Packed"];
_newTent setVariable ["globalID",_BigString];
_newTent setVariable ["internalID",_tentID];
// diag_log format["pack_TentContainer NEW BIGSTRING IS %1",_BigString];
[_newTent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
};
case (_typeTent == "TentMedium_PitchedCamo1"):
{
deleteVehicle _oldtent;
// diag_log format["pack_TentContainer TENT PITCHED IS %1",_typeTent];
_newTent = createVehicle ["TentMedium_PackedCamo1",[_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_newTent setPosASL [_xPos,_yPos,_zPos];
_BigString set [0,"TentMedium_PackedCamo1"];
_newTent setVariable ["globalID",_BigString];
_newTent setVariable ["internalID",_tentID];
// diag_log format["pack_TentContainer NEW BIGSTRING IS %1",_BigString];
[_newTent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
};
case (_typeTent == "TentMedium_PitchedCamo2"):
{
deleteVehicle _oldtent;
// diag_log format["pack_TentContainer TENT PITCHED IS %1",_typeTent];
_newTent = createVehicle ["TentMedium_PackedCamo2",[_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_newTent setPosASL [_xPos,_yPos,_zPos];
_BigString set [0,"TentMedium_PackedCamo2"];
_newTent setVariable ["globalID",_BigString];
_newTent setVariable ["internalID",_tentID];
// diag_log format["pack_TentContainer NEW BIGSTRING IS %1",_BigString];
[_newTent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
};
case (_typeTent == "TentMedium_Pitchedgreen"):
{
deleteVehicle _oldtent;
// diag_log format["pack_TentContainer TENT PITCHED IS %1",_typeTent];
_newTent = createVehicle ["TentMedium_Packedgreen",[_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_newTent setPosASL [_xPos,_yPos,_zPos];
_BigString set [0,"TentMedium_Packedgreen"];
_newTent setVariable ["globalID",_BigString];
_newTent setVariable ["internalID",_tentID];
// diag_log format["pack_TentContainer NEW BIGSTRING IS %1",_BigString];
[_newTent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
};
case (_typeTent == "TentMedium_Pitchedred"):
{
deleteVehicle _oldtent;
// diag_log format["pack_TentContainer TENT PITCHED IS %1",_typeTent];
_newTent = createVehicle ["TentMedium_Packedred",[_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_newTent setPosASL [_xPos,_yPos,_zPos];
_BigString set [0,"TentMedium_Packedred"];
_newTent setVariable ["globalID",_BigString];
_newTent setVariable ["internalID",_tentID];
// diag_log format["pack_TentContainer NEW BIGSTRING IS %1",_BigString];
[_newTent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
};
case (_typeTent == "TentMedium_Pitchedwhite"):
{
deleteVehicle _oldtent;
// diag_log format["pack_TentContainer TENT PITCHED IS %1",_typeTent];
_newTent = createVehicle ["TentMedium_Packedwhite",[_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_newTent setPosASL [_xPos,_yPos,_zPos];
_BigString set [0,"TentMedium_Packedwhite"];
_newTent setVariable ["globalID",_BigString];
_newTent setVariable ["internalID",_tentID];
// diag_log format["pack_TentContainer NEW BIGSTRING IS %1",_BigString];
[_newTent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
};
case (_typeTent == "TentLarge_Pitched"):
{
deleteVehicle _oldtent;
// diag_log format["pack_TentContainer TENT PITCHED IS %1",_typeTent];
_newTent = createVehicle ["TentLarge_Backpack",[_xPos, _yPos, _zPos], [], 0, "CAN_COLLIDE"];
_newTent setPosASL [_xPos,_yPos,_zPos];
_BigString set [0,"TentLarge_Backpack"];
_newTent setVariable ["globalID",_BigString];
_newTent setVariable ["internalID",_tentID];
// diag_log format["pack_TentContainer NEW BIGSTRING IS %1",_BigString];
[_newTent,_nmr,_numToCheck,_tentID,_switcher] execVM "\dz\server\scripts\Epidemy\EPfn_loopSaveTentDB.sqf";
};
default
{
// diag_log "NOTHING IS HAPPENING!";
};
};
};
And than i founded that files on paste bin: MEGA