Jump to content

TriGGa

Member
  • Content Count

    73
  • Joined

  • Last visited

  • Medals

Everything posted by TriGGa

  1. Im wanting to run a script every so often to clean out the server of dead bodies, I tried the following script: _corpse = _this select 0; sleep 360; deleteVehicle _corpse; But i believe this is for a single corpse, how can I edit so I can make this delete all dead corpses in the server?
  2. need like a cue system when players join, and how did the save on disconnect go? C:\Users\USERNAME\AppData\Local\Arma2NETMySQL Log: Info: 21:34:29 - Logging started in directory: C:\Users\Administrator\AppData\Local\Arma2NETMySQL/logs/ Info: 21:34:29 - Arma2NETMySQL Plugin Started. Info: 21:34:29 - Version number: 0.1.0.0 Info: 21:34:29 - Loading databases... Warning: 21:34:29 - Unable to find the Databases.txt file here: D:\Servers\TestServer\@Arma2NET\Databases.txt Error: 21:34:29 - Unable to find the Databases.txt here: C:\Users\Administrator\AppData\Local\Arma2NETMySQL/Databases.txt Info: 21:34:29 - Databases.txt file loading in from: C:\Users\Administrator\AppData\Local\Arma2NETMySQL/Databases.txt Info: 21:35:35 - Logging started in directory: C:\Users\Administrator\AppData\Local\Arma2NETMySQL/logs/ Info: 21:35:35 - Arma2NETMySQL Plugin Started. Info: 21:35:35 - Version number: 0.1.0.0 Info: 21:35:35 - Loading databases... Warning: 21:35:35 - Unable to find the Databases.txt file here: D:\Servers\TestServer\@Arma2NET\Databases.txt Error: 21:35:35 - Unable to find the Databases.txt here: C:\Users\Administrator\AppData\Local\Arma2NETMySQL/Databases.txt Info: 21:35:35 - Databases.txt file loading in from: C:\Users\Administrator\AppData\Local\Arma2NETMySQL/Databases.txt might be conficting with old stat save files?
  3. Having major issues when lots of people join, like after a server restart, not all player stats load, and some hang on the load stats screen, need like a cue system when players join, and how did the save on disconnect go?
  4. Found another glitch, seems that ona server restart or when 2 or more players join at the same time, it either does not create a profile in the database or wipes old data and replaces it with default setup. This must happen whilst the first joiner or 1 player is retreiving their data. May need to look at placing players in a que to recieve there stats or create data in the the database. perhaps on player spawn it would place in que then once "x" is not busy it loads/creates info.
  5. what about on player spawn or respawn aswell as player connect / disconnect, incase a player just goes back to lobby and respawns or swaps character or role..
  6. what i was getting at was: what line of code have you added to these files to do this, and can it be done without the dialog box opening...ie hidden save.
  7. Yeah i thought it might cause a bit of lag saving all the time. Anyway to save the data without causing the interface to pop up, a simple [] execVM "blahblah.sqf"; at the bottom of the files yo edit to prompt the save perhaps? Also looking to add an option to have a manual save feature for the player with the scroll wheel.
  8. Perfect working now, any tips on how to create an autosave for this feature, like say autostat save every 10 min? or perhaps a setup so it saves after every transaction ie paycheck, fine paid give drop or receive money. Otherwise unless the player saves the stats they could manipulate the economy by giving money to a friend respawning in with there old data and doing it again.
  9. we added the [] execVM "statsave\dialogs\savomat.sqf"; to the end of the atm.sqf file so when the player uses the atm machine after using and withdrawing money the dialog box appears and they save stats, however it does not write the new information to the database. whats the default directory for the arma2net log and arma2mysql log? We get an error in the following file: statsave/client/savefunc.sqf line 97 _vehname = _vehs select 1; this is our server log: Info: 12:34:06 - Logging started in directory: D:\Servers\TestServer\logs\ Info: 12:34:06 - Arma2NETMySQL Plugin Started. Info: 12:34:06 - Version number: 0.1.0.0 Info: 12:34:06 - Loading databases... Info: 12:34:06 - Databases.txt file loading in from: D:\Servers\TestServer\Databases.txt Info: 12:34:06 - Type: mysql Database: life IPAddress: 127.0.0.1 Port: 3306 Username: arma Password: NotShownForSecurityReasons Info: 12:34:37 - Received - Database: life SQL Query: SELECT uid, name, bank, inventory, license, streetrep, vehicle FROM users WHERE uid = '5582016' AND name = '[cv]TRIGGA' AND side = 'CIV' Info: 12:34:38 - Received - Database: life SQL Query: INSERT into users (uid, name, side, bank, inventory, license, streetrep, vehicle) VALUES('5582016', '[cv]TRIGGA', 'CIV', '0', '0', '0', '0', '[]') Info: 12:34:39 - Received - Database: life SQL Query: UPDATE users SET bank = '25000', inventory = 'schluesselbund`1`handy`2', license = '[]', streetrep = '0' WHERE uid = '5582016' AND name = '[cv]TRIGGA' AND side = 'CIV' Info: 12:38:04 - Received - Database: life SQL Query: SELECT uid, name, bank, inventory, license, streetrep, vehicle FROM users WHERE uid = '5582016' AND name = '[cv]TRIGGA' AND side = 'CIV' Info: 12:41:48 - Received - Database: life SQL Query: SELECT uid, name, bank, inventory, license, streetrep, vehicle FROM users WHERE uid = '5582016' AND name = '[cv]TRIGGA' AND side = 'CIV'
  10. Great Plugin, however we get it all working except one problem, the scripts do not write to the server database when you activate the save function. so character remain with the default config as per a new character in the database.
  11. apart from having the .pbo in the mpmission folder server side, what else do we need to setup server side?
  12. anyone still got this map available for download, or anything similar for a massive airspace to fight in?
  13. TriGGa

    Arma 3 Dedicated server

    anyone got fire deamon to run this on a dedicated server.
  14. TriGGa

    Arma 3 Dedicated server

    Please give a command example of a -server switch
  15. TriGGa

    J.S.R.S. 1.5

    Awesome work, great sounds. One Question, will the jsrs15.bikey alone server side also cover those who try to join with the old JSRS1.4.3 mod?
  16. So if I have a 60 slot server running a 120 Slot/player mission and use the reserved slot feature in BEC, and lets say i have 10 reserved slots, and all randoms join the game (non-reserved members) will this BEC feature stopthe player count at 50 or will it still fill up to maximum random players to 60.
  17. Does anybody have or Know of a script/files to create reserved slots in game that only allows certain player uids to use the slots. eg: var name of unit = unit1 only person who can use this unit is uid = "1234567" otherwise if the uid does not match the player is kicked from that slot. I have seen xeno's use of reserved slot in the domination mission, but i need one that works outside of the domination mission. Any help would be great...... even considering paying for a working version.
  18. TriGGa

    Admin reserved slot

    What file calls the x_reservedslot.sqf to load?
  19. TriGGa

    Admin reserved slot

    OK so I have the following code: From i_client.sqf // GVAR(reserved_slot) gives you the ability to add a reserved slot for admins // if you don't log in when you've chosen the slot, you'll get kicked after ~20 once the intro ended // default is no check, example: GVAR(reserved_slot) = "RESCUE"; GVAR(reserved_slot) = "admin"; // GVAR(uid_reserved_slots) and GVAR(uids_for_reserved_slots) gives you the possibility to limit a slot // you have to add the var names of the units to GVAR(uid_reserved_slots) and in GVAR(uids_for_reserved_slots) the UIDs of valid players // GVAR(uid_reserved_slots) = ["alpha_1", "bravo_3"]; // GVAR(uids_for_reserved_slots) = ["1234567", "7654321"]; GVAR(uid_reserved_slots) = []; GVAR(uids_for_reserved_slots) = []; and from x_reservedslot.sqf // by Xeno #define THIS_FILE "x_reservedslot.sqf" #include "x_setup.sqf" sleep 1; if (serverCommandAvailable "#shutdown") exitWith {}; for "_i" from 1 to 3 do { hint "Attention!\nThis is a reserved admin slot.\nIf you are an admin on this server log in in the next 20 seconds otherwise you'll get kicked automatically!"; sleep 5; }; if (serverCommandAvailable "#shutdown") exitWith { hint format ["Welcome %1!\nYou logged in, no kick", GVAR(name_pl)]; }; hint "Attention!\nYou have 5 seconds to log in or you get kicked automatically!"; sleep 5; if (serverCommandAvailable "#shutdown") exitWith { hint format ["Welcome %1!\nYou logged in, no kick", GVAR(name_pl)]; }; hint "You will be kicked now... !!!"; sleep 1; [QGVAR(p_f_b_k), [player, GVAR(name_pl),2]] call FUNC(NetCallEvent); But what I need help with is that I'm trying to use this on a mission that IS NOT domination, and so where do I place this code to get it to work. Do i need to make new .sqf files?
  20. Ive noticed a few mods protecting some folders/files in the .pbo's When I extract the .pbo to have a look at the code, I find alot of the relevant files/folders missing. How are they doing this?
  21. TriGGa

    Secure files in.pbo

    What I meant is some of the files to run the .pbo are still server side, how can you have a .sqm file server side thats required for the .pbo
  22. TriGGa

    Admin reserved slot

    Found it but when i use it in my mission file it shows errors. Does this go in the init file? Im using the following: GVAR(reserved_slot) = "RESCUE"; GVAR(uid_reserved_slots) = ["alpha_1"' date= "bravo_3"]; GVAR(uids_for_reserved_slots) = ["1234567", "7654321"];
  23. I have 3 factions in a mission but I want to be able to use all the available characters in ARMA 2 and OA. For example I want to create a UN unit on the map UTES, when I do this in the editor it makes it a Independant unit, I want the unit to be in BLUFOR. Is there a way to change the character so they are on different sides. ie put a USMC Soldier character on OPFOR Team and vice versa
×