The Ctrl+V Game
- Darthlawsuit
- Fast Inserter
- Posts: 247
- Joined: Thu Feb 28, 2013 7:32 pm
- Contact:
Re: The Ctrl+V Game
Just some random code from my Python Program.
Explanation:
I originally designed this for an idea i had for an LED ordered/recorded script - so you enter which LEDs you want on at what point (per 0.5 seconds) and then it records it in a text file.
Basically, in the folder that the script is in, it creates the .txt file that it records to. And the glob library does that nicely.
This also avoids the user picking a name that already exists
I was copying this into a new program, because i simply loved my concept, and wanted to use it for another project i am working on.
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("")
I originally designed this for an idea i had for an LED ordered/recorded script - so you enter which LEDs you want on at what point (per 0.5 seconds) and then it records it in a text file.
Basically, in the folder that the script is in, it creates the .txt file that it records to. And the glob library does that nicely.
This also avoids the user picking a name that already exists
I was copying this into a new program, because i simply loved my concept, and wanted to use it for another project i am working on.
Re: The Ctrl+V Game
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.
Looking around for a way to read contents of packed modules without unpacking for https://github.com/alexaulbach/FactorioLoaderLib
Cool suggestion: Eatable MOUSE-pointers.
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Have you used the Advanced Search today?
Need help, question? FAQ - Wiki - Forum help
I still like small signatures...
Re: The Ctrl+V Game
The rocket launcher is not underpowered. It is useless.
Re: The Ctrl+V Game
circumstances
(I did need the english word for the german "Umstände", and Google translate did give me this.)
@NotMe: Well, it is nice that someone copied my text, was a real suprise to read it here.
(I did need the english word for the german "Umstände", and Google translate did give me this.)
@NotMe: Well, it is nice that someone copied my text, was a real suprise to read it here.
Greetings, Nova.
Factorio is one of the greatest games I ever played, with one of the best developers I ever heard of.
Factorio is one of the greatest games I ever played, with one of the best developers I ever heard of.
- Phillip_Lynx
- Filter Inserter
- Posts: 541
- Joined: Mon Jul 21, 2014 6:00 pm
- Contact:
Re: The Ctrl+V Game
Code: Select all
[quote="abnormalgamer"]
Re: The Ctrl+V Game
Code: Select all
{
type = "item-subgroup",
name = "barrel",
group = "intermediate-products",
order = "d"
},
Re: The Ctrl+V Game
For a video game xDCause you could make a bishop
- Phillip_Lynx
- Filter Inserter
- Posts: 541
- Joined: Mon Jul 21, 2014 6:00 pm
- Contact:
Re: The Ctrl+V Game
Code: Select all
Phillip Lynx bekommt: Wolfszahnkette
Re: The Ctrl+V Game
(empty)
dang, i should start working
dang, i should start working
Re: The Ctrl+V Game
Code: Select all
1.68/(10^8)
Ignore this
- Phillip_Lynx
- Filter Inserter
- Posts: 541
- Joined: Mon Jul 21, 2014 6:00 pm
- Contact:
Re: The Ctrl+V Game
train conductor
Wasn't sure about a translation for my signatur. In fact, this confirms it (the signatur) ^^
Wasn't sure about a translation for my signatur. In fact, this confirms it (the signatur) ^^
Maybe my english isn's good, but compared to our train conductors my english is high level (Sänk ju for träwelink wiss deutsche Bahn!)
- Darthlawsuit
- Fast Inserter
- Posts: 247
- Joined: Thu Feb 28, 2013 7:32 pm
- Contact:
Re: The Ctrl+V Game
RDP-Zwischenablagenüberwachung
Something I found in Windows' task manager
Something I found in Windows' task manager
Former moderator
- Phillip_Lynx
- Filter Inserter
- Posts: 541
- Joined: Mon Jul 21, 2014 6:00 pm
- Contact:
Re: The Ctrl+V Game
[Off Topic]
Nice Layout
[/Off Topic]
https://www.youtube.com/watch?v=0N-jXRt ... _ighOcx9QZ_
german Lets play of craft the world. Needed the copy for another Tab
Nice Layout
[/Off Topic]
https://www.youtube.com/watch?v=0N-jXRt ... _ighOcx9QZ_
german Lets play of craft the world. Needed the copy for another Tab
Re: The Ctrl+V Game
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){
}