restore for stamps

  • sevonofnine
    14th Jun 2011 Member 0 Permalink
    i think it will be a good idea to have a restore button in the stamps library that copys all the names of the stampfiles into the definition file.
    i am suggesting this beacause i have over 666 stamp files (i am not joking) and it will take me ages to copy and paste them.
  • MasterMind555
    14th Jun 2011 Member 0 Permalink
    @sevonofnine (View Post)
    What do you have that important in those stamps?

    And just find the folder with your stamps on it...
    Example:
    C:\Users\MasterMind555\Downloads\Powder Toy\stamps
  • jalfor
    14th Jun 2011 Member 0 Permalink
    @sevonofnine (View Post)
    Your stamps are actual files so just copy the whole folder.

    EDIT: That is almost exactly what MasterMind555 said.
  • sevonofnine
    14th Jun 2011 Member 0 Permalink
    you have to put all the names in the def file if you dont do that they wont appear
  • cctvdude99
    14th Jun 2011 Member 0 Permalink
    @sevonofnine
    I lost a few stamps, copied all the names into stamps.def (took ages), but I still didn't get them back...
  • Py
    14th Jun 2011 Member 0 Permalink
    If you have python installed, boxmein wrote a python script for regenerating a stamps.def file:
    https://powdertoy.co.uk/Discussions/Thread/View.html?Thread=6057

    If you have Linux, you can run this in the stamps folder (If stamps.def already exists, it will fail silently):
    test ! -f stamps.def && find . -maxdepth 1 -name '*.stm' -printf %f | sed -r -e 's/([0-9a-z]{10})\.stm/\1/g' > stamps.def

    I didn't see any Windows batch scripts to do this job.

    IMO, stamp management is funky. I think enabled and disabled stamps should be kept in separate directories, and stamps.def should be generated automatically from existing stamp filenames if it doesn't exist.