kronzky 5 Posted May 22, 2007 It looks like the problem is caused by a missing respawn option in the description.ext (or an altogether missing description.ext). No idea why ArmA crashes without that defined though (it should just default to "no respawn"). But it seems that when certain triggers or scripts are active, and respawn is undefined, that a player death will cause a CTD. I've now added a MP-compatible demo mission to the zip file to demonstrate the proper setup, and to make testing a bit easier. Share this post Link to post Share on other sites
Nicolas Eymerich 0 Posted May 23, 2007 Good Idea! (Downloaded) Share this post Link to post Share on other sites
wipman 1 Posted May 23, 2007 Hi, could be a good idea to allow the G.I. (General Infantry) to deactivate the mines one by one once the mines presence be detected by the squad; all the soldiers receive classes of how to deactivate basic and/or common mines classes what have a fuse as starter. Just reducing the distance at which the soldier could detect the mine and deactivate it. I haven't try this mines, but if this haven't been added already, i think that may be a good idea that could also add some more possibilites to MP if they work well in MP. Let's C ya Share this post Link to post Share on other sites
bravo 6 0 Posted May 23, 2007 Just reducing the distance at which the soldier coulddetect the mine and deactivate it. yup it could also be nice to have a closer radius to defuse each mines. We are able to defuse several mines at incredible distance atm, would be nice to see this changed btw. The radius of the mines activation by players and ais can be changed. I rader use 0.5 as default. Its also incredible that this script does not lag at all ps: i tryed to use this feature in bridges and the mines do not stay on the bridge road. They go under the bridge in the ground or in water. Is there a way to solve this issue? Share this post Link to post Share on other sites
wipman 1 Posted May 23, 2007 Hi, 0.5m could be a good or adecuate deactivation radious for the Special Forces and engineers, 0.4 or 0.5m, to reflect they're more intensive trained in this field; 0.15m or 0.30m will be a good radious in my opinion for make the mine deactivation icon, or the message in the actions menu, spawn; so the basic infantry should walk more carefull if they don't want to blow up. Also add various mines formations, to surround a possition, to cover some wall or things like that; but this last supose isn't really needed because the ArmA units fear/can't climb a 50cm "wall". Let's C ya Share this post Link to post Share on other sites
kronzky 5 Posted May 23, 2007 Unfortunately, the defusing parameters are out of my control, as that is done by the ArmA engine. And if I'd try to totally take that over it might not be so lag-free anymore... ;) The activation radius OTOH can be controlled by the "range:" parameter. As far as placement of mines on bridges is concerned - I'm not too optimistic that that will be possible. (I'm aware that an engineer can do it manually, but if you place mines via the editor they will drop through as well.) I'm still looking into that though. But while working on this issue I noticed that the script actually simulates water mines quite well. You should give them a slightly lower z-position to make it look more realistic, but once you set the trigger class to Ship, you got some nice "floating" mines. Share this post Link to post Share on other sites
bravo 6 0 Posted May 23, 2007 hihi something nice by mistake ^^ Share this post Link to post Share on other sites
HulkingUnicorn 0 Posted May 31, 2007 Nice script, I have two suggestions though: - Have an option for signs along the side of the mine field, with an interval setting (if you have a huge minefield you won't notice the signs at the corners ) - Include a warning in the readme about placing several 200x40 minefields with standard density etc... for us crazy mission makers Share this post Link to post Share on other sites
OrLoK 20 Posted May 31, 2007 Hello Splendid stuff! quick question, do the markers appear around the entire border of the field or just facing one particular direction? ie. Key !=marker *=mine Friendly to Left NME to right !!!!!!! !***! !***! !***! !!!!!!! or do the signs only appear along a set axis so that the forces that laid the mine can have the signage along their side whilst opfor has no marking on their side ie: !*** !*** !*** Id like the option of folk having to hunt for possible wrong way facing signage (perhaps hidden by a tree line etc) But Im nasty like that. Rgds LoK Share this post Link to post Share on other sites
kronzky 5 Posted May 31, 2007 The signs are aligned with the marker orientation (i.e. if the marker angle in 0 the signs will face N/S, if the marker angle is 90 the signs will face E/W, etc.). So that gives you some control over the direction the signs are facing. If you need more signs than the default ones at the corners, or more specific orientation, I would suggest to leave out the automatic signs altogether, and to just place them manually via the editor. It is probably easier than having to deal with all kinds of possible parameter values in order to place them automatically. Share this post Link to post Share on other sites
HulkingUnicorn 0 Posted May 31, 2007 Quote[/b] ]If you need more signs than the default ones at the corners, or more specific orientation, I would suggest to leave out the automatic signs altogether, and to just place them manually via the editor. Roger wilco Share this post Link to post Share on other sites
warnlz 0 Posted July 4, 2007 Beautiful script but one problem I'm having is large numbers of mines have a severe impact on my fps (fine 3 sec, freeze 3 sec, ect). I assume this is because the script checks for targets around each mine. I was wondering if it would be possible to check for mines around targets instead (there tends to be less people than mines) or maybe a addition to the script that checks to see the mine to target ration and checks around the lesser. I'm totally clueless about scripting so if what i said made no sense feel free to mock me mercillesly. Share this post Link to post Share on other sites
Winters1807 0 Posted July 4, 2007 feel free to mock me mercillesly. You stink of second hand beetle excrement! U gave me permission! Share this post Link to post Share on other sites
joffy 0 Posted August 16, 2007 Just tried out his fantastic script, but I cannot get it assigned to the mine object. I tried Mine and MineE but it doesn't work. Anything else I tried, H, Body etc works fine. AmI using the wrong name for the mine? Share this post Link to post Share on other sites
kronzky 5 Posted August 16, 2007 You don't assign the script to a mine - the mines are created automatically. You first create a rectangular marker (to designate the area to be filled with mines), and then you call the script from *anywhere*: a trigger, a game logic, the player's init line. Doesn't matter. It just has to be initiated somewhere. This script will then create the mines within the marker area and assign triggers to them. Just check out the included demo mission (and of course the readme), and it'll be pretty obvious. Share this post Link to post Share on other sites
dmarkwick 261 Posted August 16, 2007 You don't assign the script to a mine - the mines are created automatically.You first create a rectangular marker (to designate the area to be filled with mines), and then you call the script from *anywhere*: a trigger, a game logic, the player's init line. Doesn't matter. It just has to be initiated somewhere. This script will then create the mines within the marker area and assign triggers to them. Just check out the included demo mission (and of course the readme), and it'll be pretty obvious. This sounds very interesting to my shame although I downloaded it I only fleetingly played with it. @Kronzky - do you reckon it'd be possible to have the marker's position be set ingame (say either from the map, or just an offset from the player's position) and have the minefield populated afterward? That way a minelayer/engineer could identify a bottleneck and quickly plug it. Share this post Link to post Share on other sites
joffy 0 Posted August 16, 2007 Worked it out now thanks. Now gonna try work out how to have AI Engineers defuse mines. Share this post Link to post Share on other sites
kronzky 5 Posted August 17, 2007 @Kronzky - do you reckon it'd be possible to have the marker's position be set ingame (say either from the map, or just an offset from the player's position) and have the minefield populated afterward? That way a minelayer/engineer could identify a bottleneck and quickly plug it. That's no problem at all - just look into setMarkerPos and the related commands, and I'm sure you'll find a way. You could even create a new marker dynamically during the game, and then run the mine script on it, or you could just move an existing one to the desired position, and the start the script. The script doesn't care. As I said, the script can be initialized from anywhere - a trigger, a script, even a waypoint, so you can get pretty creative... Share this post Link to post Share on other sites
bravo 6 0 Posted August 17, 2007 also when a mine is activated the selected units can be affected.. imagine we are crossing a mine field.. if we set of one mine all enemy can be aware of our presence. you must add some codes to the mine script. Share this post Link to post Share on other sites
kronzky 5 Posted August 17, 2007 also when a mine is activated the selected units can be affected..imagine we are crossing a mine field.. if we set of one mine all enemy can be aware of our presence. you must add some codes to the mine script. Can be done already. Just look at the global variables KRON_MF_Tot or KRON_MF_[areaname] (described in the readme). Share this post Link to post Share on other sites
bravo 6 0 Posted August 17, 2007 also when a mine is activated the selected units can be affected..imagine we are crossing a mine field.. if we set of one mine all enemy can be aware of our presence. you must add some codes to the mine script. Can be done already. Just look at the global variables KRON_MF_Tot or KRON_MF_[areaname] (described in the readme). you mean that the enemys will detect you if u lose your legs in the mines? good Share this post Link to post Share on other sites
Raptor-6 0 Posted September 5, 2007 That's no problem at all - just look into setMarkerPos and the related commands, and I'm sure you'll find a way.You could even create a new marker dynamically during the game, and then run the mine script on it, or you could just move an existing one to the desired position, and the start the script. The script doesn't care. As I said, the script can be initialized from anywhere - a trigger, a script, even a waypoint, so you can get pretty creative... I'm confused on how a rectangle marker is laid out while in the game. Is that possible or would you need to do something like lay out 4 markers to define the boundaries and create the rectangle in a script. Or just use a static size rectangle marker placed at the in game markers location? Thanks, Raptor-6 Share this post Link to post Share on other sites
kronzky 5 Posted September 5, 2007 I'm confused on how a rectangle marker is laid out while in the game. Is that possible or would you need to do something like lay out 4 markers to define the boundaries and create the rectangle in a script. Or just use a static size rectangle marker placed at the in game markers location? You can create markers dynamically (while the game is running). Just read through the relevant articles for marker manipulation (esp. createMarker), and experiment around a bit. Then, once the marker has been created via e.g. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_marker = createMarker ["MineMarker1", position player] run the script on it: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nul=["MineMarker1"] execVM "minefield.sqf" Share this post Link to post Share on other sites
Raptor-6 0 Posted September 5, 2007 You can create markers dynamically (while the game is running).Just read through the relevant articles for marker manipulation (esp. createMarker), and experiment around a bit. Then, once the marker has been created via e.g. <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">_marker = createMarker ["MineMarker1", position player] run the script on it: <table border="0" align="center" width="95%" cellpadding="0" cellspacing="0"><tr><td>Code Sample </td></tr><tr><td id="CODE">nul=["MineMarker1"] execVM "minefield.sqf"sounds great. I understand now. Thanks for the help and the work your doing with these kinds of scripts. They are all awesome!! Share this post Link to post Share on other sites
_BARNS_ 0 Posted September 5, 2007 great script m8 is it possible for you to include some other types of mines into it? Share this post Link to post Share on other sites