Author Topic: Perl REFRESH parser  (Read 5430 times)

0 Members and 3 Guests are viewing this topic.

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Perl REFRESH parser
« on: April 21, 2011, 11:10:39 pm »
http://jrgp.us/snipplets/soldat_perl_refresh_parser.pl.txt

I'll add it to the wiki in just a sec. http://devs.soldat.pl/wiki/index.php?title=Refresh#Perl

Notice that it only parses the REFRESH format, not REFRESHX. I might add REFRESHX support sometime but for now this is useful enough for proof of concept purposes and simple things.

And since it's perl it can most likely be reduced to half its current size, but I'll leave it verbose and heavily commented since I know most of you hate perl and the least I can do is explain how it works.

Enjoy, or not. :P
« Last Edit: April 21, 2011, 11:15:57 pm by jrgp »
There are other worlds than these

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Perl REFRESH parser
« Reply #1 on: April 22, 2011, 12:34:49 am »
Shameless self promotion for something interesting I'm working on:


gimme a week or so and I'ma totally steal baka's market share. looooool
« Last Edit: April 22, 2011, 12:40:56 am by jrgp »
There are other worlds than these

Offline Bonecrusher

  • Global Moderator
  • Veteran
  • *****
  • Posts: 1397
  • High above
    • Zabijaka.pl
Re: Perl REFRESH parser
« Reply #2 on: April 22, 2011, 07:12:33 am »
hmm cant wait too see what uve come up with

Im chill like that

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Perl REFRESH parser
« Reply #3 on: April 22, 2011, 08:34:25 am »
hmm cant wait too see what uve come up with

Thanks.

It's happening:


That's xforwarded from my computer at home (putty/xming). I have yet to test it on native windows.
« Last Edit: April 22, 2011, 09:05:29 am by jrgp »
There are other worlds than these

Offline jrgp

  • Administrator
  • Flamebow Warrior
  • *****
  • Posts: 5037
Re: Perl REFRESH parser
« Reply #4 on: April 30, 2011, 12:32:31 pm »
Got a significant chunk of it done last night..

There are other worlds than these