|
Post by gaiasem on Jan 23, 2024 6:12:37 GMT -5
Hi everyone, I'm trying to make a mod that allows you to buy flower arrangements by clicking on a object. I basically made the difficult part: the sim can click on a object and then on "Make purchase", the picker menu with all the flower arrangements opens up and he can buy the item. There's only one problem: the flower arrangements he buys from this picker look weird. They all look similar: with very tall stems and the flowers look like they've not bloomed. I attach a picture to explain this better: on the left there is the flower arrangement made normally in the game with the crafting station, on the right is the same flower arrangement but bought from the mod. Here's the xml of the creation of the objects (the create_object then repeats identical for all the flower arrangements). Does anyone know what I'm doing wrong? Package link
|
|
|
Post by naunakht on Jan 26, 2024 7:16:52 GMT -5
Can you attach the .package file?
|
|
|
Post by gaiasem on Jan 26, 2024 9:46:44 GMT -5
Can you attach the .package file? Here, I've uploaded it on mediafire: package.
|
|
|
Post by naunakht on Jan 26, 2024 17:32:28 GMT -5
I could've sworn that in the past I've been able to buy completed flower arrangements from DEBUG mode, and they've looked fine. I just tried to buy an arrangement from DEBUG to compare to yours, and the one I bought looks weird and mangled too. Can you buy normal-looking flower arrangements from DEBUG? Have you been able to buy them in the past? I feel like I've lost my mind.
|
|
|
Post by naunakht on Jan 26, 2024 18:22:09 GMT -5
OK, I was able to get the purchasepicker to yield a Holly arrangement that looks identical to the one my sim crafted at the flower arranging table. I opened up recipe_FlowerArrangement_Holly and scrolled down to conditional_apply_states. I copied the state used for the higher quality arrangement, 190052<!--flower_Geostate_Values_tallHigh-->, deleted the two initial_states from your xml, and swapped in the single value from the recipe. This yields the following code: <V t="create_object"> <U n="create_object"> <V n="creation_data" t="recipe"> <U n="recipe"> <T n="recipe">189047<!-- Recipe: recipe_FlowerArrangement_Holly --></T> </U> </V> <L n="initial_states"> <U> <T n="state">32305<!--ObjectStateValue: Marketable_HigherValue--></T> </U> <U> <T n="state">190052<!--flower_Geostate_Values_tallHigh--></T> </U> </L> <V n="location" t="inventory"> <U n="inventory"> <E n="location_target">Object</E> </U> </V> <E n="owner_sim">Actor</E> </U> </V>Different arrangements have different geostates, so you will probably have to go recipe-by-recipe, deleting <!--ObjectStateValue: flower_Geostate_Values_birdHigh--> and <!--ObjectStateValue: flower_Geostate_Values_birdLow--> and substituting whatever you find in the recipe.
|
|
|
Post by gaiasem on Jan 26, 2024 19:53:55 GMT -5
OK, I was able to get the purchasepicker to yield a Holly arrangement that looks identical to the one my sim crafted at the flower arranging table. I opened up recipe_FlowerArrangement_Holly and scrolled down to conditional_apply_states. I copied the state used for the higher quality arrangement, 190052<!--flower_Geostate_Values_tallHigh-->, deleted the two initial_states from your xml, and swapped in the single value from the recipe. This yields the following code: <V t="create_object"> <U n="create_object"> <V n="creation_data" t="recipe"> <U n="recipe"> <T n="recipe">189047<!-- Recipe: recipe_FlowerArrangement_Holly --></T> </U> </V> <L n="initial_states"> <U> <T n="state">32305<!--ObjectStateValue: Marketable_HigherValue--></T> </U> <U> <T n="state">190052<!--flower_Geostate_Values_tallHigh--></T> </U> </L> <V n="location" t="inventory"> <U n="inventory"> <E n="location_target">Object</E> </U> </V> <E n="owner_sim">Actor</E> </U> </V>Different arrangements have different geostates, so you will probably have to go recipe-by-recipe, deleting <!--ObjectStateValue: flower_Geostate_Values_birdHigh--> and <!--ObjectStateValue: flower_Geostate_Values_birdLow--> and substituting whatever you find in the recipe. THANK YOU SO MUCH! I really appreciate your help, I was stuck on this for a week. I've tried changing the states like you told me on a few arrengements and it works 🥹. Now it's gonna take a bit of work to do it for ALL of them, since there are so many😅 Thanks again!!!
|
|
|
Post by gaiasem on Jan 27, 2024 9:12:53 GMT -5
Just another thing... I've tried to put in the picker also the Wedding bouquets (they are the last 5 create_object ) but they don't show up at all in the game when I try to purchase the arrangements. At least all the other flower arrangements showed up, even if they looked weird, but the bouquets don't even appear. :-/ (I've updated the package link)
|
|
|
Post by naunakht on Jan 27, 2024 18:14:10 GMT -5
Just another thing... I've tried to put in the picker also the Wedding bouquets (they are the last 5 create_object ) but they don't show up at all in the game when I try to purchase the arrangements. At least all the other flower arrangements showed up, even if they looked weird, but the bouquets don't even appear. :-/ (I've updated the package link) I don't have that pack, so I'm afraid I can't help you with that one
|
|