Page 2 of 11

Re: The Ctrl+V Game

Posted: Sun Dec 14, 2014 6:02 am
by Darthlawsuit

Re: The Ctrl+V Game

Posted: Sat Dec 20, 2014 9:09 am
by MrDrummer
Just some random code from my Python Program.

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("")
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. :)

Re: The Ctrl+V Game

Posted: Sat Dec 20, 2014 8:55 pm
by ssilk

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.
http://www.keplerproject.org/en/LAR
Looking around for a way to read contents of packed modules without unpacking for https://github.com/alexaulbach/FactorioLoaderLib

Re: The Ctrl+V Game

Posted: Sat Dec 20, 2014 10:13 pm
by NotMe
The rocket launcher is not underpowered. It is useless.

Re: The Ctrl+V Game

Posted: Sat Dec 20, 2014 10:42 pm
by Nova
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. :D

Re: The Ctrl+V Game

Posted: Mon Dec 22, 2014 3:25 am
by -root

Re: The Ctrl+V Game

Posted: Mon Dec 22, 2014 7:44 am
by Phillip_Lynx

Code: Select all

[quote="abnormalgamer"]
For posting purposes

Re: The Ctrl+V Game

Posted: Mon Dec 22, 2014 8:22 am
by Xecutor

Code: Select all

  {
    type = "item-subgroup",
    name = "barrel",
    group = "intermediate-products",
    order = "d"
  },
hm....

Re: The Ctrl+V Game

Posted: Tue Dec 23, 2014 9:00 pm
by Nirahiel
Cause you could make a bishop
For a video game xD

Re: The Ctrl+V Game

Posted: Wed Dec 24, 2014 9:19 pm
by Phillip_Lynx

Code: Select all

Phillip Lynx bekommt: Wolfszahnkette
From an browser game

Re: The Ctrl+V Game

Posted: Fri Jan 16, 2015 9:00 am
by Snowpig
(empty)

dang, i should start working :cry:

Re: The Ctrl+V Game

Posted: Tue Jan 20, 2015 9:36 am
by Gammro

Code: Select all

1.68/(10^8)
Which is the resistivity of copper. At least it's something related to work :P

Re: The Ctrl+V Game

Posted: Tue Jan 20, 2015 9:51 am
by Phillip_Lynx
http://www.floomby.com/s1/Peu2Bk

wich is a picture from a browsergame.

Re: The Ctrl+V Game

Posted: Wed Feb 04, 2015 8:45 pm
by bastrath
train conductor

Wasn't sure about a translation for my signatur. In fact, this confirms it (the signatur) ^^

Re: The Ctrl+V Game

Posted: Sat Feb 07, 2015 9:46 pm
by Darthlawsuit
Image

Re: The Ctrl+V Game

Posted: Sun Feb 08, 2015 2:33 pm
by SNORKOFOB
Dr. RPgK сменил имя на Mr. Dr. RPgK.
Dont ask what that means :|

Re: The Ctrl+V Game

Posted: Fri Feb 13, 2015 5:28 pm
by Kayanor
RDP-Zwischenablagenüberwachung

Something I found in Windows' task manager :D

Re: The Ctrl+V Game

Posted: Sat Feb 14, 2015 5:47 am
by onebit
Image

Re: The Ctrl+V Game

Posted: Sat Feb 14, 2015 10:43 am
by Phillip_Lynx
[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 :)

Re: The Ctrl+V Game

Posted: Sun Feb 22, 2015 11:32 am
by kel

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){

        }