#21
Posted 23 September 2012 - 07:23 AM
#22
Posted 23 September 2012 - 06:14 PM
Sariaz, on 23 September 2012 - 07:22 AM, said:
Yeah, like with printing to the console, writeLine puts a line break at the end, and you can use file.Write to just append onto the current position. Hope that helps
#23
Posted 24 September 2012 - 03:16 PM
#24
Posted 25 September 2012 - 02:26 PM
tFile = file.readAll()and acsess the first line like:
print(tFile[1])
Hope I helped... Well, I think I did.
#25
Posted 25 September 2012 - 03:13 PM
Mtdj2, on 25 September 2012 - 02:26 PM, said:
tFile = file.readAll()and acsess the first line like:
print(tFile[1])
Hope I helped... Well, I think I did.Oh that's how that works? honestly I've never used it, just sorta assumed it gives you the whole file as one string
Will add that into the OP
#26
Posted 30 September 2012 - 04:58 PM
#27
Posted 01 October 2012 - 10:44 AM
Does this program create more than one dispName and realName folder? Or does it just overwrite the previous one? Like, for example, I create the "leftcatcher" dispName and Blah for realName, and then I create "ben675" for dispName, and Blahblah for realName. Would there then be two folders in the "saves" section? One for each dispName? Or will the "leftcatcher" folder have been overwritten?
Could I get it to basically activate off a login? For example, on startup the computer will show a menu(Which I can set up easily) which says "Login" or "Create Account". We select the latter here and it starts up the program. It then ask for a Username, (which replaces the dispName here), and then asks for a Password (Replacing realName). It then basically just creates the file around he Username in the same way your program does around the dispName, and puts the Password into the file. Then, basically, in the "Login" section, it would ask for your Username and you would enter it, and it would access the file containing that username and make the Password = requiredPassword so that way you have to enter it to log in. Basically, what your program does but with a bit more added onto the ending. If your code here does in fact have the ability to create numerous folders, then it is entirely possible to have this and actually make use of it instead of it just being a one time thing. :<
#28
Posted 01 October 2012 - 03:20 PM
#29
Posted 01 October 2012 - 06:36 PM
#30
Posted 02 October 2012 - 07:08 AM
#31
Posted 02 October 2012 - 06:46 PM
leftcatcher, on 01 October 2012 - 10:44 AM, said:
Does this program create more than one dispName and realName folder? Or does it just overwrite the previous one? Like, for example, I create the "leftcatcher" dispName and Blah for realName, and then I create "ben675" for dispName, and Blahblah for realName. Would there then be two folders in the "saves" section? One for each dispName? Or will the "leftcatcher" folder have been overwritten?
Could I get it to basically activate off a login? For example, on startup the computer will show a menu(Which I can set up easily) which says "Login" or "Create Account". We select the latter here and it starts up the program. It then ask for a Username, (which replaces the dispName here), and then asks for a Password (Replacing realName). It then basically just creates the file around he Username in the same way your program does around the dispName, and puts the Password into the file. Then, basically, in the "Login" section, it would ask for your Username and you would enter it, and it would access the file containing that username and make the Password = requiredPassword so that way you have to enter it to log in. Basically, what your program does but with a bit more added onto the ending. If your code here does in fact have the ability to create numerous folders, then it is entirely possible to have this and actually make use of it instead of it just being a one time thing. :<
Sounds like a good way of going about it
And yeah this code will work perfectly for that. Reason being, it makes a folder named saves, and in there are FILES not folders, with data in them, rather than more folders and FILES. But in short, yes. It'll work fine
#32
Posted 02 October 2012 - 07:04 PM
auser, on 30 September 2012 - 04:58 PM, said:
Very possible!
http://www.computerc...le-configs-v10/
Something I did a little while ago, all the codes there for it
#33
Posted 06 October 2012 - 02:52 AM
#34
Posted 07 October 2012 - 04:57 PM
#35
Posted 08 October 2012 - 12:02 AM
#36
Posted 10 October 2012 - 11:15 AM
sidekick_, on 07 October 2012 - 04:57 PM, said:
Really? They should be in the folder you named in the file path during the tutorial. In game, load up the pc, do "ls" (no quotes), see of there's a new folder and do "cd thatfoldersname", then ls again to see if your files there.
#37
Posted 29 December 2012 - 12:25 AM
#38
Posted 31 January 2013 - 06:59 PM
#39
Posted 05 February 2013 - 11:07 AM
Now I've finally added the ability to save/load/delete in my Game that's in my sig.
But it's in an unreleased version.
But anyway thx so much!
#40
Posted 12 March 2013 - 09:28 AM
1 user(s) are reading this topic
0 members, 1 guests, 0 anonymous users











