1. Hey Guest, is it this your first time on the forums?

    Visit the Beginner's Box

    Introduce yourself, read some of the ins and outs of the community, access to useful links and information.

    Dismiss Notice

Map crashes KAG on loadup

Discussion in 'Modding Help' started by Sgnt_Sneeky-Pants, Jan 26, 2014.

  1. Sgnt_Sneeky-Pants

    Sgnt_Sneeky-Pants Insanity Incarnate Donator

    Messages:
    100
    Hello, I'm having a bit of a problem with testing my latest map. Whenever I try to load it in singleplayer, the game shows a loading screen as usual, but then gives an error report:

    Crashrpt.xml

    Code:
    <?xml version="1.0" encoding="UTF-8" ?>
    <CrashRpt version="1402">
        <CrashGUID>10b22197-bcd5-48da-853f-b474b4c5c98b</CrashGUID>
        <AppName>KAG</AppName>
        <AppVersion>998</AppVersion>
        <ImageName>C:\Program Files (x86)\Steam\steamapps\common\King Arthur&apos;s Gold\KAG.exe</ImageName>
        <OperatingSystem>Windows 7 Home Premium Build 7601</OperatingSystem>
        <OSIs64Bit>1</OSIs64Bit>
        <GeoLocation>en-ca</GeoLocation>
        <SystemTimeUTC>2014-01-26T15:38:44Z</SystemTimeUTC>
        <ExceptionAddress>0x772d79ed</ExceptionAddress>
        <ExceptionModule>C:\Windows\SysWOW64\ntdll.dll</ExceptionModule>
        <ExceptionModuleBase>0x772a0000</ExceptionModuleBase>
        <ExceptionModuleVersion>6.1.7601.18247</ExceptionModuleVersion>
        <ExceptionType>11</ExceptionType>
        <GUIResourceCount>24</GUIResourceCount>
        <OpenHandleCount>316</OpenHandleCount>
        <MemoryUsageKbytes>278892</MemoryUsageKbytes>
        <ScreenshotInfo>
            <VirtualScreen left="0" top="0" width="1366" height="768" />
            <Monitors>
                <Monitor left="0" top="0" width="1366" height="768" file="screenshot0.png" />
            </Monitors>
            <Windows />
        </ScreenshotInfo>
        <CustomProps>
            <Prop name="Last script calls" value="1603 Entities/Natural/Animals/Fishy/Fishy.as : void onTick(CSprite@)" />
        </CustomProps>
        <FileList>
            <FileItem name="app.txt" description="" />
            <FileItem name="console-14-01-26-12-06-39.txt" description="" />
            <FileItem name="crashdump.dmp" description="Crash Minidump" />
            <FileItem name="crashrpt.xml" description="Crash Description XML" />
            <FileItem name="screenshot0.png" description="Desktop Screenshot" />
            <FileItem name="system.txt" description="" />
        </FileList>
    </CrashRpt>
    
    System.txt

    Code:
    System
    OS: Microsoft Windows 7 Home Premium Edition Service Pack 1 (Build 7601)
    Video: Intel
    CPU: 2194 mhz
    RAM: 1800380 / 3074024
    
    Video driver features:
    YES: EVDF_RENDER_TO_TARGET
    YES: EVDF_HARDWARE_TL
    YES: EVDF_MULTITEXTURE
    YES: EVDF_BILINEAR_FILTER
    YES: EVDF_MIP_MAP
    YES: EVDF_MIP_MAP_AUTO_UPDATE
    NO:  EVDF_STENCIL_BUFFER
    YES: EVDF_VERTEX_SHADER_1_1
    YES: EVDF_VERTEX_SHADER_2_0
    NO:  EVDF_VERTEX_SHADER_3_0
    YES: EVDF_PIXEL_SHADER_1_1
    YES: EVDF_PIXEL_SHADER_1_2
    NO:  EVDF_PIXEL_SHADER_1_3
    NO:  EVDF_PIXEL_SHADER_1_4
    YES: EVDF_PIXEL_SHADER_2_0
    NO:  EVDF_PIXEL_SHADER_3_0
    YES: EVDF_ARB_VERTEX_PROGRAM_1
    YES: EVDF_ARB_FRAGMENT_PROGRAM_1
    YES: EVDF_ARB_GLSL
    NO:  EVDF_HLSL
    YES: EVDF_TEXTURE_NSQUARE
    YES: EVDF_TEXTURE_NPOT
    YES: EVDF_FRAMEBUFFER_OBJECT
    YES: EVDF_VERTEX_BUFFER_OBJECT
    NO:  EVDF_ALPHA_TO_COVERAGE
    YES: EVDF_COLOR_MASK
    YES: EVDF_MULTIPLE_RENDER_TARGETS
    YES: EVDF_MRT_BLEND
    YES: EVDF_MRT_COLOR_MASK
    
    
    Console-14-01-26-12-06-30.txt

    Text was too long to be included in this post. File located here.

    App.txt

    Code:
    Engine (build: 998 version: 0.97)
    Creating video device...
    ____________________________________________________NO AUTOUPDATE _________________________________________
    
    Loading library...
    Using file 'Base/../Juxta.dll'
    Library loaded...
    APP GameDLLInit
    
    Game DLL initialized.
    Changing game working directory to 'C:/Program Files (x86)/Steam/steamapps/common/King Arthur's Gold/Base/'
    Gathering all files from Base...
    Running autostart script configure from Scripts/autostart.as
    Precaching files.
    Game version 998
    APP: downloading file http://update.kag2d.com/1/win32-client-release/App//version.txt
    DEBUG: version_file version_file 1389375901-8446-587fd305af17 1389375901-8446-587fd305af17
    
    Checking/Moving redundant files
    
    Crashdump.dmp

    File located here.

    If someone could take a look at this I'd be ever so grateful!
     
  2. RadioActive

    RadioActive Guest

    The same thing happens to me when I try to load my new map.
    I tried to load it on the server and in the sandbox mode, save with a different name, remove version.txt file but it doesn't help - KAG crashes everytime. I think the problem is with the map file but I have no idea what it is. My other maps always worked without a problem.

    @Sgnt_Sneeky-Pants Did you manage to find the cause of this problem? Also it would be awesome to see the map with which you had this problem.

    Below I attached my map - would be great to know if someone of you guys have the same problem with it...
    --- Double Post Merged, May 26, 2014, Original Post Date: May 19, 2014 ---
    I think I found out what exactly crashing KAG, with what KAG has a problem.
    As some of you know, some blocks have dirt/wodden/stone background - spikes are the best example. Each type has the appropriate color for the pixel on the map.
    #B42A11 - spikes with no bg
    #B46111 - spikes on dirt
    #B42A5E - spikes on stone backwall
    #C82A5E - spikes on wood backwall
    Some blocks such as dirt block are automatically generated with a dirt background. Whenever you destroy dirt, there's dirt background behind it (no stone backwall, no sky etc.) KAG just can't generate dirt block without dirt background.
    This part is simple to understand.

    However, there are some blocks which background (dirt or sky (sky means no background)) is generated by the game.
    If you add on the map stone blocks or mossy stone, KAG will generate for them dirt or sky background automatically. It depends on the background of the other blocks which are located around. I know it's probably hard to understand, so:

    sfa1.png

    First example (1) - Stone block is on the edge of the land. There's more sky around than blocks with a dirt background, so when you destroy stone block, there should be sky.

    On the second example stone block is surrounded by dirt blocks (with dirt bg), so it will take their background. After its destruction there should be a dirt background.

    The problem is when there's a mess like this (imagine it bigger with mossy stone between stone blocks):
    sfa.png
    If you add to this some mossy stone blocks and it will be on the edge of the land (I think it don't have to be), it will be a problem for KAG to calculate what the background should be placed behind the blocks of stone. That's why KAG crashes on load.

    The only way to fix it is to remove or put much less stone or mossy stone blocks.
    I think it's unfixable. The only way for devs would be to add color for stone with dirt and sky background. After that all maps should be corrected by map makers, which would be a huge problem, bigger than this "bug".

    Edit: I fixed the map I attached before by replacing mossy stone with normal stone blocks. Map is available in my thread.
     

    Attached Files:

    Last edited by a moderator: May 26, 2014