I understood the ternary operator... my point was
obj.popularity = 9
>>> salary = min(max(round(obj.popularity / 10 * 250), 200), 2500)
My point was everglow's code will yield 225, your code will yield 200
Granted it's just a matter of updating yours to x<9
But to seriously ask my half-question of before...
Python 3 is literally in the resources/srv folder, along with a collection of python libraries.But to seriously ask my half-question of before...
Is this game actually written in python? I really did expect it was all javascript.
First of all, we're talking about a single dev working mostly voluntarily, so frankly, I find this attitude wholly unrealistic. I asked you to try one tool, not 5 or 10, but instead of just ignoring my advice, we're writing back and forth about why your idealized feature complete application shouldn't need additional user configuration (which I think is silly considering this style of game is all about user generated content and customization).As for making random stats part of the game, I suppose that is a perspective choice as well. I dislike needing 5 and 10 different tools that I need to maintain, remember, and make use of in order play a single game.
In my mind there needs to be a rather extreme reason for tools and features to be intentionally excluded from the software and maintained separately. I would much rather write a mod that is incorporated into a game directly than write and use external tools to do the same thing.
As for having your cake and eating it too, I mentioned it before, but the game having the ability to make the stats random does not mean the game can not also leave the stats alone. Both can co-exist within the game. That's the beauty of software. Users can be given choices. Random versus from-file can exist as a setting the same as it could exist only one way or the other.
After asking I did look for python, and yes, I saw the libraries. That said, I haven't noticed any obvious python game-local files. As I said, not actively familiar with the tool used as the backing framework here. But the only real game file I see is the app.asar which I guess may contain python files as well, but I don't think it does.Python 3 is literally in the resources/srv folder, along with a collection of python libraries.
I had previously made a self-deprecating joke about being lazy. You then wrote a post to someone else stating basically that I was too lazy. You didn't say it to me. It did not come off as a joke. So yeah, I made a quick response which I should have ignored because it was not worth my time. And then you kept asking me why I wanted the new feature or what was my reasoning. Maybe I should have ignored you then as well, but I don't exactly hold grudges over one silly little "lazy" comment. My mistake for trying to answer regardless of whether I misunderstood your underlying question or not.First of all, we're talking about a single dev working mostly voluntarily, so frankly, I find this attitude wholly unrealistic. I asked you to try one tool, not 5 or 10, but instead of just ignoring my advice, we're writing back and forth about why your idealized feature complete application shouldn't need additional user configuration (which I think is silly considering this style of game is all about user generated content and customization).
You know, this started when I replied to someone saying you refused to edit, and let's be honest, that's clearly the case, and you don't need to give me all these justifications and excuses because nobody was judging you. All you had to do was ignore me, but instead you keep telling me this BS about how you love to mod and use tools, come on... At this point, sorry if I'm blunt, I don't care about your overarching software philosophy; I saw a problem we were both facing involving pricing, and I decided to fix it and share how I did it, take it or leave it. The bottomline is if you don't use the VC randomizer script or Disgruntler's unreleased script then you're going to have to rely on whatever the pack creators put in those files, if you aren't willing to use the simple editing tool. If you do eventually use a randomizer script, you'll probably regret it because I tried to warn you randomized stats are unbalanced (there's only negatives and no incentives at the current state of play), and again we're relying on one dev to come up with the perfect stat distribution formulae, which I really don't think exists anyway.
All of that is fine. I mean, it's fine you're not willing to try something simple to test the issue and instead hope to rely on everglow to make it your particular way. What I really took issue with was that your initial proposal was exclusionary rather than collaborative. Now you bring up having your cake and eating it too, but for the longest time, you wouldn't acknowledge that the game can already do what you requested without impacting everyone else and forcing the rest of us down that path.
IMO, there's other issues everglow could address besides ones a TUSC player who fools with girlpacks doesn't have any problem doing ourselves.
Nah, you're not offensive at all, unlike some other people (lol).Sorry that me posting one specific idea for a feature offends you so much. Your disgruntlement over it doesn't really change what kind of features I'd like or dislike. Ultimately neither your opinion nor mine drives the development of this game, but we're all better off when people put forth ideas for features (whether they get used or not).
The reason for that line having the `min` and `max` is because of historical reason. Originally I changed several times the multiplier and both min and max. Written in that way is easier to edit. That's the only reason. Also, the pack load won't brake if the condition 0 <= popularity <= 100 is not satisfied.might be a bit 'cleaner', seeing as the min 2500 is redundant if popularity is capped at 100. I dunno, I'm a math guy coming from Java and C# so the idea of temporarily sneaking into floats is weird. But Python's gonna Python, I'm actually not sure what would be the fastest or how CPython will optimize this.
So, TUSC has 2 parts:But to seriously ask my half-question of before...
Is this game actually written in python? I really did expect it was all javascript.
Valid, and this is an interesting read. It's interesting to follow your thinking. Informative.The reason for that line having the `min` and `max` is because of historical reason. Originally I changed several times the multiplier and both min and max. Written in that way is easier to edit.
Once again, I don't refuse to edit. I have edited some things in this game. But let's not start up again with declaring what the other person does or doesn't do.Nah, you're not offensive at all, unlike some other people (lol).
I was just frustrated because if you have an aversion to using external tools, so be it, but let's be honest about it. I didn't need to hear how much you like mods in one post while also refusing to use them and nitpicking semantics in the next. In my mind, it all goes back to when I said you refuse to edit, which turned out to be a completely true statement, and so to me, you weren't being honest in all your replies to the contrary. And the longer this went on, the more it seemed like you were arguing in bad faith while also not realizing your suggestion would drastically restrict other players' options and not just your own, which is really inconsiderate if you think about it. I never called you lazy though. Now that you're only asking for another option, I guess we're cool, even if I still think it's unnecessary.
Sometimes I get stuck in results oriented thinking, and if you tell me general theoretical ideas when a straightforward solution is staring us right in the face, it'll annoy me if you don't at least attempt to address the obvious answer. None of your justifications and/or excuses made much sense to me, and you don't owe me any explanation anyway, so why are we spending so much time discussing it when the results (i.e. randomized stats) is so easily achieved.
It reminds me of someone insisting to call a taxi in heavy traffic for a very short distance. Yeah, I get that you rather not walk, but the destination is very close and waiting for ride in this traffic is ridiculous. (I'm not sure if you follow the analogy, but that's the type of frustration I was feeling).
Yeah, I wouldn't want to try to code a game in a scripting language (although at least javascript isn't as exactly minimalistic). I only had a tiny bit of time to glance through electron a bit. What I had seen looked like python could be launched with individual call-returns, but it wasn't really intertwined to maintain python objects. Not sure if I just haven't looked deep enough or if that's basically how you are using it.The reason for that line having the `min` and `max` is because of historical reason. Originally I changed several times the multiplier and both min and max. Written in that way is easier to edit. That's the only reason. Also, the pack load won't brake if the condition 0 <= popularity <= 100 is not satisfied.
So, TUSC has 2 parts:
- the Electron application you actually execute, which is a Vue application written in javascript that handles the entire UI/UX
- an embedded server (Python 3.8 powered) which serves 2 main purposes: serving media to the UI (pictures, videos, music, etc) and processing logic (customising girl stats on launch, scheduling girls across city and club, night processing).
Why did I put the processing logic in the Python part? simple: javascript sucks
Given that the night processor itself is ~2k lines, and that Python gives you distribution functions and quite a lot of math as granted directly in the standard library, it was the quick-to-go choice.
It's unavoidable in some development--you have to in Unity or Godot, for example.Yeah, I wouldn't want to try to code a game in a scripting language
Yeah, you work with what you have. I've never done anything with Unity, but GDScript is pretty functional (if poorly documented).It's unavoidable in some development--you have to in Unity or Godot, for example.
Can confirm.Yeah, you work with what you have. I've never done anything with Unity, but GDScript is pretty functional (if poorly documented).
And I'll add that the coding in the scripting language isn't necessarily the problem. The limitation with scripting languages for game development is often in visualization. Godot has built-in libraries for that purpose to extend the scripting language. I imagine Unity likely does as well.
Thank you for the report, gonna check what's wrongbut they're not working for the city bar, gym, spa, and techno city garden club specifically lol.
Yes, absolutely!Can I use one folder for the girlpacks from Venus Club AND The ultimate Stripper club? This way I wouldn't have to use twice the memory on my hard disk and store every girl pack twice. If yes, does anyone know how?