Icon modding refresh issues

Discussion in 'Mod Support' started by tatsujb, August 19, 2015.

  1. tatsujb

    tatsujb Post Master General

    Messages:
    12,878
    Likes Received:
    5,374
    ok, that's what i did to no avail, even refreshed in the actual game, with no success.
  2. stuart98

    stuart98 Post Master General

    Messages:
    6,008
    Likes Received:
    3,888
    While we're on this subject, could we get server mods that don't require icon mods please?
  3. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    pretty sure that is possible with the js command I posted. Make the server mod push that js into the icon atlas of the clients and run it when spawns are selected.
  4. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    I have no idea what's going on for you then. You have to be doing something wrong. Can't see why it would not work. You sure you actually replaced the files, then run the command in the right scene?
    tatsujb likes this.
  5. tatsujb

    tatsujb Post Master General

    Messages:
    12,878
    Likes Received:
    5,374
    oh, dunno why but now it works!!

    Thanks a billion !!

    EDIT:

    aw **** I only got it to work once.

    now it refuses to do it anymore.
  6. tatsujb

    tatsujb Post Master General

    Messages:
    12,878
    Likes Received:
    5,374
    WHAAAAAAAT?

    i only worked once now I can't do it anymore?
  7. tatsujb

    tatsujb Post Master General

    Messages:
    12,878
    Likes Received:
    5,374
    ok now I got it working consistently.

    I don't know why there's sometimes where the code just won't do anything and sometimes where it does.
  8. cola_colin

    cola_colin Moderator Alumni

    Messages:
    12,074
    Likes Received:
    16,221
    Just tested again and worked consistent and without issues multiple times in a row.
    Due to how it uses Math.random() it does have a very small chance of failing, but that's like winning the lottery I think.

    I guess if you are paranoid you can replace Math.random() with Date.now()
    that never repeats itself, at least not for the next few billion years or so.

    My test case btw looks like this:

    1.) Start PA & Debugger
    2.) Open commander icon in gimp
    3.) Do random drawing on icon, save
    4.) reload js, works

    repeat 3 and 4 a few times. Works every time.
  9. tatsujb

    tatsujb Post Master General

    Messages:
    12,878
    Likes Received:
    5,374
    yeah that's exactly what I did, hold that thought, gotta go buy a lottery ticket.
    cola_colin likes this.

Share This Page