Reseed!

I ran into an error as mentioned in the attached screenshot. Happened twice this evening with my default map script - Perfectworld v3.1.
 

Attachments

  • Perfectworld v3.1 error.jpg
    Perfectworld v3.1 error.jpg
    60.8 KB · Views: 157
Hello Hyronymus and thank you very much. :)

I investigated it and this is a rare edge case in the PerfectWorld script where a map without any lake is generated because of bad luck. In such a case PerfectWorld reports an error and fails.

There is nothing I can do about it. However can you please confirm that you were able to immediately reseed another map after that and continue without any problem?
 
Hello Hyronymus and thank you very much. :)

I investigated it and this is a rare edge case in the PerfectWorld script where a map without any lake is generated because of bad luck. In such a case PerfectWorld reports an error and fails.

There is nothing I can do about it. However can you please confirm that you were able to immediately reseed another map after that and continue without any problem?
I can confirm that it continued with the last real generated map at which I was able to choose Reseed! again. Some robust coding!
 
v10 has been released.

* Includes the Russian translation from Zodiak69


And this seals my Russian week: I spent the working on internationalization problems for one of my softwares (I even had to learn the Russian Cyrillic alphabet, the Russian keyboard layout, and many other things), I fixed the layout problem reported by Zodiak69 with IGE in Russian, and I added his translation for Reseed.
Ура! :D
 
When I try to use the PerfectWorld map, from what I assume is CivUP or GEM, I get an error when I try to obtain a new map. I get alot more errors than Hyronymus does though.

Mods I use:
Reseed!
Buildings - Upgrade System
Itsukushima Shrine Wonder
Bazaar of Tabriz
Really Advanced Setup
Emigration
Faster Aircraft Animations
Historical Religions (Gods and Kings)
Reforestation
Krakatoa Fix
Throne Room
Ingame Editor
City Limits
R.E.D. Modpack
G&K Enhanced Mod
Civ V Unofficial Patch (G&K)

I also use the LuaJIT.
 

Attachments

  • 2013-04-18_00001.jpg
    2013-04-18_00001.jpg
    92.6 KB · Views: 101
Hello Crimson13

Thank you for the report! It appears to be an incompatibility between CivUP and LuaJit, nothing to do with Reseed actually. I just notified Thal about it.


Meanwhile you can either stop using CivUp or LuaJIT, or you can do the following changes to CivUP (open the files in a text editor like notepad, not a word processor):

1) In ModTools_Trunk/MT_LoadSave.lua, replace every occurence of "unpack(arg)" with "..."

2) In ModTools_Trunk/MT_LuaLogger.lua (line 31), you need to insert one line
Spoiler :
Events.LuaLogger = Events.LuaLogger or {}
Events.LuaLogger.New = Events.LuaLogger.New or function(self)
local arg = table.pack(...)
local logger = {}
 
I did as you put down but after starting a new game to make sure nothing went weird this happened in the attachment.

I don't know if I did anything wrong, but if I did would you recommend to just put the regular lua51_Win32.dll back in and go without LuaJit? I'm going to miss the much faster wait times if so. :(

Would it be because I did the whole "unpack(arg)" with "..." instead of "arg" to "..."?
 

Attachments

  • 2013-04-19_00001.jpg
    2013-04-19_00001.jpg
    213.4 KB · Views: 86
Would it be because I did the whole "unpack(arg)" with "..." instead of "arg" to "..."?
No, you did it correctly: you needed to replace "unpack(arg)" as a whole, not just "arg". :)

Besides I do not know whether you did anything wrong. Here are a few questions for you please:
1) Does the problem happen without LuaJIT?
2) Does the problem happen with just LuaJIT,CivUP and Ressed? No other mod allowed.
3) Does the problem happen everytime you reseed?
 
Alright, just wanted to make sure. I also apologize, I forgot to add that I'm trying to make it work with the PerfectWorld3 map, apparently GEM adds it. I was doing the 2 question and I couldn't find PerfectWorld3 so I couldn't try it. All the maps that I've used besides PerfectWorld3 (Sandstorm, Continents Plus) have worked fine. It seems that either/both PerfectWorld3 and GEM might be the problem.

1. Yes
2. No
3. Only with PerfectWorld3
 
Thank you Crimson13. I wasn't able to exactly reproduce your problem but GEM + PerfectWorld3 displayed an error on my computer during the reseed and I think this error is what caused your own problem. Here is a beta-version, I would appreciate if you could test it and confirm whether this fixed Reseed for you.

PS: Could you also set LoggingEnabled and EnableLuaDebugLibrary to 1 in your config.ini please? That way, if you have any other problem with this combo, it will allow you to provide me more infos: Reseed itself will display a longer error message and if no error is displayed and you just get a game over, the error will still be recorded in the lua.log file in the "logs" folder. I ask this because there could be similar problems that are rarely triggered, not reproducible and therefore very hard to hunt without the full error message.

EDIT: Removed the beta since the changes it carried did no good and could actually cause troubles. Please stick to v10 until the final v11 is released.
 
Sorry for the wait, I was finally able to sit down and play after work and dinner.

I tried the new Reseed! with all of the mods I used above and it seemed to reload fine except when it got to the loading screen. The music stopped but the icon kept spinning, I alt+tabbed and I got a error message saying that Civ5 had stopped working. This was with a PerfectWorld3 Huge map and a Balanced Reseed! setting.

Then I tried again with the same mods but with a Standard map. Still had the same problem.

Then I tried it with only CivUP, GEM, Reseed!, and Luajit with a Standard map and the Safest option on Reseed!. That seemed to do better, when I got to the loading screen the music was still playing and the icon spinning but after 10 minutes of nothing I alt+tabbed again to find that Civ5 was Not Responding in the Windows Task Manager.

Here's the Lua from I think is the last one.
 

Attachments

No need to apologize, the sole fact that you cooperate that much with me in order to fix this problem is enough to make me grateful. :)

Back to topic: I am pretty sure that those crashes are actually something else that Reseed is not guilty for, a weird civ5 bug that makes the game crash/freeze anytime you reload in game. It randomly appears as you add new mods and do not disappear until you remove them, yet those mods are not troublesome for anyone else and any mod can cause it.

The problem : while this bug's existence has been confirmed, I do not know any solution besides of removing mods. But let's try something else instead: I would like you to close your game, delete your cache folder (in documents/my games/sid meier's civilization 5/cache), restart the game, go to the mods page and be patient. Wait for all mods to have been redownloaded, do not try to move to another page until civ5 is done or you can corrupt you files. After that, check that the Reseed version is the new one and retry a new game please.
 
Then I tried it with only CivUP, GEM, Reseed!, and Luajit

Lua jit does not work with CivUP/GEM as the latter makes use of the deprecated ... notation
 
I'll go crawl back under my duvet with the pain-killers then :blush:
 
After gaining back all the mods should I exit the game and modify CivUP's files for LuaJIT or just continue with a game? Whichever you think might help find the issue.

Edit: Tried it both with LuaJIT and without. With LuaJIT I got the above 'I lose at the start' problem I posted above with all the mods and then with only CivUP, GEM, and Reseed!. Still happened.

Without LuaJIT I got the lower above 'It starts fine but when I Reseed! it kills itself' problem. I only tried it with CivUP, GEM, and Reseed! again and it had the same issue with the loading screen.

Here's the lua in case of anything being different.
 

Attachments

Back
Top Bottom