Warzone2100 / old-trac-import

Archived Import of (old) Warzone 2100 Trac
0 stars 0 forks source link

NTW crash (aka, the mod has fallen, and warzone can't get up!) #578

Closed wzdev-ci closed 15 years ago

wzdev-ci commented 15 years ago

resolution_fixed type_bug | by Buginator


Playing 2.2.0, and crashed GL in this call:

glTexSubImage2D(GL_TEXTURE_2D, j, xOffset, yOffset, tile.width, tile.height, GL_RGBA, GL_UNSIGNED_BYTE, tile.bmp);

In short, the tiles need fixing!

        j   0   unsigned int
                k           79  unsigned int
        tile.height 64  unsigned int
        tile.width  64  unsigned int
        xOffset 960 int
        yOffset 256 int
        tile.width  64  unsigned int
        tile.height 64  unsigned int
        tile.depth  2   unsigned int

+       fullPath    0x0012f060 "texpages/tertilesc1hw-64/tile-79.png"   char [260]

+       tile    {width=64 height=64 depth=2 ...}    iV_Image
        yLimit  1024    const int
        xLimit  1024    const int
        xOffset 960 int
        yOffset 256 int
        ySize   1024    int
        xSize   1024    int
        j   0   unsigned int
+       partialPath 0x0012ef54 "texpages/tertilesc1hw-64"   char [260]
+       buffer  0x02423888 "ÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝÝ"  char *
        k   79  unsigned int
        size    630 unsigned int
        i   64  unsigned int
        texPage 7   int
+       fullPath    0x0012f060 "texpages/tertilesc1hw-64/tile-79.png"   char [260]
        glval   8192    int

>   Warzone2100-Dbg.exe!texLoad(const char * fileName=0x0012f27c)  Line 232 + 0x41 bytes    C
    Warzone2100-Dbg.exe!dataTERTILESLoad(const char * fileName=0x0012f27c, void * * ppData=0x0012f394)  Line 732 + 0x9 bytes    C
    Warzone2100-Dbg.exe!resLoadFile(const char * pType=0x022c8b18, const char * pFile=0x022cdd00)  Line 512 + 0x15 bytes    C
    Warzone2100-Dbg.exe!res_parse()  Line 121 + 0x18 bytes  C
    Warzone2100-Dbg.exe!resLoad(const char * pResFile=0x04b1c0d0, int blockID=0)  Line 124 + 0x5 bytes  C
    Warzone2100-Dbg.exe!levLoadData(const char * name=0x016f5ae0, char * pSaveName=0x00000000, GAME_TYPE saveType=GTYPE_SCENARIO_START)  Line 722 + 0x14 bytes  C
    Warzone2100-Dbg.exe!startGameLoop()  Line 550 + 0xe bytes   C
    Warzone2100-Dbg.exe!runTitleLoop()  Line 718    C
    Warzone2100-Dbg.exe!mainLoop()  Line 845    C
    Warzone2100-Dbg.exe!SDL_main(int argc=6, char * * argv=0x0012fd60)  Line 1066   C

Issue migrated from trac:578 at 2022-04-15 18:23:10 -0700

wzdev-ci commented 15 years ago

Buginator commented


Delphino, these tiles need fixing...

error   |12:52:02: [texLoad] Tile 79 size of 630 is too small! The size should be 8192!
error   |12:52:02: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:09: [texLoad] Tile 86 size of 630 is too small! The size should be 8192!
error   |12:52:09: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:09: [texLoad] Tile 87 size of 630 is too small! The size should be 8192!
error   |12:52:09: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:09: [texLoad] Tile 88 size of 630 is too small! The size should be 8192!
error   |12:52:09: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:10: [texLoad] Tile 89 size of 630 is too small! The size should be 8192!
error   |12:52:10: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:10: [texLoad] Tile 79 size of 630 is too small! The size should be 2048!
error   |12:52:10: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:11: [texLoad] Tile 86 size of 630 is too small! The size should be 2048!
error   |12:52:11: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:11: [texLoad] Tile 87 size of 630 is too small! The size should be 2048!
error   |12:52:11: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:12: [texLoad] Tile 88 size of 630 is too small! The size should be 2048!
error   |12:52:12: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:12: [texLoad] Tile 89 size of 630 is too small! The size should be 2048!
error   |12:52:12: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:13: [texLoad] Tile 79 size of 630 is too small! The size should be 512!
error   |12:52:13: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:14: [texLoad] Tile 86 size of 630 is too small! The size should be 512!
error   |12:52:14: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:14: [texLoad] Tile 87 size of 630 is too small! The size should be 512!
error   |12:52:14: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:15: [texLoad] Tile 88 size of 630 is too small! The size should be 512!
error   |12:52:15: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
error   |12:52:15: [texLoad] Tile 89 size of 630 is too small! The size should be 512!
error   |12:52:15: [texLoad] Assert in Warzone: ..\src\texture.c:240 (tile.depth > 3), last script event: '<none>'
wzdev-ci commented 15 years ago

Buginator commented


(In [7652]) Change texLoad to a bool function, to correctly handle tertiles that are of the wrong depth.

This is in response to refs #578 where the wrong tertile depth is used on some tiles, causing GL drivers to crash.

wzdev-ci commented 15 years ago

Buginator commented


(In [7658]) Change texLoad to a bool function, to correctly handle tertiles that are of the wrong depth.

This is in response to refs #578 where the wrong tertile depth is used on some tiles, causing GL drivers to crash.

wzdev-ci commented 15 years ago

Buginator changed status from new to assigned

wzdev-ci commented 15 years ago

Buginator changed owner from Delphino to Delphinio

wzdev-ci commented 15 years ago

Delphinio commented


how to smal? 16 is 16x16, 32 is 32x32, 64 is 64x64, and 128 is 128x128.

wzdev-ci commented 15 years ago

Delphinio commented


i dont c any 256, 512, 1024 or 2048 folders for them :o.

wzdev-ci commented 15 years ago

Buginator commented


Replying to Warzone2100/old-trac-import#578 (comment:5):

how to smal? 16 is 16x16, 32 is 32x32, 64 is 64x64, and 128 is 128x128. Not the size, the bit depth. Those tiles listed are only 1BPP. We handle 8BPP & 24BPP.

wzdev-ci commented 15 years ago

Delphinio commented


ok, i delete them.

wzdev-ci commented 15 years ago

Buginator commented


Um, why delete them, and not fix them? I thought we had maps that used >79 tiles?

wzdev-ci commented 15 years ago

Delphinio commented


they was just black. and yes, but not the desert tiles.

wzdev-ci commented 15 years ago

Delphinio commented


and btw... please notify me about any other problems with ntw mod if i dont c the bugs reports. thanks.

wzdev-ci commented 15 years ago

Buginator changed status from assigned to closed

wzdev-ci commented 15 years ago

Buginator set resolution to fixed

wzdev-ci commented 15 years ago

Buginator commented


Closing for now, fixed in ... [7676]-7677, [7713]-7716