Jump to content

DiodeLadder

Supporter
  • Posts

    309
  • Joined

  • Last visited

Everything posted by DiodeLadder

  1. Thank very much DieFeM! Using SE is not something I'd want to do, but the fill formlist function example you provided is going to be very useful for me in other situations. I've learned a lot from your contributions in this thread for sure! :smile: I think I'm going to settle for the compromise Wolfmark suggested, by using both RemoveItem (formlist) and RemoveAllItems (the rest) to minimize the notifications. I've just tried it, and it's definitely an improvement. Notifications still show, but short enough that I think this will be okay. Thank you very much Wolfmark!
  2. Thank you very much for chiming in Wolfmark! Yeah, how to deal with those items without keywords was what I couldn't figure out. So I really do need to make a formlist with them then... Thank you for clarifying!
  3. Ah, wait, there are more replies now. Thanks guys - I'm a very slow poster here, lol, English is not my native language.
  4. Thank you very much Reneer! The first one was actually something I have tried myself earlier, but catching everything was the part I couldn't figure out at the time, because not everything in player inventory has attached keywords. Would you happen to know a way to catch everything? If I can catch everything with this, I think I can make it work. I think I threw in all the keywords I could think of, but misc items (and maybe few other things?) were the ones I couldn't catch. It does work with a formlist without doing the while loop, BTW, the first one worked for me. By the way, for the RemoveItem, I could use a negative integer value as the item count to remove all the items with keywords on the formlist in one shot if I remember correctly, and I think there was no need to make calls to get the actual item counts. Thank you very much DieFeM, for even taking time to make a video! Using SE is something I would want to avoid in this mod, though.... That sure would be handy to have, however, and tempting. If I remember correctly, RemoveItem by itself would not remove the equipped items, and I think what I learned from another forum post was to use a loop to unequip items on armor slot 0-29 and avoid 30 which is Pip-Boy (I've read that the actual slot numbers used by Papyrus are different from what you see in CK, which are 30 through 60). UnequipAll was a no-go for me because it removed Pip-boy. Quest items getting removed is okay I think, because they would be in the destination container anyway, so it maybe possible to get away without defining the blacklist items. ...Maybe that would give a good opportunity to ditch the stuff from Cambridge Polymer, lol. Thank you very much SKK, but this is totally over my head, lol. So you've broken up the list of items to shorten the scanning time...? Is it necessary to create a formlist with all individual misc items to catch them? That was the part I couldn't figure out, because they don't have any keywords attached. I guess the problem with relying on keywords and pre-made formlist is that, if the player has non-vanilla items without keywords, those would not be removed. The SE function DieFeM mentioned would be able to really catch everything on the other hand...
  5. Rasikko, DieFeM, thank you VERY MUCH for going over this script for me - now I can understand it!! It's brilliant. This was a great lesson in scripting for sure, and I really appreciate you sharing your knowledge. :thumbsup: However (sorry...), the limitations of DropFirstObject itself still play in this one - 1) it is very slow, 2) and it still shows notifications. Another thing is, it removes literally everything including quest items, and that also means it removes Pip-Boy. Unfortunately, I can't use this one. :sad: In search of another solution, I've messed around with toggling different HUD modes to see if that would clear the remaining notifications, but that didn't work, either. RemoveAllItems still seems to be the best solution. I think I'll just tell the users the long stream of notifications is a FO4 limitation, and move on. It maybe a strange thing to say, but this problem not having a solution made me appreciate the resourcefulness of you guys even more, because I got to see you approaching the problem from different angles. You guys are awesome! Thank you all very much for your help. :smile: :smile:
  6. Well, what I wanted to say was : 1) Your companions can't press the button and call the elevator, but they are able to use load doors. Companions can use load elevators, but not the same cell elevators. 2) Your two floors need to be in two separate cells, not in the same cell.
  7. H3S, are you using the same cell elevator? The "same cell elevator" separates the navmeshes, so your companions won't be able to see you if you are on the other side, unless you have stairs connecting the two floors and have one connected navmesh. I've looked at some vanilla game locations while I working on the same exact problem you are experiencing, and found out that they all use separate cells and loading elevators. If you look at the Vault 81, for example, the entrance and the main levels are in separate cells connected by a loading elevator. I think the so-called "same cell elevator" is meant to be used for places like Monsignor Plaza, where all floors are connected even without elevators. BTW, you need to navmesh inside the elevator, or the companions won't go in with you. To do this, you can put a temporary floor piece where the elevator would be to create a navmesh over it, and then delete this floor after the mesh is done.
  8. Not knowing how to avoid quest items was entirely my fault, though, and I hope my wording didn't come across like I was blaming you or anything. I really appreciate your help, Reneer. :D LOL, I know you push limits with your mods, but my problem really should be a pretty basic stuff. The weird thing is - the quest idea I'm trying to put together is directly influenced by the quest events from Skyrim, a Bethesda game. In my quest, the player goes to sleep in the new strangely clean player home acquired for free, and finds out why it was free when he/she wakes up in a jail cell, kidnapped and all belongings stolen - this is not something that would be out of place in a Bethesda game, is it? I thought this thread would end in a couple of posts of very obvious solutions suggested and me smacking my forehead, to be honest, lol. DieFeM, thank you very much for taking time to do this for me! I'm going to try this over the weekend, and will let you know how it goes. How this script works is over my head, though... I think I have to do some homework and come back with questions. :tongue: Thank you very much again guys for all your help! :D
  9. Thank you SandMouse, for sticking around and stepping in once again! That is a little above my skill level to implement, however... I suppose I need to create a hidden dummy NPC to bring up a barter menu, and use him/her as a container? Thank you very much Reneer, for taking time to even write a code example for me. As a beginner at scripting, I really appreciate this! After trying this, though, I discovered that this will still pop up notifications, and it takes some time for player's items to get removed... I could actually see the items getting removed in real time by opening Pip-Boy, and it took about 10 seconds before player armor/clothing was removed. The time it takes is a problem in my situation because, when the player spawns inside the jail cell, he/she has to be without any clothes on right at that moment (which I actually can do with RemoveAllItems). Another thing is that, I do not know how to avoid quest items in this while loop, and the script seemed to get stuck eventually because it never reaches zero item condition (UI slowed way down at that point). :wallbash: BTW, SendPlayerToJail function definitely is missing the item removal part in FO4 - I couldn't get it to work no matter what I tried. Anyway, after putting in navmesh, placing enemies, and play testing, I found that in this quest, if the player fails all skill checks and has to explore the even deeper part of dungeon to escape, the item removal notifications would actually finish before recovering all the items (thank god). Maybe I'll just create more eye candies or fights to distract the player, and cross my fingers that the notifications won't bother anyone, lol. Thanks again guys, for all your help. :D I think I'm going to move on now.
  10. Thanks Rasikko for pitching in the idea, but I don't want to create a dependency for F4SE in this mod, since this is a very little part of the whole package (my mod is a collection of 15 player homes, and this quest is just an additional content). What you say makes sense, though. I'd never imagined this would be so complicated, lol. I'm in the process of revisiting SendPlayerToJail function right now. Hopefully my last failed trial was due to my own mistake.
  11. SandMouse, I finally got around to trying out another line of MoveTo to nudge the player one more time and see if the messages get knocked out, but this won't work, either. Messages would continue just like before. :confused: Thanks again for taking time to think of solutions for me, though, I really appreciate it. (I'm sorry about reporting in a little late - I have had to work on some other issues with HC_ related stuff in the past few days. :facepalm: ) After giving it some thoughts, I don't think UI position manipulations would work well for my situation, because the UI would have to be moved out for a very long time period, then moved back in (I would have no way of knowing when the messages end, either). ...I think I'm going to go sit in the corner and cry, lol. :turned: I guess I'll leave the messages in, and just tell the users that's how FO4 engine works if they complain. I really hate making this kind of excuses, though - this stuff should never happen in the first place.
  12. I'm still new to modding and this community, but my route so far has been : 1) Modifying the existing weapon/armor/item stats : This allowed me to get a feel of working with CK as a beginner, working with forms and creating a new .esp file, etc.. Checking the new .esp I've created in FO4Edit made me understand how the patches/overrides worked. 2) Creating a new NPC vendor : This was my introduction to how to manage a dialogue using a Quest, and create a new NPC, put together a formlist to create an outfit combination specific to this character. Vendor also was my first peek into setting up a Faction. This also introduced me to the fact that CK crashes a lot while working with NPC editor, lol. 3) Creating new object mods for weapons/armors : This was where I was introduced to working with keywords, conditions using perks, and how constructible items worked in FO4. 4) Create legendary weapons : This step introduced me to using quests to place unique items in the world, and working with markers. 5) Create interior cells : This was a big step for me, as there are so many elements involved. This introduced me to a concept of linked references, enabling/disabling object references, creating unique furnitures using Static Collections and NifSkope, how to do navmeshes, placing mapmarker in worldspace and setting up location and encounter zone, etc.. Important thing to know here is that most basic build assets are made to work with 256 x 256 x 256 grid, and setting up the snap to 128 allowed me to understand how things are supposed to fit together as Bethesda intended. For example, most doors and door frames would snap right in at the correct placement on the wall opening if you have snap at 128 units. 128 units/90 degrees snapping setting to start with, and then working at finer settings is best for beginners, I think. This will allow you to work very fast right off the bat as well. You might want to keep this one bookmarked : https://www.creationkit.com/fallout4/index.php?title=Creation_Kit_Keyboard_Mapping I think Jenn Cave's Navmesh tutorial is pure gold : https://youtu.be/_YblA9ZxHRw Also, RedRocketTV's tutorial on layers is a very important one to watch before start working with interior/exterior cells : https://youtu.be/wl6f_r4rFQE 6) Create quests that take place in the interior cells : This is what we are all here for, isn't it? :laugh: I learned about setting up triggers, managing events/quest stages,etc. 7) Create a new town/settlement in exterior cell : after taking the all the above steps, it actually wasn't all that hard as I've imagined (well, I haven't got into optimization and LOD yet, so I could very well be talking out of my ass here, lol). I'm not sure if it's the best way, but this was a gradual/gentle learning route for me as a beginner. Good luck! :laugh:
  13. hahahahahaha, that actually sounds better than my mod!! :laugh: This quest I'm working on is a surprise attack on player, though - my mod is a player home mod, and people probably won't be expecting to be thrown deep inside a huge dungeon when they wake up, lol. Thanks SandMouse for suggestions! Those UI manipulations sure are beyond my abilities, though, lol. I'm pretty new at modding, and it's kind of a miracle that I got as far as I did in my current project, to be honest. The last one you've mentioned, however, is easy to do - a quiet nudge and knock out the notifications. I'll give this one a shot and see if it will work! Thanks again guys for stepping in. I really appreciate it. :D ...I don't understand why this is so hard to do, though. I think this should be a pretty standard RPG event. :wallbash:
  14. Thanks SKK, for taking time to think of a solution! I really appreciate it. I just tried it, but unfortunately, the problem is that the messages would go on long after the loading screen is done and the player is moved to the jail interior cell. With one of my characters, displaying the entire inventory one by one would take more than 10 minutes, which is actually longer than how long it takes for the player to recover the items in this quest. I think if the player does not have too much stuff, like in the very early stage of the game, your solution could very well work, but for high level characters, a short black out won't be long enough. I'm going to go over the SendPlayerToJail usage for the last time to see if I've overlooked anything. Otherwise, I guess I'd have to live with having the messages, or rewrite the quest. :-/
  15. ... It doesn't look like removing items from player works properly with SendPlayerToJail in FO4. I can get the player to move to the jail location, but items won't get removed even after the containers are defined. I'm going to investigate it some more, but I have a feeling this is one of those things that aren't meant to be used in FO4. How frustrating. :-/
  16. So, here is the panel you can define where the player items will end up at. PrisonMarker placed outside = Exterior Jail Marker, and this marker is a door - you connect the "teleport" setting to the jail cell interior PrisonMarker where player will spawn via SendPlayerToJail. This panel looks unchanged from Skyrim. I'm going to try and see if it'll work. ...I just hope that doing this won't pop up the removed item notifications, lol, that'll drive me nuts.
  17. Thanks SKK! Yeah, the items - this is the part I have to find out about. I would guess a jail system would require a container where the items would be moved to by default. I'll report back when I find something. Well, I hope this system is functional in FO4. Crossing fingers, lol.
  18. Hah, I guess you have your share of frustrations with the way Bethesda does things, lol. Thanks for stopping by SKK. I may have found what I have been looking for though : https://www.creationkit.com/fallout4/index.php?title=SendPlayerToJail_-_Faction This is apparently how Cidhna Mine quest in Skyrim is handled (finally found the source), and it does strip the player of all items. I guess what I can do is to create a unique raider faction for this quest and have them jail the player - which actually would be exactly the scenario I had in mind. I don't know how the faction crime stuff is handled yet, so I need to look into this more. Hopefully this will work out. :-)
  19. So... RemoveItem is not that great for what I want to do. Throwing in a bunch of keywords into a formlist to remove items is straight forward enough, but catching everything seems to be near impossible because not everything has keywords attached. Needing to unequip items also is a pain - unequipall would make the Pipboy unusable for the rest of eternity, lol. Going through each slots via scripting and avoid slot 30, yadayada, great, but RemoveAllItems is much faster and does exactly what I want. ....Except the notifications of hundreds of items being removed one by one. Gah! I think the player being captured and getting stripped of all belongings is a pretty common thing to do in RPGs, so I must be missing something very obvious in CK? If anyone knows a way to turn off those notifications, or a better way to do what I am trying to do, please chime in. I would really appreciate your help on this.
  20. I wondered how MQ101 uses the RemoveAllItems script without any notifications popping up, and after an experiment, I found out this script removes items without any messages if I used () and don't specify the destination to transfer items to (meaning, the player items will be lost). As soon as I put in the destination, it spits out notifications for as long as it takes. I seriously do not understand their logic in how it was implemented. If you are removing everything from the player, you wouldn't want the notifications to pop up for 10 minutes straight, and would not want to make any sounds when this is executed. It makes no sense at all. :sad: On the other hand, RemoveItem script does have the abSilent parameter just like SandMouse suggested yesterday (thanks again), and I can suppress the notifications. Maybe I'll just go through a few lines of RemoveItem with different keywords to remove stuff in batches. By the way, if anyone is doing the same thing - mute() and unmute() can be used to turn off the AudioCategorySFX temporarily while the items are being removed. Another thing - using RemoveAllItems() on a character (not transferring items to a container) will have the stats/buffs from armors to get stuck, even after the items are gone. This seems to be a known bug, carried over from Skyrim, lol, with suggested workaround being unequipping items before executing RemoveAllItems. When transferring to a container, this bug would not happen. Also, if you have another command before, RemoveAllItems seems to need a little bit of wait, like 0.5 or so between the two tasks. I saw that without a wait, RemoveAllItems on one of my characters with a lot of items in the inventory would freeze the game. Mentioning just in case anyone had experienced it.
  21. I guess what I am trying to achieve is kind of like what happens to the player in the Cidhna Mine quest in Skyrim. Does anyone know how they are removing all player items in that quest? I've opened up the Skyrim CK to see if I could take a look at the script, but apparently there's no source files included like for FO4. :-/
  22. Thanks SandMouse for chiming in, but as far as I know, with RemoveAllItems, I can only define the destination to transfer the items to (object reference), and if the ownership info should change after the transfer (bool). I don't think there were more to define on this particular one. Unless I missed something?
  23. Hi guys, I'm wondering if anyone would know of a way to remove the notifications popping up at the top left corner when "RemoveAllItems" script is used on player. The messages telling the player which items have been removed, one by one, would go on forever, and I would like to be able to turn them off. :-/ (I'm not looking for a way to modify the UI - I want to turn off the notifications from this one instance of removeallitems script I'm using in a quest.) Or maybe there's a better way to do what I'm trying to do? I'm trying to get the player robbed basically, and wake up with zero items in the inventory. Using RemoveAllItems to transfer player inventory to a container works fine for what I am trying to achieve, but the notifications makes no sense in this context and just really annoying. Is there another way that's better to use in this kind of situation?
  24. Thanks for the pointer, Chuck! I'll definitely check it out. :-)
  25. Thank you Chuck. I just started to read the long optimization thread here, and I was wondering about the "that's our old system" comment from Bethesda regarding roombounds and portals. Your post is just what I needed to see. :-)
×
×
  • Create New...