Jump to content

DPM

Member
  • Content Count

    54
  • Joined

  • Last visited

  • Medals

Community Reputation

7 Neutral

1 Follower

About DPM

  • Rank
    Lance Corporal

Recent Profile Visitors

684 profile views
  1. Yeah it gives empty quote marks where the name should be, I also used.. onEachFrame {hintSilent str [typeOf cursorObject, cursorObject]}; ...which gave me ["",1026274,powlines_transformer2.ped] with the same empty quotes. But thanks all the same.
  2. Does anybody happen to know the classname for this building?.... All I could get is 1026274,powlines_transformer2.ped, Tried Land_Powlines_Transformer2 on the off chance, but it didn't work.
  3. Is it possible to lock player slots when the mission is running? So players can still join the server while the mission is running, but they remain on the right side of the lobby and are totally unable to select any playable slots until the mission has ended and the timer to restart is active. Disabling JIP scripts still seem to let them select a slot before it exits and reserving slots is not what I'm after either.
  4. When a player or AI enters a trigger it runs the Lootspawnrandomizer, which spawns ammo crates in buildings filled with a selection of items from another script. It has to be crates because the AI have their own script to loot from them. It's not my mission, it's a BR style mission for small groups to play that adds in AI to fill out the numbers. The original author made it for SP and 5 player local host coop but has since vanished. I've been adapting it for up to 30 players on dedicated and have been getting away with ''wingin it'' up to this point as my scripting skills consists of whacking it with a hammer until it hopefully works. The loot system works fine, it just needs to run on presence rather than those LStriggers as they're connected to the start point (certain starts only spawn certain LS triggers) so it leaves areas with no loot at all when people spread out or the play area moves away from the start point in later rounds.
  5. Thanks for the reply pierremgi, after a ton of testing I realized I was getting some repeatable positive results with what you had suggested. Not great results, but positive, I was possibly getting the same results before but thought it just wasn't working because I was looking elsewhere. With Any player, the first trigger I entered would often fire and the base trigger (0) and trigger _1 would always fire. With anybody, it seemed to be just the base trigger and _1. With civilian (what the payable units and enemy AI are) the base trigger and _1 fired for AI. It's tricky testing the AI as the mission has a random start so if they don't go into the base and _1 nothing happens. Is there anything in the code that would suggest why the first two triggers are the only triggers that consistently fire as all the other triggers seem to be fine and in order?
  6. I'm trying to change the activation of triggers from number based to presence based. The triggers are spawning in ammo boxes and look like this..... They use this code from the initserver.sqf for the condition.... (The case numbers are start postions) ...and call this code also from the initserver.sqf to spawn the boxes... LootSpawnRandomizer = { if (isServer) then { _LStrigger = _this select 0; { _checkType = typeOf _x; _resultPump = _checkType find "_pump"; _resultKiosk = _checkType find "Land_Kiosk"; _resultTransformer = _checkType find "Land_spp_Transformer"; _resultPier = _checkType find "Land_Pier"; _lootPlaces = _x buildingPos -1; if (count _lootPlaces > 0) then { if ((_resultPump != 0) && (_resultKiosk != 0)&&(_resultTransformer != 0) && (_resultPier != 0)) then { {_amishouldSpawn = floor random (5); if(_amishouldSpawn == 0) then {0 = [_x] call myfuncLS;}}foreach _lootPlaces; }; }; }foreach (_LStrigger nearObjects ["house", 300]); }; }; Does anybody know how to get it to ignore the LStriggers and just use presence instead? as any changes I make to the LootSPawnRandomizer where they're mentioned just breaks the mechanic, I presume I need to change part of the "on activation" code in the trigger also... (needs to trigger on anybody including AI, just once) Any help would be greatly appreciated.
  7. On certain missions If a HC is booted at the same time the server instance is, it tends to lock you out of the mission settings, maybe it's causing the issue with MCC.
  8. A good rewrite of FAST2...and then some, working well and updated regularly. Can't ask much more than that. Cheers! "much"
  9. For some reason I got this notification but not your last, even with them turned on.... Yeah, that's what I'd been seeing, it's more geared towards specific slots. I was just wanting to lock all slots while the mission was running, but keep the ability to join the server lobby (right side) open. I think it might actually be the kill counter itself that has the problem _unit addEventHandler ["killed", "MyPlayersCount = MyPlayersCount -1; plalive = MyPlayersCount; publicVariable 'MyPlayersCount'; if (isPlayer (_this select 1)) then {remoteExec ['addKillCounter',(_this select 1)]}; chatMsg = format ['%1 was killed by %2. Players alive: %3', (name (_this select 0)), (name (_this select 1)), MyPlayersCount]; [(_this select 0),chatMsg] remoteExec ['globalChat']; remoteExec ['updateUI']; call test_logger;"]; updateUI = { if (EnableCustomHudMode>0) then { disableSerialization; _display = uiNamespace getVariable "hudScrDisplay"; _textPlayersAlive = _display displayCtrl 1905; _textPlayersAlive ctrlSetText format["%1",MyPlayersCount]; //[_textPlayersAlive,"format['%1',MyPlayersCount]" ] remoteExec["ctrlSetText"]; _textKillsCounter = _display displayCtrl 1908; _textKillsCounter ctrlSetText format["%1",KillsCounter]; I think If this was done using normal alternatives to the author's MyPlayersCount it might solve the issue, because somehow what the author has done is counting players in playable slots, that are not actually playing in the mission itself. I believe the variables MyPlayersCount and AllMyPlayers were made because the mission was originally intended to be a coop with an AI team preferably over 5 human coop players....and hosted locally. What I'm trying to do is make it for up to 25 human pvp players on dedicated....and for the most part, it's working. Just this issue and a regular error concerning another author variable "mymortarrs" getting thrown in the rpt to sort out. For example the win condition had to be changed from this first line to the second to get it to work. (which is what I was asking about first) condition="allPlayersmy = []; " \n "if (EnableSquad < 1) then { " \n "{ " \n " if (isPlayer _x) then " \n " { " \n " allPlayersmy pushBack _x; " \n " }; " \n "} forEach playableUnits; " \n "} " \n "else { " \n "allPlayersmy = units MyTeamSquad; " \n "}; " \n "plalive == count allPlayersmy; " \n ""; condition="{sleep 45};(({(alive _x)&&(!isPlayer _x)} count allUnits)<23)&&(({alive _x} count allPlayers)==1);" \n ""; Anyway, thanks for the reply.
  10. Sorry, only saw your reply now. I didn't get it to work exactly how I wanted it to. Whatever way I tried to include the pilots and crew into the count it seemed to just ignore them.(though that could totally be down to my lack of coding knowledge). Eventually I just counted them as a total and included that total in the all units count as less than their number. However while it seems to work, the mission is counting players in the lobby in player slots that aren't actually in the mission and incorporating them into the Kill counter total in the actual mission and that then gives a false number. The win condition still activates when only one player is alive and fails when all players are dead, but it doesn't line up with the kill counter. Ideally, I'd like to do it the most effective and eloquent way, but how the the mission counts AI and players is intertwined to include AI as part of your team (as it's made to be a 5 player coop with real players or AI squad) and the codes seems to be in a few places with mission specific titles like, allPlayersmy, MyPlayersCount that don't give any applicable information when searching on google for them. I can sort of see how they work (to a degree) but changing them would we beyond my capabilities. I think my alternative option would be to lock all player slots while the mission is running, as being on the right side of the lobby doesn't seem to affect the kill count the way being in a player slot does. However when searching how to do that the best I can come up with is locking class based slots or reserving white listed GUID slots. Is it possible to keep the server open for players to join while the mission is running, but to have the player slots locked, so they have to wait on the right side until it restarts and they open again?
  11. Yeah, I think once I didn't get the result I was hoping for, but actually got something else happening instead of what it had been doing default, then I couldn't see the forest for the trees and just kept digging myself a deeper hole. That's no doubt correct, but it's not my script, or mission and trying to get it to function the way I wanted has melted my head to the point that I'll be happy enough if it just simply "works", let alone efficiently and compared to the win condition, this is has been easy. Perhaps the author wrote it that way because AI need to interact with it too, I have no idea.
  12. It is a dedi, but at that point I was trying everything through furstration and a touch of desperation....I can only think the closing }; must've messed up and because it did actually do something to the crates I just kept doing the same thing wrong.
  13. Y'know. that was the first thing I tried and it didn't work, neither did IsDedicated and a few other variations in multiple places. Then because you confirmed it I tried it again and only one crate dropped. There's AI in the mission so it normally drops 2 without other human players on, so I'll have to wait to confirm, but it looks good. I don't know why it didn't get the same result the first time as I did the exact same thing, or some of the others, but it would've saved me a ton of time going in and waiting 10 mins for the drop to happen just to see it didn't work ...and I did that a LOT lol Arma! Thanks for the reply, if it turns out it's just bluffing me, I'll be back.
  14. I'm playing a mission that has a supply drop script in it, the script runs fine in the editor, the plane arrives at the right location and drops one chute with a crate on it with inventory access to the gear inside. However on a dedicated server when the plane arrives at the location it drops multiple chutes with crates in relation to how many players are on the server and only one has gear with an inventory interaction available to get it, the rest are empty with no inventory interaction. Google suggests adding isServer/isDedicated etc, but no matter how I try applying that to the script or the call, the only thing it does is affect the contents of the extra crates and the ability to access the inventory, it still generates multiple chutes with crates. The ideal situation is for the plane to drop one chute with one crate regardless of how many are on the server. The author of the mission hasn't been seen since February so I haven't been able to ask them directly and I'd be grateful if anybody has any ideas? It's a BR style mission so the drop plane goes to a randomly placed area on the map, it's called from the initserver.sqf ....and this is the script....
  15. I sort of got it working by including the blufor units in the unit count, but if arma does it's thing and kills any of them for arma reasons that'll probably break it. playableUnits findIf {alive _x && isPlayer _x} <= 0 seemed to just be ignored, but I'll give it another go tomorrow, been at this for 14 hours....melted. Thanks for the help .
×