Search results

  1. Red Key

    [LP] Leader Pass Pack 5: Great Builders (Mar. 2023) - Patch Notes Discussion

    I found that my logs are now here: C:\Users\<USERNAME>\AppData\Local\Firaxis Games\Sid Meier's Civilization VI\Logs
  2. Red Key

    [LP] Leader Pass Pack 5: Great Builders (Mar. 2023) - Patch Notes Discussion

    What does this mean? My logs are not updating in the normal location (Documents\My Games\Sid Meier's Civilization VI\Logs). Are the logs in a different location now? I haven't played in a couple months and decided to add some new mods and checkout the latest patch updates. Whenever I add new...
  3. Red Key

    TerrainBuilder.GetRandomNumber vs Game.GetRandNum and other MP Desync Questions

    Thanks LeeS. Will see if Game.GetRandNum makes a difference next time I can convince my pals to try it.
  4. Red Key

    TerrainBuilder.GetRandomNumber vs Game.GetRandNum and other MP Desync Questions

    Mods - meant to post this in the Mod Creation Help subforum if one of you wants to move it. Thanks!
  5. Red Key

    TerrainBuilder.GetRandomNumber vs Game.GetRandNum and other MP Desync Questions

    For the two random number functions in the title (TerrainBuilder.GetRandomNumber vs Game.GetRandNum) is one better to use than the other? Especially when considering multiplayer desync issues? I made a mod that makes so unique units, improvements, and buildings are unlocked randomly. Currently...
  6. Red Key

    Mods for Tall Play?

    I like p0kiehl's mods also, but did make some tweaks for his production from population mod because the original mod boosts production 3 different ways - 0.5 baseline, additional from high population, and additional from eras - and only 1 of those really helps tall. The baseline and era bonuses...
  7. Red Key

    [NFP] What features/improvements do you hope they add in the remaining updates?

    Specialists. I feel like there is a lot of potential here never tapped into and the developers have almost completely ignored them. Districts was one of the big new things for Civ6, but for some reason they made citizens working them as specialists worse than previous Civ games. Didn't even make...
  8. Red Key

    Creating a unit only available by upgrading

    My response was based on Civ6. Don't know for Civ5.
  9. Red Key

    Creating a unit only available by upgrading

    I have experimented with a few ways of disabling unit build. Currently I am just using #1, and I think that would be best for your case also but I don't think I ever checked if you can still upgrade to the unit with that method. I remember still being allowed to upgrade to the unit with #2 or...
  10. Red Key

    Quick Modding Questions Thread

    A couple questions to save me some time experimenting with things that might be impossible. 1. If I use SQL to add a new column to an existing table like "Units". Can I access that new column in LUA when iterating over GameInfo.Units() ? 2. If I use the SetProperty function to set a property on...
  11. Red Key

    LUA script variables

    Game:GetProperty(PropertyTextName) Game:SetProperty(PropertyTextName, PropertyValue) It sounds like you need these. The Get/SetProperty functions are available for Game, City, Player, Unit, and Plot objects I believe. They will be saved and loaded with the game. The BlackDeath Scenario has...
  12. Red Key

    [RESOLVED] Granting UAs and UUs to additional civilizations

    I have seen a few mods on the steam workshop that grant all uniques to certain civilizations (Brazil/Germany). Took a quick look at their code and all they seem to do is assign the existing civilization treats or leader traits as you said. For a few select UAs it looks like they had to add some...
  13. Red Key

    Is there a way to add and delete traits at change of eras?

    Thanks everyone for the ideas. In my case I am not doing anything related to eras like the OP, but wanted to attach traits with LUA if possible which was part of the original question. My purpose is to unlock uniques from other civs/leaders for any player under certain circumstances. I am close...
  14. Red Key

    Is there a way to add and delete traits at change of eras?

    I have a similar question. Is there any way to add traits with lua now? I want to be able to control the unlocking of unique units/improvements/buildings/districts with lua. If I could add/attach traits then that would make things simple. From what I can see for uniques it seems to be just the...
  15. Red Key

    Probability function

    For random numbers be sure you use the Game or TerrainBuilder random number functions or you will have issues in multiplayer as described in this thread: https://forums.civfanatics.com/threads/gameplay-related-lua-scripts-in-multiplayer.626600/
  16. Red Key

    Quick Modding Questions Thread

    In LUA, how can I tell if a city was conquered, loyalty-flipped, or traded? (I think that covers all ways city ownership can change) I want to update my Key Loyalties mod for Dramatic Ages which appears to make loyalty-flipping much more common. For cities where the current owner is not the...
  17. Red Key

    Increase District Citizen/Specialist Yields with Building

    Thanks to some of the updates from Firaxis after this thread was started, it is now possible to do some things similar to what I was originally asking about. In the Gathering Storm expansion, Firaxis made so many of the tier 3 buildings increase the yields of citizens working that district. The...
  18. Red Key

    Quick Modding Questions Thread

    Thanks LeeS! I didn't expect that this was something that could be done with the modifier system - the number of things supported by it continues to surprise me. I will experiment with it and see if human players that are teamed up with AI are still able to declare war/make peace.
  19. Red Key

    Quick Modding Questions Thread

    A friend asked me if the AI could be modded to never declare war and never accept a peace deal. The purpose would be for team games where the teams are a mix of human and AI players, so that only the human players will determine when their team goes to war or accepts peace. I am not familiar...
  20. Red Key

    Lua UI Mod Compatibility

    For others reference, I think I have figured out my issue. The reason copying and pasting the entire original function does not work is because the function uses a variable (m_isLoyaltyLensActive) which is declared local in CityBannerManager.lua outside the function. If I understand correctly...
Top Bottom