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

Windows Modding system glitches

Discussion in 'Archive' started by Asu, Apr 19, 2014.

Thread Status:
Not open for further replies.
  1. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Category: KAG Client
    Operating system: Windows
    Build number: 1085
    Description: Quite hard to explain with a bad english... I'll try though.
    So, I'm using a local server for modding tests.
    I'm working on the FUN mod, precisely on the bomber for now, and once I join that server and I get a compilation error, I need to restart the game, because if I fix the issue and restart the server, and I try to join the fixed server, my player is frozen and haves a red circle around me.

    Once I restart the game, it works fine again.

    IT RANDOMLY HAPPENS, IT MAY NOT HAPPEN ALL TIME TO YOU! I think it depends of the kind of the error.
    Steps to reproduce: 1. Open a server with a working mod and join it. It should work as normal.
    2. Close the server.
    3. Add shit in a script in the mod, then client won't be able to compile.
    4. Start the server.
    5. Join the server, you'd have a compilation failure window.
    6. Close the server again.
    7. Remove the shit in the script in the mod, then client WILL BE able to compile.
    8. Start the server.
    9. Join it. If I'm right, you won't be able to move at all, and you'll have a circle around you.

    Screenshots/Videos: Don't have now. But I guess my description is precise enough.
     
  2. Asu

    Asu THD Team THD Team Forum Moderator

    Messages:
    1,580
    Okay, it seems it is not obviously related to a script error. It just happened while I didn't have any compilation error in the day.
    Edit : Oh god, it's EXTREMELY random. Once, all blobs had a circle around them. I restarted KAG, i was headless and still had this circle around me. I restarted it again. I restarted the server, and it works again...
     
    Last edited: Apr 19, 2014
  3. Geti

    Geti Please avoid PMing me (poke a mod instead) THD Team Administrator Global Moderator

    Messages:
    3,730
    Note: this is not "random". This happens whenever there is a script exception, check the console for what the error is, and then fix that error in your code. It works this way to prevent KAG crashing without warning when something illegal happens, and the script is disabled (leading to the red circles) to prevent the console getting spammed with the exception. Look for a yellow line.

    Also note: a script exception is not the same as a compilation error - exceptions are only raised at runtime when something goes wrong. Common types of exception are null pointer exception (where you try to dereference a null handle), divide by zero exception (what it says on the tin) and index out of range exception (when you try to access wrong indices in an array, either <0 or >= array.length)
     
    Asu likes this.
Thread Status:
Not open for further replies.