nikoligrim Posted February 12, 2019 Share Posted February 12, 2019 I'm looking for a simple way through Creation Kit to alter the in-game cigarette cartons and packs. What I would like to do is use the sixteen new textures I've made, (four for each of the cartons and four for each of the packs,) and insert them into the game-world using the same meshes (4). I know I can replace the existing ones but I would like to leave them be and just have the textures randomly applied to the mesh. Anyone have an idea how this can be done? Link to comment Share on other sites More sharing options...
M48A5 Posted February 12, 2019 Share Posted February 12, 2019 I don't know how it is done, but I might be able to point you in the direction you want to go. There are a lot of clothing mods the use different textures with the same mesh. I believe the texture changes are usually done through the use of a script in an .esp. If you were to download a clothing mod that uses the same mesh but different textures, you could reverse engineer it. Link to comment Share on other sites More sharing options...
Roentgens Posted February 12, 2019 Share Posted February 12, 2019 (edited) You can do material swaps to change textures on the same mesh, but I'm not sure how you could apply this worldspace wide randomly. Let's say you make a Marlboro material swap, you would need a new cigarette carton record to call on that MSWP. If the carton was spawned on a leveled list it could be randomized by adding new records with your MSWP. Randomizing cartons would be easy for leveled list containers for example, but I don't know how this could be done for handplaced references in the worldspace. Edited February 12, 2019 by Roentgens Link to comment Share on other sites More sharing options...
Perraine Posted February 12, 2019 Share Posted February 12, 2019 You'd need to use Material Swaps in combination with a "template" that includes all of the various versions, then create an item list for injection into the random loot tables. Link to comment Share on other sites More sharing options...
Larko84 Posted February 12, 2019 Share Posted February 12, 2019 Have a look at this this video by Seddon4494 http://www.youtube.com/watch?v=hfDJFnxH82E I'm assuming you can create your own group (Cigarettes) but you would have to place the dummy item around in the world yourself. I cant think of any other way atm. Link to comment Share on other sites More sharing options...
MarkusTay Posted February 13, 2019 Share Posted February 13, 2019 I at one time would have thought this might be impossible, HOWEVER, I use Harness Wardrobe, and the author had help from someone else write a script that injected a randomizer into the leveled lists, so that whenever a raider spawned with a harness, a 'call' would go out and the texture would be randomized. Thus, it can be done - the author of that mod is calyps, but the person who did the scripting for them was RustyXXL. Although clothing works differently than static items on many levels, just the fact that the game can assign a type of (vanilla) outfit, and THEN a script can randomize the style of that particular outfit, means that this should also be able to be done. It would take some serious coding, but whenever the game 'calls' for a texture for a pack of cigarettes (or carton), that bit of code needs to be diverted to the randomizer first, and if it can be done for outfits, its theoretically possible for just about anything else. EDIT: Really nice work on the packs and cartons, BTW. I would love to see this happen (I'd use it). Link to comment Share on other sites More sharing options...
nikoligrim Posted February 13, 2019 Author Share Posted February 13, 2019 Thanks for all the responses, I'm going to have to investigate this more. I'll upload what I have accomplished though, which adds everything to the games vendors and leveled lists. Link to comment Share on other sites More sharing options...
Recommended Posts