Jump to content

lxets

Member
  • Content Count

    30
  • Joined

  • Last visited

  • Medals

Everything posted by lxets

  1. Hi, I've been trying to create a kill feed script aiming for it to look/behave something like it does on games like BF4 for example - http://i.gyazo.com/e743a53ce660b50a5e8544b3c699fd21.mp4 Ive seen it done on a couple of arma missions, notably KOTH, and also one of KK's videos. http://i.gyazo.com/5ba4024f0b19ff9ff72ebdbdfaddd2c6.mp4 https://www.youtube.com/watch?v=4Dnz2qFz7QQ I have a pretty decent understanding of dialog, I know how to display all the information I need, however I don't really understand how to make the most recent kills show up and push the previous kill downwards like it does on the examples above when someone gets multiple kills. Hopefully that makes sense, I would really appreciate any advice/examples of how I should go about doing this. Thanks.
  2. Hi, I'm having an issue on my server where after around 2 hours at 100/100, the server totally de-syncs, and will kick 80% of the players with the "Battleye Client Not Responding", and nobody can rejoin until the server is restarted. Up until that point, the server FPS is fine, there is some de-sync but nothing major. When this happened, the RPT is spammed with. Server: Network message 3bebaab is pending So im guessing this is an issue with the amount of traffic, but what I'm wondering is what I should be looking for to determine what is causing this issue, or how it could be resolved. Server is running EXTDB2. Thanks.
  3. I've had some issues before with battleye/RCon before which are usually resolved by an incorrect filepath or something, but I really have no idea with this. Basically I cannot connect to my server with BEC or any Rcon tool, and I have absolutely no idea why. My server is running, and Battleye is initialized, and the beserver.cfg file which contains my Rcon password changes to beserver_active_whatever, so Im assuming that config file is being used correctly. Here is a screenshot - https://i.gyazo.com/a3e6a018be53cb99ed16a6b2dbd7050a.png However, if I try to connect to 127.0.0.1:2302 with the password in the beserver.cfg, It wont connect. I have tried BEC and several Rcon tools, and none work. I have also tried using the Battleye folder in the main directory, and have the same issue. I'm currently on devbranch, but get the same problem on stable. Any suggestions would be appreciated, cheers.
  4. Hi, basically im trying to convert an array, the best I can explain this is probably through an example, so _oldArray = [1,1,1,1,2,3,3,3,4,4,5]; _newArray = [[1,4],[2,1],[3,3],[4,2],[5,1]]; I have got this working, but there are some issues which is why im trying to understand the best way to do this. Here is the code I have { _number = _x; _count = {_x == _number} count _oldArray; _oldArray = _oldArray - [_number]; _newArray pushBack [_x,_count]; } forEach _oldArray; Using the code above I will get: [[1,4],[1,0],[1,0],[1,0],[2,1],[3,3],[3,0],[3,0],[4,2],[4,0],[5,1]] which is not ideal. I can get around this by doing the following. From: _newArray pushBack [_x,_count]; To: if (_count > 0) then { _newArray pushBack [_x,_count]; }; That will give me [[1,4],[2,1],[3,3],[4,2],[5,1]] which is the result I wanted, but I don't think the method is ideal. Im probably really over complicating this, but Im not sure what the ideal way to do it is.
  5. lxets

    Changing array

    Tested these out and found the 2nd one is fastest, thanks for the solutions.
  6. lxets

    Revive Feedback

    Looks good. Dragging / carrying injured players would be cool aswell.
  7. Hi, basically im trying to create an effect with the camera and I'm not sure if it's possible. When a player dies a respawn screen will show up which lasts a few minutes, and during this time I want the camera to be forced into first person on the players dead body. The issue is that in my mission the player will respawn a few seconds after dieing, but the respawn screen will still be showing, meaning the first person camera moves from the dead body to the newly respawned player, when I want the camera to remain in the first person view of the dead body. Im not sure how to get around this, I know how to create a camera and focus it on the body, but cant get it correctly in the position of the head which Is why I tried to just make the camera first person. Hopefully you can understand what I mean, can't explain it as well as I would like. Thanks.
  8. Hey, Im creating a menu where I need clickable buttons with a custom icon on them. Im am having an issue with the texture being unable to be loaded, despite the filepath being correct, so i'm assuming i'm doing this the wrong way. Im using an RscButton, in the control definition I have type = 1; style = "2096"; then, in the dialog file with the button I use text = "a3\ui_f\data\gui\Rsc\RscDisplayArsenal\primaryweapon_ca.paa"; this works perfectly, and I can see the Icon on my button. The issue is, when I try to use a custom icon with something like text = "textures\whatevertexture.paa"; I get the error, Cannot load texture (path). This is confusing me as If I change from an RscButton to RscPicture for example, it will work perfectly with the same filepath.
  9. //Full button definition, figured I should include this aswell class RscButton { idc = -1; type = 1; style = "2096"; default = 0; shadow = 1; w = 0.183825; h = "( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20)"; color[] = {1,1,1,1.0}; colorFocused[] = {1,1,1,1.0}; color2[] = {0.95,0.95,0.95,1}; colorDisabled[] = {1,1,1,0.25}; colorBackground[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1}; colorBackgroundFocused[] = {"(profilenamespace getvariable ['GUI_BCG_RGB_R',0.69])","(profilenamespace getvariable ['GUI_BCG_RGB_G',0.75])","(profilenamespace getvariable ['GUI_BCG_RGB_B',0.5])",1}; colorBackground2[] = {1,1,1,1}; animTextureDefault = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa"; animTextureNormal = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa"; animTextureDisabled = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\normal_ca.paa"; animTextureOver = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\over_ca.paa"; animTextureFocused = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\focus_ca.paa"; animTexturePressed = "\A3\ui_f\data\GUI\RscCommon\RscShortcutButton\down_ca.paa"; periodFocus = 1.2; periodOver = 0.8; class HitZone { left = 0.0; top = 0.0; right = 0.0; bottom = 0.0; }; class ShortcutPos { left = 0; top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2"; w = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)"; h = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; }; class TextPos { left = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1) * (3/4)"; top = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 20) - ( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)) / 2"; right = 0.005; bottom = 0.0; }; period = 0.4; font = "PuristaMedium"; size = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; sizeEx = "( ( ( ((safezoneW / safezoneH) min 1.2) / 1.2) / 25) * 1)"; text = ""; soundEnter[] = {"\A3\ui_f\data\sound\RscButton\soundEnter",0.09,1}; soundPush[] = {"\A3\ui_f\data\sound\RscButton\soundPush",0.09,1}; soundClick[] = {"\A3\ui_f\data\sound\RscButton\soundClick",0.09,1}; soundEscape[] = {"\A3\ui_f\data\sound\RscButton\soundEscape",0.09,1}; action = ""; class Attributes { font = "PuristaMedium"; color = "#E5E5E5"; align = "left"; shadow = "true"; }; class AttributesImage { font = "PuristaMedium"; color = "#E5E5E5"; align = "left"; }; };
  10. Ah ok, do you know how to go about clearing a control group then, I can't seem to use ctrlDelete on any controls within the control group, even with an IDC. _controls = allControls findDisplay 8000; { if (ctrlIDC _x > 8018) then {ctrlDelete _x}; }forEach _controls; //Also tried _controls = allControls findDisplay 8000; { if (ctrlIDC _x > 8018) then {ctrlDelete ((findDisplay 8000) displayctrl (ctrlIDC _x))}; }forEach _controls; I can use ctrlShow etc to hide the controls in the same way im trying to delete them, so I guess im just using ctrlDelete wrong, but I can't get it to work.
  11. Hey, I have created a controls group with various buttons/images, and I am wondering if its possible to delete everything within a controls group at once, without them having an idc. Thanks.
  12. Ah yea, that worked great, thanks. Always the small things :D
  13. Hi, i'm trying to create a shop menu which uses ctrlCreate to create images, text & buttons. On the buttons, I want to set some data, such as a price for an item and the items class name, and I am trying to use setVariable on the button to set an array of data, and when the button is pressed the eventhandler will run a script which retrieves these variables, for use in another script. Im under the impression that this would work as reading setVariable on the wiki says 'Control setVariable Array (since Arma 3 v1.55.133553)'. _button = _weaponList ctrlCreate ["RscButtonMenu", _IDC , CONTROL(1000,1001)]; _button ctrlSetText "Buy Weapon"; _button setVariable ["data",[_weaponClassname,_weaponCost]]; _button ctrlSetEventHandler ["ButtonClick", "[_this] spawn life_fnc_test;"]; and on the other script _control = _this select 0; _itemData = _control getVariable "data"; however, I am getting the error Error getvariable: Type Array, expected Namespace,Object,Group,Display (dialog),Control,Team member,Task,Location Any help would be appreciated, im not sure if this is the best way to do it, with ctrlCreate, but I want to avoid using list boxes for the moment even though I know that is alot easier.
  14. lxets

    Memory Crash

    Wondering if anyone knows whats causing this crash or how to go about fixing it, as i've been looking and can't find anything. https://gyazo.com/be8330b2799c25fde526c2b16d138e74 In the section of my RPT before the crash the error is Virtual memory total 4095 MB (4294836224 B) Virtual memory free 2362 MB (2477568000 B) Physical memory free 28899 MB (30303158272 B) Page file free 31468 MB (32996986880 B) Process working set 1227 MB (1286656000 B) Process page file used 1486 MB (1558736896 B) Longest free VM region: 2138771456 B VM busy 1817333760 B (reserved 143110144 B, committed 1674223616 B, mapped 60862464 B), free 2477502464 B Small mapped regions: 12, size 57344 B The only other errors in the RPT is: Server: Object 17:34 not found (message Type_119) Server: Object 8:62 not found (message Type_91) Server: Object 8:14 not found (message Type_91) Server: Object 8:13 not found (message Type_91) Server: Object 8:69 not found (message Type_119) Server: Object 8:70 not found (message Type_119) Server: Object 8:20 not found (message Type_91) This spams different types of objects pretty much the whole time the server is up, dont really understand whats causing it or if its related to the crash. Thanks.
  15. Dunno why but when I get the out of memory crash now it doesn't generate any files for the crash. V16 https://www.dropbox.com/s/zrhypwuo68vowx7/arma3server_2016-02-06_20-00-06.rpt?dl=0 What I noticed though is we had the exact same error as a different crash previously. The server crashes due to out of memory, and the RPT shows. Error decompressing LZO: a3\structures_f\wrecks\wreck_brdm2_f.p3d From 3248 to 3793 We used to get this crash with the preNLOD error, not out of memory, which is weird.
  16. Been running V16 for about 8 hours with 40-70 players and have had no memory crashes so far.
  17. Ah ok sorry If I misread. Thanks for the update, will try it out asap.
  18. Running V70 of extDB2 and still getting out of memory/preNLOD crashes seen here - http://feedback.arma3.com/view.php?id=27502 and here http://feedback.arma3.com/view.php?id=26878 This was not happening at all on 1.52 so im pretty sure that can't be an extDB issue?
  19. lxets

    Memory Crash

    Still no idea, someone said the server version before 16/12/15 works but I have no idea how to get older versions.
  20. Getting the same crash, with both performance & normal server.
  21. lxets

    Memory Crash

    Had the crash a few more times since last post, but recently getting Error: can't resize AutoArray to negative size! Virtual memory total 4095 MB (4294836224 B) Virtual memory free 298 MB (313233408 B) Physical memory free 28790 MB (30189547520 B) Page file free 29373 MB (30800048128 B) Process working set 1280 MB (1342803968 B) Process page file used 3533 MB (3705389056 B) Longest free VM region: 146939904 B VM busy 3981668352 B (reserved 157839360 B, committed 3823828992 B, mapped 60792832 B), free 313167872 B Small mapped regions: 15, size 73728 B So I have no idea what this is or where its coming from. Error: can't resize AutoArray to negative size! Of course I have been looking around aswell and can't find anything, only other people having the same issue with no suggestions for fixes.
  22. So I've had this error a couple of times which occurs at seemingly random times when running my server. https://gyazo.com/f3fff973b182a9396e4add3246012a2a It causes the server to totally crash and I have no idea why, and can't find anything about it. Anyone have any ideas? Thanks.
  23. So I've been wondering this for a while, but basically I was curious about the benefits (if any) of PAA over something like JPG, and if there will be any negatives of using JPG's for things like vehicle textures on a server with alot of players. Thanks.
  24. lxets

    Why use PAA?

    I found that when I convert a tga texture to paa its alot larger than if I just save it as a jpg or png for example, thats why I was wondering. Thanks for the answers guys.
×