Game.cpu.generatePixel change


  • Banned

    @Bogden Personally, it would drive me nuts if they did that, especially if the total number of pixels in existence when they did that was an odd number. Knowing there would be an odd pixel out there that could never be redeemed would be aggravating lol.

    😭👍

  • Dev Team

    Since emotions are settled down finally, I'm opening the thread again, and moving some relevant posts here to keep it in one place. Please remember to be respectful and stick to the constructive discussion without getting personal, offending and accusations.

    👍

  • YP

    I just don't understand why you make something a challenge from something what you just can buy with money. Why not create a challenge from something you really have to do and can't buy. It looks like you just want to sell more pixels.

    You have always been carefully to not make changes that can break code of inactive or afk players, but in this case you just don't care.


  • Dev Team

    @w4rl0ck It's a balancing change. Many new endeavors require balancing over time. 5000 CPU cost turned out to be too small, too easy, too low entry barrier. Again, we don't create a challenge (you again misinterpret this like something interesting and fun), we make it more challenging, i.e. available to less players.

    I still disagree it's breaking though. Missed ticks - agree, global resets - agree, less performance - agree, but a breaking change is when your code stops working rather than works suboptimally. Even with global resets every N ticks you still have your code running and your empire living.

    If we call breaking a change that changes something that players have optimized against, then we must start calling every change breaking.


  • YP

    Well this explains why my code has been blowing up while I was away having a kid. The cost doubled and nukes my code every time it gets to 10k bucket.

    This is definitely what I'd consider to be a breaking change that you HAVE NOT made clear in-game, this has gone from if bucket full use half and refil, to if bucket full empty bucket, and halt all code because it's in an emergency refill bucket state.

    I'm not sure "set it to max" counts as balancing, but whatever.

    I'm officially done with pixels.

    Thanks for making that decision easier 🙂

    😓


  • I got to know about this change by coincidence on slack #general, a week after it was already live. It didn't break my code, so I didn't catch it - but only because I usually use just half of my cpu per tick.

    I believe generating pixel should be easy, the 2 liner to generate them is even in the api documentation to make it easy for everyone. An easy way to use wasted cpu is an incentive to waste less cpu. It has been a very welcoming feature for non-optimized users, because a good bot would use all cpu to create more energy or credits. A less advanced bot just has much cpu to waste and can generate pixel easily by wasting less cpu.

    I believe there are also not too many pixel. If you try to collect golden decorations, you'll need to spend a lot of pixel. At 13th November I created 312 decorations and got zero golden decorations.

    If creating pixel is challenging, then less people care about them at all, leading to the old behaviour to use as much as possible from your cpu with mostly unnecessary calculations. A good example in my humble code base of the optimizations I did after the pixel feature came out:

    1. towers scan the room only every 41 ticks for damaged structures
    2. market code runs only every 11 ticks instead of every tick.
    3. use more reusePath instead of recalculating each path every tick, saves also something.
    4. collecting room statistics and market statistics every minute instead of every tick.
    5. disable logging HTML room statistics while I'm offline.
    6. disable map visuals and room visuals while i'm offline.
    7. sharing energy across rooms by terminal every 32 ticks instead of every tick.
    8. more would be possible, but with over 100 cpu saved per tick it has been already enough.

    Without the pixel feature, I would still run unoptimized code and I think many other players also optimized their code to create more pixel. No need to make this feature more challenging, it's ok to be an non-challenging incentive for optimization.

    👆👍


  • I'd argue that incentive is still there, it's just a little harder to make use of.

    All you really have to do is make sure that you don't exceed your CPU allocation on the tick you run generatePixel or the following tick where you've got hardly any bucket.

    Most optimisations tend to be done by remaining bucket amount, which mostly works ok if like most new players you're well under your CPU allocation on almost every tick. To completely avoid resetting yourself you'll need to do a bit of work to check against Game.cpu.getUsed() as well.



  • Oh for goodness' sake guys. Having accounted for the change you announced, and prepared some days in advance, I come back here after seeing errors I couldn't explain (lost ticks), to find that you made a different change and didn't start a new announcement. Lucky this is a game and not something that actually matters...

    👆


  • @artch It looks like not all the documentation has been updated.

    PIXEL_CPU_COST = 10000
    https://docs.screeps.com/api/#Game.cpu.generatePixel shows 10000

    However, in the game web client. The intellisense in the console is still out of date. Typing Game.cpu.generateP into the Console brings up an intellisense completion which reads:

    fn() -> number
    Generate 1 pixel resource unit for 5000 CPU from your bucket.
    
    CPU cost: HIGH
    
    👍

  • Banned

    @artch said in Game.cpu.generatePixel change:

    Since emotions are settled down finally, I'm opening the thread again, and moving some relevant posts here to keep it in one place. Please remember to be respectful and stick to the constructive discussion without getting personal, offending and accusations.

    https://www.youtube.com/embed/AZnTIP9FRdI?start=00&end=22

    👎🤡🙄


  • Why would I need an apology? He never got combative, just... not great communication about the desired outcome.


  • Banned

    @cribbit the second biggest "fuck you" @artch gave was to you personally:

    @artch said in Game.cpu.generatePixel change:

    @cribbit Please let's don't play words and spam pointless discussions here. It's obvious enough what was meant.

    You raised a valid point, and in response @artch raised a middle finger.

    🤡


  • @tdxtor Keep my name out of your mouth. Thanks.



  • No need to appologize, this is not kidergarden. It's a discussion between adult men aware of a language barrier between them. I believe mutual respect was there most of the way, we all are trying to make things better. Lets use this as an opportinuty to make things better in the future.

    This change was meant to be small and non-invasive, but as it turns out it broke some stuff for some people, and, well, if you break a hobby project of another person, they might understandably get frustrated.

    I do believe that this project is, whether it was intended or not, more like a "bank" than it was planned to be. Community expects a higher stability level than the developers provide, we can see it quite frequently now and it's becoming a little bit of a consistent pattern. At the same time, I can fully understand that the devs are afraid of a rigid procedure set involved with a highly stable platform as their efforts to grow the game are already sluggish due to very small team and a massive chunk of codebase (which is a different frustration of the community - but that's a story for another day).

    The perspective that seems to be missing though is that those two goals are not mutually exclusive - in fact if this is done well, then the development throughput should increase (slightly in the worst case and quite massively in the best case (if crowdsourcing kicks in)). Devs are not experienced in this area, it seems, so discussing it and showing perspectives to each other seems to be the way to go. I was upset personally when the thread was locked, but once I realized the lock was temporary, it actually made a lot of sense. And it worked. I was wrong.


  • Banned

    @crazydubc I'd love to, but @artch still hasn't apologized and has to be taken to task. Soon enough I'll never have to bring it up again. Sorry to have dragged you into this.


  • Banned

    @rhef It's not a discussion of peers or anything, it's a discussion between a person whose job title is "communicating effectively and professionally with customers" and said customers. I also feel like if it was a discussion between adults, an apology wouldn't be so hard to coax out of @artch


  • Dev Team

    @rhef I appreciate your efforts and engagement in this situation, and also mature attitude in keeping this conversation within boundaries.

    Still, it seems you're very new to Screeps. I don't mean to insult you with this, it just means you are not informed enough. I'd like to encourage you to research our previous efforts in crowdfunding (Screeps was crowdfunded from the very beginning), crowdsourcing (many features in Screeps were not only proposed, but implemented by the community) and community interaction. Just ask some veteran Screeps players on Slack, or dig through this forum a bit, and you will see that we are very committed to everything you're saying here. And even while being not a bank, we used extensive procedures of engaging community into drafting, discussing, and testing everything all the way during past 5 years.

    In all modesty, I'm confident enough to say that we have enough experience with these things to clearly see both pros and cons for every approach we choose in different circumstances.

    And again, I have to repeat, this generatePixel situation is a bit unique due to many factors. This is not how we usually handle things, and I don't think such combination of factors will happen again in the near future.

    That being said, once you get yourself familiar with our previous efforts and their results, we will happily listen to any idea how things can be improved in the future, and are open to any constructive discussion.

    👍💅

  • Banned

    @artch said in Game.cpu.generatePixel change:

    Since emotions are settled down finally, I'm opening the thread again, and moving some relevant posts here to keep it in one place. Please remember to be respectful and stick to the constructive discussion without getting personal, offending and accusations.

    Glad to hear it. Since you've had time to cool off and compose yourself, are you ready to apologize to @Rhef @cribbit and @CrAzYDubC now?



  • Bro, please, let it go. Chill. It's enough. You've made your point.

    👍

  • Dev Team

    @rhef Please just ignore him. The more attention he receives, the more flood we will get on the forum. He already posted this in 4 other threads and even submitted a Steam review seeking as much attention as possible.

    👍