Jump to content

Sil Carmikas

Member
  • Content Count

    65
  • Joined

  • Last visited

  • Medals

Everything posted by Sil Carmikas

  1. Sil's Simple Random Weather Script "A very simple approach to generating random weather patterns in Arma 3." by Sil Carmikas Version: 1.0 Final setRandomWeather.sqf Description: This is a bit of a mashup using manage_weather.sqf files from the original Liberation 0.924 mission from [GREUH]zBug and [GREUH]McKeewa. The below code will execute within the mission to add random weather pattern generation making use of the newer selectRandom command (Arma 3 Version: 1.56) This does not offer parameter selection for servers, the only customization that can be done is within the SQF file. This is a very basic script I am working with to learn scripting for Arma 3. Anyone is welcome to use this as they see fit. Instructions: Instructions: 1) Place anywhere you see fit, preferably in the root directory of your mission. 2) In your init.sqf, make sure to type in the following: [] spawn compileFinal proprocessFileLineNumbers "setRandomWeather.sqf"; 3) Save your init.sqf, load Arma 3, load the mission and test using setTimeMultiplier. You can decrease the "sleep 900;" command to observe the random changes more frequently for debugging and testing. Download: https://www.mediafire.com/?8mapw7zpwiwspc5 Here is the code below: if (!isServer) exitWith {}; _setRandom = [0,0.1,0.15,0.2,0.25,0.3,0.35,0.4,0.45,0.5,0.55,0.6,0.65,0.7,0.75,0.8,0.85,0.9,0.95,1.0]; // Initial Weather skipTime -24; 0 setOvercast selectRandom _setRandom; // Initial Weather Set Values: 0 = Sunny, clear skies 1 = Stormy, complete overcast skipTime 24; sleep 0.1; // Keep this at or above 0.1, or else simulWeatherSync command will not work properly. simulWeatherSync; // This command will sync the selected weather pattern to appear as it should right away instead of having to wait. // Random Weather while { true } do { 300 setOvercast selectRandom _setRandom; // selectRandom is the new engine solution to BIS_fnc_selectRandom. This will select a random weather pattern from the array in variable _setRandom. Values: 0 = Sunny, clear skies 1 = Stormy, complete overcast. sleep 0.1; }; sleep 900; // Rests for 15 minutes real-life time before selecting new weather pattern. For 24 hour day cycles (1 in-game second = 1 real life second) or whichever you prefer, you will want to update this to make sure weather shifts as appropriate. Changelog: v. 1.0 Final: -Made a variable for the values for the Initial Weather and Random Weather sections = _setRandom -Made both setRain and setFog options available now. Refer to the setRandomWeather.sqf file for instructions on how to add for FPS control. v. 0.3 Beta: -Made setRain entries optional. The script will now automatically select the appropriate rain amounts without any restriction. If you want the restriction still for FPS purposes, then use the "If Then" statements provided in the script comments within the SQF file itself. -Added more options to the setOvercast arrays. This gives an increased range of options for selectRandom to be able to use. v. 0.2 Beta: -Removed setFog entry from Initial Weather section -Changed setFog settings in Random Weather to the following ----> 0 setFog [0, 0, 0]. This update ensures that the fog level is zeroed out, it's intent being to help with FPS issues. -Added selectRandom command to Initial Weather settings to make a more randomized starting weather pattern. Please feel free to do with it as you wish and how you see fit. Tweak it, mod it, break it, anything. I am open to constructive feedback. If there is a better way to do this, please share. I'd like to get as much info available out there for others learning to script as well too for this same type of thing.
  2. Sil Carmikas

    Sil's Simple Random Weather Script

    Hey tort! Thank you for the suggestions, this is exactly what I look for! :) So you're saying to take the sleep 900 command and stick it WITHIN the while do loop, right? I'll play with it and see what happens, thanks for the tips! I've been taking a bit of a sabbatical from Arma due to life reasons... but will be returning shortly! ;) ~Sil~
  3. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Pretty much. I had to do something similar when I converted the map over to the Unsung Vietnam mod. You have to get the correct classnames of the weapons you want to be able to use and stick them all in this list name by name. You can get the weapon classnames from the Eden Editor, or in my case, I got lucky and the developers made a spreadsheet of the classnames of the weapons in their mod, so I just copied and pasted over from that spreadsheet. But they key here is correct classnames.
  4. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Not really. Go to /scripts/shared/classnames.sqf and you can add stuff there. The format should be pretty self explanatory. If any questions, please feel free to ask here or shoot me a PM.
  5. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Be careful with the number of Opfor points to be setup. There is a fine line on this mission with too many Opfor points and too few. Having too many Opfor points can result in the secondary missions taking a very long time to spawn or not working at all. These are an interesting marker too because they are also used for if you want your first FOB to be randomly placed for you instead of you placing it yourself. I hope to make more progress on modernizing the scripts a bit more, maybe eliminate some unneeded things, generally make sure everything is cleaned up. I just worked out a resource-friendly random weather generator script that works great. Now I'm working out how to setup the Arsenal so it can be accessed and saved like in the mission now, with menus and loadout customization, being able to customize your loadout to a friends loadout, all that stuff. One of the functions that the mission uses is a third party Arsenal script in which the author of said script has specifically stated to stop using it, because the commands 'getUnitLoadout' and 'setUnitLoadout' have now been put into the game by BI which are easier to use. ( Reference: https://forums.bistudio.com/topic/139848-getset-loadout-saves-and-loads-pretty-much-everything/ ) The other thing I'd really like to focus on too is the enemy spawning scripts, but those are way above my paygrade for right now...
  6. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Maybe use this line under classnames.sqf? if ( isNil "Respawn_truck_typename" ) then { Respawn_truck_typename = "B_Truck_01_medical_F"; } It's towards the top. I've changed this before when updating to the Unsung Vietnam mod to a M117, but have never added to it? I don't see any reason why you wouldn't be able to add to the string for the vehicle type? Then just go to the build menu, go all the way to the right hand menu for misc I believe, and then you should see an option there for Mobile Respawn?
  7. It all depends on how much you are willing to commit honestly. For me personally, I've been learning in short spurts here and there, and when I feel like I'm hitting a wall or am confused about something that should be relatively simple and find myself getting frustrated, I just put it down and come back later on or the next day, and usually the solution will present itself to me in a quick fashion. My best advice would be now that you have a project you'd like to go into, what script would you like to work on first? Maybe a player spawn script? Maybe you want to put in your own custom sounds like military radio transmissions to play on a radio or something? Maybe you'd like an enemy squad to appear when you or a player are within 500 meters of a marker or waypoint? Once you figure out what you'd like to do first in that aspect, commit to learning how to do that one thing, and then the next, and so on and so forth and before you know it, you have a complete project! Welcome to the field by the way. I've been learning scripting myself and just worked out a very simple random weather script for people to use in their missions if they would like.
  8. Sil Carmikas

    custom virtual arsenal

    Hi! I know there is a way for sure, this is a feature that is in the Liberation missions that I like to play a lot. This might help?
  9. Sil Carmikas

    Sil's Simple Random Weather Script

    Sil's Simple Random Weather Script v1.0 Final has been uploaded for distribution. Download link: Sil's Simple Random Weather Script v1.0 Final v. 1.0 Final: -Made a variable for the values for the Initial Weather and Random Weather sections = _setRandom -Made both setRain and setFog options available now. Refer to the setRandomWeather.sqf file for instructions on how to add for FPS control OP has been updated as well as changelog. As always, I am open to constructive feedback. If there is a better way to do this, please share!
  10. Sil Carmikas

    Sil's Simple Random Weather Script

    Sil's Simple Random Weather Script v0.3 Beta has been uploaded for distribution. Download Link: Sil's Simple Random Weather Script v0.3 Beta v. 0.3 Beta: -Made setRain entries optional. The script will now automatically select the appropriate rain amounts without any restriction. If you want the restriction still for FPS purposes, then use the "If Then" statements provided in the script comments within the SQF file itself. -Added more options to the setOvercast arrays. This gives an increased range of options for selectRandom to be able to use. OP has been updated as well as changelog. As always, I am open to constructive feedback. If there is a better way to do this, please share!
  11. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Sounds can be kinda tricky to implement. I would refer to this video for a way better explanation than I can provide. ;)
  12. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Normally, sounds used in missions are defined in description.ext. It'll be like: class CfgSounds { class IntelRadio { name = "IntelRadio"; sound[] = { "Sounds\IntelRadio.ogg", 0.3, 1 }; titles[] = {0,""}; }; };
  13. Sil Carmikas

    Learn 2 Script!

    Your first important tool you need, like, EVER: Bohemia Wiki Bookmark this. This is a complete library and database of all functions and codes within the Arma series. It'll describe each code to you in detail, and in most cases provide you with a way on how to set it up. As far as tutorials, I really enjoy the YouTube videos done by Feuerex He explains things in way that is easy to understand and follow. And my only other piece of advice is just dive in man. Grab examples from other scripts, make stuff, break stuff, it's all trial and error!
  14. Sil Carmikas

    Sil's Simple Random Weather Script

    Sil's Simple Random Weather Script v. 0.2 Beta is now available for download. Changelog: v0.2 Beta: -Removed setFog entry from Initial Weather section -Changed setFog settings in Random Weather to the following ----> 0 setFog [0, 0, 0]. This update ensures that the fog level is zeroed out, it's intent being to help with FPS issues. -Added selectRandom command to Initial Weather settings to make a more randomized starting weather pattern. NOTE: If you still want the random fog without any restrictions, just simply remove the setFog line altogether from the script. Anytime random weather pattern is selected, fog level will be selected as well. I have updated the link to download most current version on OP, and am including a link here too. As always, I am open to constructive feedback. If there is a better way to do this, please share! http://www.filedropper.com/fsetrandomweather_1
  15. Sil Carmikas

    Sil's Simple Random Weather Script

    Hey there! What you can do is erase this line altogether if you want random fog, i just threw this in to help with FPS issues. The [0, 0, 0] is as follows: FogValue, FogDecay, FogBase. Use these to set your desired fog, using setFog wiki entry for reference. I will be posting an update for this script once i am home from work tonight! EDIT: Sorry i forgot to mention that the 300 part of the '300 setFog [0, 0, 0] tells the game how long it will take the fog to "spawn" in. This will be addressed in my update tonight.
  16. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    The mission is coded to have air units spawn and fly about attacking random units, but I am sure there is a way to be scripted where those same air units would make the player-owned Scorchers a priority. I took the "super arty" out of my maps, because I thought it kind of spoiled things a bit personally. Made bombing the crap out of something wayyyy to easy.
  17. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Thanks for the suggestion, celludriel! That will definitely be helpful to compare to other scripts! Your CTI mission uses the randomweather2 script from meatball! :) I was looking at this the other night actually and was quite impressed! Right now though, my goal is to make things as simple as possible. For example, I worked this out in a mission the other night just screwing around and still have to play with the sleep value, but basically generates a smooth flowing stream of random weather. Super simple, and uses the new selectRandom command developed for Arma 3. I've only been messing with it a couple days now, but I like the results, every hour or so I get a random choice of weather, sometimes clear sunny skies, and sometimes rain and storms. I'll share here, and you or anyone else can do with it as they wish. while { true } do { 1800 setOvercast selectRandom [0,0.1,0.2,0.3,0.4,0.5,0.6,0.7,0.8,0.9,1.0]; // Will select a random weather pattern from the array, Value(s) = 0 (sunny) - 1 (complete overcast/storms) sleep 15; }; Also, in your init.sqf file, be sure to put the following: null = [] execVM "(insertnamehere).sqf";
  18. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    If I'm understanding you correctly, is this in regards to you placing an object, say, a concrete wall, the server restarts, and things are shifted? I too have had this issue. Not quite sure what the bug is honestly. Something to do with the building coordinates getting saved when the mission saves but I haven't worked it out yet. I'll let you know if I find anything else. That is very true, but if I recall correctly, zBug has stated that he doesn't intend to pursue this project anymore as the constant updates with Arma 3 have been a bugger to keep Liberation working correctly. I could be wrong, but I remember this from our last correspondence. Also, I just update the classnames.sqf and that it. The classnames_extension.sqf just gives me, personally, too many issues, so I went straight to the source. The funny thing about Arma 3 is while one thing might work for someone, it may completely break or not work at all for someone else. I'm hoping with the reworking that I'm doing of the mission that things will run smoother, but I still have lots and lots left to learn. I just finally worked out how to create random weather for a mission the other day so I am making progress! :)
  19. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    No worries, man! Glad i could help! Also I might mention that I had better luck actually updating the classnames.sqf file itself, even though it is recommended not too. I personally could never get anything to work with the classname_extensions.sqf.
  20. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Never really had any issues with UAV deployment such as you are describing. To my knowledge, I never had to use a UAV backpack before? When setting up the your soldier in the Arsenal, you want to make sure to give your soldier a UAV Terminal. Without this, you cannot utilize any UAVs. Once you have your UAV purchased, you'll need to go over by the UAV and "connect" the terminal to the UAV in order to be able to control it.
  21. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    That is what I am suspecting too. I know the mission itself has in the neighborhood of 250 scripts that it calls on for Liberation. So the processes get eaten up pretty quick as far as calculations and all that good stuff. I am currently working on Liberation Redux, which will be a reworking of this mission with more updated code to try and make the mission a little less resource intensive and to try and make things run a bit more smoothly. The game engine tends to get bogged down with stuff after awhile with all the info it is keeping track of. Even after frequent server restarts after a couple of hours or so, it would have little to no effect in making things better as far as running.
  22. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    From what my understanding is, and anyone please feel free to chime in to correct me if I'm wrong, but this basically indicates that a variable is trying to be used which has not been defined or does not exist. I'll have to pick it apart more to be more specific for you, but as long as you are updating the classnames.sqf with the proper model name for the ammo box you wish to use, it should work okay. I'll try and see if I can replicate your issue as well as this is a curious error and I'd like to know how to fix it if it ever pops up for me. Thank you for sharing. I, too, had this problem on multiple occasions with both Altis and Tanoa, with and without mods. My theory is that it just the sheer amount of stuff that it is forced to keep track of. On mission start, not such a big deal because barely anything there, not really any FOBs down except one or two, and active sectors are minimal. Once you get towards mission end, things do tend to get a bit more dicey with the mission keeping track of all the sectors you took control of and everything that's been built as far as FOBs and such. I'm working on a way to optimize this.
  23. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Hello everyone! Just wanted to let everyone know I haven't forgotten about you and have been plugging away slowly but surely on this side! Here are some videos of the a couple of the things I've worked out over the last few weeks: Everything contained here is using the Unsung Vietnam mod Delta Version. :) Still lots and lots of work left to be done, but have learned much on the journey! Stay tuned for more updates! ~Sil~
  24. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    You still have to download and run I'm afraid... ;( BUT... I promise it is the best 10 gigs you can use for Arma3 ever! They have come quite a long way so far! I mostly took a break to wait for the Delta release to come out. I also mainly burned out before because of how cumbersome I allowed everything to become. At one point, it started to feel like work more than it did fun and a game. So as to avoid that this time, I'll be doing things slowly at first and kind of work my way back into things. You guys and your enthusiasm always pushed me before though, so, we will see where things take us! ~Sil~
  25. Sil Carmikas

    [MP][CTI-COOP] Liberation (beta)

    Hello everyone! Sorry for my long absence, decided to take a break for awhile as my old PC was starting to crap itself, so wanted to get a new rig built before I put anymore effort into any scripting or mission editing. I hope you all have been well and had a very good holiday! Project that I will start working on again here over the next few weeks will be the Liberation Unsung Vietnam conversion. On my test server I had up before Christmas, I would argue that the preliminary format I had up was one of the most played and popular so I hope to get some good progress on that made. I hope you all have been well!
×