forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

System.usbDiskModeActivate() ?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Sun Nov 13, 2005 4:04 am    Post subject: System.usbDiskModeActivate() ? Reply with quote

What is the real purpose of using the functions, System.usbDiskModeActivate() and System.usbDiskModeDeactivate()?

Should I leave either one upon the final release?

During development, I sometimes got corrupted folders on memory stick. I had to reformat it. Will one of those functions help to prevent the mishaps?

Thanks
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
psiko_scweek



Joined: 12 Nov 2005
Posts: 42

PostPosted: Sun Nov 13, 2005 4:24 am    Post subject: as far as iknow Reply with quote

as far as i know, the USB mode activate command is used for easier debugging of the code as it puts the PSP in USB mode while the Lua script is running, making it easier to fix code, press start (if break is set for start) and see the changes immediately. about the corrupt folder things, i think there is something about not writing to the memory stick from within Lua while in USB mode or it will require formatting the card, so removing the USB mode code should fixt that problem!

regards,
PSIKO

[edit: fixed spelling errors, some of em anyways]
Back to top
View user's profile Send private message Yahoo Messenger
youresam



Joined: 06 Nov 2005
Posts: 87

PostPosted: Sun Nov 13, 2005 10:39 am    Post subject: Reply with quote

Well, Ive found out that:
you cannot write to a file while USB mode is enabled and a cord is plugged

if you are writing from the computer to the PSP WHILE the PSP is writing a file, the file the PSP writes becomes corrupt. And even though everything will still work the way it should, you cannot delete the file or its parent folders

I hope this helps.
Back to top
View user's profile Send private message AIM Address
psyberjock



Joined: 15 Dec 2006
Posts: 28

PostPosted: Mon Jan 08, 2007 11:44 am    Post subject: Reply with quote

You can always scandisk it in windows. That's what I do if I accidentally unplug the USB too fast after a transfer. It fixes the bad files then you can delete them or recopy or whatever.
Back to top
View user's profile Send private message
bolk



Joined: 07 Jan 2007
Posts: 10

PostPosted: Mon Jan 08, 2007 5:04 pm    Post subject: Reply with quote

It's very useful feature! I wrote file manager with usb support.
Back to top
View user's profile Send private message
the underminer



Joined: 03 Oct 2005
Posts: 124
Location: Netherlands

PostPosted: Fri Jan 19, 2007 5:27 am    Post subject: Reply with quote

I'm having this corruption problem a lot. Either happens:

1. I have to save my script twice each time I change the code
2. I have to delete the file with windows and save it again
3. I have to backup and reformat the stick to make it work again.

By the way, wich IDE do we all use? I myself use QDE; has a very handy autocomplete function; wich also works for variables/functions.

Disadvantage: crashes on startup when psp not connected (wich holds the last edited project, is thus not accessible and the program chrashes)
Backups are placed in the project folder; wich must be on psp. (When your memstick totally corrupts you lose everything; never happened to me)

Tested Zeus too, not very handy autocomplete
_________________
Behold! The Underminer got hold of a PSP
Back to top
View user's profile Send private message
Altair



Joined: 20 May 2006
Posts: 76
Location: The Netherlands

PostPosted: Fri Jan 19, 2007 11:05 pm    Post subject: Reply with quote

I use ConTEXT. I had used it for programming Java at my university so I already had it. Just downloaded a LUA syntax file for it. Doesn't have auto completion. Just highlights stuff, but it looks nice I think. Never bothered to look for anything else.
Back to top
View user's profile Send private message
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Sat Jan 20, 2007 5:11 am    Post subject: Reply with quote

Notepad only for me. I find simplicitiy is a better way to program.
Back to top
View user's profile Send private message
PSPJunkie



Joined: 23 Jan 2007
Posts: 14
Location: Jersey

PostPosted: Tue Jan 23, 2007 1:16 pm    Post subject: Reply with quote

get notepad++, best text editor for windows ive ever seen.
Back to top
View user's profile Send private message Visit poster's website AIM Address MSN Messenger
romero126



Joined: 24 Dec 2005
Posts: 200

PostPosted: Wed Jan 24, 2007 1:40 am    Post subject: Reply with quote

I don't need it. If I wanted a better Text Editor I would have downloaded one by now.
Back to top
View user's profile Send private message
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group