1. We have added a Gift Upgrades feature that allows you to gift an account upgrade to another member, just in time for the holiday season. You can see the gift option when going to the Account Upgrades screen, or on any user profile screen.
    Dismiss Notice

Displaying negative yield on mouseover

Discussion in 'Civ5 - Creation & Customization' started by Sneaks, Jan 3, 2011.

  1. Sneaks

    Sneaks Brooklyn Bum

    Joined:
    Oct 15, 2010
    Messages:
    1,877
    Location:
    NYC
    I am creating a mod with specialists that give negative yields. However, the game will not display these yields on mouseover and I cannot manually add them in because specialists have no help strings. If anyone knows how I can get the mouseover on specialists to display negative numbers, I would be eternally grateful.
     
  2. alpaca

    alpaca King of Ungulates

    Joined:
    Aug 3, 2006
    Messages:
    2,322
    Did you check where the tooltip is set? You probably have to edit CityView and the civopedia among other things.
     
  3. Sneaks

    Sneaks Brooklyn Bum

    Joined:
    Oct 15, 2010
    Messages:
    1,877
    Location:
    NYC
    I think I've found a pretty ugly workaround. Hopefully it will pass.
     
  4. JohnnyW

    JohnnyW Gave up on this game

    Joined:
    Oct 8, 2010
    Messages:
    658
    Location:
    USA
    Share if it works please. ;)
     
  5. MikeJep

    MikeJep Chieftain

    Joined:
    Aug 12, 2007
    Messages:
    66
    Super-ultra interested in your work. Have you been able to add additional specialists?
     
  6. Sneaks

    Sneaks Brooklyn Bum

    Joined:
    Oct 15, 2010
    Messages:
    1,877
    Location:
    NYC
    I have added 6 new specialists, but I am stuck in a nightmare scenario of trying to get their proper icons to show as well as getting the damnable Courthouse to be buildable in non-occupied cities.
     
  7. JohnnyW

    JohnnyW Gave up on this game

    Joined:
    Oct 8, 2010
    Messages:
    658
    Location:
    USA
    HI, I downloaded your mod and tried it out. I must say that I really appreciate the goal you are trying to achieve, but I feel like there are a few things you should address:

    Why should I bother with these specialists?
    This is the primary concern I have. First I must construct a building to unlock these specialists, which cuts into my regular production. Second, I must use a citizen to gain the benefits of these new specialists, preventing me from working a regular tile with them. This would be okay except for the fact that at +4/+4/-4/-4 they give me a net 0 gain. Yes, they can have powerful effects, but at the point of the game where they are available populations are still relatively low and every yield is valuable.

    I would suggest at least dropping the penalties to -3 for a +4/+4/-3/-3 effect, where you trade some productivity in some areas still, but at least you have a net gain for using the citizen in this way. Even unemployed citizens net 1 hammer.

    Another possible solution would be to give these specialists +2 food yield. Yes, it does seem counter to the whole idea of specialists, but you seem to want to use population as sliders, and this would allow the city to grow normally while using those sliders.

    I can get negative culture.
    I tested this and culture will go negative. Progess to SP was -7/65 or something like that. Research is capped at 0 globally however and you do not lose progress to your next tech.

    I don't know if you are okay with this, but in order to keep this from happening too frequently I would suggest perhaps upping the culture yield of these citizens and dropping a seperate yield.
    Example: Magistrates give +4:c5gold:/+4:c5production:/-4:c5culture:/-4:c5science:. You could perhaps change that to +4:c5gold:/+3:c5production:/-3:c5culture:/-4:c5science:, or even +4:c5gold:/+4:c5production:/-3:c5culture:/-5:c5science:.

    I would just make it so that it is harder to get negative culture. Perhaps even limit culture changes in both directions so that the rest remain +/-4 but culture is only +/- 2 or 3.

    Overall assessment:
    I really like the idea but I think it needs a few minor tweaks. I also feel like the +:c5science:/+:c5production: specialists (Beaurocrats at Civil Service) might be too strong because those are the 2 most important yields. I haven't tested this in practice though as I just loaded this mod up 20 minutes ago. Perhaps they might be a good specialist to go +1:c5culture:/-1 :c5science: or :c5production:.

    Anyway, I hope this feedback is helpful!
     
  8. Sneaks

    Sneaks Brooklyn Bum

    Joined:
    Oct 15, 2010
    Messages:
    1,877
    Location:
    NYC
    It is very helpful! I need to get a few games under my belt myself with the specialists to get a feel for how good/bad they are. As of now, I am totally ok with negative culture, because if you ignore it at the benefit of other things, there will be a long term penalty.

    As for the cost/benefit, I agree it could probably be tweaked. This is the big reason for zero maintenance costs. After I get enough feedback, I will consider adding +1food per specialist or somesuch. Keep letting me know how it goes!
     
  9. Spatzimaus

    Spatzimaus Mad Scientist

    Joined:
    Sep 21, 2005
    Messages:
    3,063
    Location:
    Los Angeles, CA
    While I haven't downloaded the mod, there's something I'd like to comment on:

    A rule of thumb I learned long ago is that a penalty is usually worth half as much as a bonus, because you'll only do something when you really need its bonus and/or don't care about its penalty so much. That is, your personal utility function isn't flat; you'll value one point of X more than one point of Y in a given situation, while that might reverse in a different situation. (Smart players can take this even further, completely removing the negative impacts while maximizing the positive.)
    Maybe your city is at a comfortable size (ICS?) and you don't want Food any more. Anyone who's turned on the "prevent city growth" option can see the point here.
    Maybe you have the policies you really wanted and aren't hurt by a culture penalty. (If you've just gone on a conquering spree, you'll never get enough culture to gain lots of SPs, so why bother trying?)
    Maybe you've built everything you need to in a late-game city and all you have left are Research, Wealth, or churning out units you don't need; in that case, you don't really need production. The 25% conversion rate means a -4 production only would translate to -1 in gold or research.
    Maybe you've reached Future Tech and don't need any more research. All it adds is score, and who really cares about that? You don't even need to wait for Future Tech for this one; if you've just unlocked Tanks and know that one good military push will win the game for you, kill your research and put everything into production and gold. That's what we did in Civ4...

    That sort of thing. So, a +4/-4 is basically balanced with a +2/+0 in practice, as long as the players/AIs handle them intelligently, because the player will use the +4 that helps them the most in the current situation while hoping for the -4 to be in something with the least impact. Of course, in the case of Civ5 the AI will have no idea how to use your specialist, and is likely to end up allocating several specialists that exactly cancel each other out. So that just won't work well either.

    But that math note leads to my first criticism: +4/+4/-4/-4 is WAY too much for a single citizen. It's just too big a swing; it sounds like you're trying to mimic Civ4's sliders in effect, but this sort of thing leads to a bad strategy I'd seen in several other games: if the impact of the "flexible" part of a system is too large, then that becomes the ONLY way to get things done. In Civ4 you'd get this to where people would shift the sliders to "science mode", "money mode", etc., with very little in-between. The only time I'd ever use the Culture slider was when I absolutely HAD to. I see this happening the same way: if you make specialists that add significantly to, say, production, then a city trying to produce a critical Wonder will use as many of those as it can, and the difference between that and a more "normal" strategy will be so large as to make the latter untenable.
    It's similar to how tiles work, in that you'll work your mines and such when you really need to build something fast, but the difference isn't nearly this large. The difference between working a non-resource Mine and working a Trading Post is only 1-2 points either way, whereas you're proposing a shift of 8 (going from a +production specialist to a -production one).

    This is especially bad since Civ5 is built on the concept of multipliers; the base values for production, gold, and especially research are very low, but you've got stacked +50% buildings to improve those. So if your specialists add +4 to base research, it might actually be more like +12 beakers added in the end. And this ties back to the previous points; while on paper -4 culture balances +4 research, the -4 will stay -4 (unless you have a Broadcast Tower or Hermitage, which are VERY rare and late in the game) while the +4 will be more like +12 from the University, Public School, and Research Lab. So what might be balanced in an early era becomes completely unbalanced in developed cities, especially if you specialize the cities; if you know city X is going to be running a bunch of -research specialists, then building Universities and such becomes a BAD idea.

    So I'd say drop them to +2/+2/-1/-1, which addresses all of the issues I'd mentioned above: its absolute net is +2 (so a stupid AI won't accidentally cancel itself out), its "effective" net is +3 (still reasonable for a good player and comparable to the yield from a tile), and the per-specialist shift is only 3 points at most. The numbers are small enough that even with multipliers it's not really a large enough shift to throw the balance way off (again, comparable to tile yields).
     
  10. MikeJep

    MikeJep Chieftain

    Joined:
    Aug 12, 2007
    Messages:
    66
    It has been a while since I could spend time on civ. I am happy to see all the progress you made.
     

Share This Page