Website TW-DB.info - English support

Discussion in 'External Sites Discussion' started by abedy, Sep 3, 2010.

Share This Page

  1. Bad Billy Jack

    Bad Billy Jack Well-Known Member

    Joined:
    Oct 19, 2010
    Messages:
    274
    Likes Received:
    20
    Looks like indy event breaks cloth calc. As soon as I got the patriot's short saber in a world, clothcalc would no longer update. Clothcalc still works, just won't update.

    That's my best guess on what's happening
     
  2. bofra

    bofra New Member

    Joined:
    Dec 29, 2018
    Messages:
    2
    Likes Received:
    0
    Same issue on Idaho. As soon as I got the Patriot Sabre, cloth calc would no longer update
     
  3. kenau

    kenau Well-Known Member

    Joined:
    Dec 19, 2009
    Messages:
    636
    Likes Received:
    35
    Same problem here...Sabre + Colorado...
     
  4. MFRavenhawk

    MFRavenhawk Well-Known Member

    Joined:
    Oct 28, 2008
    Messages:
    259
    Likes Received:
    40
    Interesting responses, but I had the problem on Arizona even before the event started. Haven't had an issue yet on Houston, but I haven't collected the sabre yet, either.
     
  5. Bad Billy Jack

    Bad Billy Jack Well-Known Member

    Joined:
    Oct 19, 2010
    Messages:
    274
    Likes Received:
    20
    Can anyone get ahold of petee to fix clothcalc please? Thankx!
     
  6. RaiderTr

    RaiderTr Well-Known Member

    Joined:
    Dec 8, 2018
    Messages:
    227
    Likes Received:
    103
    It actually imports the inventory still but Cloth-Calc won't use the new info.
     
  7. ertgun

    ertgun New Member

    Joined:
    Mar 18, 2012
    Messages:
    1
    Likes Received:
    0
    I have same problem on world Dakota :-(
     
  8. drphil3

    drphil3 Active Member

    Joined:
    Jun 23, 2010
    Messages:
    31
    Likes Received:
    8
    i got the same deal on fairbanks, but at the site, the calculator doesn't work either, just says json error.
     
  9. Bad Billy Jack

    Bad Billy Jack Well-Known Member

    Joined:
    Oct 19, 2010
    Messages:
    274
    Likes Received:
    20
    I left a support ticket at twdb so hopefully will will get it fixed soon
     
  10. drphil3

    drphil3 Active Member

    Joined:
    Jun 23, 2010
    Messages:
    31
    Likes Received:
    8
    i contacted them still waiting on email
     
  11. drphil3

    drphil3 Active Member

    Joined:
    Jun 23, 2010
    Messages:
    31
    Likes Received:
    8
    update, still not fixed.
     
  12. Laural

    Laural Well-Known Member

    Joined:
    Jul 1, 2009
    Messages:
    48
    Likes Received:
    8
    no answer to my email either drphil3
     
  13. Mustang Kate

    Mustang Kate Well-Known Member

    Joined:
    Feb 1, 2013
    Messages:
    200
    Likes Received:
    47
    All I get are spinning guns on clothcalc. Emailed them 3 days ago. No response.
     
  14. Harsha..

    Harsha.. Well-Known Member

    Joined:
    Mar 13, 2009
    Messages:
    975
    Likes Received:
    118
    got the same issue as the others here. even though the script is really old, it's incredibly useful and would love it to work once again.
     
    RaiderTr likes this.
  15. lebareslep

    lebareslep New Member

    Joined:
    May 25, 2013
    Messages:
    4
    Likes Received:
    1
    Clothcalc's server side, for some reason, really does not enjoy the Patriot's weapons, Pearl weapons or the three American Army weapons. You can "patch" it by, around line 7850 (if editing in Greasemonkey), changing:

    Code:
    f += '<input style="display:none" type="text" name="items" value=\'' + JSON.stringify(t).replace(/'/g, "\\'") + "' />";
    
    into
    Code:
    var itemsJson = JSON.stringify(t).replace(/'/g, "\\'");
    var naughtyItemIds = [51530000,51531000,51532000,51539000,51540000,51541000,51550000,51551000,51552000];
    for(var j = 0; j < naughtyItemIds.length; j++) {
        itemsJson = itemsJson.replace(',"' + naughtyItemIds[j] + '"', '');
    }
    f += '<input style="display:none" type="text" name="items" value=\'' + itemsJson + "' />";
    
    Mind you, this does mean the script no longer takes these 9 items into consideration.

    I'm really wondering what's happening on the server side though. What spell did Innogames put on these items that make poor Clothcalc go haywire?
     
    Last edited: Jul 23, 2019
    Junkz likes this.
  16. Junkz

    Junkz Well-Known Member

    Joined:
    Aug 29, 2018
    Messages:
    757
    Likes Received:
    105

    Thanks for the temporary solution :)
     
  17. Theseventh

    Theseventh Member

    Joined:
    Jan 23, 2016
    Messages:
    5
    Likes Received:
    5
    thanks for the solution, add pearly weapons to that list also..
     
  18. Snr Sarg

    Snr Sarg Well-Known Member

    Joined:
    Sep 23, 2010
    Messages:
    367
    Likes Received:
    67
    Any chance of a dummy's guide how to install this change, I had a look but could only see lines 1-16 and could not find the line that needs replacing
     
  19. lebareslep

    lebareslep New Member

    Joined:
    May 25, 2013
    Messages:
    4
    Likes Received:
    1
    Done

    If you just copy the entire contents of the script into some text editor, you can ctrl+f to find the line to be replaced. And then just paste the new code in there. Indentation and newlines are optional in JavaScript. Alternatively, you can copy the script's contents and use some kind of JavaScript prettifier to make it readable before editing it. Eventually you'll just have to paste back the script into Greasemonkey and hit ctrl+s to save it.
     
  20. kenau

    kenau Well-Known Member

    Joined:
    Dec 19, 2009
    Messages:
    636
    Likes Received:
    35
    I have changed the script according to instructions, thanks the information.