Altitude Game: Forums  

Go Back   Altitude Game: Forums > Altitude Discussion > General Altitude Discussion
FAQ Community Calendar

General Altitude Discussion Discuss anything Altitude related that doesn't belong in another forum.

Reply
 
Thread Tools Display Modes
  #1  
Old 10-22-2011, 08:51 PM
cybernaut cybernaut is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany, lower saxony
Posts: 3
Default my programming code

Hello everybody,

In short words I like to share my code which I had written in my time running an Altitude server. (About 1.5 years now)

First one is based on an old version of PALP (PHP Altitude Log Parser):
I tried to evolve a clan-based rating ladder; sadly there was not enough response to achieve a decent competition....
But here is the PHP code.
It’s not really cleaned or finished, but maybe someone has a use for it
-->Attachement

edit: Newer version of PALP can be found here
My attachement is only for historical reason, and if i want to look up something...

----

Second one is a modified version based on a Java program I found here in the forum. I cannot recall the post or find it anymore. If you do know which post it is, pls send the link to me so I can add the link here.

Now on to some tech stuff:
I uploaded the Java Maven project into Google's subversion.
svn checkout http://another-alti-log-parser.googl...com/svn/trunk/ another-alti-log-parser-read-only

To get the whole package (runnable jar with samples and source code) you need to download a 2 MB ZIP from Google:
http://another-alti-log-parser.googl...ck_one_jar.zip

So what does it need?
It requires a MySQL database and tail (linux). Maybe it’s running on Windows too, but I never tried
MySQL Scheme is included in source code.

What does it do?
The program has different modes, which are:
- counting goals, kills, deaths and displaying them in-game as rank
- counting turret kills for coop and displaying them in-game as rank
- Map-based configuration for coop points to achieve time and a rank
(one can say it’s a micro version of a ranking system)

I made most of the parts configurable, so you can edit the messages send by the server and a lot of other things.
I also tried to document the config... I really tried... most of the classes and methods in the code are not documented at all.

So you will find a basic documentation and a lot of comments in the files.

Why did I do this?
Simple answer, just for fun

Just to make sure:
This is no framework or anything like that. It's not easy to use for most ppl and will cause a question mark above some ppls head.

That's all folks...
cybs out

edit: added new PALP version thx to Aki1024 and of course phong
changed filename and added database_scheme for php
Attached Files
File Type: zip palp_modified_unfinished.zip (83.6 KB, 4 views)

Last edited by cybernaut; 10-31-2011 at 08:15 PM.
Reply With Quote
  #2  
Old 10-23-2011, 08:26 PM
Tekn0 Tekn0 is offline
Senior Member
 
Join Date: Dec 2010
Posts: 1,548
Default

Hey you should join us in the altitude IRC channel (irc.freenode.org #altitude ) there are other guys who work on Alti stuff there like Ladder match stats and what not.
Reply With Quote
  #3  
Old 10-25-2011, 01:29 PM
phong phong is offline
Senior Member
 
Join Date: Jul 2009
Location: Chicago
Posts: 372
Default

A couple things:
  • You should include the pear json library with your package which ensures compatibility with php < 5.1 (it's included with palp)
  • There are several instances of static paths, you should make these variables so they can be easily modified to accommodate different user environments
  • You may also want to include a database schema for the user to import
  • A big issue with palp1 was database maintenance during startup/shutdown, say if palp wasn't launched prior to the server there could be ghost entries of active players. You'd probably want to map out existing database procedures to clean that up.

The main reason there has never been a primary statistical addon (like hlstats in CS) is because none has ever been 100% finished or maintained. People want to be able to install a full featured package with few instructions and have it work properly as most are not developers/system admins.
Reply With Quote
  #4  
Old 10-26-2011, 09:46 AM
Aki1024 Aki1024 is offline
Senior Member
 
Join Date: Jul 2011
Location: Across from you at a chess table. Your play is?
Posts: 1,080
Default

For those (like me) that don't know about Phong's base PALP code link: PALP
Reply With Quote
  #5  
Old 10-31-2011, 08:10 PM
cybernaut cybernaut is offline
Junior Member
 
Join Date: Mar 2011
Location: Germany, lower saxony
Posts: 3
Default

@tekn0: Maybe I should give IRC a try... thx for the information

@phong:
Thank you for your response, I appreciate it.
But that version I posted is not to be run anymore and not really finished. It will have some flaws and bugs
Maybe I should remove it...
Anyway, I added database scheme and library file.

@Aki1024: Thx for link, added it in the OP
Reply With Quote
Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 06:12 AM.


Powered by vBulletin® Version 3.8.2
Copyright ©2000 - 2021, Jelsoft Enterprises Ltd.
2008 Nimbly Games LLC