Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[3.16_NF] dll incompatibility introduced #269

Closed
skodkim opened this issue Apr 15, 2014 · 20 comments
Closed

[3.16_NF] dll incompatibility introduced #269

skodkim opened this issue Apr 15, 2014 · 20 comments

Comments

@skodkim
Copy link
Collaborator

skodkim commented Apr 15, 2014

Hi

I've been using Whowards dll without any problems for the last six months or so. Today I made a New Features build and all of a sudden the game crashes to desktop when I start a new game. The thing is that it did nont happen when using a New Features Build from yesterday, i.e. I think it must be related to one of the following commits:

d4e568d
d074c8d
a0f24cc

Whoward thinks we may have intoduced a "divide by zero" error somewhere: http://forums.civfanatics.com/showpost.php?p=13172274&postcount=130

Oh, and I should say that it doesn't happen without the dll mod (but I't be sorry to loose compaibility!)

\Skodkim

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 15, 2014

Is this DLL the same as the one in CSD because since v22 I have been having
crashes.
I installed that mod last month and have been having intermittent crashes.

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 15, 2014

I don't know. I think CSD is made directly from the standard BNW dll while Whowards also includes CSD's changes.

The crash I'm seeing happens right after I select civ, map type, etc. and select the "start game" button,

\Skodkim

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 15, 2014

Hmm...
My crashes are more random.

@skodkim skodkim changed the title [3.16_NF] dll imcompatibility introduced [3.16_NF] dll incompatibility introduced Apr 16, 2014
@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

Actually I don't know if this is related but we seem to have introduced some syntax errors.

\Skodkim

stopwatch log
database log

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

I can confirm that the syntax error is in one of the leader related files from the above mentioned commits. Reverting these changes also solves the crash issue.

\Skodkim

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

Apart from the lack of a ";" at the last line of CEAI_LeaderPersonalities.sql are there any other places you can see?

I don't think these are the cause of the crashes. I was experiencing crashes long before these changes were made.

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

I haven't been able to identify the locations but stopwatch.log helped me narrow it down to these files (which were also in the commits). I solves the consistant crash I was experiencing, but that was another crash than yours (consistant crash at start if game). This crash was only seen with Whowards dll activated - somehow it must be more sensitive to the changes in the commits.

\Skodkim

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

Just updated CEAI_LeaderPersonalities.sql with the missing ";" (CAT and CEG copy) and tried starting a new game again.

Same result: Immediate CTD and same error messages in the log file.

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

See this issue #264

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

Yeah, I already saw this but since my crash doesn't seem to happen without whowards dll and is with a non-official release from the new features brach I'm guessing its not related.

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

Wow. Just built the latest release and had only Communitas with nothing else and couldn't even get past the setup screen.

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

Yes... (but I was kind of confident this only happened with Whowards dll..?)

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

There's a file in the Project file that is incorrectly set: MultiUnitFormations.xml

Either it is in there by mistake or it isn't fully defined in the project.
It is in the GitHub repo but doesn't get inserted into the built directory.

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

I don’t think that’s it.

If I take the newest build and replace the two leader* sql files (both in CAT and CEG) with older versions it works (for me). I must be those two files.

Fra: GrantSP [mailto:notifications@github.com]
Sendt: 16. april 2014 08:08
Til: Thalassicus/cep-bnw
Cc: skodkim
Emne: Re: [cep-bnw] [3.16_NF] dll incompatibility introduced (#269)

There's a file in the Project file that is incorrectly set: MultiUnitFormations.xml

Either it is in there by mistake or it isn't fully defined in the project.
It is in the GitHub repo but doesn't get inserted into the built directory.


Reply to this email directly or view it on GitHub #269 (comment) .Billede fjernet af afsender.

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

Yeah you're right, that didn't work. Still it shouldn't have been there, no reason why we can't clean up as we go. 😃

I WILL find this before the night is through. I am determined.

Okay most of the lines in those files are similar so most likely it is tripping on the first occurrence.
Let's start looking.

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

Ok the CEAI_LeaderFlavors.sql aren't loading, now to find out why.

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

Think I've got it.
This is the way the SQL is structured in each of those files:

INSERT OR REPLACE INTO Leader_Flavors(FlavorType, LeaderType, Flavor) SELECT ('FLAVOR_MILITARY_TRAINING', LeaderType, 8) FROM Leaders WHERE Personality = 'PERSONALITY_CONQUEROR';

The trouble here is it is looking for the column LeaderType in the Leaders table when it should be just Type.
Secondly the parantheses in the SELECT part of the statement are not needed. At least it baulks at working when inserted into SQLiteSpy one line at a time.

I've made those changes in my copy and I am just about to try.

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

Success!
I'll see if I can make changes to the spreadsheet.
In the meantime I will post the commits immediately.

@skodkim
Copy link
Collaborator Author

skodkim commented Apr 16, 2014

Great news!

On 16. apr. 2014 09.17.28 CEST, GrantSP notifications@github.com wrote:

Success!
I'll see if I can make changes to the spreadsheet.
In the meantime I will post the commits immediately.


Reply to this email directly or view it on GitHub:
#269 (comment)

Sendt fra min Android telefon med K-9 Mail. Undskyld hvis jeg er lidt kortfattet.

@GrantSP
Copy link
Collaborator

GrantSP commented Apr 16, 2014

hmm... It looks like @Thalassicus may have already seen the mistake in the spreadsheet and corrected it but forgot to update the repo.

Needs a bit of smoothing over...

At any rate I believe we are good to go from here.
Just copied the data from the spreadsheet into my editor and it looks fine

The commit is here

It is only the CEAI_LeaderFlavors.sql files that are important, the other stuff are just edits in my queue.

@GrantSP GrantSP closed this as completed Apr 16, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants