Jump to content

vauhs

Member
  • Posts

    9
  • Joined

  • Last visited

Posts posted by vauhs

  1. I'm getting this error in client rpt:

    Error in expression < "PartVRotor";
    };
    
    if (_damage >= 1 && (_part == "PartEngine" || _part == "PartV>
      Error position: <_part == "PartEngine" || _part == "PartV>
      Error Undefined variable in expression: _part
    File mpmissions\__CUR_MP.chernarus\custom\scripts\JAEM\CallEvacChopper.sqf, line 101
    

    It works fine just I like a clean rpt if possible. I'm using JAEM v1.4

  2. NP, glad we got to the root of the issue.

     

    Dropbox package updated and file fixed on GitHub.

    I  had to do a fresh install today and had the icons not updating. Tried github and dropbox files. I did go into dayz code and just copied and pasted the entire file and switched out the lines and it worked fine afterwards.

     

    Edit: This is the error I got with a fresh server install:

    Error in expression <ontrol = _this;
    if (ctrlShown (_control select 0)) then {
    {_x ctrlShow false} fo>
      Error position: <select 0)) then {
    {_x ctrlShow false} fo>
      Error select: Type Control, expected Array,Config entry
    File mpmissions\__CUR_MP.chernarus\Custom\A_Plot_for_Life\init\compiles.sqf, line 304
    
  3. dayz_resetSelfActions = {
    	s_player_plot_boundary_on = -1;
    	s_player_plot_boundary_off = -1;
    	s_player_plot_take_ownership = -1;
    };
    call dayz_resetSelfActions;
    

    That's what is in my custom variables.sqf - The variables.sqf in dayz_code has the rest of the default variables I have not messed with.

     

    As far as load order in init.sqf to make sure they load properly:

    call compile preprocessFileLineNumbers "\z\addons\dayz_code\init\variables.sqf";
    call compile preprocessFileLineNumbers "custom\init\variables.sqf"; 

    As far as the show/remove boundary, on the second plot pole I can click "show" and it will keep saying show and never show up remove option. The first plot pole I placed down doesn't have this problem, it worked perfectly. Possible desync issue? Only me on the test server though.

     

    Thanks again!

     

    Edit#1: I tried bring over the entire dayz_resetSelfActions from the dayz_code into my custom variables.sqf and it worked. No more errors. Plot pole remove boundary still not showing on second plot pole, but no biggie. I understood that I didn't have to bring over the entire dayz_resetSelfActions, just add the ones that wasn't there. Maybe I misunderstood wrong in raymix's video.  Clarification on that would be helpful. 

  4. Error in expression <3 = _this select 2;
    player removeAction s_player_toggleSnap; s_player_toggleSnap>
      Error position: <s_player_toggleSnap; s_player_toggleSnap>
      Error Undefined variable in expression: s_player_togglesnap
    File mpmissions\__CUR_MP.chernarus\Custom\Snap_Pro\snap_build.sqf, line 30
    
    Error in expression <player_toggleSnapSelect = -1;
    if (count s_player_toggleSnapSelectPoint != 0) the>
      Error position: <s_player_toggleSnapSelectPoint != 0) the>
      Error Undefined variable in expression: s_player_togglesnapselectpoint
    File mpmissions\__CUR_MP.chernarus\Custom\Snap_Pro\snap_build.sqf, line 32
    

    I'm getting these 2 errors in my client RPT file every time after I die when building my first wall/door/whatever. Afterwards you build or cancel the thing your building it doesn't happen unless I die again. The first error is when I turn on Snap, the second when I select a snap point. I would like to get this solved as I don't like errors. xD   

     

    Much thanks!

     

     

    Edit#1: Also, I have 2 plot poles on the map. The first one has the show/remove option for the boundary but the second one only has the show option. Is there a way to get it to also show the remove option?

  5. Few quesitons, have you tried just defining the variables like below? have you made sure that you aren't trying to call this custom one before the main one in the init or have the default one commented out? and have you checked both the server and client rpts? Errors can show in one and not the other.

     

    s_player_plot_boundary_on = -1;

    s_player_plot_boundary_off = -1;

    s_player_plot_take_ownership = -1;

    DZE_APlotforLife = false;

    DZE_PlotOwnership = false;

    DZE_snap_build_file = "";

    DZE_plotTakeOwnershipItems = dayz_allowedObjects - (DZE_LockableStorage + ["Plastic_Pole_EP1_DZ","TentStorage","TentStorageDomed","TentStorageDomed2"]);

     

     

     

     

    I'm not exactly sure if epoch calls dayz_resetselfactions later on in code or fsms but you may want to look through the github and see if its ever called again. I would just change like I did above if it does. You can then go through the actions and add a variable reset at the end if it needs it or redefine dayz_resetselfactions and include all of the old stuff plus the new.

     

    First thing I did was double check the init.sqf and everything was loaded correctly. I then made my custom variables.sqf the exact way as you have it, I started gettings errors in my client.rpt, I'm not sure if I got errors before using my code as I did not look into my client rpt file as I totally forgot about that. Next I tried calling dayz_resetSelfActions again and was a no go, same thing happening. So then I redefined dayz_resetSelfActions and still the same errors in the client rpt. Any further ideas would be appreciated.

     

     

     

    Edit: I think I found the problem. I did what you suggested and I kept getting errors with variables not defined, so I went in and found those variables and made sure they had a variable. I added those at the very bottom and also changed DZE_APlotforLife & DZE_PlotOwnership to true. This gave me absolutely no errors what so ever in server or client rpt logs and the script works the way it's post to. I have not tried to remove the default code from dayz_resetSelfActions but I saved so much kb on the mission file I'm already happy. I'll prob try it again without it but if it doesn't work, then I know for sure the below code does work.

    dayz_resetSelfActions = {
    	s_player_fire =			-1;
    	s_player_cook =			-1;
    	s_player_boil =			-1;
    	s_player_fireout =		-1;
    	s_player_butcher =		-1;
    	s_player_packtent = 	-1;
    	s_player_packvault = 	-1;
    	s_player_lockvault = 	-1;
    	s_player_unlockvault = 	-1;
    	s_player_fillwater =	-1;
    	s_player_fillwater2 = 	-1;
    	s_player_fillfuel = 	-1;
    	s_player_grabflare = 	-1;
    	s_player_dropflare =	-1;
    	s_player_callzombies = 	-1;
    	s_player_showname = 	-1;
    	s_player_debuglootpos = 	-1;
    	s_player_pzombiesattack = 	-1;
    	s_player_pzombiesvision =	-1;
    	s_player_pzombiesfeed = 	-1;
    	s_player_removeflare = 	-1;
    	s_player_painkiller =	-1;
    	s_player_studybody = 	-1;
    	s_player_tamedog =		-1;
    	s_player_madsci_crtl =	-1;
    	s_player_parts_crtl =	-1;
    	s_build_Sandbag1_DZ = 	-1;
    	s_build_Hedgehog_DZ =	-1;
    	s_build_Wire_cat1 =		-1;
    	s_player_deleteBuild =	-1;
    	s_player_forceSave = 	-1;
    	s_player_checkGear = 	-1;
    	s_player_flipveh = 		-1;
    	s_player_stats =		-1;
    	s_player_sleep =		-1;
    	s_player_movedog =		-1;
    	s_player_speeddog =		-1;
    	s_player_calldog = 		-1;
    	s_player_feeddog = 		-1;
    	s_player_waterdog = 	-1;
    	s_player_staydog = 		-1;
    	s_player_trackdog = 	-1;
    	s_player_barkdog = 		-1;
    	s_player_warndog = 		-1;
    	s_player_followdog = 	-1;
    	s_player_repair_crtl =  -1;
    	s_player_information =  -1;
    	s_player_fuelauto    =  -1;
    	s_player_fuelauto2    =  -1;
    	s_player_fillgen	 =  -1;
    	s_player_upgrade_build	 =  -1;
    	s_player_maint_build	 =  -1;
    	s_player_downgrade_build	 =  -1;
    	s_player_towing		 =  -1;
    	s_halo_action =         -1;
    	s_player_SurrenderedGear = -1;
    	s_player_maintain_area = -1;
    	s_player_maintain_area_preview = -1;
    	s_player_heli_lift = -1;
    	s_player_heli_detach = -1;
    	s_player_lockUnlock_crtl = -1;
    	s_player_toggleSnap = -1;
        s_player_toggleSnapSelect = -1;
        s_player_toggleSnapSelectPoint=[];
        snapActions = -1;
    	s_player_plot_boundary_on = -1;
    	s_player_plot_boundary_off = -1;
    	s_player_plot_take_ownership = -1;
    };
    call dayz_resetSelfActions;
    
    DZE_APlotforLife = true;
    
    DZE_PlotOwnership = true;
    
    DZE_snap_build_file = "";
    
    DZE_plotTakeOwnershipItems = dayz_allowedObjects - (DZE_LockableStorage + ["Plastic_Pole_EP1_DZ","TentStorage","TentStorageDomed","TentStorageDomed2"]);
    
    
    Dayz_Dark_UI = false;
    DZE_checkNearbyRadius = 100;
    DayZ_UseSteamID = true;
    dze_snapextrarange = 0;
    
  6.  

    You need to make sure they are being called in your init.sqf

     

     

    I have it already being called in the init.sqf and set to the correct file path. I am getting no errors in the .rpt either. It works if I use the P4L/Snap Pro variables perfectly, but when I take out the copied over code and just add in the stuff that's been added into variables.sqf like I posted above, it stops working. Plot pole doesn't register as being placed. Take ownership doesn't work and etc. So it had to be something with my variables.sqf as that's the only file I've condensed atm for a smaller file size.

  7. I didn't want to create a new topic on this, so basically I was trying to install P4L/Snap pro. I noticed it came with a variables.sqf/compiles.sqf but it was a copy of the dayz_code version + some added lines. Now what I am trying to do is make my own custom variables.sqf/compiles.sqf without having that excess code for a smaller mission file size. I've tried to do it many ways, but for some reason I cannot get it to work. Any help would be greatly appreciated on how to make a custom variables.sqf/compiles.sqf without having all that extra bulk. 

     

    This is my current variables.sqf  - Please criticize on what I did wrong and help me fix it.

    disableSerialization;
    dayz_resetSelfActions = {
    	s_player_plot_boundary_on = -1;
    	s_player_plot_boundary_off = -1;
    	s_player_plot_take_ownership = -1;
    };
    call dayz_resetSelfActions;
    
    if (isNil "DZE_APlotforLife") then {
    	DZE_APlotforLife = false;
    };
    if (isNil "DZE_PlotOwnership") then {
    	DZE_PlotOwnership = false;
    };
    
    DZE_snap_build_file = "";
    
    if (isNil "DZE_plotOwnershipExclusions") then {
    	DZE_plotTakeOwnershipItems = dayz_allowedObjects - (DZE_LockableStorage + ["Plastic_Pole_EP1_DZ","TentStorage","TentStorageDomed","TentStorageDomed2"]);
    };
    
×
×
  • Create New...