Reseed!

I forgot that you needed to modify GEM. Indeed, you should have quit civ5 and modify it. However, there is no need to start over the whole cache deletion now: I asked you to do this because I was thinking about a cache corruption, something that will not happen twice. But you still need to modify GEM if you intend to continue using it with LuaJIT

So...
* The crash with LuaJIT means that for some reason the changes I made in the beta reveal a bug inside LuaJIT or Civ5. Since I cannot fix them, I will revert this change and see if I can find another way to prevent the error I saw.
* The instant game over without LuaJIT surprises me a lot: could you provide a lua log for this one please? By the way, lua logs are usually useless on crashes since crashes are not caused by errors in the mods. Which means there are no errors on the logs.
 
The instant game over without LuaJIT surprises me a lot: could you provide a lua log for this one please?

There is a bug somewhere in the map support scripts that very infrequently throws a nil error and results in the "instant lose" screen. You do get an error in lua.log if this happens.

(Hope you didn't find and fix that 10 posts higher ;) )
 
@Whoward69
Not only I didn't provide any fix but I wasn't even aware of that, so thank you. ;)

However Crimson13 previously reported that he encountered the instant game-over everytime. It could be that I really did fix the problem with Reseed and that now he just encountered the rare bug you mention instead, but it would quite a misfortune!


@Crimson13
Besides of the lua log, could you confirm that you get the instant game-over everytime or even most of the time please?
 
I don't know about CivUP but in GEM there are a lot of places where a reload/reseed breaks things. That is not reseeds fault IMHO. For example, the nowarrior trait for Gandhi and Korea that starts them out with a worker instead of a scout, checks to see if the game has already been initialized and exits. So on a reseed it never changes the warrior to a worker. Basically, a mod (complex mods especially) needs to be somewhat 'reseed' aware and friendly. I should mention I have only run into this issue with a few, large mods. RESEED! has always worked like a charm for me other than those mods.
 
Basically, a mod (complex mods especially) needs to be somewhat 'reseed' aware and friendly.
Indeed, some mods won't work as intended unless they or Reseed include a specific trick since a "reset" is not a scenario that happens during the course of an unmodded game.

However, I do not think that this is the case with GEM, as long as you reseed early (I may be wrong on this though, Thal is the man to ask). And the error that pops up is certainly something that can be fixed, and something that may arise with other mods too (I cannot be sure until I know for sure what the problem is).

By the way, on the past I already added a specific hack for mods adding resources through this well-known component (I forgot its name). I will also add hooks (two LuaEvents, one before, one after) for mods in case someone wants to add a hack. And I am going to review the "compatibility" sections on the mod's informations on CivFanatics and Steam: those were copied from IGE and I never added a specific note.
 
Wait, do I need to modify GEM or CivUP? Because I've been doing CivUP the whole time.

With the 'Die at the start' problem, before the Game Over screen comes up the entire screen is fog and the only unit I see visible is a Barbarian Brute icon. Then a few seconds later the Game Over screen comes up. When this happens it happens every time. Just something in case it rings any bells.

Also, I'll give you a lua log in a few hours. I'm updating a game through Steam and I imagine dinner during or after that time. You'll get it tonight though.

Edit: When I meant the 'It starts fine but when I Reseed! it kills itself', I meant that with gets stuck in the loading menu forever. I get the instant Game Over when I have LuaJIT right at the get go, don't even get the chance to Reseed. I was also reading Hambil's comments about how different Leaders units might make something wonky. I used Babylon for all of this, so I switched to Alexander to see with that changed anything. It did not.

Also the instant Game Over happened every time I started with LuaJIT. This was with a PerfectWorld 3 Standard map.
 
Quick question.

I advanced setup my game to where i have 20 civs and 40 city states in Huge/Marathon map.

I used the reseed once and got my desired starting location.

Does using the reseed mod keep the number of Civs and City States I initially made or does it go off based on the huge map standard 12 civs & 24 city states?
 
Quick question.

I advanced setup my game to where i have 20 civs and 40 city states in Huge/Marathon map.

I used the reseed once and got my desired starting location.

Does using the reseed mod keep the number of Civs and City States I initially made or does it go off based on the huge map standard 12 civs & 24 city states?


I think I may have found my answer. I click next turn and the message belowthe screen shows all the civs and city states processing.

I wonder if it kept allthe civs I picked instead of it being randomized
 
@Crimson13
Since both CivUP and GEM do have those files, I guess that civ5 can use either version, dépending on the loading order. So, yes, modifying both is probably necessary.


@Hambil
Do you mean that you know there is something in GEM that kills settlers? Or are you making a guess?

Because, yes, Reseed kils the settler but it does not matter. The sequence is:
* Adding one of its own units for every civ. They count as settlers (able to build cities).
* Kill all other units and destroy cities.
* Virtually create the map but does not apply the changes yet, aside of the final destination.
* Move the units in a way that prevent them to come into contact (would trigger diplo exchange) and guarantee their safety (not landing on water, etc).
* Change the map.
* Spawn new units

It works fine. At worst the mod sometimes has to modify one of the game option (the one that makes civs lose when someone captures their last city - the player is then warned about it). Since I doubt that civup/gem change back the game options after Reseed did or delete the new unit, I guess there is just a bug somewhere that prevents Reseed to complete its job.


@Silverwing
Reseed only moves the existing civilizations. A mod cannot add new civs or replace them once the game is started.
 
Don, I didn't say GEM, I just said something. I was basing my comment on his statement that "before the Game Over screen comes up the entire screen is fog and the only unit I see visible is a Barbarian Brute icon". It's just a guess, that's why I was wondering if he was running any other mods besides those three.
 
@DonQuiche
Alright then, do you know how I could modify GEM then? I haven't seen anything similar to change from CivUP to GEM so I don't know where I would start.
 
@Hambil
I do have the same guess. :)

@Crimson13
Sorry, I just hallucinated. There is nothing to modify in GEM. :think:
Also my apologies for the long answer, the period has been quite hectic.
Please tell me when you do have a log.
 
No problem, I distracted myself for a while with some Dragon Age: Origins. When I had to play something like Civ5 I put in Black & White 2 and somewhat scratched that itch, haha.

Since you said that "The crash with LuaJIT means that for some reason the changes I made in the beta reveal a bug inside LuaJIT or Civ5." how do you want me to make a Lua log for you? Do you want to to stay with ver. 11 of Reseed! or go back to ver. 10? With LuaJIT or not? All the mods I typically use or just CivUP, GEM, and Reseed!?
 
In post #240 you said that you were still observing a game over with v11, LuaJit, CivUp, GEM and nothing else. I would like you to try this combo and reproduce the instant game over.
 
Here you go. Sorry about all the wait, I've had more work in the past week than I've had in a few months. Busy and tired man.
 

Attachments

Wow! You do have about thousand errors in that log, no wonder things do not work. But none of those errors come from Reseed. And as if things weren't complicated enough, most of the paths are truncated which makes impossible to read where they come from.

Let's try to peel them off one by one and see the result.
Error n°1:
* Line 511 at 514 in SaveUtils.lua (CivUp/2/SaveUtils) : you must replace the "\[" with "[" (eight occurences)

Error n°2:
* This one does not match my version: no file has "..." on line number 31. Please check if the files you previously modified have them. Otherwise provide the exact version numbers of CivUP and GEM.

Error n°3:
* This one does not make any sense at all. A version problem?
 
1: I'll do that.

2: I went and checked just to make sure and it was there. I'll make it a attachment in case I did something wrong and you can look at it and tell me otherwise. CivUP and GEM's version are 2.5.1 and 1.13.4 respectively.

3. I have no idea. I use Steam to keep on to date on mods, as far as I can tell they're the most recent.
 

Attachments

Ah! By looking at the version of LuaLogger you provided I can see the problem. But it lies on my own shoulders: I made a mistake when I told you how to fix those files. Here is a correct version. My apologies for this. Please try it and tell me what is the result. Add a log if you still encounter a problem (unless it is a crash).
 

Attachments

For the "\[" changing, do you want me to change just the ones that are "\[" or both "\[" and "\]"?
 
Back
Top Bottom