Savegame Loading issues
- DinkyDyeAussie
- Posts: 260
- Joined: Fri Feb 10, 2012 10:39 am
- Location: Australia
Savegame Loading issues
I've been testing the latest trunk release and save games won't load from the menu screen still, and even when running it in debug mode, it crashes on the 2nd orc expasion mission when I build a hall next to the gold mine in the upper left hand corner, I don't know what happens, but every time I go to select something in that spot it crashes.
- DinkyDyeAussie
- Posts: 260
- Joined: Fri Feb 10, 2012 10:39 am
- Location: Australia
Re: Savegame Loading issues
OK so I managed to get it to debug. Apparently there's an error in icons.cpp???
All that came up was this.
The line with the arrows is on line 147 of the icons.cpp file and was at the very top of the call stack if that helps.
All that came up was this.
Code: Select all
void CIcon::DrawGrayscaleIcon(const PixelPos &pos) const
{
SDL_LockSurface(this->G->Surface);
SDL_Color colors[256], backup[256];
SDL_Palette &pal = *this->G->Surface->format->palette;
memcpy(backup, pal.colors, sizeof(SDL_Color) * 256); <<<---
for (int i = 0; i < 256; ++i) {
int gray = 0.2 * pal.colors[i].r + 0.4 * pal.colors[i].g + 0.12 * pal.colors[i].b;
colors[i].r = colors[i].g = colors[i].b = gray;
Re: Savegame Loading issues
I cannot reproduce bug (stratagus rev 8535, wargus rev 1677).
and normally, DrawGrayscaleIcon is not called for wargus.
Can you send the problematic saveGame ?
and normally, DrawGrayscaleIcon is not called for wargus.
Can you send the problematic saveGame ?
- DinkyDyeAussie
- Posts: 260
- Joined: Fri Feb 10, 2012 10:39 am
- Location: Australia
Re: Savegame Loading issues
Sure things Jarod
- DinkyDyeAussie
- Posts: 260
- Joined: Fri Feb 10, 2012 10:39 am
- Location: Australia
Re: Savegame Loading issues
PLayed through again and I think it may have something to do with the selection of multiple units maybe, as everytime I go to select and click and drag the mouse it boots me out...
maybe thats it... I'd have to test it in other maps though.
maybe thats it... I'd have to test it in other maps though.
Re: Savegame Loading issues
I still can't reproduce any error :-/
Do you have a replay (.log) which exhibit the problem ?
Do you have some customization (in code or lua) ?
As I said, DrawGrayscaleIcon is not called for wargus (without lua modifications).
Do you have a replay (.log) which exhibit the problem ?
Do you have some customization (in code or lua) ?
As I said, DrawGrayscaleIcon is not called for wargus (without lua modifications).