| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,240
» Latest member: u888mlcom
» Forum threads: 4,473
» Forum posts: 109,781
Full Statistics
|
| Online Users |
There are currently 749 online users. » 11 Member(s) | 734 Guest(s) Applebot, Bing, Google, Yandex, Addy, Mia, okbob3, Sushie, TheBreeze
|
| Latest Threads |
PANDORA’S BOX 2: CIVIL WA...
Forum: Survivor
Last Post: Resarekt
4 minutes ago
» Replies: 10
» Views: 195
|
Let's get this thread to ...
Forum: Village Games
Last Post: Silky Silver
11 minutes ago
» Replies: 34,006
» Views: 11,920,663
|
2026 FIFA World Cup
Forum: Game Day
Last Post: Resarekt
1 hour ago
» Replies: 3
» Views: 30
|
Survivor: Jiggmin’s Reviv...
Forum: Survivor
Last Post: Resarekt
2 hours ago
» Replies: 1,312
» Views: 103,219
|
Recommend good movies
Forum: Discussion Hall
Last Post: Mia
3 hours ago
» Replies: 22
» Views: 24,195
|
What are you listening to...
Forum: Multimedia Masterpieces
Last Post: Sunlight1232
7 hours ago
» Replies: 377
» Views: 464,241
|
What situation has got yo...
Forum: Discussion Hall
Last Post: Sunlight1232
11 hours ago
» Replies: 13
» Views: 7,035
|
Thread has a "stuck post"
Forum: Bugs and Suggestions
Last Post: Mia
Today, 9:43 AM
» Replies: 12
» Views: 109
|
METAL MEGATHREAD
Forum: Multimedia Masterpieces
Last Post: JEEJAYEM
Yesterday, 12:27 AM
» Replies: 61
» Views: 45,116
|
Last post wins!
Forum: Village Games
Last Post: LCPD
9th June 2026, 4:41 PM
» Replies: 2,612
» Views: 2,415,370
|
|
|
| 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
|
|
|
| Delete it! |
|
Posted by: ExceedZero - 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!
|
|
|
| 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
|
|
|
| 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.
|
|
|
| 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!
|
|
|
| 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, -3, 3) == ".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_path, str_replace($find, $argv[3], $file)); echo "$file_path\n"; $filesChanged++; } elseif ($strict === true && preg_match("/\b$find\b/", $file)) { file_put_contents($file_path, preg_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.
|
|
|
| PR2 Client Bug Reporting Thread |
|
Posted by: bls1999 - 6th December 2018, 5:34 AM - Forum: Bugs and Suggestions
- Replies (28)
|
 |
Have you been plagued by a client bug since the dawn of time? Well, now's your chance to get it fixed!
Use this thread to post about miscellaneous PR2 client bugs. While I'm rehabilitating the code, I'll try to patch as many as I can.
I've already patched quite a few, including:
- Kong badges
- Prize popup flavor text
- Chat scrollbar/arrows being wonky
- Game music resetting if you close the menu without choosing a new song
- Art being cleared when loading a level with draw BGs off
- Sir feet outline in truly invisible/bubble feet
- "Phantom" levels appearing below the clickable area and messing with the placement of the play/cancel menu you get when entering a slot
Looking forward to squashing some years-old bugs!
|
|
|
|