| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,365
» Latest member: gg88llccc
» Forum threads: 4,480
» Forum posts: 114,304
Full Statistics
|
| Latest Threads |
Let's get this thread to ...
Forum: Village Games
Last Post: Silky Silver
4 minutes ago
» Replies: 37,869
» Views: 12,226,460
|
Challenge 10: Race to the...
Forum: Survivor
Last Post: JEEJAYEM
15 minutes ago
» Replies: 2
» Views: 99
|
I married my pr2 boyfrien...
Forum: Blogs
Last Post: Adulock77
2 hours ago
» Replies: 23
» Views: 2,013
|
Survivor: Jiggmin’s Reviv...
Forum: Survivor
Last Post: Resarekt
2 hours ago
» Replies: 1,334
» Views: 113,235
|
2026 FIFA World Cup
Forum: Game Day
Last Post: Camer the Dragon
5 hours ago
» Replies: 65
» Views: 1,905
|
What are you listening to...
Forum: Multimedia Masterpieces
Last Post: Silky Silver
Yesterday, 10:01 PM
» Replies: 387
» Views: 470,145
|
Thread has a "stuck post"
Forum: Bugs and Suggestions
Last Post: Mia
Yesterday, 7:11 PM
» Replies: 15
» Views: 626
|
[Finished] PR2 Live Strea...
Forum: Announcements
Last Post: Resarekt
Yesterday, 6:41 AM
» Replies: 4
» Views: 211
|
Lets get everyone to 100m...
Forum: Folding at Home
Last Post: Addy
Yesterday, 1:19 AM
» Replies: 6
» Views: 946
|
Challenge 9: Pass the Coc...
Forum: Survivor
Last Post: Sushie
19th June 2026, 4:15 PM
» Replies: 527
» Views: 22,381
|
|
|
| The Glitch Archive |
|
Posted by: ExceedZero - 7th August 2020, 3:55 PM - Forum: Platform Racing 2
- Replies (8)
|
 |
Post glitches here! Whether or not they are well known glitches, or advanced glitches!
There will be some rules here, please post an image of the glitch, state whether or not the glitch requires specific stats, and also give an explanation of how to do the glitch. If you can include a video, this would also be helpful. The explanation is still going to be needed, as some times players will not be able to puzzle out keypresses.
This will give all players access to PR2 glitch knowledge, and hopefully allow some players to improve.
It's also good for you to try and figure out how core glitches work, so you can make sort of 'predictions' about how new glitches might work as well!
|
|
|
| It's time |
|
Posted by: a7x3 - 7th August 2020, 1:02 PM - Forum: Blogs
- Replies (8)
|
 |
So the past few weeks have been an absolute shit show for me, work has run me into the ground, my music is taking up the rest of my free time and when I come on here I just don't have the motivation to go on anymore. I've had the time to think about what I wanted to do and having the extra pressure of staff is something I'm ready to finally let go of. I won't be gone forever, just modding is something I'm taking a step back from and coming on less. There's not much else I can say tbh other than Karlene4mod
Peace
|
|
|
| Random questions |
|
Posted by: Campaigns | Ilraon - 7th August 2020, 2:15 AM - Forum: Blogs
- Replies (6)
|
 |
What would happen if companies weren't allowed to grow past a certain size?
I'm always confused that big companies own tons of different brands, to the point you don't realize it's the same single company behind them anyway (eg in supermarkets). I find it deceiving.
On a much less radical scale, what if companies had to put their "master" logo on the face-side of every product they sell instead of the logo of the specific brand (eg Nestlé instead of Milka or Brown-Forman corporation instead of Jack Daniel's)?
|
|
|
| Beating janky hosting restrictions |
|
Posted by: bls1999 - 4th August 2020, 9:53 PM - Forum: Coding and Development
- Replies (2)
|
 |
I think the programmers among us may find this a bit funny.
I'm working on Volly Bounce for the first time since I moved JV over to the VPS from the old hosting provider. The way the environment was set up before I moved, users would send a login request from the VB client to a login.php file on the old server, which would send the login information to the socket server. (Sound familiar? That's because this process is ripped directly from PR2's code.)
The way the login.php script on PR2 connects to the socket server is it sends a request directly to the socket server via that server's address and port. Just one problem with that: the old hosting provider I was using prohibited any connections that weren't made via a list of approved ports. And, you guessed it, the port I was using happened not to be a port allowed to be used. Of course!
So, my options as I saw them were pretty much to either move JV (ended up doing this anyway) or upgrade the hosting plan (would've cost hundreds of dollars). I knew there had to be a way around this highway robbery. If I could move the process that made the actual connection to the socket server to the VPS itself, I could bypass my hosting provider's restrictions (as long as I made the connection to the VPS using an approved port).
One idea I had was to forward the port from 80 (HTTP) to whatever port on which the socket server would end up running. But... lol. That failed miserably, as could be predicted.
Eventually, I figured it out. I just made a passthrough PHP file that handled the input from the login.php script on JV and sent it as a regular web request to the VPS. Once the request got to the VPS, it was as easy as using the same talk_to_server function that PR2 uses.
Attached, please find the janky code I used to make this possible:
PHP Code: // send this info to the socket server $send = new stdClass(); $send->login_id = $login_id; $send->ip_address = $ip; $send->user = $user; $send->guest = $is_guest; $send->ignored = $ignored;
$str = "process_register_login`" . json_encode($send);
// communicate with the VPS $data = array('port' => $VB_PORT, 'message' => $str); $options = array( 'http' => array( 'header' => "Content-type: application/x-www-form-urlencoded\r\n", 'method' => 'POST', 'content' => http_build_query($data) ) ); $context = stream_context_create($options); $result = file_get_contents('http://' . $VPS_IP . '/to-socket.php', false, $context);
// get response from VPS if ($result === false || @json_decode($result)->success === false) { $msg = !empty(json_decode($result)->error) ? json_decode($result)->error : $result; throw new Exception($msg); }
PHP Code: <?php
header("Content-type: text/plain");
require_once CONFIG; require_once SOCKET_MGMT_FNS;
$from_ip = $_SERVER['REMOTE_ADDR']; $message = @$_POST['message']; $port = (int) @$_POST['port'];
$ret = new stdClass(); $ret->success = false;
try { if ($from_ip !== $PROCESS_IP) { throw new Exception("Not privileged. $from_ip"); } elseif ($_SERVER['REQUEST_METHOD'] !== "POST") { throw new Exception("Invalid request method."); }
if (empty($_POST['message'])) { die(var_dump($_POST)); throw new Exception("No message specified."); }
// send the message to the server $from_server = talk_to_server($_SERVER['SERVER_ADDR'], $port, $message, true, true); if ($from_server === false) { throw new Exception('Could not connect to the server. If this persists, contact bls1999.'); }
$ret->success = true; } catch (Exception $e) { error_log('to_socket.php: ' . $e->getMessage() . " $from_ip"); $ret->error = $e->getMessage(); } finally { die(json_encode($ret)); }
I'm glad not to have needed this, but I figured deleting it would just be a waste. So, here it is in all its janky glory!
|
|
|
| Nostalgia |
|
Posted by: PinkAxie - 4th August 2020, 7:58 AM - Forum: Blogs
- Replies (8)
|
 |
Hey JV,
Now I doubt any of you will remember me, as I was more of a shy and socially awkward lurker than anything, but I really just wanted to come here to say thank you. I spent most of my childhood here and I felt like I was part of tight, friendly little family. And this was important for someone like me as it gave me a sense of belonging to a community. I can't remember how long I've been here, think I joined around 2011/12? With my first PR2 account being made sometime in 2008/9.
I have lots of little memories that I will cherish forever; the feeling when the jumpstart hat would appear and my heart would start beating out of my chest, playing Volley Bounce on that one occasion with the entire forum, rushing home from school just to hop on the computer and play the same trapwork level by Devious Shadows over and over again til nightfall. I could write about this place forever, but the nostalgia is just getting too real for me. If I could go back in time, even just for a day, I would go back in heartbeat.
Whether I knew you or not, I just wanted to say thank you, not just to the community, but to the mods/admins - both past and current - and most importantly Jiggmin. I still come here every blue moon to see what's happening, and I will continue to do so, but I just wanted to share my feelings and just how much this place means to me.
And if anyone of my old pals still roam here, just know that I will never forget you.
Thanks for everything,
- Cara700/PinkAxie/Eevee700 (how many usernames have I used, honestly I've lost count)
|
|
|
| Private Servers |
|
Posted by: bls1999 - 4th August 2020, 12:57 AM - Forum: Announcements
- Replies (2)
|
 |
I just made some programmatical changes to how PR2 handles adding new, updating the expiration time of existing, and expiring old private servers. It should hopefully all work a whole lot better than before. Feel free to snoop around in the changes if you're so inclined.
Side note: this was pull request/issue #666. That makes me think something will go wrong. Oh well.
|
|
|
| Weekly Composing Challenge #4 |
|
Posted by: TRUC - 3rd August 2020, 5:08 PM - Forum: Multimedia Masterpieces
- No Replies
|
 |
WCC #4:
- Key is E flat of some sort ? (major, minor, neutral microtonal extravangaza, it's up to you and you'll see why)
- Between 16 and 32 bars/measure
- You can only use 6 DIFFERENT notes, inlcuding E flat
Basically, within an octave, you'll only be able to choose from 6 notes total throughout the entire piece. This also applies to pitched percussion. Unpitched percussion are unaffected by this.
For example, I could go with Eb, F, G, Ab, Bb, and C. The point of this week is to experiment stuff with only half the usual playing field.
Have fun !
If you want more details on how this works, here's a reference ^^
|
|
|
|