Jump to content

[Discontinued] Emerald Interior Designer


Recommended Posts

Hi, Zero, thanks for kind words

 

1) There are 2 solutions to that problem:

     a] if trusted only:

if((_isEmeraldItem and (player distance cursorTarget <= 2) and (getPlayerUID player) in ["123456789","987654321"]) and _canDo) then {

    b] add plotpole check to fn_selfActions, borrow code from remove.sqf so only objects near plotpole can be removed:

_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];
_findNearestPole = [];
{if (alive _x) then {_findNearestPole set [(count _findNearestPole),_x];};} foreach _findNearestPoles;

_IsNearPlot = count (_findNearestPole);

if((_isEmeraldItem and (player distance cursorTarget <= 2) and (_IsNearPlot >= 1) and _canDo) then {

Haven't tested, but you get the idea.

 

2) Thank you

3) It's easy. Go into 3D editor and spawn ton of items on ground you want to add. Save mission file and open it in my documents > arma 2 > your name > missions > mission.sqf for classnames

To add extra menu, you need to edit dialogs and extra_rc

To add to existing menus you need to edit, items.sqf and dayz_allowedObjects. Dont forget fn_Selfactions, too to be able to remove them

 

Awesome! Thanks Raymix!

Link to comment
Share on other sites

Raymix,

 

 Last question and I swear I will leave you alone! lol ;)

 

I was wondering how to change the name of the items in the list to something more recognizable? For instance...

 

MAP_vojenska_palanda = "Military Bunk Bed"

 

Is that possible?

 

Zero

 

EDIT: Do items with the "Land" prefix work as well or just "MAP"??

Link to comment
Share on other sites

Raymix,

 

 Last question and I swear I will leave you alone! lol ;)

 

I was wondering how to change the name of the items in the list to something more recognizable? For instance...

 

MAP_vojenska_palanda = "Military Bunk Bed"

 

Is that possible?

 

Zero

 

EDIT: Do items with the "Land" prefix work as well or just "MAP"??

1) It is possible, but I am not quite sure how to work with multiple arrays for same item, think it works like this - you create another array and make it count original classname array, then use something like _names= this select _ secondArray;

 

2)Prefixes were created for dayz houses that has loot points defined. for example "MAP_barracks_i" is original barracks model, where "Land_barracks_i" is customized one that includes loot points, same model tho. As for your question - yes you can safely add any building you want, keep an eye on _offset value in spawn.sqf if you need to move model further away from player

Link to comment
Share on other sites

The only reason I ask is I have it loaded but see no errors on load and cant utilize Emeralds at all and I am a admin so I tested with a epoch box and took one out and I right click and nothing but I see no errors on the server load up so I am a bit confused

Link to comment
Share on other sites

The only reason I ask is I have it loaded but see no errors on load and cant utilize Emeralds at all and I am a admin so I tested with a epoch box and took one out and I right click and nothing but I see no errors on the server load up so I am a bit confused

you might be missing this part

Link to comment
Share on other sites

Every time i join i get stuck in wait for host with a black screen.

 

This is what my rpt file says

 

 

=====================================================================

== C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\ArmA2OA.exe
== "C:\Program Files (x86)\Steam\steamapps\common\Arma 2 Operation Arrowhead\ArmA2OA.exe" -doNotRunM 
=====================================================================
Exe timestamp: 2014/04/13 21:03:57
Current time:  2014/05/10 20:42:36
 
Version 1.62.95248
Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 0)! MoveName: amovpercmstpsnonwnondnon_amovpercmstpsraswpstdnon
Warning: looped for animation: ca\anims\characters\data\anim\sdr\mov\erc\wlk\non\non\amovpercmwlksnonwnondf.rtm differs (looped now 1)! MoveName: amovpercmrunsnonwbindf_rfl
Global namespace not passed during: true
Global namespace not passed during: true
Error in expression <true>
  Error position: <true>
  Error Local variable in global space
Error loading control bin\config.bin/RscDisplayModLauncher/controls/CA_ValueMods/
UH60Wreck_DZ: MainTurret - unknown animation source mainTurret
UH60Wreck_DZ: MainGun - unknown animation source mainGun
UH60Wreck_DZ: MachineGun_1 - unknown animation source Gatling_1
bin\config.bin/CfgMovesZombie/States/AmovPercMrunSnonWnonDfr.InterpolateTo: item count not multiple of 2 (is 17)
  bin\config.bin/CfgMovesZombie/States/AmovPercMrunSnonWnonDfr.InterpolateTo: Bad move 
bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDl.InterpolateTo: item count not multiple of 2 (is 9)
  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDl.InterpolateTo: Bad move 
bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDb.InterpolateTo: item count not multiple of 2 (is 9)
  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDb.InterpolateTo: Bad move 
bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDbr.InterpolateTo: item count not multiple of 2 (is 9)
  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDbr.InterpolateTo: Bad move 
bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDfr.InterpolateTo: item count not multiple of 2 (is 11)
  bin\config.bin/CfgMovesZombie/States/AmovPpneMrunSnonWnonDfr.InterpolateTo: Bad move 
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medicEnd
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic0S
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic0
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic1
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic2
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic3
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic3
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic4
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic5
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic4
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDnon_medic5
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic0S
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic0
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic1
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.ConnectTo: Bad move AinvPknlMstpSnonWnonDr_medic2
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.InterpolateTo: Bad move AinvPknlMstpSnonWnonDnon_medic0S
  bin\config.bin/CfgMovesZombie/States/AinvPknlMstpSnonWnonDnon_medic.InterpolateTo: Bad move AinvPknlMstpSnonWnonDr_medic0S
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
Error: Bone leftshoulder doesn't exist in some skeleton 
Error: Bone rightshoulder doesn't exist in some skeleton 
UH1Y_DZE: ObsTurret - unknown animation source ObsTurret
UH1Y_DZE: ObsGun - unknown animation source ObsGun
AH6X_DZ: FLIR_turret - unknown animation source FLIR_turret
AH6X_DZ: FLIR_gun - unknown animation source FLIR_gun
Addon mbg_buildings_3 (entry Land_MBG_GER_PUB_2) not found in the list of active addons.
Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_buildings_3
Addon mbg_killhouses (entry MBG_Warehouse_InEditor) not found in the list of active addons.
Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_killhouses
Addon mbg_buildings_3 (entry Land_MBG_ATC_Tower) not found in the list of active addons.
Warning Message: You cannot play/edit this mission; it is dependent on downloadable content that has been deleted.
mbg_buildings_3
Fresnel k must be >0, given n=0.8,k=0
Fresnel k must be >0, given n=0.8,k=0
"DayZ Epoch: PRELOAD Functions\init [[L 1-1-A:1 REMOTE],any]"
"DayZ Epoch: MPframework inited"
Warning: z\addons\dayz_communityassets\models\compass.p3d:0 Error while trying to generate ST for points: 863, 853, 852
SetFace error: class CfgFaces.RodriguezHead.Face66 not found
Error: Error during SetFace - class CfgFaces.RodriguezHead.Face66 not found
SetFace error: class CfgFaces.OharaHead.Face66 not found
Error: Error during SetFace - class CfgFaces.OharaHead.Face66 not found
SetFace error: class CfgFaces.RodriguezHead.Face66 not found
Error: Error during SetFace - class CfgFaces.RodriguezHead.Face66 not found
SetFace error: class CfgFaces.RodriguezHead.Face66 not found
Error: Error during SetFace - class CfgFaces.RodriguezHead.Face66 not found
SetFace error: class CfgFaces.OharaHead.Face66 not found
Error: Error during SetFace - class CfgFaces.OharaHead.Face66 not found
SetFace error: class CfgFaces.OharaHead.Face66 not found
Error: Error during SetFace - class CfgFaces.OharaHead.Face66 not found
SetFace error: class CfgFaces.RodriguezHead.Face66 not found
Error: Error during SetFace - class CfgFaces.RodriguezHead.Face66 not found
Warning: z\addons\dayz_communityassets\models\razor.p3d:0 Error while trying to generate ST for points: 214, 349, 208
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
Error in expression <ecVM "custom_monitor.sqf";
};
>
  Error position: <};
>
  Error Missing {
File mpmissions\__CUR_MP.chernarus\init.sqf, line 140
R 1-1-C:1 REMOTE: Getting out while IsMoveOutInProgress
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
Network simulation, time = 0.050
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
Group B 1-1-A (0x2aa4a500) - network ID 2:1374
 - no main subgroup
"DEBUG: loadscreen guard started."
Error in expression <.sqf"; 
if ( !((getPlayerUID player) in AdminList) && !((getPlayerUID player) in>
  Error position: <AdminList) && !((getPlayerUID player) in>
  Error Undefined variable in expression: adminlist
File mpmissions\__CUR_MP.chernarus\init.sqf, line 104
"Res3tting B!S effects..."
"Running "kh_actions"."
"DAYZ: CLIENT IS RUNNING DAYZ_CODE "1.0.4.2""
"PLAYER RESULT: true"
"PLOGIN: Login loop completed!"

 

 

If guys can Plz help i have been pulling my hair out.

 

Join ts3.agggaming,com if want to talk

 

Thanks

Link to comment
Share on other sites

Hi, Zero, thanks for kind words

 

1) There are 2 solutions to that problem:

     a] if trusted only:

if((_isEmeraldItem and (player distance cursorTarget <= 2) and (getPlayerUID player) in ["123456789","987654321"]) and _canDo) then {

    b] add plotpole check to fn_selfActions, borrow code from remove.sqf so only objects near plotpole can be removed:

_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];
_findNearestPole = [];
{if (alive _x) then {_findNearestPole set [(count _findNearestPole),_x];};} foreach _findNearestPoles;

_IsNearPlot = count (_findNearestPole);

if((_isEmeraldItem and (player distance cursorTarget <= 2) and (_IsNearPlot >= 1) and _canDo) then {

Haven't tested, but you get the idea.

 

2) Thank you

3) It's easy. Go into 3D editor and spawn ton of items on ground you want to add. Save mission file and open it in my documents > arma 2 > your name > missions > mission.sqf for classnames

To add extra menu, you need to edit dialogs and extra_rc

To add to existing menus you need to edit, items.sqf and dayz_allowedObjects. Dont forget fn_Selfactions, too to be able to remove them

 

Raymix,

 

 This worked perfectly! Only thing needs to be changed is there was a bracket missing! Like this..

 

_findNearestPoles = nearestObjects[player, ["Plastic_Pole_EP1_DZ"], 30];

_findNearestPole = [];

{if (alive _x) then {_findNearestPole set [(count _findNearestPole),_x];};} foreach _findNearestPoles;

_IsNearPlot = count (_findNearestPole);

if((_isEmeraldItem and (player distance cursorTarget <= 2) and (_IsNearPlot >= 1) and _canDo)) then {

 

                                                                                                                                                     ^There

Link to comment
Share on other sites

Every time i join i get stuck in wait for host with a black screen.

 

This is what my rpt file says

 

 

 

If guys can Plz help i have been pulling my hair out.

 

Join ts3.agggaming,com if want to talk

 

Thanks

 

Ethan,

 

 Id like to help!, I need the port for your teamspeak too if I am to come there and help out

 

Zero.

Link to comment
Share on other sites

 

     1. extract ui_selectSlot.sqf from dayz_code.pbo to scripts\

     2. extract compiles.sqf from dayz_code.pbo to scripts\

     3. change in init.sqf:

 

​this:

​call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\compiles.sqf"; //Compile regular functions

change to:

call compile preprocessFileLineNumbers "scripts\compiles.sqf"; //Compile regular functions

     4. in compiles.sqf:

 

this:

player_selectSlot = compile preprocessFileLineNumbers "\z\addons\dayz_code\compile\ui_selectSlot.sqf";

change to:

player_selectSlot = compile preprocessFileLineNumbers "scripts\ui_selectSlot.sqf";

     5. in  ui_selectSlot.sqf:

 

add this:

       // Add extra context menus
_erc_cfgActions = (missionConfigFile >> "ExtraRc" >> _item);
        _erc_numActions = (count _erc_cfgActions);
        if (isClass _erc_cfgActions) then {
                for "_j" from 0 to (_erc_numActions - 1) do 
                        {
                        _menu =  _parent displayCtrl (1600 + _j + _numActions);
                        _menu ctrlShow true;
                        _config =  (_erc_cfgActions select _j);
                        _text =  getText (_config >> "text");
                        _script =  getText (_config >> "script");
                        _height = _height + (0.025 * safezoneH);
_compile =  format["_id = '%2' %1;",_script,_item];
                        uiNamespace setVariable ['uiControl', _control];


                        _menu ctrlSetText _text;
_menu ctrlSetTextColor [1,0.25,0.25,1];
                        _menu ctrlSetEventHandler ["ButtonClick",_script];


                };
        };

after this:

_menu ctrlSetText format[_type,_name];
_menu ctrlSetEventHandler ["ButtonClick",_compile];};

     6. add this very buttom in description.ext:

#include "scripts\extra_rc.hpp"

 

I followed this method when I did mine....

Link to comment
Share on other sites

If you just put in ts3.agggaming.com it should work

 

The name is [AGG]Ethan on it give me a poke 

 

Tried several times. Fails to connect

 

Ok got it. In your first post there was a comma in the host name :) Im sitting in the lobby now. Poked you a coulpe times.....

Link to comment
Share on other sites

Tried several times. Fails to connect

He doesn't have access to files tonight ^_^

 

@beani: double check extra_rc for typos.

It has to be properly structured as 

classA{classB{classC{text;script};};};
Link to comment
Share on other sites

 

He doesn't have access to files tonight ^_^

 

@beani: double check extra_rc for typos.

It has to be properly structured as 

classA{classB{classC{text;script};};};

 

I showed him how to remove the extra dialog and defines and gave him my team speak if he has any other issues.

Link to comment
Share on other sites

class ExtraRc {
    class ItemEmerald {
class PicFrame {
text = "Picture Frame";
script = "createDialog ""WGT_INTERIOR1"";";
};
        class Chairs {
text = "Chair";
script = "createDialog ""WGT_INTERIOR2"";";
};
        class Beds {
text = "Bed";
script = "createDialog ""WGT_INTERIOR3"";";
};
        class Bath {
text = "Bathroom";
script = "createDialog ""WGT_INTERIOR4"";";
};
        class Shelf {
text = "Shelf";
script = "createDialog ""WGT_INTERIOR5"";";
};
        class Misce {
text = "Misc";
script = "createDialog ""WGT_INTERIOR6"";";
};
        class Tablz {
text = "Table";
script = "createDialog ""WGT_INTERIOR7"";";
};
        class extr {
text = "Exterior";
script = "createDialog ""WGT_INTERIOR8"";";
};
};
}; 

Link to comment
Share on other sites

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Advertisement
×
×
  • Create New...