Éa III, Sword & Sorcery: Bugs/Crashes thread

@iffi, found problem in 1st bug. It's that darn UnitPanel trying to show actions for a unit before the unit is fully inited. In this case it is trying to show Learn Spell action but crashes because the unit doesn't know it is a spellcaster yet (it would in 1 more microsecond). After that, this particular unit is forever bugged because it didn't complete it's initing. I've been battling this in various forms for a while. But I see the fix for this specific case. (All subsequent bugs follow from this GP initing system crashing.)

Looking for 2nd bug now...
Edit: OK, can't find this one. The save is broken, which is something likely to happen any time you play past a Lua error. It's better to let me hotfix the problem, then reload from before error. Once Lua data is bad, almost any bad/strange thing can happen.


Another bug revealed in your Lua.log (late in game) is due to typo. In EaMain/EaPeople.lua, line 685:
Code:
convertUnit:SetHasPromotion([COLOR="Red"]nonTransferablePromos[/COLOR][i] , false)
"nonTransferablePromos" should really be "nonTransferableGPPromos"

I'll wrap these up in hotfix.
 
In the game I started this morning before work, as Pantheistic Sidhe, I did not see any Forest spread, despite 3 druids running around casting Blessings of Ea. I don't have any specific details or files as I'm not at my home PC right now. I can provide LUA log and savegame if needed, when I get home tonight.
 
@Loderunner, thanks for bringing that to my attention. In EaMain/EaPlots.lua, blue line below needs to be added (after line 204):
Code:
			if adjPlotTypeID == PLOT_LAND or adjPlotTypeID == PLOT_HILLS then
				local adjFeatureID = adjPlot:GetFeatureType()
				if adjFeatureID == -1 then
					[COLOR="Blue"]local adjTerrainType = adjPlot:GetTerrainType()[/COLOR]
					if (type == 1 and (adjTerrainType == TERRAIN_GRASS or adjTerrainType == TERRAIN_PLAINS or adjTerrainType == TERRAIN_TUNDRA))
						or (type == 2 and adjTerrainType == TERRAIN_GRASS)
						or (type == 3 and adjTerrainType == TERRAIN_GRASS and adjPlotTypeID == PLOT_LAND) then
						DoLivingTerrainSpread(plot, adjPlot, type, strength)
						break
As usual you can do it yourself if you like. Hotfix c (later today) will overwrite file with the correction.
 
I've just updated to V6 and applied Hotfix B and unfortunately the game freezes the moment I've loaded into the game world. I've tried a few different maps but alas the problem persists. Lua log attached.
 

Attachments

@Bhaal, It doesn't appear that you have hotfix b installed. Are you sure you clicked "Extract Here" inside your MODS folder? (It won't apply fixes if you extract to a new folder "hotfix b")
 
Hotfix c for v6. "Extract Here" inside your MODS folder. Click Yes to All to allow hotfix to overwrite existing files. All hotfixes are cumulative.
  • Fixed error that was preventing Living Terrain spreadig to new plots
  • Fixed (another!) error resulting from UnitPanel trying to show actions before GP unit fully inited
  • Added code to get rid of duplicate GP unit rather than corrupting mod data (although it shouldn't ever happen)
  • Fixed a bug related to promotion gaining with Steel Working and Mithril Working
  • Added some debug prints to help figure out any remaining issues with hunters/fishing boats
  • Armageddon nastier at 50% and then 67% threasholds (was working on this for v7 anyway...)

Edit: there was a mistake in my initial upload. Download and reapply if you were the 1 person to download before this note.
 

Attachments

I've just updated to V6 and applied Hotfix B and unfortunately the game freezes the moment I've loaded into the game world. I've tried a few different maps but alas the problem persists. Lua log attached.
I had this happen three (!) times in a row. Then on the 4th try I figured out that I had to wait a bit before clicking the 'Begin your journey' or whatever it says (I waited until the initial flickering within the fog of war stopped or at least lessened). Sorry I forgot to mention it yesterday.
I assumed this was some unwanted effect due to the tweaking of the start mentioned in the bug fixes.

Oh, and about that 'Restart' button.. :crazyeye: I always have played up to two dozen turns to find a suitable place to settle even on bad starts. All this time also in base Civ5..
 
I'm also seeing the "hang" when I press Begin Your Journey. Never on a loaded game. But for new game it seems to happen randomly. I'm pretty sure it's something wrong in dll - trying to tack down issue now...
 
@Bhaal, It doesn't appear that you have hotfix b installed. Are you sure you clicked "Extract Here" inside your MODS folder? (It won't apply fixes if you extract to a new folder "hotfix b")

Ah I just checked and I extracted it into its own folder by mistake although it sounds like its unrelated to the hotfix now with regards to your above post. I'll apply hotfix c and let you know if it continues.
 
Just tried it and it is still hanging after clicking "Begin Your Journey". I tried it a few times and it froze each time.
 
OK, I think that the problem was a spuriously bad dll build (the 2nd time I've seen this). But I can't be sure until others verify that the hang is fixed with the newly compiled dll included here. So please let me know either way...

Hotfix d for v6. "Extract Here" inside your MODS folder. Click Yes to All to allow hotfix to overwrite existing files. All hotfixes are cumulative.
  • Newly compiled dll that seems to eliminate the hang on Begin Your Journey (at least in my 5 tests)
  • Fixed a possible problem from AI Lead Charge with extra movement from mounted units
  • Barbs should be able to capture civilians again!
 

Attachments

You'll have to test of course, but the way I think it will work is:
  • You can "repatriate" your own worker/settler without Slavery
  • You will have the option to liberate someone else's worker/settler/slave when you capture it. However, if you decline and don't have Slavery, the unit will vanish. (I know that makes the choice a no-brainer, but it's hard to figure out how else to do it.)
 
I've applied hotfix d but I'm still getting a hang every time I click "Begin Your Journey" when starting a new game.
 
@Bhaal, can you post your Lua log to convince me that you are really running hotfix d before I spend another 5 hrs on this? It's very frustrating because it came and then went on my computer. Was maybe 10% of the time, then 70% of the time, then the problem disappeared altogether. Which is why I thought the recompiled dll solved the problem...
 
Lua attached. Also worth noting that I uninstalled and then reinstalled the mod just encase it was something on my end.
 

Attachments

OK, I believe you now.

Actually, I can use your help as a guinea pig if you don't mind. It's very hard for me to identify good dll when the problem is so infrequent/inconsistent for me.

I'll post some experimental dll's that maybe you can try out. (Will be >1 hr before I can do that however.)
 
Yeah more than happy to help out. I'll keep my eye on this space and start testing once you've posted them.
 
OK, here's the first 3 to test. Just throw away the existing dll in the directory "Éa III, Sword and Sorcery (v 6)" and replace with each of the 3 here. Then tell me which ones hang and which ones don't on entering game. If one doesn't hang, maybe try it again in case you got "lucky" as keeps happening to me (which isn't lucky at all).

One is old enough that I'm pretty sure it was before this particular problem.
 

Attachments

Ok I've tried each one 3 times in a row, here's the results:

14df7eb: Failed 3 Times.
33b4dc4: Worked 3 Times.
441a56e: 1st Worked. 2nd Failed. 3rd Failed (Very quickly after "freezing" this time Civ went unresponsive which was different).
 
Back
Top Bottom