|
Dedicated Server Discuss technical issues related to hosting your own servers. |
|
Thread Tools | Display Modes |
#41
|
|||
|
|||
Quote:
Say the server you configured on port 44444 is a server that doesnt allow double fire loopies that use turbocharger blue perks, while the server on 44445 is a server that only restricts Miranda with Time Anchor, Repair Drone and Turbocharger: $restricted = array( array('44444','Loopy','Double Fire','Heavy Armor','Turbocharger'), array('44444','Loopy','Double Fire','Repair Drone','Turbocharger'), array('44444','Loopy','Double Fire','Rubberized Hull','Turbocharger'), array('44444','Loopy','Double Fire','Flexible Wings','Turbocharger'), array('44445','Miranda','Time Anchor','Repair Drone','Turbocharger') ); Unfortunately it's main intention was to restrict double fire loopies and I never got around to adding an "ALL" value so you wouldn't have to add 50 perk combination's. Last edited by phong; 10-27-2010 at 03:23 PM. |
#42
|
|||
|
|||
In case you (being anybody) care, I am working on the same program in JAVA...it should run a bit faster, since PHP is interpreted while JAVA is compiled (trust me its true)...also, there is multithreading for JAVA....which is helpful for some of what i am trying to do with PALP. I think i shall call the java program....JALP (unless you get really offended by that). This is just supposed to be an optional alternative to PALP...it may be easier or harder for people depending on their background.
Anywho........that's what I'm doing. |HF| bin |
#43
|
|||
|
|||
Jalp
JALP is 99% complete. do people want me to post a link to a zip file where you can download it? or are you all content to use PALP (which really is amazing)?
|HF| bin |
#44
|
|||
|
|||
I'd say make your own thread for JALP. Realize, however, that there is a copyright on PALP - so make sure you don't break that.
|
#45
|
|||
|
|||
Gimme gimme gimme!
Last edited by krawz; 11-08-2010 at 05:40 PM. |
#46
|
|||
|
|||
cool
|
#47
|
|||
|
|||
Java would be awsome for windows users(I could never figure out how to run php scripts on windows )
|
#48
|
|||
|
|||
Quote:
I HAD NO IDEA IT WAS COPYRIGHTED!!! Thank you so much for telling me. I completely missed that. I will talk with phong and see if we can come to some sort of agreement. |HF| bin |
#49
|
|||
|
|||
If my memory serves me correctly he's using the typical free-software copy left copyright. This basically means that you can use it and whatnot - but you have to give him credit and you can't make any money off of it (I think). I also don't think you even need to contact him as long as you don't want to violate some of the conditions of copy left. You can see the top of palp's source code for a link to the copyright conditions
|
#50
|
|||
|
|||
All necessary permissions have been granted for the launching of JALP, so I will start a new thread when i release it.
|HF| bin |
#51
|
|||
|
|||
Looking forward to that.
|
#52
|
|||
|
|||
Quote:
earlier you asked if we want a link so we can download it... my answer to that question is yes 99% complete is plenty complete for me. please post or send me download link, thanks! |
#53
|
|||
|
|||
Unfortunately it's nowhere near done. I only get to work on it a few minutes at a time, due to my college courseload. There are MANY errors, some of which are driving me crazy. I will try to knock out a significant chunk this week/weekend. I will submit both a base jar file and the source code, and then most likely an optimized copy of each. We will see where this project leads.
HF Bin |
#54
|
|||
|
|||
woohoo consider this lots of encouragement
|
#55
|
|||
|
|||
Got this error.
Code:
PALP: Starting.. PALP: Database connection established successfully Warning: popen() has been disabled for security reasons in /opt/altitude/palp.php on line 1021 how do I make it go away :-( |
#56
|
|||
|
|||
I would say make sure that palp has the correct permissions to read the logfile. I assume the line you are talking about is
Code:
$fp = popen("tail -n 0 -F " .$logfile. " 2>&1", "rb"); HF Bin |
#57
|
|||
|
|||
Just to update your question about popen, this is usually because php is running with safe_mode enabled which is common among shared hosting providers. Some providers will allow you to upload custom config files (php.in/php5.ini) to your root directory and you can try to turn off safe_mode through that, or you can talk to your provider about it.
Last edited by phong; 12-19-2011 at 07:35 PM. |
#58
|
|||
|
|||
Also bin if you want to send me your java source I'll take a look at it. I was looking at converting it to java as a project to get into java. I've been having issues finding a good json decoder, also my method for streaming the log using tailer always resulted in it reading a line twice, not sure why.
import java.io.File; import java.io.InputStream; import java.util.List; import net.sf.json.JSONObject; import net.sf.json.JSONSerializer; import org.apache.commons.io.input.*; import org.apache.commons.io.IOUtils; public class Main { public static void main(String args[]) { class MyTailerListener extends TailerListenerAdapter { public void handle(String line) { System.out.println(line); //Prints log entries twice for some reason? } } System.out.println("Starting"); File test = new File("c:\\program files (x86)\\altitude\\servers\\log.txt"); TailerListener listener = new MyTailerListener(); Tailer tailer = Tailer.create(test, listener, 100, true); Thread thread = new Thread(tailer); thread.start(); } } Last edited by phong; 01-12-2012 at 02:34 PM. |
#59
|
|||
|
|||
Does anyone have a copy of http://puddle.ohjeah.net/palp.zip ? The website is down
|
#60
|
|||
|
|||
I think phong has a magical script that checks this forum for new posts and then if his name is ever mentioned it'll e-mail him. So now that I've written his name in my post he should see it and reply.
|
#61
|
|||
|
|||
Ok maybe I was wrong. You should PM phong, I know for sure that he gets e-mailed whenever he gets a PM.
|
#62
|
|||
|
|||
I'll see if I can dig it up.
|
#63
|
|||
|
|||
Mmm don't think I have it around anymore
|
#65
|
|||
|
|||
Thanks, updated op as well.
|
#66
|
|||
|
|||
I found a little bug
you must use mysql_pconnect to make a persistant connection to the database it happens a few days after the connection lost. with PDO: PDO::ATTR_PERSISTENT => true |
#67
|
|||
|
|||
mysql_pconnect shouldn't be necessary so I wouldn't call it a bug, though use whatever you like best.
|
#68
|
|||
|
|||
see that the script has lost the connection to database, may not be a bug. I saw no solution else than opening a persistent connection . what would you do?
|
#69
|
|||
|
|||
If using pconnect solved it for you then run with it, but neither ladder or palp use it. All depends on your mysql/php configuration though.
|
|
|