Page Menu
Home
Phabricator (Chris)
Search
Configure Global Search
Log In
Files
F632769
CollectStats.pl
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Authored By
Unknown
Size
708 B
Referenced Files
None
Subscribers
None
CollectStats.pl
View Options
#
!
/
usr
/
bin
/
perl
-
w
BEGIN
{
use
Cwd
;
our
$
directory
=
cwd
;
}
use
lib
$
directory
;
require
'FighterStats.pl'
;
require
'QuickSave.pl'
;
sub
RegisterFighter
(
$
)
{
my
(
$
reginfo
)
=
@
_
;
print
"Registering: "
,
$
reginfo->
{
ID
},
"\n"
;
}
@chars
=
`
ls
..
/
characters
/*.pl`;
chomp @chars;
print join (',',@chars), "\n";
foreach $char (@chars) {
require $char;
}
while (($key,$val) = each %FighterStats ) {
delete $val->{STATES};
delete $val->{FRAMES};
delete $val->{STARTCODE};
}
$allstats = store( \%::FighterStats );
$allstats =~ s/^{/\(/s;
$allstats =~ s/}$/\)/s;
open OUTPUT, ">CollectedStats.pl";
print OUTPUT "%::FighterStats = ";
print OUTPUT $allstats;
print OUTPUT ";";
close OUTPUT;
File Metadata
Details
Attached
Mime Type
text/x-perl
Expires
Sun, Nov 15, 3:14 PM (1 d, 21 h)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
133912
Default Alt Text
CollectStats.pl (708 B)
Attached To
Mode
R76 OpenMortal
Attached
Detach File
Event Timeline