Closed GoogleCodeExporter closed 8 years ago
I was actually using r212 of 0.9.5 FMScout - not r110 as stated in the problem
description.
Original comment by michael....@gmail.com
on 19 Mar 2011 at 7:18
aww thanks for the donation - Ill look into the issue now :)
Original comment by aoumi83@gmail.com
on 19 Mar 2011 at 12:33
hasnt happened with the games ive tried - re-downloading the one above to try.
do you just click on editor/scout or do you search/ go into sections/ etc?
Original comment by aoumi83@gmail.com
on 19 Mar 2011 at 12:38
It happens after the game is loaded and I press the editor button. With the
Scout feature it happened after I did a search. I'm going to do some further
testing and post results here.
Original comment by michael....@gmail.com
on 19 Mar 2011 at 1:27
I should mention that I also get the "Error Loading LangDB - Please report this
as a bug" before loading the file. I noticed that my app that is generated is
much smaller than the one you build for release too. I think the problem is
that the surname doesn't exist in the db so it has uninitialized data. I don't
know why it would have a surNameID > -1 and be bad data though:
else if ([personData firstNameID]>-1 || [personData surnameID]>-1) {
NSString *firstName, *surname;
if ([personData firstNameID]>-1 && [personData firstNameID]<[[[NSApp delegate] valueForKeyPath:@"gameDB.database.firstNames"] count]) {
firstName = [[[[NSApp delegate] valueForKeyPath:@"gameDB.database.firstNames"] objectAtIndex:[personData firstNameID]] name];
}
if ([personData surnameID]>-1 && [personData surnameID]<[[[NSApp delegate] valueForKeyPath:@"gameDB.database.surnames"] count]) {
surname = [[[[NSApp delegate] valueForKeyPath:@"gameDB.database.surnames"] objectAtIndex:[personData surnameID]] name];
}
return [NSString stringWithFormat:@"%@ %@",firstName, surname];
Possibly a hint? The IDE says there are multiple versions of count defined.
Original comment by michael....@gmail.com
on 19 Mar 2011 at 1:38
This works but I'm not sure if I lost some data:
if (personData) {
if ([personData commonNameID]>-1 && [personData commonNameID]<[[[NSApp delegate] valueForKeyPath:@"gameDB.database.commonNames"] count]) {
return [[[[NSApp delegate] valueForKeyPath:@"gameDB.database.commonNames"] objectAtIndex:[personData commonNameID]] name];
}
else if ([personData firstNameID]>-1 || [personData surnameID]>-1) {
NSString *firstName, *surname;
surname = nil;
firstName = nil;
if ([personData firstNameID]>-1 && [personData firstNameID]<[[[NSApp delegate] valueForKeyPath:@"gameDB.database.firstNames"] count]) {
firstName = [[[[NSApp delegate] valueForKeyPath:@"gameDB.database.firstNames"] objectAtIndex:[personData firstNameID]] name];
}
if ([personData surnameID]>-1 && [personData surnameID]<[[[NSApp delegate] valueForKeyPath:@"gameDB.database.surnames"] count]) {
surname = [[[[NSApp delegate] valueForKeyPath:@"gameDB.database.surnames"] objectAtIndex:[personData surnameID]] name];
}
return [NSString stringWithFormat:@"%@ %@",(firstName==nil) ? @"" : firstName, (surname==nil) ? @"" : surname];
}
}
Original comment by michael....@gmail.com
on 19 Mar 2011 at 1:58
i have noticed too that it only happens on that game of all the ones ive got.
very strange that it happens even though the ID is >-1 I will put a bit more
error checkng in then to catch that.
Original comment by aoumi83@gmail.com
on 19 Mar 2011 at 2:31
ok what ive done is this. the fact that the ID is valid means there IS a Name
entity associated to it. for some reason or another the name string has been
removed / invalidated so instead of error checking in the person name function
which I think is inappropriate considering the cause, a placeholder name string
is created on initialisation of Name entities which means the returned value
will never be nil - hence problem solved :)
Original comment by aoumi83@gmail.com
on 19 Mar 2011 at 2:58
I admit that I have no experience with Xcode. But how is it possible that I get
16 errors (mainly 'Unable to resolve plugin-dependency for "X"'. while others
are able to compile it? :/
Original comment by Buis.C...@gmail.com
on 19 Mar 2011 at 3:15
I don't get any errors building in xCode. Probably you don't have a plugin in
the project? Thanks, Amy, for the fix! :-)
Original comment by michael....@gmail.com
on 19 Mar 2011 at 3:54
[deleted comment]
Restate that... ;-)
The editor now loads this file fine. I cannot activate the player & club tabs,
but I suspect they are disabled for a good reason (still under dev maybe?) So,
consider this issue 76 fixed! THANKS!
Original comment by michael....@gmail.com
on 19 Mar 2011 at 4:42
yep - re-adding stuff in stages, tweaking, changing, updating and bug-fixing
every section so that is deliberate :)
Original comment by aoumi83@gmail.com
on 19 Mar 2011 at 5:26
Original comment by aoumi83@gmail.com
on 19 Mar 2011 at 5:26
Original issue reported on code.google.com by
michael....@gmail.com
on 19 Mar 2011 at 3:51