Jump to content

KamikazeXeX

Member
  • Posts

    263
  • Joined

  • Last visited

Posts posted by KamikazeXeX

  1. Just to update everyone that I have solved the issue but its VERY unlikely that you will have made the same mistake I have

    I recently went through all my files optimizing things and adding error handling to things, and completely overlooked a aspect of the AI system when adding error handling, in ai_monitor I had this:
     

    if (ai_clean_dead) then {
    	{
    		_killedat = _x getVariable ["killedat", 0];
    		if (!isNil "_killedat") then {
    			if ((time - _killedat) >= ai_cleanup_time) then {
    				deleteVehicle _x;
    			};
    		};
    	} count allDead;
    };
    

    When it was supposed to be:

     

    if (ai_clean_dead) then {
    	{
    		_killedat = _x getVariable "killedat";
    		if (!isNil "_killedat") then {
    			if ((time - _killedat) >= ai_cleanup_time) then {
    				deleteVehicle _x;
    			};
    		};
    	} count allDead;
    };
    

    Effectively I had basically forced killedat to always return 0 meaning it'd never be nil, thus when it looped over all dead bodies it'd be returning 0 for players bodies, and as per the condition for deleting the body it would return true, and delete the body.

  2. Sorry its such a late reply, to all of those having the issue with objects resetting their orientation can I take a peep at your server + mission files to compare with mine and see what the issue is, I've not done much work involving the build system on my A2 servers for such a long time I barely remember what I have on there lol, feel free to give me a PM and i'll get back to you all ASAP

  3. As the topic title suggests I'm interested in what sort of CPS and FPS (server not client) other server owners get and at what player count, of course this is very dependent on what code is running but just for an average idea, I've been battling some very low performance on my server (its a dedicated machine, the E3-SAT-2 from SoYouStart) we're running one ArmA 2 Overpoch server and 1 ArmA 3 Exile server, 20-35 players at peak and I'm usually seeing 10-20 FPS and around 2-0.5 CPS just before reboot and around 10-20 mins after a reboot with 5 players its at around 20CPS and 35FPS, this is with around 37 static AI and missions using WickedAI, I expect this is probably the cause so I should likely cut down on them or use a headless its only now I'm starting to understand arma a little better that its raised concerns, what would you guys suggest? Thanks in advance

    ~KamikazeXeX

  4. I can't figure out how to update the player_upgrade,sqf

    Is it just the one file or do I need the http://epochmod.com/forum/index.php?/topic/14447-how-toupdate-snap-build-pro-w-admin-fast-build-upgrade-and-extra-rc-building-system/?

    I wasn't able to update using that link because it requires PFL.

    Do I need PFL or can I update without it?


    I believe off the top of my head this is what you need to do, all of this should be in player_upgrade.sqf (untested) I should really push out a version of that script without P4L

    Find this
    // Get direction
    _dir = getDir _obj;
    
    Add this below it
    //Get Vector
    _vector = [(vectorDir _obj),(vectorUp _obj)];
    
    Find this
    // Set direction
    _object setDir _dir;
    
    Add this below it
    // Set vector
    _object setVectorDirAndUp _vector;
    
    Lastly find this
    PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location],_classname,_obj,player];
    publicVariableServer "PVDZE_obj_Swap";
    
    And replace with
    PVDZE_obj_Swap = [_objectCharacterID,_object,[_dir,_location,_vector],_classname,_obj,player];
    publicVariableServer "PVDZE_obj_Swap";

    Should be good from there :) any issues give me a PM

  5. Has anyone fixed the issue when trying to upgrade an upside down block garage door?

    It flips back right side up when upgrading.

    I see others in this thread have reported this but I see no solution...

    I know about using already locked wood garage doors but how to do it with cinderblock garage?

     

    Thank you.

    Sounds like you haven't updated your player_upgrade,sqf i.e its not getting and then re-setting the vector after upgrade

  6. Obviously you do not understand that this is a post that shows a script. Instead of posting "better code", you could've just PM'd me with the code you posted to prevent confusion for future visitors.

    What if I at a later stadium update which DOES work or is better than the code you posted? Then your post will only be a confusion to visitors.

     

    To make it even worse, your explenation of how my script works is completely wrong. Read it again.

    But yes, I have to admit that the script is not optimal and perfect. But that is where learning and development comes in. Soon there will be a much much better version with new features and fixed issues.

    You're a wizard, teach me

  7. cursorTarget spawn { 
    	_animations = ["ani_vtoroy","ani_tretiy","ani_chetv","ani_piatiy","ani_shest","ani_sem","ani_vosem"];
    	{
    		_this animate [_x, 1];
    	} forEach _animations;
    }; 

    Guess I forgot to give you this?

    EDIT: This is for the Origins Lvl 4 Mansion

  8. My point is there already is a dedicated scripting tool for Arma (squint) - it is just out of date and not very productive as of March 2015. I still do use it though. It knows about 70% of arma structures. It can tell when you leave a { open and so on. It *is* an arma dedicated scripting tool. Thanks to axeman for telling me about it.

    I was totally aware of squint but I've never got on with it, for the simple reason it is outdated and has never really helped me out long term, I was suggested to use it a long time ago but again, it had never really helped much, NP++ was overall easier to use and looks much nicer

  9. I always used Notepad++, but got annoyed when I'd make silly errors like missing a semi-colon or naming a variable wrong -- and only find out 10 minutes later when I've finally loaded into Arma...

    Funny you should say that, this thread was actually suggested just now in a skype group "anyone tried this yet" my response was simply "Nope, but i'm trying it, the amount of times I forget a ' or ; xD"

    Aside from that, awesome! good to hear, it'll save me a lot of time looking things up especially with the F12 lookup function, I do love that, if I knew anything more about C# I'd lend you a hand but I've never been any good with anything aside from ArmA but yes, this is a tool a lot of developers need in their tool kits! So eager to see how it develops on!

  10. I'm really liking this man! brilliant idea, this will help so many people learn to code better, keep it up! I can see this being used as my daily tool, only thing I hav a issue with right now is trying to open files directly from explorer doesn't open them, it just opens dash itself not the file other than that no flaws! I can see me donating to this at some point in the future!

×
×
  • Create New...