AS3 SOL-File Editor [Version 0.5]

SOL files may be found under:
For XP
C:\Documents and Settings*username*\Applicationdata\Macromedia\Flash Player#SharedObjects*random letters*
or
%AppData%\Macromedia\Flash Player#SharedObjects

For VISTA
C:\Users*username*\AppData\Roaming\Macromedia\Flash Player#SharedObjects

further instruction can be found on wikipedia.

Download:
http://ul.to/c3gwgm

Screenshot:

Usuage:
Open SOL editor.swf (from hard drive in FireFox or FlashPlayer stand alone).
Copy SOL-File from original directory to the one of SOL Editor.swf.
Load SOL file by entering name without extension into box and clicking Load button.
Edit the entry you like by changing it’s value displayed in the box on the bottom an clicking Save.
Optional: Make backup
Copy, Paste and overwrite old .sol file.
(someone make video tutorial please, I’m limited by traffic limited internet)

Makeing Backup:
copy .sol file
or
(only when winrar is installed) right click it and click “Add filename.rar to archieve” to restore you right click the .rar and press extract here

Features:
As far as I know, it can read and edit any .sol files.
Shows variable types.
Sets Numbers as Numbers / Strings as Strings.
Saves the filenames of loaded .sol files, no double entrys (saves when load button is clicked).
Removes “.sol” extension if needed.
Treeview with icons for variable types.
Boolean values can be toggled, you don’t have to type 0/1, true/false and are saved after beeing toggled.
Filter for values, object names or properity names.
Filter using regular expressions.
Choose which SOL-File format should be used for saveing.

Filters:
Will filter for the text in the textbox when the button is clicked.
Exact match means:
e.g.: “name” will not match “names” or “charname”
without exact match it’s like
searchtext in windows search or
/.searchtext./
e.g.: “name” will match “names”, “nameclass”, “mynameclass”, …
It’s always case sensitive at the moment, meaning “name” will never match “Name”.

Search in: (highlited text is searched)
properity: my.char.name.str
object: my.char.name.str (the dots aren’t matched)
values: it’s clear I think, the values

Regular Exprssion filter search whole paths when searching in object:
example: /my.char/ will be found in my.char.name

Options:
[NOTE: ONLY TO BE MODIFIED BY ADVANCED USERS]
They have to be saved in a SOL file either way, and this is a SOL editor, so it’s obvious I don’t need a real panel for it right?

curVersion:
Indicates the version you are using, set to any other value to reset option on next startup.

show_Variable_type_text:
Indicates whether to display the variable type behind variables seperated by " : ".

show_Values:
indicates whether to display the values behind properity/type separated by " = ".

Trouble:
AS3 stores SOL files much more compressed it seems, therefore, AS2 will not be able to read them once edited, easy to see when it was AS2 before as the file size greatly decreases (17-> 6kb, 70b -> 60b somewhere about that).
Solution?
[COLOR=red]Save in AS2 Sol-File format as AS3 does read them exactly the same and therefore AS3 games will load AS2 Sol files without problems (I tested it).[/COLOR]

When you are sure the game is AS3, you should still use AS3 Sol-File format as I think it got other advantages then just the files size i diddn’t figure yet.

To-do-list: ( == done but not uploaded)
-Publish anywhere (as flash section is members only now)

Features to be added:

-“command line” SOL editing, a way to write editing in a small code which others can copy&paste to edit a SOL file as desired
–>database for those codes and kongregate games

-adding/removeing properitys

-search for data type

-half automatic SOL-file finding/copying

-show SOL-File version and save in proper format

-show SOL-Size in AS2/3 objectEncoding

Bugs to be fixed:

[SIZE=5]Changelog[/SIZE]

Version 0.7: (15.08.10)
-implemented Regular Expression Filter
-minor bug fixes:
–error on empty filename
–possibly not every math was listed on properity and value search
–now shows “null” when an error occours while gaining value of a properity, in most cases that happen because the value is not set and there fore null

Version 0.6: (14.08.10)
Old view will no longer be updated, as it was hard coded and a fast solution for personal use only, therefore it’s to much effort.
It’s perfectly working for the primary tasks such as editing and reading a SOL-File.

Version 0.6: (13.08.10)
-search for values
-search for properity/object names
-choose in which format to save

Version 0.5: (11.08.10)
-toggle boolean values
-options panel

Version 0.4: (11.08.10)
-treeview
-dynamic depth
-icons (treeview)

Version 0.3: (07.08.10)
-types of entrys are displayed (number/boolean/object/string/…)
-displayed entry label is undependend from actual reference

Version 0.2: (07.08.10)
-".sol" extension get auto removed
-sol file names are saved when clicking load button
-double entrys are avoided

Version 0.1: (06.08.10)
First Release

███████████████████████████████████
█**Regular Expressions - Filter like the pros **█
███████████████████████████████████

This is going to become as small guide, but for now some Expressions for you:

Expression – Matchs
/^true$|^false$/ – Any value that is exactly “true” or “false” (boolean)
/^\d+$/ – Any numbers
/^[a-z]+$/ – Anything that only includes letter a-z (non-capital)
/^[A-Z]+$/ – Anything that only includes letter A-Z (capital)
/^[a-z]+$/i – Same as above but not case sensitive

/^string$/i – Anything that is exactly “string”, but not case sensitive
/string/ – anything that includes “string”
/^\d$/ – single digits only
/^\d{2}$/ – exactly 2 digits
/^\d{2,5}$/ – any number with 2 to 5 digits