Announcement

Collapse
No announcement yet.

[Question] What is ScriptData?

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

  • [Question] What is ScriptData?

    In WorldBuilder you can add a script to a plot of land... what is it and what does it do?

    Is it the path to a python script? Is it the python script itself? Is it a different kind of script altogether?

    I need to incorporate it into WorldPainter and need to know how to incorporate it.

    Tom P.

  • #2
    ScriptData is custom information that can be saved (in this case, for a plot). It uses (in general) the pickle format to allow for different types of data to be stored (the ScriptData itself must be a string).

    How to encorporate it? Well, unless you are modifying a pre-existing game map, it's unlikely any scripts will have set any ScriptData for a plot during map creation. AFAIK, no mod to date does so. You very likely can simply ignore it with no consequences.

    Bh

    Comment


    • #3
      This is a map generator/editor so if I give people a single line textbox that should be enough room?

      And what the heck is "pickle format"?

      Oh, and thanks.

      Tom P.

      Comment


      • #4
        Well, you can give them a single textbox, sure, but you would almost never use ScriptData by typing stuff directly in, you'd want to use pickle.

        Pickle is a system that allows you to do data storage in strings with Python (object serialization, specifically). It's really the only way that a mod maker can store information in the save file so that it's reloaded properly.

        Bh

        Comment


        • #5
          Ok... back burner it is!

          Thanks guys.

          Tom P.

          Comment

          Working...
          X