I lost all my Stamps

  • circovik
    25th Jun 2012 Member 1 Permalink

    Hi all,

    After I updated TPT I noticed that all of my stamps are gone. Can I recover them? If I can how? Thanks

  • Xenocide
    25th Jun 2012 Former Staff 0 Permalink

    If you still have the STM files, you should be able to recover them by adding their filenames to stamps.def without the file extentions or spaces between.

  • boxmein
    25th Jun 2012 Former Staff 0 Permalink
    @Xenocide (View Post)
    I made a script for that ages ago.. Would this work?

    # no shebang line here!
    # Uses Python 2.6+
    import os
    dir-char = '\\'
    cpath = raw_input('What is your TPT location folder?')
    cpathl = list(cpath)
    if cpathl[-1] != dir-char :
    cpathl.append(dir-char)
    cpathl.append('stamps', dir-char)
    cpath = ''.join(cpathl)
    fcont = os.listdir(cpath)
    fcont.remove("stamps.def")
    for i in xrange(0, len(fcont)-1):
    fcont[i].strip('.stm')
    print fcont[i]
    f = open(cpath + 'stamps.def', 'w')
    for i in xrange(0, len(pathcontent)-1):
    f.write(fcont[i])
    print repr(fcont[i]) + 'added to Stamps.def'
    ''' Made by boxmein 2011 '''

    @circovik
    If you still have the stuff inside the stamps folder, then you'll be fine. Just try running my script, if this doesn't work then you might need to do it manually.
  • Xenocide
    25th Jun 2012 Former Staff 0 Permalink

    Looks a lil too much for me. I'd just drag/drop this and run from the directory.

    #!/env/python
    import os
    files = os.listdir(os.getcwd())
    output=''
    for each in files:
     if '.stm' in each:
      output+=each.split('.')[0]
    with open('stamps.def','w') as f:
     f.write(output)
    print("Done.")

  • circovik
    26th Jun 2012 Member 0 Permalink

    Do you know where I might find the files? I had a quick search but found nothing

  • watereye
    26th Jun 2012 Member 0 Permalink

    @circovik (View Post)

     It's a hidden file, try to make the hidden files appear and search for it. It can be near where you have TPT. Like the desktop or a folder where you put tpt in and other tpt stuff.

  • circovik
    26th Jun 2012 Member 0 Permalink

    No, still can't find it.

  • plead-for-destruction
    26th Jun 2012 Member 0 Permalink
    @circovik (View Post)
    in your powder toy zip/folder.
  • boxmein
    26th Jun 2012 Former Staff 0 Permalink
    @circovik (View Post)
    @circovik (View Post)
    Do you not find this directory?
    image
  • circovik
    27th Jun 2012 Member 0 Permalink

    I've gone through everything related to games, stamps, powder, recycle bin etc with no luck