Can I fix this?
Scratch:
I'm really learning a lot from trying to fix this.... so i'm not going to try your version quite yet..
How/where did you set the prices.... in the objects or the machine????
Cleanbots don't clean up espresso cups, so i suppose that's why they don't clean up the energy drink, etc...
Would new objects need to be made from the instant meal mesh (is there one??) so the cleanbots would clean them up, because instant meals are garbage not dishes?? Or, when an object is cloned from a game mesh, in this case the espresso, is the object actually modeled from the mesh or just linked to that mesh? Could the link just be changed?
Cyberdodo:
The prices are set in the machine. In the BHAV for buying the object, look for the line
[global 0x0294] Budget - Make Transaction
The 1st literal is the price. That gets set by the second hex pair in the operand box.
Scratch:
Quote from: Cyberdodo on 2007 March 11, 20:50:06
The prices are set in the machine. In the BHAV for buying the object, look for the line
[global 0x0294] Budget - Make Transaction
The 1st literal is the price. That gets set by the second hex pair in the operand box.
Ok... found it and i understand that now... but the bag of chips cost 25 but the 1st literal says "5". Is it getting multiplied somewhere?? The energy drink literal is 19 but i think the price is 5... i don't remember at the moment
Cyberdodo:
Literal 0x0019 is the hexedecimal value of 25.
Magicmoon:
Ok. So I did it wrong again. I couldn't find more than one price on the vending machine and so thought that the prices were tied to the individual products and changed those.
I too am going to try out my machine (after fixing the price again). I know mine will still have bugs but I want to learn how to do this to fix the other irritating items in Sims land.
In the end, I'll probably use the Cyberdodo version as it is almost exactly what I want. Besides, I'll never be able to replace the chips/cookies/juice like you did, at least without hurting myself.
Quote from: Cyberdodo on 2007 March 11, 20:11:46
My fixed version now spawns the generic snack chips/cookies/juice instead of Paco's custom equivalents, at a cost of $1. The energy drink is still his custom drink, which now costs $10. I cleaned up the energy drink object too, so it now increments and decrements needs, rather than setting them to hard literals. Specifically, it raises Hunger a little, raises Energy by about 1/4, lowers Comfort by about 1/4, and lowers Bladder by half.
The only tweak I'd like to do to your version is raise the energy a little. Basically, I use the machine rather than macro>caffeinate if their energy is below the halfway mark and it is earlier than 6pm, and I want the end result to be that their energy bar is over half, but no more than 3/4. Perhaps you already have it working that way. I haven't had a chance to try it out yet.
I'm impressed that you changed the cookies/chips/juice. The part that amazes me is that he felt the need to create custom objects when these items are already in game.
I also like that you removed autonomy from the energy drink. I was having a hard time deciding whether to allow them a small chance of autonomy on the drink or disabling it like you did.
Quote from: Cyberdodo on 2007 March 11, 20:11:46
There's still 2 outstanding problems that I have no idea how to fix. The mesh still overrides the mesh of the other vending machine, and cleanbots won't clean up the energy drink cans.
I know cleanbots clean up dishes left on the floor, but every since I started using the Coffee Cup hack available here, I haven't had any cups on the floor to even know if a cleanbot will clean up a normal one.
If you could get the mod to recognize the cans as a cup, then the Sims would at least put the can in the dishwasher instead of tromping all over the lot looking for a coffee table. My neat Sims will actually put the cup in the dishwasher after they place it on the coffee table. If we could bypass the coffee table, it would work out pretty well by coding it so all Sims clean up the cups rather than just the neat ones. In the mean time, I just put a coffee table near the machine.
Too bad he didn't code in anything for a child to use the energy drink. On weekends I find that the children's energy gives out too early, making them sleepy by 7:00 or 7:30, whereas they do fine on the days that they go to school. But I can't find anything other than a nap that will give the small energy boost that I need for the kids. Is it possible to give a slight energy boost with the juice so that kids have a way to increase energy? As long as it is a small increment, adults won't get out of sync drinking it any more than if they helped themselves to a single cup of coffee.
It's been fun working on this project with you all.
Navigation
[0] Message Index
[#] Next page
[*] Previous page