Jump to content

All Activity

This stream auto-updates     

  1. Last week
  2. Earlier
  3. Hi people, in this tutorial we are going to add a leaderboard system where we will display the total scores in a table which you earned by playing some games which give you score. First of all, we need to make some service-side changes and then move onto the web-side changes. This is a simple system, so first open your database and click the table 'penguins' and create a column named 'score', make sure it's INT(Integer) and also has a default value, '0'. Next, we would want to update that 'score' column whenever they play a mini-game so what we will do is go to the following folder: /Houdini/Houdini/Handlers/Games/ and open the __init__.py file. Well, I had to use the MYSQL module because I couldn't really understand sqlalchemy and MYSQLdb module seemed easy, so yeah. If you don't have the module, install it using the following command: pip install MySQLdb After that in the file, import this import MySQLdb after import math, time Now, we need to use the module so paste this code after the maxScorePerMinute = { array db = MySQLdb.connect(host="localhost", user="root", passwd="pass", db="houdini", autocommit=True) cur = db.cursor() Find the def handleSendGameOver(self, data): function and inside if self.server.stampGroups.isStampRoom(self.room.Id): after coinsEarned = determineCoinsEarned(self.room.Id, data.Score) add this: ID1 = self.user.ID cur.execute("UPDATE penguins SET score = score + %s WHERE ID = %s " % (data.Score, ID1)) Do the same for the next else statement: http://prntscr.com/ibb3b4 Restart Houdini, now onto the web-server part. <html> <head> <title>Leaderboard</title> <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" /> </head> <center><h1>TOP 10 Score Leaderboard</h1></center> <center> <?php $db = new mysqli('localhost','root','pass','houdini'); if ($db->connect_error) { die('Error : ('. $db->connect_errno .') '. $db->connect_error); } $results = $db->query("SELECT username, score FROM penguins ORDER BY score DESC LIMIT 10"); echo "<table border='1' <tr> <th>Username</th> <th>Score</th> </tr>"; while($row = $results->fetch_array()) { echo '<tr>'; echo '<td>'.$row["username"].'</td>'; echo '<td>'.$row["score"].'</td>'; echo '</tr>'; } echo '</table>'; $db->close(); ?> </center> </body> </html> You can change the LIMIT 10 to whatever number you like. So, whenever someone plays a game their score will get updated and it will display on the leaderboard. Thanks, Dev.
  4. Stamps (AS3 kitsune)

    Hey, I'm not sure how to add a custom stamp into as3, could anyone help me solve this? thanks
  5. Penguin Hangout - The New CPPS!

    Penguin Hangout - The New CPPS! Hello! I am Chandler010, owner of Penguin Hangout. I invite YOU to a new CPPS releasing very soon! Penguin Hangout is unlike any other CPPS. Penguin Hangout is a mixture of ALL Club Penguins eras! With active and nice staff, friendly environment, and multiple parties, we guarantee you fun on our island! Join other Penguins as you Waddle and explore the island. We can't wait for you to join us on the island THIS FEBRUARY! Discord - https://discord.gg/Kn2XZ8m Waddle On!
  6. Freezing while playing Minecraft

    Hello, I'm new to Linux and I've recently noticed that when I play Minecraft, after 30 minutes or so the system freezes! When it's frozen, I can't do anything and I just force a shut down by holding on the power button. I've tried waiting it out but nothing seems to be happening. I've tried changing my Java, updating drivers, limiting RAM usage, and I've searched this up on Google and haven't found anything. In game, I also see blocks at the edge of my screen that are partly transparent. Also, sometimes my screen flashes black only in game. I usually get around 30-40 fps when using Linux. This doesn't happen in Windows but when I play on Windows I usually get around 15-25 fps on a low render distance. When I used to use Ubuntu, the screen flashes and the transparent blocks didn't happen but the crashes still occured. This only happens in Minecraft but with any other application the OS runs just fine. Thanks I didn't find the right solution from the internet. References: https://forums.linuxmint.com/viewtopic.php?t=155201 Video Advertising Examples
  7. How can I edit the login in kitsune AS3?

    for example: edit the text Login, delete Create a Penguin, change the "Sound Studio" Image,
  8. Help with Data Base?

    Hi. What errors you experiencing when users try to login to the game (check PuTTY) ..?
  9. Help with Data Base?

    ok so i have been working on a cpps lately i have everything set up but the data base the data base is so hard and confusing i am currently using navi cat i just seem to cant fix the log in can someone please give me a a tutorial and tips to help me
  10. PE2 Source

    There's no reason to post outdated sources
  11. Times-0/Timeline A powerful AS3 CPPS Server emulator written in Python using Twisted! GRAB THE LATEST BUILD: Timeline.zip Prerequisites: Softwares: Python 2.7.X MySQL or MariaDB If using MySQL, you need all of these connectors (as they don't come pre-installed): Python-Connector , C++Connector , C-Connector Redis Server If you are to download this on windows, you might need one of these instead: Windows-Redis by Microsoft Python Modules: Twisted MySQLdb Watchdog txredisapi Twistar BCrypt lxml colorlog Any of the above Python modules can be installed as follows: If you are using only 1 version of Python python -m pip install module_name If you are using multiple versions of Python (2 and 3 together) py -2 -m pip install moule_name SETUP [If you are using it in default localhost, skip these] SETUP DATABASE (Necessary) If you haven't setup database for timeline before, you need to do this before starting the server. Open your mysql client (eg, PHPMyAdmin), create a new database namely times-cp, open that table click import, select file as database.sql, import it. You are good to go now. USAGE After all being set-up, all you have to do is run the server. Below are examples of how to run the server from a terminal cd path/to/timeline ---IF YOU HAVE ONLY ONE VERSION OF PYTHON INSTALLED--- python Start.py ----- ---IF YOU HAVE MULTIPLE VERSIONS OF PYTHON--- py -2 Start.py -----
  12. PE2 Source

    Arigato, i dont use this source i just want to post this source here :D
  13. PE2 Source

    Please do not use this source as it's way outdated, instead use Houdini, Luna or Kitsune AS2.
  14. PE2 Source

    hey guys i wanted to inform here, that there is PE2 source available to download idk whether this is right place to post there is link for tutorial http://forum.ragezone.com/f858/tutorial-setup-club-penguin-private-894970/ there is link for download http://www.mediafire.com/?wbhux49ntdfd42d if you're interested about seeing private servers check out my website here > https://goo.gl/Pt4rgq
  15. Hi, I tried in AS2 mediaserver with modified kitsune version, and doesn't work, can you help me? http://prntscr.com/hoewa2
  16. im not gonna let that 2 month gap of no status updates happen. 



  17. [BUG] Special Actions

    that can mean only one, missing files... try find to xampp>htdocs>play>v2>content>penguin
  18. Hello!

  19. [BUG] Special Actions

    Clothes perform special action, but the penguin does not.
  20. [BUG] Special Actions

    what did you mean it's not working, you can't walk? it's meaning use another browser, it could be browser.... two.. is here some missing files? let me know..
  21. [BUG] Special Actions

    Hello! I'm putting characters in my CPPS, but the special action of Brady and McKenzie are not working. How do I fix this?
  22. Hello!

    Hey Wiliam ! Welcome to solero.me, you can make here cpps or fix problems with cpps!
  23. Hello!

    Hello, Solero. I am Guilherme, in portuguese, but I accept that they call me William (In English) or Guillermo (In Spanish). I'm from Brazil, I speak Portuguese, a little English and basic Spanish. I like CPPS and Club Penguin, plus I love a chicken strogonoff with rice and straw potato. I'm here to learn and (try) to teach. Waddle On!
  24. Stamps

    I'd imagine you'd not only have to create your own stamp file (e.g. like this), but you'd also have to create an entry for it in stamps.json (located in play/web_service/game_configs/stamps.json on your media server). Afterwards you'd have to create a trigger in the client that tells the server when to give the user the stamp. You can probably do this by creating a dependency. For example, if you'd like to give the user a stamp for joining a particular room, you'd create a dependency (in dependencies.json) that would listen for the joinRoom (jr) packet and then have it send the stamp packet if the user joined that room. You can read more about creating dependencies here. You'd probably want to edit Kitsune's crumbs as well - both the URL in World.php and the file in the crumbs folder if it exists.
  25. Hi, Solero.

    Welcome to the community, Andrey. :)
  26. SUP

    Hi there.
  27. Stamps

    Hello, How to add custom stamps on my Kitsune CPPS?
  1. Load more activity