User Name
Password

Go Back   Planetarion Forums > Planetarion Related Forums > Planetarion Discussions
Register FAQ Members List Calendar Arcade Today's Posts

Reply
Thread Tools Display Modes
Unread 20 Aug 2004, 18:00   #1
Jester
Pedantic hypocrite
 
Jester's Avatar
 
Join Date: Jan 2001
Location: Back and to the left
Posts: 1,488
Jester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond repute
PA dumpfile analysis code (alliance techies?)

Does anyone have any code (any language will do) that reaps the dumpfile and plops it into a db? Preferably without removing any old info (I'm planning on putting this on a box that can take a round worth of dumpfiles).

I've been considering doing some form of statistics on planet, galaxy and alliance performance and would appreciate any reduction of work that's already been duplicated too many times. If I ever get it done (I'm aiming for before r12 starts, so I should have plenty of time ), the code will naturally be made available to anyone who wants it.
__________________
I always wanted to be a dancer, but I could never get the shit off my shoes
.......
Jester is offline   Reply With Quote
Unread 20 Aug 2004, 21:38   #2
General Martok
used to register
 
Join Date: Feb 2002
Location: Netherlands
Posts: 979
General Martok has a spectacular aura aboutGeneral Martok has a spectacular aura about
Re: PA dumpfile analysis code (alliance techies?)

edit: found you on irc, done
__________________
R1: ??:?? | R2: 51:6 | R3: 37:12 | R4: 186:13 | R5: 13:17 | R6: 1:25
R7: 15:14 | R8: 34:4 / 52:10 ¤ | R9: 16:2 | R9.5: 34:6 / 41:6 ¤
R10: 2:2 | R10.5: 15:4 | R11: 28:8 | R12: 22:9

Damn, outdated and too lazy to edit, retired now
-----
Started playing again Still too lazy to update though

Last edited by General Martok; 20 Aug 2004 at 21:54.
General Martok is offline   Reply With Quote
Unread 20 Aug 2004, 22:33   #3
Jester
Pedantic hypocrite
 
Jester's Avatar
 
Join Date: Jan 2001
Location: Back and to the left
Posts: 1,488
Jester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond repute
Re: PA dumpfile analysis code (alliance techies?)

Thank you very much.
__________________
I always wanted to be a dancer, but I could never get the shit off my shoes
.......
Jester is offline   Reply With Quote
Unread 22 Aug 2004, 20:14   #4
Jester
Pedantic hypocrite
 
Jester's Avatar
 
Join Date: Jan 2001
Location: Back and to the left
Posts: 1,488
Jester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond repute
Re: PA dumpfile analysis code (alliance techies?)

Is there any particular reason to create a seperate column for 'roid rank' instead of using selects on demand?
__________________
I always wanted to be a dancer, but I could never get the shit off my shoes
.......
Jester is offline   Reply With Quote
Unread 25 Aug 2004, 16:20   #5
wakey
Hamster
 
wakey's Avatar
 
Join Date: Apr 2000
Location: Crewe, England
Posts: 3,606
wakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like himwakey is an inspiration to us all and we should try to be more like him
Re: PA dumpfile analysis code (alliance techies?)

General Martok: I was wondering if maybe you would be willing to release the code more publically. It would be nice if more coders were willing to release some of their code so perhaps a code repository can be put together to aid smaller alliances whom maybe dont have the resources to code from scratch themselves.
__________________
Wakey
PD and Suggestions Moderator
Co-founder of [F-Crew]
The Farnborough Crew
Cos anything else is just an alliance
Join our public channel at #f-crew
wakey is offline   Reply With Quote
Unread 25 Aug 2004, 17:10   #6
General Martok
used to register
 
Join Date: Feb 2002
Location: Netherlands
Posts: 979
General Martok has a spectacular aura aboutGeneral Martok has a spectacular aura about
Re: PA dumpfile analysis code (alliance techies?)

I'll rewrite it a bit and include comments then, I dont want to be embarassed by the entire php community
__________________
R1: ??:?? | R2: 51:6 | R3: 37:12 | R4: 186:13 | R5: 13:17 | R6: 1:25
R7: 15:14 | R8: 34:4 / 52:10 ¤ | R9: 16:2 | R9.5: 34:6 / 41:6 ¤
R10: 2:2 | R10.5: 15:4 | R11: 28:8 | R12: 22:9

Damn, outdated and too lazy to edit, retired now
-----
Started playing again Still too lazy to update though
General Martok is offline   Reply With Quote
Unread 25 Aug 2004, 17:14   #7
Blazde
Elysium
 
Join Date: Jun 2003
Posts: 167
Blazde is an unknown quantity at this point
Re: PA dumpfile analysis code (alliance techies?)

In the spirit of the day here's some scripts I used for a couple of rounds to process the dumpfiles:

http://www.blazde.co.uk/pa/inca.tar.gz

Includes stuff to download, add to a database, and a simple web interface showing a planet's score/size for every tick and an attempt to discern their activity based on how smooth their score is.

Comes with even less support than bcalc, and 100% guaranteed not to work out of the box. Iirc it last worked in rd10.5 before the alliance dumps or the extra columns to the other dumps.
Blazde is offline   Reply With Quote
Unread 25 Aug 2004, 17:21   #8
Ramihyn
Emperor
 
Join Date: Jul 2001
Location: in front of a computer
Posts: 490
Ramihyn has much to be proud ofRamihyn has much to be proud ofRamihyn has much to be proud ofRamihyn has much to be proud ofRamihyn has much to be proud ofRamihyn has much to be proud ofRamihyn has much to be proud ofRamihyn has much to be proud ofRamihyn has much to be proud of
Re: PA dumpfile analysis code (alliance techies?)

Quote:
Originally Posted by wakey
General Martok: I was wondering if maybe you would be willing to release the code more publically. It would be nice if more coders were willing to release some of their code so perhaps a code repository can be put together to aid smaller alliances whom maybe dont have the resources to code from scratch themselves.
If i think back looooong ago when there was a try to find coders for a official PA toolkit, one of the preconditions was that the author basically had to donate the rights of all code to FS/CCP (which was exactly the reason why i never applied/participated in it). Several months later however MIT got to do the official PA Tools. Did CCP drop that precondition? Or doesnt CCP want to release the code (or parts) of MITs Tools itself?
Ramihyn is offline   Reply With Quote
Unread 26 Aug 2004, 02:38   #9
Jester
Pedantic hypocrite
 
Jester's Avatar
 
Join Date: Jan 2001
Location: Back and to the left
Posts: 1,488
Jester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond repute
Re: PA dumpfile analysis code (alliance techies?)

I'd release my stuff, but it's all python and pgsql so no one would use it.

Damn punks and their php/mysql.
__________________
I always wanted to be a dancer, but I could never get the shit off my shoes
.......
Jester is offline   Reply With Quote
Unread 26 Aug 2004, 22:34   #10
Epcylon
Registered User
 
Join Date: Apr 2000
Location: Oslo, Norway
Posts: 78
Epcylon is a glorious beacon of lightEpcylon is a glorious beacon of lightEpcylon is a glorious beacon of lightEpcylon is a glorious beacon of lightEpcylon is a glorious beacon of light
Re: PA dumpfile analysis code (alliance techies?)

Jester! My good friend! Pal!

Python and pgsql is perfect... let the n00bs meddle with their inferiour tools...

So.. would you release it? I might not actually use it, but I'd like to have a look at what's been done.. and I'd use python/pgsql over php/mysql any day

PS. Why isn't this thread in the programming forum?
__________________
Epcylon
[R1]: noob | [R2]: B8S/ICD | [R3-5]: ICD | [R6]: HR | [R7-9.5]: HR/NoS |
[R10]: HR RecOff | [R10.5]: HR RO -> HR HC -> HR pe0n | [R11]: HR pe0n -> Leave of Absence |
[R12]: HR free-pe0n | [R13-]: HR pe0n
Epcylon is offline   Reply With Quote
Unread 27 Aug 2004, 00:22   #11
Jester
Pedantic hypocrite
 
Jester's Avatar
 
Join Date: Jan 2001
Location: Back and to the left
Posts: 1,488
Jester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond repute
Re: PA dumpfile analysis code (alliance techies?)

Because I would never have gotten the attention of PA techies in the programming forum. Besides, it's nothing like it was in the day of Scripting and Resources or whatever it was called.

So far I only have a somewhat hackey script for grabbing the botfiles and stuffing them in the db, plus some prototypes for the more advanced stuff I want to do. When I've decided completely on what database structure I want, I may be able to get some of the proper stuff going.
__________________
I always wanted to be a dancer, but I could never get the shit off my shoes
.......
Jester is offline   Reply With Quote
Unread 27 Aug 2004, 21:46   #12
Bashar
Idle Git
 
Join Date: Aug 2001
Location: Wandering
Posts: 1,550
Bashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet society
Re: PA dumpfile analysis code (alliance techies?)

I would release the ones I coded for eclipse/1up (and a few others too), but I am not the best or the tidiest coder. My code comes with less comenting than a mute on a sponsored silence. If alliances want to use my 'stuff', they are more than welcome to speak to me (as a couple have done already), and I am usually willing to help out, and try and help get it working for them (time permitting).
__________________
Here we go again....
Bashar is offline   Reply With Quote
Unread 27 Aug 2004, 22:43   #13
Jester
Pedantic hypocrite
 
Jester's Avatar
 
Join Date: Jan 2001
Location: Back and to the left
Posts: 1,488
Jester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond reputeJester has a reputation beyond repute
Re: PA dumpfile analysis code (alliance techies?)

Comments is just a way to put witty metacode jokes into context.
__________________
I always wanted to be a dancer, but I could never get the shit off my shoes
.......
Jester is offline   Reply With Quote
Unread 28 Aug 2004, 20:00   #14
TheRat
Retired
 
Join Date: Dec 2000
Location: Rogaland, Norway
Posts: 642
TheRat has much to be proud ofTheRat has much to be proud ofTheRat has much to be proud ofTheRat has much to be proud ofTheRat has much to be proud ofTheRat has much to be proud ofTheRat has much to be proud ofTheRat has much to be proud of
Re: PA dumpfile analysis code (alliance techies?)

Comments are sexy, which is why I rarely use em..

...

That made no sense..
__________________
Of all the things I've lost I miss my mind the most

-Elysium Officer
[1up] Senior MO
Retired
TheRat is offline   Reply With Quote
Unread 6 Sep 2004, 11:58   #15
Kloopy
-Back Again-
 
Kloopy's Avatar
 
Join Date: Feb 2001
Location: Hitchin, Hertfordshire
Posts: 707
Kloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud of
Re: PA dumpfile analysis code (alliance techies?)

Hah. Commenting. Jester knows. He's right. So right. Comments were invented for slanderous abuse attacking the competition, for telling the lamest jokes and most importantly, writing an extensive and soul revelaing blog.
__________________
:: Plain Old Civilian :: http://www.kloopy.com :: [email protected] ::
:: Some people have six pack abdomens; I have a keg. ::
:: Beer - The reason I wake up every afternoon. ::
Kloopy is offline   Reply With Quote
Unread 6 Sep 2004, 20:52   #16
Bashar
Idle Git
 
Join Date: Aug 2001
Location: Wandering
Posts: 1,550
Bashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet societyBashar is a pillar of this Internet society
Re: PA dumpfile analysis code (alliance techies?)

Quote:
Originally Posted by Kloopy
Hah. Commenting. Jester knows. He's right. So right. Comments were invented for slanderous abuse attacking the competition, for telling the lamest jokes and most importantly, writing an extensive and soul revelaing blog.
Comments were also invented to allow you to ensure that anyone who tries to fix your code gets thoroughly confused.

That is why I don't use them, you have seen how I code, it'd confuse anybody anyway with the variable names I choose.
__________________
Here we go again....
Bashar is offline   Reply With Quote
Unread 7 Sep 2004, 14:02   #17
Kloopy
-Back Again-
 
Kloopy's Avatar
 
Join Date: Feb 2001
Location: Hitchin, Hertfordshire
Posts: 707
Kloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud ofKloopy has much to be proud of
Re: PA dumpfile analysis code (alliance techies?)

lol Bashar.
__________________
:: Plain Old Civilian :: http://www.kloopy.com :: [email protected] ::
:: Some people have six pack abdomens; I have a keg. ::
:: Beer - The reason I wake up every afternoon. ::
Kloopy is offline   Reply With Quote
Unread 14 Sep 2004, 01:33   #18
CamelToe
You Know I'm Right
 
CamelToe's Avatar
 
Join Date: Aug 2001
Location: Under The Sea
Posts: 241
CamelToe is infamous around these partsCamelToe is infamous around these partsCamelToe is infamous around these partsCamelToe is infamous around these partsCamelToe is infamous around these parts
Re: PA dumpfile analysis code (alliance techies?)

Check this out. If I get some more time, I'll release the rest of the code but this should provide some people with some good ideas and direction.

http://pirate.planetarion.com/showthread.php?t=179401
__________________
Yeah bro, make that twat get the jelly.

Don't act like you weren't thinking the same thing...

you should stop posting on these forums as you're CRAP
CamelToe is offline   Reply With Quote
Reply



Forum Jump


All times are GMT +1. The time now is 08:12.


Powered by vBulletin® Version 3.8.1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Copyright ©2002 - 2018