Jump to content

chronicsilence

Member
  • Content Count

    143
  • Joined

  • Last visited

  • Medals

Everything posted by chronicsilence

  1. chronicsilence

    ListBox Auto-Width

    Using ctrlTextHeight is an interesting idea, thanks. Any idea what the "fixedWidth" property is for, described here: https://community.bistudio.com/wiki/DialogControls-Text? I tried using it but couldn't seem to make it do anything useful.
  2. Hello, Is anyone here familiar with a mod for automatically capturing video/screenshots from the game and saving them? Specifically, I need to record a "liveFeed" that shows up on a dialog control on the player's screen. I know you could use screen capture software for it, but I would prefer a more integrated solution that can start/stop based on in-game script commands. Thanks!
  3. Hey folks, I'm trying to figure out how to make a live feed from a UAV appear on a control in a dialog. I know you can add live feeds to objects through the BIS_fnc_liveFeedModuleXXX functions, but how can you add it to a dialog control? Basically I need the feed to always be in the same position on the player's screen. I know this is possible because the MCC Sandbox has this feature, but I cannot find any way to do it through info on the wiki. Thanks!
  4. I'm trying to have it so that players get a respawn location menu when they die, but have no respawn delay. One would think that you would use the following in your description.ext: respawnTemplates[] = {"MenuPosition"}; respawnDialog = 1; respawndelay = 0; But this doesn't actually work, and will cause you to instantly respawn without getting a menu to select your spawn position. If you change the "respawnDelay" to anything greater than one though: respawnTemplates[] = {"MenuPosition"}; respawnDialog = 1; respawndelay = 10; Then it works properly and shows the menu. Does anyone know of a way to have it show the menu without having any respawn delay?
  5. chronicsilence

    ListBox Auto-Width

    Going to give this a little bump. Any way to dynamically resize a control to its contents size?
  6. chronicsilence

    Respawn Delay of 0

    No, I don't want the player to respawn at all until he clicks the respawn button on the respawn menu. But, I want that respawn button to be available immediately, instead of having a count-down timer to when its available.
  7. chronicsilence

    Determining nearest vehicle entry point

    That's crazy. So there are multiple "pos cargo" but the "selectionPosition" script command will only return the coordinates of one of them, and there's no way to find the positions of the others. Could you describe a little more what you mean about measuring the "perpendicular length" and using it somehow?
  8. chronicsilence

    Determining nearest vehicle entry point

    This looks very helpful. It brings up a couple questions: 1) where does "CargoTurret" fit into all this? 2) Some vehicles (such as the "B_Boat_Armed_01_minigun_F") have more Cfg entries in "Turrets" then they actually have on the model. For example, that minigun boat has the "FrontTurret", "MainTurret", and "RearTurret", but only the "FrontTurret" and "RearTurret" appear to be used. EDIT: ok, I think I got it working. But there's one thing I'm having difficulty with. Consider a Hunter ("MRAP_02_base_F"). You can get into the passenger seats from either side, when you're within about 2m of the vehicle. The memory point for getting into the passenger seats, though, ("pos cargo") is on the left side of the vehicle just behind the driver side door (x-coordinate is -1.33). This means that if I'm on the opposite side of the vehicle, things get really wonky. Are there multiple selection points or something, one for each side of the vehicle? Maybe hidden ones?
  9. chronicsilence

    Determining nearest vehicle entry point

    I like this approach, but I'm finding it to be only semi-functional. For example, the Offroad (Armed) has a turret in the back but it does not have a CFG entry for "memoryPointsGetInGunner". So, there's no way for me to find the entry point for the gunner.
  10. chronicsilence

    Determining nearest vehicle entry point

    Thanks! Could you describe how to "poll the object" for selections?
  11. chronicsilence

    ListBox Auto-Width

    As a follow-up question, what about finding the width of a given StructuredText? Perhaps after using parseText there's a way to determine how wide the resultant text would be?
  12. chronicsilence

    ListBox Auto-Width

    Put two static text field controls one below the other, set the text of the first one to "iiiiiiiiiiiiiiiiiiii" and the second one to "WWWWWWWWWWWWWWWWWWWW", and you'll see that they gradually start to deviate in alignment.
  13. I'm adding some Rsc stuff that will go along with the built-in action menu (a.k.a. "scroll menu"). I would like to match the look of the action menu as closely as possible (font, size, background colour, etc.). It looks like the action menu is just some sort of listbox (https://community.bistudio.com/wiki/DialogControls-ListBoxes), so I was thinking that maybe it is defined somewhere in the same way user-added dialogs are defined. Does anyone know where I could find the class definition for it? Or, at a minimum, how I could determine what the exact font/size/position/colour of it is? I've been able to match it fairly well just from trial and error, but it still feels off. Also, somehow the action menu has the text to the far left of the box; I have been unable to replicate this with a listbox (it always leaves a larger margin on the left). Anyone know how to change the margins of a listbox?
  14. Different positions in different vehicles have different "death" animations. You can see this in the Animation Viewer under the category "A<Unknown> P<Unknown> (DeadActions) M<Unknown> S<Unknown> W<Unknown>". An example would be "KIA_chopperHeavy_L_01_H". It is not necessarily obvious which vehicle an animation is for just by its name (e.g. "KIA_chopperHeavy_LP_03_H"). My question is, does anyone know of any way to determine which death animation is used for a given crew position in a given vehicle? Say, how would I find out which death animation is used for the driver of a C_Offroad_01_F? I have searched through everything I could find in the Config Viewer under CfgVehicles but didn't have any success.
  15. Does anyone know of a way to open the action menu (scroll wheel menu) from a script? And possibly to set a specific index of which action on the menu is highlighted?
  16. I have an animation of my player laying on his back: player playMoveNow "AinjPpneMstpSnonWnonDnon"; This works fine and dandy. However, now I want to add a camera view above the player looking down on him: _deathCam = "CAMERA" camCreate (player modelToWorld [0,0,15]); showCinemaBorder true; _deathCam camSetTarget player; _deathCam cameraEffect ["INTERNAL", "BACK"]; _deathCam camSetFOV 1; _deathCam camSetFocus [50,0]; _deathCam camCommit 0; For some reason, executing this code causes the player to roll over onto his stomach. How can adding a camera effect change the animation of the player? This is making me crazy trying to figure out what is going on. "enableSimulation false" is not a solution I can use for this to keep the player from rolling over, I need something that keeps the simulation going.
  17. chronicsilence

    Getting the current top dialog

    Is the first or last item in the array necessarily the topmost item?
  18. chronicsilence

    cameraEffect changing animation

    I tried it with a new mission and you're right, he rolls over onto his stomach again immediately. I realized the only thing different between that and my actual mission is that when I was testing it, the player had no weapon. So I dropped the player's weapons in the new empty mission, and sure enough he stayed rolled on his back and didn't go onto his stomach again. Looks like it's playing an animation to get into a prone shooting position because his weapon is out. This, however, does not solve the question of why the camera effect is causing him to roll over again even when he doesn't have a weapon.
  19. chronicsilence

    cameraEffect changing animation

    The weird part is that if I don't add the camera effect (i.e. just use the regular 3rd person camera), he doesn't roll back over. He'll stay on his back. If you add the camera effect through the debug console while he's on his back, then as soon as it opens the new camera view he'll roll over onto his stomach again. It has something to do with adding the camera effect, and I don't understand why.
  20. chronicsilence

    CutText on top of Dialog

    @DaVIdoSS: that's a very helpful video, I didn't know about some of those functions. It looks like all of the new ones he mentions that I didn't already try though (BIS_fnc_infoText, BIS_fnc_titleText, BIS_fnc_titleText2) all have funky animations that I'd prefer not to have to use. @R3vo & austin_medic: adding it to the dialog might work. The issue with that though is that there's no command I'm aware of to fade a control in/out, and I'd really like a fade. You can use ctrlSetFade I suppose, but you'd have to spawn a script to repeatedly change the fade level. EDIT: ahh, looks like I could fade it in over time with ctrlSetFade and then ctrlCommit (time). So things brings up a new point. I have a lot of dialogs, and I'd like a generalized solution to show a message over top of any of them. This means that I need to have a base dialog config class with the text message control which all the other dialogs inherit from, so I don't have to manually put the control in every new dialog I create (I could, it would just be messy programming practice). I cannot, however, figure out how to get a dialog config class to inherit controls from other config classes. For example: // the base controls class containing my message text control class cfg_controls_base { class cfg_control_testing : RscText_Background { idc = 999; text = "TESTING"; x = 0.5; y = 0.5; w = 5; h = 1; }; }; // the dialog config that inherits the base controls class cfg_dialog_test { idd = 200; movingEnable = false; enableSimulation = true; class controls : cfg_controls_base { class cfg_control_test2 :RscText_Background { idc = 1000; text = "ANOTHER TEST"; x = 0.5; y = 1.5; w = 5; h = 1; }; }; }; This does not work, because the dialog class only shows the "ANOTHER TEST" control, and not the one it should inherit.
  21. I have a custom dialog/display open. I need to present white text over top of it, preferably using the cutText or titleText functions. However, something like the following code: createDialog "myCustomDialog"; cutText ["Hello World", "PLAIN"]; It shows the white text behind the dialog instead of on top of it. Noting from the wiki page that I can tell it to show on a specific layer, I tried createDialog "myCustomDialog"; 9999 cutText ["Hello World", "PLAIN"]; to try to force it to the front, but no luck. Is there any way to make it show up in front of an open dialog?
  22. chronicsilence

    cameraEffect changing animation

    Going to give this a little bump...
  23. chronicsilence

    Dedicated server mission auto start

    That worked, thanks!
  24. I have a dedicated server running my mission. I have it set to "persistent mission", so it continues to run when everyone disconnects. However, the only way I can find to start the mission on the server is to have a player connect to it and click "OK". Is there a way to force the server to start the mission on a timer, so that it will start even if there are no players and it won't automatically start when the first player clicks "OK"?
  25. chronicsilence

    Determining if an item is "assignable"

    I'm a bit confused here. Since "assignedItems player" returns "Rangefinder" in the array, why does it return as "not assignable"? Also, this is even stranger because in my testing it seems that "linkItem" doesn't work with "Rangefinder". ---------- Post added at 13:52 ---------- Previous post was at 13:21 ---------- I guess I should clarify my question a bit. Instead of returning items that "linkItem" will work on, how can I get a list of items that "assignedItems" will return?
×