Recent content by Tiramisu

  1. Tiramisu

    change to modding from the Gathering Storm patch

    I have not noticed any problems, yet.
  2. Tiramisu

    change to modding from the Gathering Storm patch

    Thank you Gedemon! Your hint really helped me, although I was not sure how to use GameEvents without errors. So I simply followed your advice using LuaEvents instead of GameEvents. LuaEvents also allows to pass variables like in previous versions. So I hope this helps @FurionHuang. Here is an...
  3. Tiramisu

    change to modding from the Gathering Storm patch

    So is there a method to send Events from UI to Gameplay and vice versa? I wonder how to do it.
  4. Tiramisu

    [GS] Fix for Jersey System

    Thanks! I will try it.
  5. Tiramisu

    change to modding from the Gathering Storm patch

    For me it sufficed to set the load order to 1.
  6. Tiramisu

    [Lua] AI Control

    It was not just the graphics. When there were obstacles the pathfinding for this lua function failed even on a short route. E.g. I saw units moving back and forth without ever reaching their goal. I have not tested the behavior in GS, but I do not think Firaxis fixed this. Still you can try it...
  7. Tiramisu

    [GS] Fix for Jersey System

    The new Jersey System for the civ colors is causing a bug, that makes some civ colors become transparent, whenever there are too many civs on the map: I found out that the function UI.GetPlayerColors in CityBannerManager.lua is returning nil for the red- green and blue-values for those...
  8. Tiramisu

    [Lua] AI Control

    Before Gathering Storm I have tested it and it worked. Since UnitManager.MoveUnit can move units only one tile reliably I was also working on a pathfinding algorithm, which also worked (with very good performance). I just needed to finish my work on checking movement modifiers, but I am not...
  9. Tiramisu

    change to modding from the Gathering Storm patch

    How exactly did you test this? Did you check the load orders of your scripts? Maybe one of your scripts was loaded too late for sending your LuaEvent.
  10. Tiramisu

    Access XML table entries in Lua

    Does anybody know how to access xml data that is wrapped by <Database></Database>. For example for row in GameInfo.PlayerColors() do does not work for me because of the <Database> <PlayerColors> ... </PlayerColors> </Database> structure.
  11. Tiramisu

    change to modding from the Gathering Storm patch

    Another change in GS: In the UI-context you cannot use GameEvents.PlayerTurnStarted.Add any more, otherwise your UI script will not even be loaded. You have to use something like Events.PlayerTurnActivated.Add instead. Maybe this is another issue caused by the weird load orders.
  12. Tiramisu

    change to modding from the Gathering Storm patch

    I have a problem overwriting existing lua scripts. Before GS I could use <ImportFiles id="Import"> <File>AssignStartingPlots.lua</File> </ImportFiles> in my modinfo-file. Now it does not seem to work. Edit: Ok, the problem was the load order like infixo said. So GS was overwriting...
  13. Tiramisu

    Saving/Loading simple tables with a game

    Yes, this is a very valuable tool for modders. The code works well, but you have forgot to put "Add" in the last line. So it should be Events.InputActionTriggered.Add( OnInputAction ) to catch quicksave-events. I guess forgetting the "Add"-statement is a common mistake for Lua-modders. :D
  14. Tiramisu

    Lua Objects

    I do not know where to write about this, but I have found out some interesting things about the usage of ExposedMembers: - If you change functions of ExposedMembers in your code, then it will be applied immediately in the game even without reloading the save file. This can be useful, if you do...
  15. Tiramisu

    SQL Noob Questions

    You are right! I totally forgot this. Now instead of a loop I have manually created a table that contains all the loop variables, so I can use this table in a SELECT ... FROM ... statement. At least this works.
Top Bottom