Steam 설치
로그인
|
언어
简体中文(중국어 간체)
繁體中文(중국어 번체)
日本語(일본어)
ไทย(태국어)
Български(불가리아어)
Čeština(체코어)
Dansk(덴마크어)
Deutsch(독일어)
English(영어)
Español - España(스페인어 - 스페인)
Español - Latinoamérica(스페인어 - 중남미)
Ελληνικά(그리스어)
Français(프랑스어)
Italiano(이탈리아어)
Bahasa Indonesia(인도네시아어)
Magyar(헝가리어)
Nederlands(네덜란드어)
Norsk(노르웨이어)
Polski(폴란드어)
Português(포르투갈어 - 포르투갈)
Português - Brasil(포르투갈어 - 브라질)
Română(루마니아어)
Русский(러시아어)
Suomi(핀란드어)
Svenska(스웨덴어)
Türkçe(튀르키예어)
Tiếng Việt(베트남어)
Українська(우크라이나어)
번역 관련 문제 보고
With regards to the option button, it sounds to me like you may be updating the value in the configuration, but not updating the button html object itself. Then, when the Options menu refreshes (every couple of seconds), the button updates as well. That's my guess from the description of the symptoms.
On a more negative topic, there is a reason I haven't updated this mod in a while (beyond general laziness). Orteil has mentioned that he has plans for a minigame for every building, which naturally includes the Chancemaker. This means that, at some point in the future, the Casino mod will become obsolete, which is kind of a downer. It makes it hard to care enough to make the mod more than "good enough".
With that said, however, it sounds like you've already done quite a bit of work. It would be a shame to waste that effort, and you picked a very good time. With the coming update of Cookie Clicker, I'm going to have to do at least a little bit to make sure the Casino works with the new version. If you send me what you have, I can find the spoons to incorporate it into the mod.
If not, Pastebin could work, or message me on Reddit (u/klattmose)
As for the Casino becoming obsolete, there are several ways to ensure that this doesn't happen, at least one of which I'm sure would be fine with Orteil. I'll detail these in a little while.
Now that you've pointed it out, that error with Casino.bankPercentage is embarrassingly obvious. Also, I didn't know that upgrades needed to be created on initialization, but that certainly explains the problems I was having getting the two modes of the game to work together. Your solution is much cleaner than what I had in place to get around this.
Meanwhile, I've played a few thousand more hands of blackjack with the new options, and I'm happy to report that I've found no implementation bugs. But there is one problem area I'd like to address.
Currently, the Casino disables Steam achievements. I think that with a little bit of tweaking, that would not be necessary, and it would also add just a bit more challenge to the Casino. As far as Steam achievements go, in the Readme in the mods folder (just above the workshop folder), Orteil says that Steam achievements should be turned on "if this is a good honest mod that does not incredibly unbalance the game". In other words, it's fine if players can earn extra cookies through a mod, as long as what they earn is not excessive.
This is what I tried to do with my introduction of the bandPercentage variable. Originally, I had set the possible values of this variable to be 0.1%, 0.2%, and 0.5%. You added the top value of 2%, making these values congruent with the time values used when the bank percentage option was not set. Originally, I thought that this was going to be too high, but the one third reduction in the frequency of instant wins turns out to offset this nicely, and the resulting game seems very balanced. I am someone with an essentially perfect knowledge of Basic Strategy in blackjack but with no card counting skills, and I found that the game now provides just the right level of challenge.
For a while.
The problem is that even with a betting level that is only 2% of the bank, you still get exponential growth - it just takes a while to kick in. But kick in it does, and eventually the income I was generating from blackjack dwarfed all my other sources of income from the game. I could get 17 duovigintillion cookies just by winning a single hand of blackjack. This certainly would not do if we wanted to make the Casino eligible for Steam achievements.
Even worse, cookies that are won in blackjack count directly toward Prestige levels. In my current game, I have about 100 quintillion Prestige levels that are a direct result of blackjack winnings.
Lowering the 2% limit would not eliminate the problem - it would merely delay it. So I figured out a solution that would work not only with the bank percentage option, but would also prevent excess gains with the original time-related options.
I'll start with the latter. Before enabling the minutes, hours, days, and other time options, I would also make it a requirement that 20 units of these options (since 20 is the highest selectable number) would not exceed 2% of the current bank. This would prevent these options from blowing up. Realistically, this limit would be unlikely to come into play except for the higher time units.
As for the bank percentage rate of 2%, I would simply add the restriction that this rate would not be allowed to exceed 20 decades of raw cookie production, which is the highest rate selectable for a bet using the time options instead of bank percentage. As blackjack winnings don't affect the rate of raw cookie production, this would eliminate the exponential problem that would otherwise be caused by the bank percentage option.
If this sounds good to you, please let me know, and I'll make the changes to my copy of the Casino and try them out. If they work as expected, I'll then pass the modified version to you.
One final note - you mentioned in your last post the order in which the upgrades are created. I actually think that this works fine; I adjusted it a bit when I added my upgrades, so it now seems a little smoother to me than before.
I thought that it would be nice for the player to see when they have hit the betting limit. Although this can be ascertained by looking at the number of cookies per bet on the third line of the sidebar and then making a calculation or two, I thought that something a little more obvious would be appreciated. So I made the betting percentage (or time units, when those are selected) vary whenever the betting limit is reached so that they would remain accurate. For example, if the player is using the bank percentage limit of 2% and they hit the betting limit on that, which is the highest amount available under the time-related system, or 20 decades (yes, 200 real years of raw cookie production), the number of cookies to bet would not go higher than that 20 decade limit. However, this is now reflected in the betting percentage, which would start to drop as the player's bank grew, going from 2% to 1.9%, 1.8%, etc. If the player spends down their bank, this percentage will rise accordingly, once again with a ceiling of 2%.
The figures for the time-related values behave similarly. This method makes sure that all values are correctly displayed, not just the highest ones.
Since right now these limits aren't documented anywhere other than here (and these days, how many people RTFM anyway?), when betting limits are active reducing the player's maximum bet, the line "(Maximum bet limit reached)" is inserted after the third line in the sidebar, right after the description of the number of cookies bet.
I have numbered this version 4.1 in the main.js source file; it needs to be fixed in the info.txt file as well. After playing about a thousand hands of blackjack with these betting limits in place, I feel that the game is very balanced, and I think that it would be quite appropriate to enable Steam achievements for it.
The updated code is at https://github.com/klattmose/klattmose.github.io/tree/master/CookieClicker/SteamMods/Casino if you want to give it a final look-over before I update it on the Workshop.
A brief background: I worked several decades as a professional software engineer, and one of my specialties was user interfaces. Early on, I learned the importance of being able to place myself in the mind of the average user - someone who had far less knowledge of the software than I did. I could then design the UI so that it was easy for them to use, and if done properly, it would be just as easy for more experienced users.
One of the elements I found key to a good UI is simplicity, and specifically simplicity that made it obvious what the UI was saying, and how to use it. I really like the overall design of the Casino as I think it follows these guidelines very well. However, I think that the latest addition oversteps these bounds, and as a result would make the game harder to use for many people.
I see two problems with the new display. First, it's a bit cluttered. Instead of a single number with an unambiguous meaning, there are now two numbers, with no clear indication of what they are, or how they relate to each other. (Yes, it should be obvious to anyone who understands what's going on as to what these numbers are. But a lot of users understand a lot less than we might think. For example, look at the comments at the beginning asking how to get to the Casino.)
The format of the two numbers may be obvious to many of us, but not so much to others; it's somewhat ambiguous. Maybe the format "2 (1.6)" means we're supposed to multiply 1.6 by 2? Maybe that's what the extra line about the maximum bet limit being reached means? To us, that's obviously not the case, but from experience, I know that some people will be asking these very questions.
This could be improved by moving the '2' out of the box, removing the parentheses from the actual percentage, and adding a line that says something like "Base percentage: 2" right after the maximum bet limit line. (A similar approach would be used for the time-related bets.) I think that this would definitely be an improvement. Things would start to get a little cluttered in the sidebar, but if the two optional lines about the bet limit were separated from the other text by a blank line before and after them, I think this would end up looking fine.
As for changing the Game.Upgrades['Standard push'].buy() to ....earn(), that makes perfect sense, of course. I just didn't know about the earn() method.
Could you please post a screenshot of your proposal so we can see how it looks? Thanks!
image[imgur.com]
I've played around a lot with the sidebar display, and as I do, it becomes clear to me that there is a real advantage in displaying both the actual bet amount and the target bet amount when these two differ. As I mentioned, the problem I had with your initial method of doing this was that the two numbers were placed together in the same field that was designed for a single number, and it wasn't clear what the two numbers were. I've redone the display a bit here, and I've come up with something that displays the two numbers only when they're different, but in such a way that both numbers stand out in a way that I think is clear and unambiguous. I've played a lot of blackjack with this system, and I like it a lot. I hope you do too.
I recommend opening the image links, preferably in another window, before reading the descriptions below them. I also have a pastebin[pastebin.com] of the mod with the final display, which also contains a number of other additions that I will detail later.
I'll start out with the simplest case, which is just the standard display where the betting limit has not been reached:
Standard display[imgur.com]
One thing I do when I'm testing a feature (which didn't start out as an intentional method) is that I try it out when I'm half asleep (such as now). I find that this is an excellent way to see which parts of the UI aren't obvious, and where the UI can be improved.
You can see that I've made a few minor changes to the display here that I think help make it more informative and readable. First, when looking at it through the mists of brain fog, I saw the header "Cash" in a new light (or lack thereof). "Cash" is a very general term, and it doesn't even really describe the following content, which is the current bet amount in cookies. So I replaced "Cash" with "Bet Amount", which seems far more descriptive.
I then increased the font size by one for both the "Bet Amount" and "Actions" headers, which helped make the two main divisions of the sidebar a bit clearer. I also added an extra blank line in front of "Actions" in furtherance of this goal. The result was something that penetrated my clouded brain a lot easier, and helps make clearer at a glance how the sidebar is organized for those who are unfamiliar with it. I found this especially helpful when adding the features I describe below.
Here's the first overflow image, which shows what happens when the time selection exceeds 2% of the current bank:
Time overflow[imgur.com]
I kept the actual bet amount in the box at the top after the word "Bet:", as it is the amount that is actually going to be bet. But I also added two lines - both the "(Maximum bet limit reached)" from before, plus a line showing the base bet limit that the player had selected, which is the number that you are most interested in. Although this number does not come first, unlike the first number, it is boldfaced. I think that this results in one's attention being drawn equally to the two numbers, with their accompanying descriptions making it absolutely clear which is which.
If you like, we could change "Base time" to "Selected time". However, I do notice that things start to get a little squished with this change, and it's just a tinier bit harder to read this quickly. That may just be my brain fog, though, so I could go either way.
The two lines referring to reaching the bet amount are separated from the rest of the "Bet Amount" display by an extra blank line before and after; this makes sense because these two lines are related, and when they appear, they always appear together.
Fortunately, there is guaranteed to be enough room in the sidebar for all of this, as the size of the table dictates the height of the sidebar.
When the player updates the betting amount by clicking on the boxed number in the first line, the boldfaced time following the "Base time" entry below is updated immediately. If the player cycles through to the beginning ("1"), then the two bet limit lines will disappear if the player's bet now no longer exceeds the limit. The lines will return at the appropriate time if the player continues clicking.
Finally, here's a picture including the bet limit lines when the bank percentage option is selected:
Percentage overflow[imgur.com]
It works completely analogously to the time overflow option.
There are a number of changes I've made in other areas, but I'll stop here for now so that this post doesn't get any bigger, and I'll detail the others in a little while.
Time overflow[i.imgur.com]
Percentage overflow[i.imgur.com]
How do you think this looks, especially compared to the examples in the previous post? (The standard, non-overflow display would be exactly the same, of course.)
Also, I have found that my other modifications have resulted in the Casino's earnings tracking those of the game at large very well, neither being so big as to overwhelm the game or being so small as to be insignificant. I'll have more details in my following posts.