The Off-Topic Thread
Quote from quaternary on December 26, 2014, 1:36 pmMerry Chr?stmas
Merry Chr?stmas
Quote from Another Bad Pun on January 1, 2015, 1:00 amHappy new year!
(Hitting 500 posts is pretty fitting for 2015. Totally planned that)
Happy new year!
(Hitting 500 posts is pretty fitting for 2015. Totally planned that)
Quote from Lpfreaky90 on January 1, 2015, 3:49 amHappy New year everyone!
Happy New year everyone!
Quote from opticalprocessor on January 9, 2015, 10:09 pmFound a python (2.7) script I wrote a while ago when I was getting used to using OSX.
It's a replication of the old ApertureScience14.swf that Valve had on the aperturescience.com website, the IP command and the INTERROGATE command functionality hasn't been finished.
No viruses, I promise. You can look at the source code yourself.
EDIT:
Quickly added a typing-like effect to make it more akin to the original.
Replace code with this.
- Code: Select all
# Imports libraries
import time
import sys
from random import random
import os
# Typing printdef print_slow(str):
for letter in str:
time.sleep(0.01)
sys.stdout.write(letter)
sys.stdout.flush()def mainprompt():
# Prints out welcome banner and version
print_slow ("GLaDOS v3.11 (c) 1997 Aperture Science, Inc. n")
time.sleep(1.5)
# Main prompt
while True:
prompt = raw_input("B:> ").upper()
# Commands start here
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Help command
if (prompt == 'HELP') or (prompt == 'LIB'):
time.sleep(1)
print_slow ("APPENDn")
print_slow ("ATTRIBn")
print_slow ("COPYn")
print_slow ("DIRn")
print_slow ("ERASEn")
print_slow ("FORMATn")
print_slow ("INTERROGATEn")
print_slow ("LIBn")
print_slow ("RENAMEn")
print_slow ("TAPEDISKn")
print_slow ("IPn")
# Tapedisk command
elif prompt == 'TAPEDISK':
time.sleep(0.5)
print_slow ("ERROR 13 [User not authorized to transfer system tapes]n")
# WIP!! IP command
elif prompt == 'IP':
time.sleep(0.5)
print "RANDOM IP PLACEHOLDER"
# Append, attrib, copy, erase, format and rename commands output
elif (prompt == 'APPEND') or (prompt == 'ATTRIB') or (prompt == 'COPY') or (prompt == 'ERASE') or (prompt == 'FORMAT') or (prompt == 'RENAME'):
time.sleep(0.5)
print_slow ("ERROR 17 [Disk is read-only]n")
# Exit command (quit recognised as well)
elif (prompt == 'EXIT') or (prompt == 'QUIT'):
print_slow ("Shutting down...n")
time.sleep(2.5)
sys.exit()
# Directory listing command
elif prompt == 'DIR':
time.sleep(0.5)
print_slow ("nDISK VOLUME 255 [WORKSTATION NEWEMPLOYEE]n")
time.sleep(1)
print_slow (" I 019 APPLY.EXEn")
time.sleep(0.25)
print_slow (" I 004 NOTES.EXEn")
time.sleep(0.25)
print_slow (" I 029 DTBASE.EXEn")
time.sleep(1)
print "3 FILE(S) IN 35 BLOCKSn"
# Clear command (cls works as well)
elif (prompt == 'CLEAR') or (prompt == 'CLS'):
time.sleep(0.5)
os.system('cls' if os.name == 'nt' else 'clear')
time.sleep(1)
# Notes command (notes.exe works as well)
elif (prompt == 'NOTES') or (prompt == 'NOTES.EXE'):
time.sleep(2)
print_slow ("ERROR 14 [File is corrupted]n")
# Apply command (apply.exe works as well)
elif (prompt == 'APPLY') or (prompt == 'APPLY.EXE'):
time.sleep(2)
print_slow ("ERROR 14 [File is corrupted]n")
# Template command tutorial!
# First, we ask the prompt if it has 'TEMPLATE' in it
elif prompt == 'TEMPLATE':
# If it does, start executing these commands
print "Template command!!" # This will print to the screen, "Template command!!
time.sleep(1) # This tells the screen to wait / delay for 1 second
# If command does not exist, show this
else:
time.sleep(1)
print_slow ("ERROR 15 [File not found]n")# IP generation code
randomip = random() # Randomly generates a number
# Login code
def login():
time.sleep(1)
user = raw_input("LOGIN: ")
if user == 'glados':
time.sleep(1)
password = raw_input("PASSWORD: ")
if (password == 'portal') or (password == 'portals') or (password == 'glados'):
time.sleep(1)
mainprompt()
else:
time.sleep(1)
print_slow ("nWRONG PASSWORD!")
else:
time.sleep(1)
print_slow ("nWRONG USERNAME!")
# End of login codelogin()
Found a python (2.7) script I wrote a while ago when I was getting used to using OSX.
It's a replication of the old ApertureScience14.swf that Valve had on the aperturescience.com website, the IP command and the INTERROGATE command functionality hasn't been finished.
No viruses, I promise. You can look at the source code yourself.
EDIT:
Quickly added a typing-like effect to make it more akin to the original.
Replace code with this.
- Code: Select all
# Imports libraries
import time
import sys
from random import random
import os
# Typing printdef print_slow(str):
for letter in str:
time.sleep(0.01)
sys.stdout.write(letter)
sys.stdout.flush()def mainprompt():
# Prints out welcome banner and version
print_slow ("GLaDOS v3.11 (c) 1997 Aperture Science, Inc. n")
time.sleep(1.5)
# Main prompt
while True:
prompt = raw_input("B:> ").upper()
# Commands start here
# - - - - - - - - - - - - - - - - - - - - - - - - - - - - - -
# Help command
if (prompt == 'HELP') or (prompt == 'LIB'):
time.sleep(1)
print_slow ("APPENDn")
print_slow ("ATTRIBn")
print_slow ("COPYn")
print_slow ("DIRn")
print_slow ("ERASEn")
print_slow ("FORMATn")
print_slow ("INTERROGATEn")
print_slow ("LIBn")
print_slow ("RENAMEn")
print_slow ("TAPEDISKn")
print_slow ("IPn")
# Tapedisk command
elif prompt == 'TAPEDISK':
time.sleep(0.5)
print_slow ("ERROR 13 [User not authorized to transfer system tapes]n")
# WIP!! IP command
elif prompt == 'IP':
time.sleep(0.5)
print "RANDOM IP PLACEHOLDER"
# Append, attrib, copy, erase, format and rename commands output
elif (prompt == 'APPEND') or (prompt == 'ATTRIB') or (prompt == 'COPY') or (prompt == 'ERASE') or (prompt == 'FORMAT') or (prompt == 'RENAME'):
time.sleep(0.5)
print_slow ("ERROR 17 [Disk is read-only]n")
# Exit command (quit recognised as well)
elif (prompt == 'EXIT') or (prompt == 'QUIT'):
print_slow ("Shutting down...n")
time.sleep(2.5)
sys.exit()
# Directory listing command
elif prompt == 'DIR':
time.sleep(0.5)
print_slow ("nDISK VOLUME 255 [WORKSTATION NEWEMPLOYEE]n")
time.sleep(1)
print_slow (" I 019 APPLY.EXEn")
time.sleep(0.25)
print_slow (" I 004 NOTES.EXEn")
time.sleep(0.25)
print_slow (" I 029 DTBASE.EXEn")
time.sleep(1)
print "3 FILE(S) IN 35 BLOCKSn"
# Clear command (cls works as well)
elif (prompt == 'CLEAR') or (prompt == 'CLS'):
time.sleep(0.5)
os.system('cls' if os.name == 'nt' else 'clear')
time.sleep(1)
# Notes command (notes.exe works as well)
elif (prompt == 'NOTES') or (prompt == 'NOTES.EXE'):
time.sleep(2)
print_slow ("ERROR 14 [File is corrupted]n")
# Apply command (apply.exe works as well)
elif (prompt == 'APPLY') or (prompt == 'APPLY.EXE'):
time.sleep(2)
print_slow ("ERROR 14 [File is corrupted]n")
# Template command tutorial!
# First, we ask the prompt if it has 'TEMPLATE' in it
elif prompt == 'TEMPLATE':
# If it does, start executing these commands
print "Template command!!" # This will print to the screen, "Template command!!
time.sleep(1) # This tells the screen to wait / delay for 1 second
# If command does not exist, show this
else:
time.sleep(1)
print_slow ("ERROR 15 [File not found]n")# IP generation code
randomip = random() # Randomly generates a number
# Login code
def login():
time.sleep(1)
user = raw_input("LOGIN: ")
if user == 'glados':
time.sleep(1)
password = raw_input("PASSWORD: ")
if (password == 'portal') or (password == 'portals') or (password == 'glados'):
time.sleep(1)
mainprompt()
else:
time.sleep(1)
print_slow ("nWRONG PASSWORD!")
else:
time.sleep(1)
print_slow ("nWRONG USERNAME!")
# End of login codelogin()
please
Quote from quaternary on January 15, 2015, 5:31 pmIf you missed this map floating around on the workshop, give it a try now, it's a really good concept (but without portals... you'll see)
If you missed this map floating around on the workshop, give it a try now, it's a really good concept (but without portals... you'll see)
Quote from Arachnaphob on January 15, 2015, 11:02 pmOh yea, my good friend made that. Very fun.
Oh yea, my good friend made that. Very fun.
Musical website Moddb
Quote from Another Bad Pun on January 31, 2015, 9:39 pmMaybe someone will get a laugh out of this (hopefully!)
3vFpr_v-HGM
Maybe someone will get a laugh out of this (hopefully!)
3vFpr_v-HGM