Loading ...
Sorry, an error occurred while loading the content.

Re: Extract information using Find, Copy & Paste

Expand Messages
  • Chuck
    ... put ... aiming for. ... binary ... at ... directory ... Thanks again for trying to help. I am probably doing something wrong but when I run this clip with
    Message 1 of 68 , Jul 11, 2008
    • 0 Attachment
      --- In ntb-clips@yahoogroups.com, "Sheri" <silvermoonwoman@...> wrote:
      >
      > Open one of your filtered binary files and run this clip. It will
      put
      > the matches into a new document buffer. See if it does you're
      aiming for.
      >
      > H="Get Player Info"
      > ^!Select 0
      > ^!SetListDelimiter ^P
      > ^!Set %pattern%="(?s)\{\R\K\x22classname\x22\x20"
      > ^!Set %pattern%="^%pattern%\x22info_player_\w+[^\x7D]+(?=\})"
      > ^!Set %matchtext%=^$GetDocMatchAll("^%pattern%";0)$
      > ^!Toolbar New Document
      > ^!InsertCode ^%matchtext%
      > ^!ClearVariable %matchtext%
      > ^!ClearVariable %pattern%
      > ;end of clip
      >
      > In your message, did you mean that there are over 500 different
      binary
      > files to be done? If so, you probably don't want to select them one
      at
      > a time. Instead you would want to put all the files into one
      directory
      > and make a clip that processes all of them.
      >
      > Regards,
      > Sheri
      >


      Thanks again for trying to help. I am probably doing something wrong
      but when I run this clip with my binary (Test.bsp) file and then open
      a text document and paste, all I get is a copy of the clip script.

      I thought maybe it was the buffer keeping the clip script I had
      copied from the notetab groups so after saving your clip, I closed
      the app and restarted. Same result.

      The files I am workin with are in a zipped format with the extension
      pk3. Included in the "pk3" file are several folders and files. One
      of them is a binary file with a ".bsp" extension. Another is
      a ".scr", script file. To complete my task, I need to extract info
      from the .bsp file, annotate some information to it and insert it
      into the scr file.

      Below is a sample of the info in the BSP file:


      2015···›óðCì···$6··7··@¹·Pð··À·P°·Db·"%
      ·¨Û ·<î0·$·`3·L4··¬83·4
      [··à"3·Àã·· w4·à|··€ô4·`···àô4··a·àU7·$H··ž7·p··t¡7·š~·· 8·····
      8····#8·ôÙ·ý:·ó'··ø$;·ˆ··€&;·<··¼4;·œ—·XÌ=·····XÌ=·····XÌ=·è
      ·@ãG·4§··tŠH·,
      ··········textures/common/grassclip···························
      ············ ····
      (····textures/common/grassclip.tga···································t
      extures/common/grassclip······································· ····

      LOTS more binary info then:


      ······À· À··\ H'B···@··ŠB¯ ·············'···ÀÜX···@·Øü?¸$ŒB¶
      ············€À··€Á··€À··€@··€A··€@½ ··········{
      "classname" "worldspawn"
      "ambientlight" "6 6 6"
      "suncolor" "60 60 60"
      "sundirection" "90 270 0"
      "spawnflags" "2048"
      }
      {
      "classname" "info_player_axis"
      "origin" "3504 -824 8"
      }
      {
      "classname" "info_player_axis"
      "origin" "3408 -2000 8"
      }
      {
      "classname" "info_player_axis"
      "origin" "3592 -1256 8"
      }
      {
      "classname" "info_player_axis"
      "origin" "3640 -1776 8"
      }
      {
      "classname" "info_player_axis"
      "origin" "3416 2488 8"
      }
      {
      "classname" "info_player_axis"
      "origin" "3432 1144 8"
      }
      {
      "classname" "info_player_axis"
      "origin" "3608 1024 8"
      }
      {
      "classname" "info_player_allied"
      "origin" "-4448 584 8"
      }


      LOTS more "classname" items.

      As can be seen, this portion does not have the "Angle" heading
      mentioned in the previous post but if it is there, I would like to
      have it.

      I hope this is not too much information. It is intended only to
      clarify the requirements of the clip.

      Once again, Thank you for your time.

      Best Regards,

      Chuck
    • rainmark
      Yes, I am at least one of the culprits. I didn t realize until a few days ago that this was a no-no and that it caused problems on the Yahoo list. I guess the
      Message 68 of 68 , Aug 12, 2008
      • 0 Attachment
        Yes, I am at least one of the culprits.

        I didn't realize until a few days ago that this was a no-no and that it
        caused problems on the Yahoo list.

        I guess the proper way is to simply address a new email to the list.

        My apologies to all.



        Alec Burgess wrote:
        >
        > wonder whether its just a quirk in my client or if you
        > guys really did take the quick and dirty path to switch topics?
        >
        >
      Your message has been successfully submitted and would be delivered to recipients shortly.