Jump to content
🛡️FORUMS ARE IN READ-ONLY MODE Read more... ×

infection

Member
  • Content Count

    136
  • Joined

  • Last visited

  • Medals

Everything posted by infection

  1. Yes, I have this implemented on our servers, look into transactions.sqf, addlicense.sqf, shopdialog or shoptransaction (I can't remember which one) and you can add saving after each salaray in salaries.sqf. I'd like to point out I'm not too certain how efficent it is saving too many times. If you run a full servers say 46-60 people could possibly cause lag. Needs to be tested tho!
  2. Thanks for the find TriGGa, I accidentialy deleted an important line! Update today 0.1.2 -Fixed car saving (this includes the dialog saving). -Added recreating vehicle function which puts it back to the impound lot after a restart. (IMPORTANT: This command is specificly for Island life you will need to change this accordingly to your mission variables. Look into createfunctions.sqf) Latest update can be found on Github!
  3. Which function? Edit: also please show your arma2net log and arma2mysql log
  4. Players do not need to download anything. Everything is server sided.
  5. No it does not need to be on the same server, see the database.txt file when installing Arma2Mysql.
  6. Yes it will, Arma2Mysql works fine for arma 3.
  7. I just updated it with a small fix. It was not enabling user input when a new profile was created only when loading a profile. Fixed that vehicle was a number instead of array by default therefor you could get stuck on loading screen due to script error.
  8. Hello I've ran into some trouble in an if statement and I'm not quite sure what the best way is to resolve it! I currently have the variable ReturnedDatabaseLoadOuts being sent from the server, returns false if player dosn't have a profile. However if they do it returns an array of items he/she had. So No profile means- ReturnedDatabaseLoadOuts = false; Having a profile means ReturnedDatabaseLoadOuts = ["thingy",thingy2,thingy3,thingy4]; however here's the problem I'm having if (!(ReturnedDatabaseLoadOuts)) exitwith {bla bla bla}; Works great as long as ReturnedDatabaseLoadOuts is a boolean variable (I.E false in this case) however if it's the array incase you have a profile I get this. if (!(ReturnedDatabaseLoadOuts)) exitwith { > Error position: <!(ReturnedDatabaseLoadOuts)) exitwith { > Error !: Type Array, expected Bool So, as I said I don't know what the easiest solution to this would be. Thanks for your help!
  9. @Nimrod that returned the same error because it tries to check if it's true or false but it's an array. @F2k sel Works great thanks!
  10. infection

    Arma2MySQL

    Sorry for not posting my results! Been busy, however it was working great with 32 people on the server, loading and saving. No major lag so far. I just gotta figure out a more reliable wait system for the client instead of a sleep to wait for him to recieve his stats.
  11. infection

    Arma2MySQL

    Aha I forgot I keep my addins folder in the actual arma 2 directory else it can't find it, thanks! Silly mistake!
  12. infection

    Arma2MySQL

    I get this error in arma2net 07/17/2013 21:22:52 function: Arma2NETMySQLCommandAsync ['life', 'SELECT uid, name, bank, inventory, license, streetrep, vehicle FROM users WHERE uid = '####' AND name = 'Infection' AND side = 'CIV''] 07/17/2013 21:22:52 maxResultSize: 4095 07/17/2013 21:22:57 Caught exception of type Arma2Net.Managed.FunctionNotFoundException 07/17/2013 21:22:57 Arma2Net.Managed.FunctionNotFoundException: The specified add-in was not found: Arma2NETMySQLCommandAsync at Arma2Net.Managed.AddInManager.InvokeAddIn(String addInName, String arguments, Int32 maxResultSize) at Arma2Net.Managed.Bridge.InvokeBuiltInOrAddIn(String function, Int32 maxResultSize) at Arma2Net.Managed.Bridge.InvokeFunction(String function, Int32 maxResultSize) The addin shows up in arma2net explorer even. however the normal functions work. (I did compile the async version I made sure of that! :p)
  13. infection

    Arma2MySQL

    So is asynchronous only good for loading several peoples stats or how would I go about looping the insert / update? Also is it only needed the loop when querying the server several times for your stats not just once? Sorry I'm just beginning this mysql stuff :)
  14. infection

    Arma2MySQL

    I've never compiled a plugin like this before, what would be the easiest way of doing so? Edit: Nvm got it sorted! In other news, gonna be testing your new update with 30+ players tonight, will get back to you how it works out!
  15. Well, Dayz servers run mysql right or a sql database, so you'd have to build something that inserts new info in the database I'm guessing.
  16. Well if you are doing at as I think you are, you're setting GoToWar from the radio on the client right? You need to broadcast the variable to every client or just the server depending on what fits your needs. Because if you set GoToWar to 1 in the radio without publicvariable it only changes on the client. If you do publicvariable "GoToWar"; then everyone (including server) gets sent the variable that you set on your client (1 in this case). See http://community.bistudio.com/wiki/publicVariable http://community.bistudio.com/wiki/publicVariableServer
  17. Stupid question but did you use publicvariable in the radio script? Incase only server needs it you can always use publicvariableserver aswell I'm pretty sure.
  18. infection

    Arma2MySQL

    Thanks for sharing! I will definetly be testing this out tommorow!
  19. infection

    Arma2MySQL

    Actually I got everything sorted, loads, saves all that jazz however now it's more code optimization needed. I'm gonna upload what I have so far, if anyone could take a look at it and point anything out that'd be great, I was planning on releasing it for life servers to use. This is for ours basiclly what it saves so far is -Bank -Inventory -Licenses -Streetrep -One car of your choice However as I mentioned before it feels very unoptimized mostly the fact that it calls A LOT of functions before comming down to the barebone saving, I'd like to cut down a lot on the functions if possible but I'm out of ideas. (This is without CBA running on client btw only server) My main questions now are How would this preform with 50 people loading in at the same time (during server startup)? How badly is the server's performance hit by several people saving at the same time? http://infecto.se/status/statsave.rar
  20. infection

    Arma2MySQL

    Right I've managed to get it to save as I want now, It returns it, well not really as I want it it seems.¨ The code below is after I've done _get = call compile _get; _get = _get select 0; _get = _get select 0; DROPPED OUTER LAYERS: ["0101(UID)","Name","41000","item1`1`item2`2`item3`4","[]"] Everything is in a string, how can I turn them all into well actual numbers and items also the item list goes into this function afterwards split_array = { _get = (_this select 0) select 3; diag_log "___ARRAY DIAG__"; diag_log format ["%1", _get]; if ([(_get select 0), "`"] call CBA_fnc_find > 0) then { _items = [(_get select 2), "`"] call CBA_fnc_split; } else { _items set [0, (_get select 2)]; }; diag_log format ["%1", _items]; }; This function is just to turn everything back to an array? As taken from the example mission.
  21. Hi, I'm running a life mission on our dedicated box (purchased at hetzner.de) http://www.hetzner.de/en/hosting/produkte_rootserver/ex6s to be specific and it feels like the FPS is underpreforming. If I the mission we run on my own pc which has a (i5 2500k stock) then I get ~50 server fps if I run the exact same mission on the server it only gets 25-30 server fps, I don't know if it's just me being stupid but I tought a Xeon 1245 would outperform a 2500k when it comes to running dedicated servers... I know arma 2 can be very tricky with hyperthreading etc so I just wanna get some clarification, Should I disable hyperthreading? Should I change the affinity or what should I do to make it perform better? Specs Intel® Xeon® E3-1245 Quadcore incl. Hyper-Threading Technology RAM 32 GB ECC RAM Hard disks 2 x 3 TB SATA 6 Gb/s HDD 7200 rpm (Software-RAID 1) Enterprise class 1 Gbit OnBoard connected at 100 Mbit
  22. Would you mind sharing basic.cfg?
  23. infection

    ARMA 3 Addon Request Thread

    Hi, I'm working on a mafia-like mission and I want it to have the 60's look (I understand it's not completly achievable, but I'm a beliver!). Basiclly what I'm asking would be if anyone would be able to create black suit clothes for me? I'm also looking for cars/weapons, however I suspect I'm gonna have to work out those myself! Anyways here's some pictures of the character so far. http://infecto.se/box/arma3%202013-05-24%2014-34-29-63.png (1723 kB)
  24. infection

    Arma 3 Black suit clothes

    Ah alright, sorry for the thread.
  25. Hi, I'm working on a mafia-like mission and I want it to have the 60's look (I understand it's not completly achievable, but I'm a beliver!). Basiclly what I'm asking would be if anyone would be able to create suit clothes for me? I'm also looking for cars/weapons, however I suspect I'm gonna have to work out those myself! Anyways here's some pictures of the character so far. http://infecto.se/box/arma3%202013-05-24%2014-34-29-63.png (1723 kB)
×