Re: The Ctrl+V Game
Posted: Sun Dec 14, 2014 6:02 am
Code: Select all
import os, time, glob, pickle
while chosen==0:
print("1. New file")
print("2. Open existing file")
neworopen=input()
if neworopen=="1":#new file name
print("Enter name of new file")
chosenname=input()
chosenname=chosenname+".txt"
print(chosenname)
var=glob.glob("*.txt")
if any(x in chosenname for x in var):#checks every value in the list 'scripts'
print("Name taken.")#if there is a match, it loops.
else:#otherwise it creates a file with that new name.
print("File created with the name '"+ chosenname+"'.")
print("")
filename=chosenname
chosen=1
elif neworopen=="2":#open prev file
print("Enter the name of the file to open")
print(glob.glob("*.txt"))#lists all txt files in directory of script
var=glob.glob("*.txt")
chosenname=input()
chosenname=chosenname+".txt"
if any(x in chosenname for x in var):#checks every value in the list 'scripts'
print("You have selected the file with the name '"+ chosenname+"'.")
print("")
filename=chosenname
chosen=1
else:
print("No such file with that name exists.")
print("Select '1' to create a new file.")
print("")
Code: Select all
LAR
Summary
LAR stands for Lua ARchive, and consist of a module and a file format that empowers a lua script to load lua modules from within a packaged, compressed file.
It is, in short, a virtual file system for Lua using ZIP compression.
LAR is, in several ways, similar to JAR, except it can be used without specialized tool suport.
Code: Select all
[quote="abnormalgamer"]
Code: Select all
{
type = "item-subgroup",
name = "barrel",
group = "intermediate-products",
order = "d"
},
For a video game xDCause you could make a bishop
Code: Select all
Phillip Lynx bekommt: Wolfszahnkette
Code: Select all
1.68/(10^8)
Code: Select all
//errorhandeler
if (choice == 'y') {
} else if (choice == 'n') {
System.exit(0);
} else {
printconsole("invalid answer; defaulting to ''yes'' (y)");
}
}
catch(Exception e){
}