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

Server Issues

Discussion in 'Modding Help' started by ZeroZ30o, Feb 16, 2014.

  1. ZeroZ30o

    ZeroZ30o Haxor

    Messages:
    119
    Original post in https://forum.kag2d.com/threads/modders-call-to-arms.18148/:
    I just had a newer issue where the server would only create a blob the first time I used the following command:
    if (getNet().isServer())
    {
    server_CreateBlob("mat_excharges", 255, blob.getPosition());
    }
    norill tested my mod, and it works exactly as intented in his computer, spawning that blob all the time it is requested (working as it should).
    I think this has to do with the issue in the quoted post.
    I should add that, in my script, server_CreateBlob is inside onCommand, and is limited by this.set_u8("shopCooldown", 1);, which is set to 1 whenever you have enough money to buy that item. This is so you don't click once and buy as much as you can afford -anyway, whenever I remove any code regarding that shopCooldown, it will spawn those blobs all the time. It makes no sense, just like the previous issue, so I'm assuming it's the same one.

    Edit: issue is now fixed, so it -might- not have to do with the my server problems.
     
    Last edited: Feb 25, 2014