Alright dude, let me know if you decide too.
We're working on a server list over at TeamBick.com and would love to add yours!
Printable View
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
Basically, even if you have now SOME scripts, you still can't implement it cause you don't have the external software and part of other scripts.
Ok. You talked about you can help with that. If i open thread in help section, you help with that or you don't want to do that?
As said in older posts, we didn't plan to release the save system.
Sorry man.
Anyway, everything now is lost, we deleted everything
It's bad and one question, what about SendUDPMessage function in exe? What are you thinking about that method?
yeah it could work. basically, the external software was taking info from the dayzProfile file that was constantly updated via sqf scripts ingame (the ones you found) and at every restart of the server, it took the info it had to create a big SQF script that was loaded at the start of the server to set up the sved objects.
To do that we need a software for parse and taking info from dayzProfile, than after restart we need to load them. Tha'ts right way?
- - - Updated - - -
In theory i understand how to do that. But practic is to bad for me. I'll get Shadow's exe's but i don't know they fully working or they only for show off. Many peoples want's to get full pack of script's,i only want to learn that. I'll don't need totaly full files. In the files what we got, we have save system work, but it's only loads DB and save's only player's data. If you have time, please see to that. I understand you don't know me, but please help me. See and ask what in that wrong.
- - - Updated - - -
You talked about the someone will work with your's client and do something work. But where we got client to work with that? I'll found some of your's scripts and want to work with that. For that i'll need your client.
The Server Starting but come the MessageQuote:
Script dz\server\scripts\Epidemy\Persistence.sqf not found
Thanks, I was trying do this 3 days ago.
Now I can save cars, tents, backpacks, etc. I created an internal database for my server.
After the server restart and read all the information recorded on database, he creates all the objects with what they had
My server run on 0.47 version
Does someone have the client? Id like to work on this.
it was copy of the obsolete 20 years ago arena's build:laugh:
like this https://pp.userapi.com/c841221/v8412...XYhrUevR54.jpg and https://pp.userapi.com/c840432/v8404...8uPWu-_Iz8.jpg? All-saves,epoch-mod adaptation, new render based on dx9 A3 etc< based on 0.45 source.
Unfortunately, such projects die under the massive ddos of the big trash projects. Just playing vanilla not beneficial for their cash.
https://theffilescom.files.wordpress...pg?w=437&h=291
Alas, these projects are creating more problems for each other. Spam, ddos, gossip, mass donate:dontknow:
Bohemia just doesn't do anything.