| Welcome, Guest |
You have to register before you can post on our site.
|
| Forum Statistics |
» Members: 4,468
» Latest member: qs88gg
» Forum threads: 4,486
» Forum posts: 119,208
Full Statistics
|
| Online Users |
There are currently 671 online users. » 0 Member(s) | 667 Guest(s) Applebot, Bing, Google, Yandex
|
| Latest Threads |
Let's get this thread to ...
Forum: Village Games
Last Post: Resarekt
36 minutes ago
» Replies: 41,880
» Views: 12,529,379
|
PR2 Style Designer
Forum: Platform Racing 2
Last Post: Magyar
5 hours ago
» Replies: 14
» Views: 25,699
|
2026 FIFA World Cup
Forum: Game Day
Last Post: Addy
9 hours ago
» Replies: 96
» Views: 3,757
|
METAL MEGATHREAD
Forum: Multimedia Masterpieces
Last Post: JEEJAYEM
11 hours ago
» Replies: 66
» Views: 46,740
|
Challenge 11: 3in1
Forum: Survivor
Last Post: Sushie
11 hours ago
» Replies: 825
» Views: 10,916
|
What are you listening to...
Forum: Multimedia Masterpieces
Last Post: Mia
Yesterday, 12:41 PM
» Replies: 395
» Views: 473,760
|
Thread has a "stuck post"
Forum: Bugs and Suggestions
Last Post: Mia
30th June 2026, 10:43 PM
» Replies: 18
» Views: 913
|
Says I'm logged in when I...
Forum: Bugs and Suggestions
Last Post: This Games
30th June 2026, 3:39 PM
» Replies: 0
» Views: 49
|
Survivor: Jiggmin’s Reviv...
Forum: Survivor
Last Post: Sushie
30th June 2026, 2:09 AM
» Replies: 1,348
» Views: 119,925
|
How do you pronounce SQL?
Forum: Coding and Development
Last Post: Camer the Dragon
27th June 2026, 12:42 AM
» Replies: 7
» Views: 264
|
|
|
| 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!
|
|
|
|