RimWorld

RimWorld

RecreationalSlotMachine
59 Comments
mitch.asdf  [author] 17 Aug @ 3:21pm 
Alright it magically works now I did absolutely nothing but wait and try again 11 days later
mitch.asdf  [author] 7 Aug @ 1:56am 
I have tried both main and unstable beta branch. Both tell me the same thing. Little bit frustrating, I updated the ball pit mod when rimworld 1.6 was first available in beta and it let me just fine. Now that I am reminded to also update the slot machine, it is failing to upload. So I tried disabling the slot machine and uploading the ball pit again (the ball pit has not been changed since I last pushed the update) and it even fails then
mitch.asdf  [author] 6 Aug @ 2:33am 
Looks like there is a problem with my rimworld it can't upload to the steam workshop I will try again later. Both my mods work I just can't upload either.

It says this: "Reason: Failed."
mitch.asdf  [author] 6 Aug @ 2:05am 
mod is being a bit more painful than the ball pit to port to 1.6
Unstable Energy 31 Jul @ 12:09am 
1.6?
Panco 21 Jul, 2024 @ 3:15am 
wonder if gambling addiction is possible:special:
Gold_Fish_pong 11 Apr, 2024 @ 7:07pm 
Okay
mitch.asdf  [author] 11 Apr, 2024 @ 4:25pm 
I will. Just maybe not today, I have work for the next several hours
Gold_Fish_pong 11 Apr, 2024 @ 2:23pm 
Will you still update? 1.5
mitch.asdf  [author] 27 Oct, 2022 @ 4:41pm 
The grass is glass
Playzr 🐵 27 Oct, 2022 @ 4:32pm 
Sounds like the grass isn't really greener on the other side after all. I hope one day they are able to understand and cure these conditions and spare the time and resources, even if they seem fairly straight-forward. Until then we just have to get by with our medication, as the condition reduces the quality of our lives and we wait for better days. And $250 for some medication what a rip off. You'd think it was gold plated and made you fly for that price. I have to wonder if some of them want us to depend on medication for the money made from it.
mitch.asdf  [author] 27 Oct, 2022 @ 4:25pm 
Yep. This is my experience with both public and private. Private says to me "go to the public system if you're in that much pain" and take $250 for half an oxycodone script
Playzr 🐵 27 Oct, 2022 @ 4:15pm 
...All the while making these regular appointments just to barely look at me and send me on my way and filling their pockets for doing absolutely nothing. I would recommend considering getting private medical attention if that's an option because you can't rely on the regular health system. The pain can feel like a constant reminder that the system is broken and that the world is collapsing in on itself. Add on to that the cost of living crisis. And to think colonists in Rimworld are better qualified and more numerous than our doctors.
Playzr 🐵 27 Oct, 2022 @ 4:15pm 
Yeah tell me about it the health service these days is terrible. It's like the hospital has just been this cardboard cutout when you actually need it. And the waiting times are ridiculous. We wait for months sometimes only to get the absolute bare minimum as they send us on our way and tell us to take some paracetamol. They only have to make sure the hospitals have everything they need and the political system just seems to use it as a piggy bank to dip their hand into whenever they want to fulfil some sort of climate goal campaign promise or build something we don't actually need. I've been in pain for years and they've done nothing. At some point I had to just go to a GP doctor to say the hospital ignore my pleas for pain medication and they immediately prescribed something. But still after all this time they haven't done anything...
mitch.asdf  [author] 26 Oct, 2022 @ 1:56pm 
If you want my complete honesty, all that needed to happen was for me to click compile with the new target folder of 1.4. Everything still worked. The pain I have I keep getting told is normal, so I have to keep going back when ever it gets worse and ask them "is it bad enough yet?". I feel like I'm dealing with level 3 doctors at the emergency care ward who probably have access to nothing better than healroots, but I know that this seriously cannot be the case. So if there's any reason to be as healthy as you possibly can, let it be this. Complacency runs deep in the medical system. Once you're there, they'll make sure you have to keep coming back, because you're now their source of income. And once you're finally there, you can thank organised crime and political corruption for crippling the very systems everybody is lulled into thinking they can safely rely on.
Playzr 🐵 26 Oct, 2022 @ 4:47am 
Nice work updating this. Sorry to hear you've been in the hospital. Wishing you all the best.
mitch.asdf  [author] 26 Oct, 2022 @ 3:03am 
All done
mitch.asdf  [author] 25 Oct, 2022 @ 11:19pm 
Thanks. Don't want to make a big deal out of it but also don't want to make excuses. I have to update my rimworld to 1.4. I really haven't had the motivation to play during the entirety of 1.3 so my mods went fairly untested for 1.3 and I feel a little bad about that but I would assume people would tell me if something isn't working. I'll run the update today (bad internet and might take me a while to update)
pgames-food 25 Oct, 2022 @ 11:16pm 
(all the best)
mitch.asdf  [author] 25 Oct, 2022 @ 11:00pm 
Terribly sorry, been in and out of hopspital
Playzr 🐵 22 Oct, 2022 @ 5:54am 
1.4 update please. Thanks.
Playzr 🐵 10 May, 2022 @ 4:58am 
@MistressTessie
Without coding it's possible to create new items by making images and editing xml, but coding is required for any new functionality, still might be a good place to start.

Nice mod, we need more recreational activities in this game and this slot machine will go nicely in a casino. People gambling for money is a new concept too.
MistressTessie 14 Apr, 2022 @ 1:37am 
I would love to learn to make mods! Any idea on where to start? is C# required? I have an idea for a mod, but I cant find a modder to do it, so want to try myself. :)
- This mod looks and sounds really cool, will try it out :luv:
Sisyphus 25 Sep, 2021 @ 11:33pm 
Fair enough you did great work here. I've been wanting to learn how to make mod's too! Any suggestions on where to start? I've already followed the tutorials on the wiki and a few other sources. The XML stuff I can handle but hit a brick wall on the C# side of things when trying to make the .dll.
mitch.asdf  [author] 23 Sep, 2021 @ 5:14am 
I originally got into modding this game to get a basic understanding of reverse engineering which is what the modding tutorial guides you through. I would say I've moved on but I might come back to the game eventually. I still haven't played ideology though I have bought it lol
Sisyphus 22 Sep, 2021 @ 8:59am 
Love your Slot machines! Would you ever consider doing an entire casino mod?
Delta7777777 24 Aug, 2021 @ 11:32pm 
New models for -south east/west- should solve the image stretching issue.
I can guess it's becoming thicc because it's trying to use the same pic for different directions.
I made some new models for the different directions, but I don't know what lines of code I need to include in order to incorporate the pics into your mod correctly lol.

Caveat of using different images for the 3 new directions (south east west) would be omitting the slot spin graphic from them since they would be facing away from the camera's fixed perspective angle. North would be the only one the animation could stay on, and idk if that would be easy to make happen.

Hope you find a way to do it dude. Thanks again for making this mod.
mitch.asdf  [author] 30 Jul, 2021 @ 5:01pm 
I don't know if this would help anybody trying to fix their mod but here's what broke both of mine:

Any "ThingDef" defined in XML with a "ThingComp" attached will need a property added called "<drawerType>MapMeshAndRealTime</drawerType>". Without that property, the overridden function "PostDraw()" will simply not fire. This was not a requirement in 1.2.

The pawns were failing to use the slot machine because of a switch I had implemented to prevent errors when loading a world. The switch starts out as true when the object is loaded in and is flicked back to false when "PostDraw()" is called which was never being called, so the pawns would be forced to stop using it after they begin using it.

All of this without any errors or warnings thrown in the console. Amazing :)
mitch.asdf  [author] 30 Jul, 2021 @ 4:35pm 
That's alright. Someone could've told me the slot reels were blank white squares :3 I had no idea
//SlipperyPete:. 30 Jul, 2021 @ 6:48am 
Thanks for the update!
mitch.asdf  [author] 26 Jul, 2021 @ 4:31pm 
Also if anybody knows or figures out how to get the slot machine to have the interaction tile rotated without it becoming thicc then let me know lol I have tried everything I can think of
mitch.asdf  [author] 26 Jul, 2021 @ 4:23pm 
I will have to look into whether or not it can just be moved from 1.2 to 1.3 with no changes. Currently I can load the slot machine mod on 1.3 without errors but have not tested
//SlipperyPete:. 26 Jul, 2021 @ 2:36pm 
I hope this gets an update, great mod!
mitch.asdf  [author] 10 Jun, 2021 @ 5:37pm 
I can tell how the math you're explaining adds up because I am using that calculation to find out the win chance for 1 game based on what the slider for "chance for 1 slot to land on gold" is set to (0.25 * 0.25 * 0.25 = 0.01562) this makes 100% sense to me.

Maybe I need to reword the description in question?
brine909 10 Jun, 2021 @ 4:37pm 
we can't just go 1/6 * 3 = 50% even if the answer can end up being close that doesn't mean the math was done right.

that is the reason you can end up with stuff like 781% chance after 500 games even tho it's impossible to go over 100% and it's absolutely possible to be unlucky 500 times in a row.
brine909 10 Jun, 2021 @ 4:36pm 
that isn't how probability works and binomial distribution always happens when your using probabilities whether intentional or not. I'm not going to blame you for doing the math wrong since it's a common mistake but ill do my best to explain how it works.

lets say there is a 1/6 chance of winning a game. the chance of winning 3 times in a row is the same as multiplying it by itself 3 times 1/6 * 1/6 * 1/6 or (1/6)^3 or 1/216

now if you want to know that chance of winning at least 1 time in 3 games then the easiest way is to calculate the chance of losing 3 times in a row then take the opposite probability

the chance of losing 1 game (or opposite probability of winning) would be 1 - 1/6 or 5/6

therefor the chance of winning after 3 games is
1 - (1-1/6)^3 or 1- (5/6 * 5/6 * 5/6) or 42.1%
mitch.asdf  [author] 3 Jun, 2021 @ 2:48am 
@brine909 I had to look up what you're talking about but I'm not using binomial distribution to represent the chance of winning. I wouldn't know where binomial distribution would even come in handy. I would assume certainly not here. If the pawn played 500 games in 1 sitting, the "win chance" would be 781%. I know it isn't meant to exceed 100%, but I expect the user would be able to then think that there is a decent chance of winning 7 games and another pretty good chance of winning an 8th game if they see the number 781%. I would wager people would be asking what is wrong with the calculation if it said 99.96% for 500 games at 1.562% if calculated by binomial distribution.

I'm not trying to be a jackass I am just trying to explain why it is the way it is. I also don't gamble or know much about statistics or probability math lol
pgames-food 3 Jun, 2021 @ 12:20am 
thanks mitch
brine909 2 Jun, 2021 @ 11:08am 
1.562% per game 15.62% per 10 games? that math doesn't check out. If you have a 1.562% chance per game then chance per 10 games would be 1-(1-P)^10 or 14.57% chance of winning
Delta7777777 8 May, 2021 @ 7:02pm 
wtf cool
thanks a lot dude, this is going to fit well in my casino/club :)
I was searching last month for slot machines, ended up finding a bunch of other very worthy mods under "Recreation", but yeah, nice, almost feels like this was made for me lol
mitch.asdf  [author] 3 May, 2021 @ 1:28am 
Yup found issues with RimThread. Made a fix hopefully works in all cases. It would have errors if you had more than 1 slot machine in the world and tried to load that save file.
mitch.asdf  [author] 3 May, 2021 @ 12:27am 
There are so many mods I don't know about. I hadn't installed any until I updated this and it would've been handy to know about hugslib. If I did know about it then this wouldn't have a weird settings menu. But as it is, the mod doesn't rely on any other mods which is how I wanted it
pgames-food 2 May, 2021 @ 9:15pm 
i tweaked the setting to test it with rimthreaded, so that gold would have a chance of appearing on the reels, at about 75% (as a test) and won about 6 gold :)
pgames-food 1 May, 2021 @ 3:00am 
:)
mitch.asdf  [author] 1 May, 2021 @ 2:54am 
If I can find or think of a way to make it work then I could add it yeah. I figured if I make it so the pawns carry silver, then it can treat all pawns the same way by using their inventory. But for now if you want it to run off fuel, you can place it next to a generator :steamthumbsup:
pgames-food 1 May, 2021 @ 12:45am 
ah cool, for the retention system... maybe using silver as fuel (but if it can be limited to 1 fuel per colonist, then each person fueling it will only do it 1 time. and then the paying out/winning the jackpot etc, depletes the fuel or something :) but not sure how it will work in practice :) but however you do things so far, will be cool to try :)
mitch.asdf  [author] 30 Apr, 2021 @ 7:07pm 
Everything works now and is ready to upload. There is just 1 thing I noticed: games that were paid for can be cut short by the pawn leaving the slot machine. The pawn leaves the slot machine if you draft them or force them to do something else, and also when their recreation meter reaches full. I have to change the amount of recreation the slot machine gives as it fills up their meters far too quickly at 150% when they play for 20 seconds at a time. I think 125% is more appropriate, given the activity also yields currency.

But I have also added a config option for activity length, so you have more direct control over how much recreation it will give per session. I confess 20 seconds is far greater than most other recreation activities and I may have made a mistake by making it that powerful lol.
mitch.asdf  [author] 29 Apr, 2021 @ 9:53pm 
I thought about casino tokens but I think silver just makes sense to me right now. I never intended it to be more than just gold and mood boost in the beginning lol.

I have already implemented the payment system, still stuck on silver collecting.

The machines would pay out all of the winnings directly into the inventory of the winner only if they were a visitor who had to pay (including you visiting other colonies), so visitors keep all winnings. If it is your colonists playing your own slot machines, there is a configurable maximum of which it will pay them out to before dropping the rest onto the floor.

As for the machines holding silver, I haven't gotten around to that yet. I have thought about it and I am expecting problems (the slot machine forgetting how much silver it had, etc)

Also all of these changes would be optional and you would still be able to use the mod the way it is right now.
Dragar 29 Apr, 2021 @ 8:40pm 
If you can carve out the payment system, you can actually add more gamble games in this mod.

I like how silver can be retained in the machine, but that way colonists have to compete against guests to win the prize. Colonists have jobs to do, they can't possibly win against those tourists.

How about adding casino tokens? Make it free of resource to craft, so machine can just consume it. You can store them near the machine. Colonists can freely grab them whenever they play, without needing to carry silver around. Guests can purchase tokens and play the machines. And make machines fueled with silver, and make it pay certain amount for every win.

In this case you can configure the price of tokens and the prize silver in the option to set the meaningful business. This idea might be too dependent on hospitality, tho.
mitch.asdf  [author] 29 Apr, 2021 @ 5:36pm 
Hey guys yeah I have been working on a payment system and also the option for paying out silver instead (or as well). The silver would pay into the pawn's inventory if they were required to pay to play.

I just have hit a stupid snag of "the best way" to have your pawns collect silver (sounds stupid I know, trust me). I seem to be able to get them to grab silver in a mostly empty world, but on my populated world it just causes errors.