Reload
Top Stats
Latest Blog Entries
1 New Game I'm workin... Camer the Dragon 2
2 Location of smoke a... SebastianPolak12 2
3 Could it be? Jeremiah 5
4 Brought back my old... .....|::|::::|... 1
5 DETOX 🧪 Different 2
6 i am also alive 1amayzingman 5
7 deleting my blog .....|::|::::|... 0
8 Squidward SebastianPolak12 4
9 PR2: Razor Blade (A... Jeremiah 0
10 I am also also not ... LCPD 4
Top Referrers
1 Stxtics 24
2 Ashley766 22
3 Stunt 18
4 a7x3 13
5 TRUC 7
6 ZXD 7
7 Camer the Dragon 5
8 tadtad 5
9 XeNo 5
10 Boy 8638 4
Latest Posts
Topic Date/Time  Last Sender Forum
Count to 500 before a mod posts â–¼ Mon, 21:53 Dan-83 Village Games
Last post wins! â–¼ Mon, 21:27 Stunt Village Games
Folding for people â–¼ Mon, 18:32 Stunt Folding at Home
Count to 600 before an admin po... â–¼ Mon, 16:19 Dan-83 Village Games
Jiggmin's first words on the JV... â–¼ Mon, 10:47 dotime Discussion Hall
PR2 Part Ideas Index â–¼ Sun, 17:31 Camer the Dragon PR2 Suggestions
Let's get this thread to a mill... â–¼ Sun, 16:52 ~JBG~ Village Games
Level of the Week! (PR2) â–¼ Sun, 1:09 Overbeing Platform Racing 2
Word of the Week #4 â–¼ Sat, 14:10 SebastianPolak12 Discussion Hall
CotM Round 65 â–¼ Fri, 16:26 Stunt Platform Racing 2
VOTING: CotM Round 64 â–¼ Fri, 16:13 Eternal Platform Racing 2
The Dash â–¼ Fri, 15:19 Camer the Dragon PR2 Suggestions
🚩GEN Z WORKERS 🚩 ▼ Thu, 12:30 Camer the Dragon Discussion Hall
JV Historical Reference Guide â–¼ Thu, 12:28 Camer the Dragon Library of the Sages
Pr2- A1 Ranks+ Prediction â–¼ Tue, 6:45 Mia Platform Racing 2
Rank 50+ List â–¼ Tue, 6:42 Mia Platform Racing 2
Platform Racing 4 (Screenshots) â–¼ Mon, 18:18 ~JBG~ Video Games
Would you buy PR2 & JV merch? â–¼ Mon, 18:14 Mia Discussion Hall
JV and Games Community Feedback â–¼ Sun, 20:01 Camer the Dragon Discussion Hall
Word of the Week #3 â–¼ Sat, 16:02 SebastianPolak12 Discussion Hall
CotM Round 64 â–¼ Sat, 7:34 Eternal Platform Racing 2

Welcome, Guest
You have to register before you can post on our site.

Username
  

Password
  





Search Forums

(Advanced Search)

Forum Statistics
» Members: 1,780
» Latest member: Alexc99xd
» Forum threads: 4,055
» Forum posts: 83,622

Full Statistics

Online Users
There are currently 532 online users.
» 2 Member(s) | 527 Guest(s)
Bing, Google, Yandex, EpicMidget, Jeremiah

Latest Threads
Count to 500 before a mod...
Forum: Village Games
Last Post: Dan-83
2 hours ago
» Replies: 5,544
» Views: 1,895,216
Last post wins!
Forum: Village Games
Last Post: Stunt
3 hours ago
» Replies: 1,882
» Views: 808,632
Folding for people
Forum: Folding at Home
Last Post: Stunt
6 hours ago
» Replies: 28
» Views: 2,154
Count to 600 before an ad...
Forum: Village Games
Last Post: Dan-83
8 hours ago
» Replies: 2,393
» Views: 802,149
Jiggmin's first words on ...
Forum: Discussion Hall
Last Post: dotime
Yesterday, 10:47 AM
» Replies: 4
» Views: 215
New Game I'm working on P...
Forum: Blogs
Last Post: Camer the Dragon
Yesterday, 8:18 AM
» Replies: 2
» Views: 81
PR2 Part Ideas Index
Forum: PR2 Suggestions
Last Post: Camer the Dragon
5th May 2024, 5:31 PM
» Replies: 11
» Views: 8,468
Let's get this thread to ...
Forum: Village Games
Last Post: ~JBG~
5th May 2024, 4:52 PM
» Replies: 16,280
» Views: 2,685,745
Level of the Week! (PR2)
Forum: Platform Racing 2
Last Post: Overbeing
5th May 2024, 1:09 AM
» Replies: 436
» Views: 141,617
Location of smoke apparat...
Forum: Blogs
Last Post: Adulock77
4th May 2024, 4:34 PM
» Replies: 2
» Views: 109

 
  Buttons Overlapping Text (Buddy List)
Posted by: Rank - 18th December 2018, 11:50 PM - Forum: Bugs and Suggestions - Replies (7)

These buttons overlap some text on profiles with more than 5 pages of friends

[Image: 2dbjcrp.jpg]

Print this item

  The History of the First Amendment
Posted by: Bluelightning - 15th December 2018, 9:20 PM - Forum: Discussion Hall - Replies (1)

Learn about the first amendment with this video I made

Print this item

  hey its drager
Posted by: drager980 - 14th December 2018, 11:19 PM - Forum: Welcoming Gates - Replies (5)

hey i used to go by drager, drager980 and we love ninga
i havent been here in a long time but i was active a lot during most the span of pr2 and pr3

i just graduated high school recently and i remember not even being in HS back when i was on here ahah
would love to catch up with anyone from back then but for everyone nice to meet you :d

Print this item

Smile bohemian noob
Posted by: Bomb888 - 13th December 2018, 4:40 PM - Forum: Welcoming Gates - Replies (7)

im bomb888! i first played platform racing 2 in 2010 on another account, but recently i returned and have been making some weird and low quality troll levels. i also want to win some cool contests, someday. but i need practice. regardless of that junks; Hi!!!!

Print this item

  Delete it!
Posted by: AspectZero - 12th December 2018, 2:36 PM - Forum: Village Games - Replies (5)

A game where you post a reply and delete it before any one can quote you, if you get quoted, you lose!

Print this item

  Ninja Hat
Posted by: bls1999 - 11th December 2018, 10:34 PM - Forum: PR2 Suggestions - No Replies

A user on PR2 sent me this hat idea since they don't use JV2.

panda2878 Wrote:idea with this new hat your sword swings will be in slow motion and linger in the spot you used it show as a blue wave and a flying sword it will hit anyone who touches it until the animation goes away and your bullets and ice wave will also go in slow motion too

Print this item

  Therapist
Posted by: Bluelightning - 10th December 2018, 1:47 PM - Forum: Village Games - Replies (1)

A Therapist turns to a therapist therapist for therapist therapy. Tired of all the therapist therapy, the therapist therapist turns to a therapist therapist therapist who is at the therapist therapist therapist therapist discussing therapist therapist therapist therapy to a therapist therapist therapist therapist therapist therapist. He goes to the therapist therapist therapist therapist therapist therapist but he won't get  therapist  therapist  therapist  therapist  therapist  therapy if the therapist therapist therapist therapist therapist therapist there is pissed.

Print this item

  Snowy JV
Posted by: bls1999 - 9th December 2018, 8:44 PM - Forum: Announcements - Replies (4)

In honor of it being winter in most of the world (looking at you, @Nemo Nation), I've changed the normal bubbles to something a little more appropriate. Stay warm!

Print this item

  Which Youtube Rewind Was Your Favorite?
Posted by: Eat Me! - 9th December 2018, 4:22 PM - Forum: Discussion Hall - Replies (5)

Feel free to discuss and also rank them in order from Best to Worst below.

Print this item

  PHP Find/Replace Script
Posted by: bls1999 - 8th December 2018, 5:22 AM - Forum: Coding and Development - Replies (2)

When sifting through old code trying to find different names of things, I've found it extremely useful and time-saving to run a PHP script from the command line that searches through all the files in a directory on my computer for a search term. On this particular project, I have it set to sift through ActionScript files only, but you can set it to anything. Here it is, if anyone's interested:

PHP Code:
<?php

$base_path 
__DIR__ "/fla";

if (!isset(
$argv[2])) {
    
$argv[2] = false;
}

$files getDirContents($base_path);
search_files($files);
die();

function 
getDirContents($dir, &$results = array()){
    
$files scandir($dir);

    foreach(
$files as $key => $value){
        
$path realpath($dir.DIRECTORY_SEPARATOR.$value);
        if(!
is_dir($path)) {
            
$results[] = $path;
        } else if(
$value != "." && $value != "..") {
            
getDirContents($path$results);
            
$results[] = $path;
        }
    }

    return 
$results;
}

function 
search_files($files)
{
    global 
$argv;

    
$continue false;
    
$filesChanged 0;
    foreach (
$files as $file) {
        
$file_path $file;
        if (
substr($file, -33) == ".as") {
            
$find $argv[1];
            
$strict $argv[2] == 'true' true false;
            
$file file_get_contents($file_path);
            if (
$strict === false && strpos($file$find) !== false && !isset($argv[3])) {
                echo 
"$file_path\n";
            } elseif (
$strict === true && preg_match("/\b$find\b/"$file) && !isset($argv[3])) {
                echo 
"$file_path\n";
            } elseif (isset(
$argv[3])) {
                if (
$continue === false) {
                    echo 
"\nReplace \"$find\" with \"$argv[3]\"?\nWARNING: THIS CANNOT BE UNDONE.\n\nContinue? (yes/no): ";
                    
$reply trim(strtolower(fgets(fopen("php://stdin","r"))));
                    if (
$reply == 'true' || $reply == 't' || $reply == 'yes' || $reply == 'y') {
                        
$continue true;
                        echo 
"\n";
                    } else {
                        break;
                    }
                }
                if (
$strict === false && strpos($file$find) !== false) {
                    
file_put_contents($file_pathstr_replace($find$argv[3], $file));
                    echo 
"$file_path\n";
                    
$filesChanged++;
                } elseif (
$strict === true && preg_match("/\b$find\b/"$file)) {
                    
file_put_contents($file_pathpreg_replace("/\b$find\b/"$argv[3], $file));
                    echo 
"$file_path\n";
                    
$filesChanged++;
                } else {
                    continue;
                }
            }
        }
    }
    
$continue false;
    if (
$filesChanged 0) {
        echo 
"\nTotal files changed: $filesChanged\n\n";
    } else {
        if (!isset(
$argv[3])) {
            echo 
"\n";
        } else {
            echo 
"\nNo files to be changed.\n\n";
        }
    }


The arguments are:
[0] = File
[1] = Find
[2] = Strict? (yes/true uses preg_match to match exact words, no/false uses strpos for a character match)
[3] = Replace

A sample run on the command line for me would be:

Code:
php /Users/ben/Projects/SuperSecretThings/search.php "Example" true

That would give me a strict, case-sensitive result for the complete word "Example" as opposed to also getting a result for "ExampleData".

Anyway, yep. I hope y'all learned something and/or have a use for the code in your own projects.

Print this item