Jump to content

austin_medic

Member
  • Content Count

    716
  • Joined

  • Last visited

  • Medals

  • Medals

Everything posted by austin_medic

  1. So BIS has a countdown module, though it doesn't have any on screen timer, and a rather puny little icon that displays the number of minutes left, though some people might want something that stands out a bit more. description.ext: #define CT_STATIC 0 #define ST_LEFT 0x00 class RscTitles { class RscText { type = CT_STATIC; idc = -1; style = ST_LEFT; colorBackground[] = {0, 0, 0, 1}; colorText[] = {1, 1, 1, 1}; font = FontM; sizeEx = 0.04; h = 0.04; text = ""; }; class AUSMD_Timer { idd = 10000; onload ="uiNamespace setVariable [""AUSMD_Timer"", _this select 0];"; duration = 10000000; class Controls { class timer_text: RscText { idc = -1; colorBackground[] = {0,0,0,0}; x = 0.434375 * safezoneW + safezoneX; y = 0.164 * safezoneH + safezoneY; w = 0.124687 * safezoneW; h = 0.042 * safezoneH; }; }; }; }; init.sqf: disableSerialization; cutRsc["AUSMD_Timer","PLAIN"]; _Display = uiNamespace getVariable "AUSMD_Timer"; _textBar = _display displayCtrl -1; _timer = 500; while{_timer > 1} do { _textBar ctrlsetText (format["%1",[_timer,"HH:MM:SS",false] call BIS_fnc_secondstoString]); _timer = _timer - 1; uiSleep 1; }; add code to the right files as stated above then go ingame and you should see a timer for about 8 Minutes popup. You can change the time that will display with the obvious timer variable above the while loop. NOTE: I attempted to use the 'safezone' for the display so if you have a lower resolution or a higher one it will scale the text to the right position on the screen so its visible rather than being off screen and therefore being useless.
  2. I'm capable of devoting a couple hours a day during the week, and more time on weekends to write SQF scripts. Been doing it for a couple years now. I'm fimiliar with most of the scripting commands and am capable of keeping you up to date on progress. I won't work on any life mission. Also don't got time to do this for free anymore. PM me if your interested. Links to some of my work: https://www.dropbox.com/s/p3rdens40oordjd/sand_serverPersist.sqf?dl=0 https://www.dropbox.com/s/yszy44ygqupn37h/sand_FPSsaver.sqf?dl=0 https://www.dropbox.com/s/pf4hx44ir5amhhw/fn_circlePosition.sqf?dl=0
  3. austin_medic

    Willing to Write SQF Scripts

    Still looking for work if anyone's interested.
  4. You could set it up to detect if there are any house objects nearby and stop them from building nearby. Other than that the only way to stop them from blocking anything in is to block building completely in certain areas (e.g cities).
  5. Sidemission Script Package I created this set of sidemission scripts because it seemed like other sidemission scripts in missions were just way more complex than they had to be and were very difficult to implement into missions. This set of scripts should work with almost any mission you create (as long as the variables aren't overwriting each other). Sidemissions: Destory Ammobox: Pretty simple, just destory the ammoboxes as the designated location. Kill Officer: Also pretty simple, just kill the officer any way you want. Destory Radio Tower: Once again, it explains itself. Destory a radio tower. Destory Vehicle: Destory a randomly selected vehicle in any way you want. Just put in init.sqf: execVM "Sidemissions\SMfinder.sqf"; You will also need to create a marker on the map and leave it empty. Name it sideMarker. create a game logic on the map and name it center. http://www.armaholic.com/page.php?id=22637 version 2 thats working with 1.36 and up (http://forums.bistudio.com/showthread.php?186365-Sidemission-Script-Package-V2)
  6. No Mine Markers by austin_medic This script is pretty basic. It removes the dumb mine markers that pop up on everyones map in zeus. This makes it less likely that players will use it to cheat knowing exactly where your minefields are. It works pretty simple, it just gets all the markers that are on the map, and finds ones that have a prefix of bis_fnc_minedrawf, then it deletes those ones. running it is simple, put in init.sqf nul = [] execVM "AUSMD_noMineMarker.sqf"; Mirrors: Dropbox (1.1)
  7. It doesn't really work that way in arma. Each script runs one after the other and it will only execute for a maximum of 3 ms before it stops, and will continue on the next simulation cycle until it has completed. There is a profiling build that can give you a general overview of what is going on inside each of the games threads (nothing to do with SQF in particular), but SQF and practically all heavy lifting is done by a single thread.
  8. Basically any commands that will have a global effect should only happen on the server. Ask the question, will what this script is doing effect everyone? If the answer is yes, do it on the server only. If it will only effect a couple other clients then you could target those machines directly instead of doing broadcast to optimize bandwidth usage. This way you can avoid duplicating behavior caused by multiple clients running the script at the same time (and also a bit out of sync, depending on many factors) If you spawn a car through a script that is running on each client, you'll get a crap load of duplicates and probably a large explosion will follow. This is because each car that each client spawned got sent across the network to all the other machines, and they all spawned their own copies of that vehicle. However, if we do it on the server, only one vehicle will be created. Each client will spawn their own respective copy of that single vehicle instead of a whole bunch depending on how many players you have.
  9. You actually don't even need a database to accomplish what you want. You can use the server's profile to store all of the mission data. It doesn't matter how many you store, I've had servers with several thousand variables saved inside of it and it didn't care one bit. setVariable used with profileNamespace can take almost any data type, including arrays/objects so there won't be any problems there Now of course that means that all the variable setting to the profileNamespace needs to happen on the server, and it needs to be saved before the mission is reset. The scripts should be pretty well all running on the server to begin with otherwise you'd have locality issues. If for some reason you should want to purge the profileNamespace, you can delete its .vars file (this is where all the data you saved ingame is stored). It can also be purged from ingame using profileNamespace and setVariable Some relevant commands: Profile Namespace saveProfileNamespace; DisableSerialization
  10. austin_medic

    Server FPS limit testing

    Ok so lets get this back on topic. Does this unlock make the scheduler/script execution go faster? What consequences does that have? What benefits does it have?
  11. You haven't screwed around with the network settings for the server have you? ' If you did, then you should reset them back to default and see if that makes your problem go away
  12. austin_medic

    Battleye - Malwarebytes false positive??

    I'd say you possibly got some malware infecting programs on your box. I'd probably run some scans with Malwarebytes and probably get another tool to check for rootkits if your server is running a 32 bit OS. If it happens more than a few times there is no way its a one off "oops I sent the packet to the wrong IP". By all the info on the whois registry it looks like a datacenter, although it could be fake. Only other thing i can really recommend is uninstall battleye completely then reinstall with fresh files from the official website.
  13. austin_medic

    Profile Editor Head

    Its probably a mix mash of SQF and the other chunk that makes the magic happen is hidden behind the SQF wall, which would indicate that it is written in C++
  14. austin_medic

    Server FPS limit testing

    In the end its primarily window dressing. Removing an arbitrary limit does not make everything else in the simulation go faster. That is where the real issues are.
  15. Ok nevermind, I somehow managed to make it magically start working again with a restart of the machine.
  16. So I'm trying to get this server going on my dedicated machine and it either fails to initialize battleye if i launch it directly from the exe, or if i use TADST it crashes once it gets to 'initialize addons' phase of the loading screen. No rpt log is generated, only crashdumps. I installed all the redistributes it needs to run, but i don't know what to do that this point to get it working. My server config: // // server.cfg // // comments are written with "//" in front of them. // NOTE: More parameters and details are available at http://community.bistudio.com/wiki/server.cfg // STEAM PORTS (not needed anymore, it's +1 +2 to gameport) // steamPort = 8766; // default 8766, needs to be unique if multiple serves on same box // steamQueryPort = 27016; // default 27016, needs to be unique if multiple servers on same box BePath = C:\a3ServerMaster\battleye // GENERAL SETTINGS hostname = "[IFA3] OFFICIAL Test Server"; // Name of the server displayed in the public server list //password = "ServerPassword"; // Password required to join the server (remove // at start of line to enable) passwordAdmin = ""; // Password to login as admin. Open the chat and type: #login password maxPlayers = 40; // Maximum amount of players, including headless clients. Anybody who joins the server is considered a player, regardless of their role or team. persistent = 1; // If set to 1, missions will continue to run after all players have disconnected; required if you want to use the -autoInit startup parameter // VOICE CHAT disableVoN = 0; // If set to 1, voice chat will be disabled vonCodecQuality = 10; // Supports range 1-30; 1-10 is 8kHz (narrowband), 11-20 is 16kHz (wideband), 21-30 is 32kHz (ultrawideband); higher = better sound quality, more bandwidth consumption // VOTING voteMissionPlayers = 1; // Minimum number of players required before displaying the mission selection screen, if you have not already selected a mission in this config voteThreshold = 9999; // Percentage (0.00 to 1.00) of players needed to vote something into effect, for example an admin or a new mission. Set to 9999 to disable voting. allowedVoteCmds[] = // Voting commands allowed to players { // {command, preinit, postinit, threshold} - specifying a threshold value will override "voteThreshold" for that command {"admin", false, false}, // vote admin {"kick", false, true}, // vote kick {"missions", false, false}, // mission change {"mission", false, false}, // mission selection {"restart", false, false}, // mission restart {"reassign", false, false} // mission restart with roles unassigned }; // WELCOME MESSAGE ("message of the day") // It can be several lines, separated by comma // Empty messages "" will not be displayed, but can be used to increase the delay before other messages motd[] = { "IFA3 Official Server", "Join us on Discord", "ifa3ina3.com" }; motdInterval = 5; // Number of seconds between each message // MISSIONS CYCLE class Missions { class Mission1 { template = "MyMission.Altis"; // Filename of pbo in MPMissions folder difficulty = "Regular"; // "Recruit", "Regular", "Veteran", "Custom" }; }; // LOGGING timeStampFormat = "short"; // Timestamp format used in the server RPT logs. Possible values are "none" (default), "short", "full" logFile = "server_console.log"; // Server console output filename // SECURITY BattlEye = 1; // If set to 1, BattlEye Anti-Cheat will be enabled on the server (default: 1, recommended: 1) verifySignatures = 2; // If set to 2, players with unknown or unsigned mods won't be allowed join (default: 0, recommended: 2) kickDuplicate = 1; // If set to 1, players with an ID that is identical to another player will be kicked (recommended: 1) allowedFilePatching = 1; // Prevents clients with filePatching enabled from joining the server (0 = block filePatching, 1 = allow headless clients, 2 = allow all) (default: 0, recommended: 1) // FILE EXTENSIONS allowedLoadFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; // only allow files with those extensions to be loaded via loadFile command (since Arma 3 v1.19.124216) allowedPreprocessFileExtensions[] = {"hpp","sqs","sqf","fsm","cpp","paa","txt","xml","inc","ext","sqm","ods","fxy","lip","csv","kb","bik","bikb","html","htm","biedi"}; // only allow files with those extensions to be loaded via preprocessFile / preprocessFileLineNumbers commands (since Arma 3 v1.19.124323) allowedHTMLLoadExtensions[] = {"htm","html","php","xml","txt"}; // only allow files and URLs with those extensions to be loaded via htmlLoad command (since Arma 3 v1.27.126715) // EVENT SCRIPTS - see http://community.bistudio.com/wiki/ArmA:_Server_Side_Scripting onUserConnected = ""; // command to run when a player connects onUserDisconnected = ""; // command to run when a player disconnects doubleIdDetected = ""; // command to run if a player has the same ID as another player in the server onUnsignedData = "kick (_this select 0)"; // command to run if a player has unsigned files onHackedData = "kick (_this select 0)"; // command to run if a player has tampered files // HEADLESS CLIENT headlessClients[] = {"127.0.0.1"}; // list of IP addresses allowed to connect using headless clients; example: {"127.0.0.1", "192.168.1.100"}; localClient[] = {"127.0.0.1"}; // list of IP addresses to which are granted unlimited bandwidth; example: {"127.0.0.1", "192.168.1.100"};
  17. Put it on a machine that runs 24/7 Seems im getting crashes on a fresh dedicated server, it wipes out before game even boots, crashes right at 'initalizing mods'
  18. looks like you got some errors, specifically i can see that in the onPlayerConnected portion at the bottom the variables you are checking needs == true added onto the end to actually evaluate if its true or false.
  19. austin_medic

    [RELEASE] No Mine Markers

    So it doesn't work anymore? seems config way works now, gg script obsolete. For anyone wondering a couple years ago when this was posted setting the mine markers for Zeus off wasn't possible via config and you had to delete them by looking at the prefixes from allMapMarkers
  20. austin_medic

    Help make WW2 in A3 strong again

    I wouldn't mind contributing with missions or some scripting, though I'll admit I'm not a coding guru.
  21. the second one works as well because date command returns an array, so when you call another function it sees the brackets are there and takes whatever the date command returned as arguments. If you weren't familiar with the date command returning an array and other commands being able to accept that array directly then it becomes easy to see how somebody might get confused. e.g myDate = date; //--->[6,3,2,2,2]; myDate call BIS_fnc_sunriseSunsetTime; if you were to replace the myDate infront of the call with the date command itself, the same thing would be passed into the function directly, saving space/time/memory perhaps explaining what is actually wrong with the code would be more helpful than just saying "Really?".
  22. well if you want to download anything off steam you'll need steamCMD for starters, I assume you already have that. you could extend the batch script to move the folders automatically after being downloaded
  23. Personally I like this editor a bit more than other ones I've used, though not being able to handle .hpp or .ext files through it is a bit of a pain, requiring me to jump back and forth between typeSQF and notepad++ if I'm working with UI elements
  24. Here's a link to Arma2NETMySQLPlugin Don't the the name deceive you, its for arma 3 as well. to do a basic call to the database is pretty simple; _selectTest = "Arma2Net.Unmanaged" callExtension "Arma2NETMySQLCommand ['weapons', 'SELECT * FROM users LIMIT 3']"; In this example, “weapons†is the database name. The next portion is the entire SQL query which you will need to create manually. This will block until the database call is complete and the result is returned.
  25. austin_medic

    Use a VM for my dedicated server

    Allegedly there is ridiculous performance problems on VM's and the available resources are massively underutilized, leading to crap performance. You'd still be better off renting a box and using that. It has all the bandwidth it could possibly ever need, and if the motherboard or CPU craps out it gets replaced for free (if it doesn't then your getting screwed). Your probably on a run of the mill home internet plan that does not allow you to upstream large amounts of data (unless you've paid your ISP big bucks for them to let you upload as much as you desire and have put in the infrastructure required for that), so running TS3 and multiple game servers over it is probably going to be bad for both performance and other people in the home will probably complain the internet is slower than it should be.
×