Search found 200 matches

by romero126
Fri May 09, 2008 8:59 am
Forum: PSP Development
Topic: Copy screen to texture?
Replies: 2
Views: 1233

Image* ScreenCopyImage&#40;&#41; &#123; Image* image = createImage&#40;SCREEN_WIDTH, SCREEN_HEIGHT&#41;; if &#40;!image&#41; return NULL; Color *destinationData = image->data; Color *vram = getVramDisplayBuffer&#40;&#41;; int i, x, y; for &#40;y = 0; y < SCRE...
by romero126
Sat Apr 05, 2008 3:55 am
Forum: PSP Lua Player Development
Topic: new official luaplayer discussion forum
Replies: 1
Views: 3155

bump
by romero126
Fri Apr 04, 2008 3:56 pm
Forum: PSP Development
Topic: get pixel color from screen *HELP*
Replies: 3
Views: 1115

Code: Select all

Color getPixelScreen&#40;int x, int y&#41;
&#123;
	Color* vram = getVramDrawBuffer&#40;&#41;;
	return vram&#91;PSP_LINE_SIZE * y + x&#93;;
&#125;
by romero126
Sun Mar 16, 2008 8:47 am
Forum: PSP Lua Player Development
Topic: New to lua so plz help!
Replies: 3
Views: 2856

romero126 wrote:*Totally Revamping the way the GUI system works.
See Revamp (WIP)

Updated Jan 02 06
its an old set of code but should help you
by romero126
Sun Sep 09, 2007 1:35 pm
Forum: PSP Lua Player Development
Topic: Writing to file with Offset. How?
Replies: 4
Views: 3919

Use options "+r"
by romero126
Sun Aug 26, 2007 7:47 pm
Forum: PSP Development
Topic: Debunking The USB Port
Replies: 15
Views: 4267

Regardless You would have to have a combination of Hardware Hacking and USB Hacking to take full advange of this combination. Since the MINI usb is set up differently you would have to build at bare minimum a crossover USB Mini cable. Otherwise you could cross a wire incorrectly and destroy the verr...
by romero126
Sun Aug 26, 2007 6:16 am
Forum: PSP Development
Topic: Debunking The USB Port
Replies: 15
Views: 4267

Since I dont want to tear up my PSP Right away What im going to have to do is a hardware hack. Once thats completed Ill definatly have some code.
by romero126
Sat Aug 25, 2007 7:16 pm
Forum: PSP Development
Topic: Debunking The USB Port
Replies: 15
Views: 4267

As long as your not directly crossing wires deliberatly you can always use a voltimeter with the fuzed function on it so it never sends out voltage to the wrong port. Now if your silly you can burn your PSP into flames however im not really worried about it since I plan on using controlled access fr...
by romero126
Sat Aug 25, 2007 9:46 am
Forum: PSP Development
Topic: Debunking The USB Port
Replies: 15
Views: 4267

Absolutly agreed, however there is always some failsafe that can be put in to make shure hardware is the way it is supposed to be. Like a volage limitor that waits 1 sec before providing any power and any data connectivity to the device. So the PSP knows that this is a OTG device. Also if you havnt ...
by romero126
Sat Aug 25, 2007 4:51 am
Forum: PSP Development
Topic: Debunking The USB Port
Replies: 15
Views: 4267

I agree with everything except for one argument. Cost is always an issue. Regardless of this fact I find that USB Support Can be a possibility if we can bypass direct checks for the USB Controller, which would enable the 3.5v to come out of the rail on the seperate holes arround the USB. Regardless ...
by romero126
Fri Aug 24, 2007 10:27 pm
Forum: PSP Development
Topic: Debunking The USB Port
Replies: 15
Views: 4267

Debunking The USB Port

Some people say that the USB port on the PSP can only run in Client Mode. However with the PSP multitude of devices that are out that use USB in client mode one must realize that you can unlock the PSP to run USB in client mode. Now you may think that my comments are crazy. However its not. Think ab...
by romero126
Mon Jun 11, 2007 8:06 pm
Forum: PSP Lua Player Development
Topic: lua or C++?
Replies: 10
Views: 7571

The merger of a scripting language with a game language actually does add a ton of functionality to the scene. With a series of things, number 1 it adds functionality where the dynamicness of the code is required like scripted events, Instead of hardcoding everything for it you merely need only to c...
by romero126
Sat Jun 09, 2007 7:41 am
Forum: PSP Lua Player Development
Topic: lua or C++?
Replies: 10
Views: 7571

I would suggest working with C or C++ I have no real prefrence. Just as long as you work at a lower level of program than an interface within an interface. as much as I would like to say C/C++ is easier to use than LUA it would be a lie, However whenever you work with C/C++ you will have a larger an...
by romero126
Thu Jun 07, 2007 7:44 pm
Forum: PSP Lua Player Development
Topic: lua or C++?
Replies: 10
Views: 7571

Your answer would be C++, its time to break the mold and move onto a more advanced programming style. However with C++ its a whole new ballgame. While you get more commands and styles of code to go over in C++, Not only speed, you loose alot of simplicty that comes with LUA. Since you are moving fro...
by romero126
Mon Apr 16, 2007 9:35 am
Forum: PSP Lua Player Development
Topic: waiting for button input
Replies: 5
Views: 3195

cheap input is also done by
key = Controls.read()
while true do

if (key != Controls.read())
key = Controls.read()
-- do stuff here
end

end
by romero126
Mon Apr 16, 2007 3:07 am
Forum: PSP Lua Player Development
Topic: waiting for button input
Replies: 5
Views: 3195

-- Coded by romero126 GlassEyeInput = &#123; &#91;"KeyList"&#93; = &#123; &#125; &#125; table.insert&#40;GlassEyeInput&#91;"KeyList"&#93;, &#123;Controls.selectMask, "Select", nil&#125;&#41; table.insert&#40;GlassEyeI...
by romero126
Mon Mar 26, 2007 6:20 am
Forum: PSP Lua Player Development
Topic: what happens to a image passed back from a function?
Replies: 2
Views: 2014

With the collect garbage function Theortically is disposed of within a certain ammount of time. Which is about 30sec to 1 min. Which means the image returned is still taking a chunk of the memory for a while. Results of functions act exactly like variables that are set and then immediatly set to nil...
by romero126
Mon Mar 19, 2007 5:43 am
Forum: PSP Lua Player Development
Topic: Image Resizeing
Replies: 2
Views: 2221

Thanks!
by romero126
Sat Mar 17, 2007 9:47 am
Forum: PSP Lua Player Development
Topic: Flash screen while loading
Replies: 1
Views: 1791

function VSH_SplashScreen&#40;image, time&#41; local DebugTimer = os.clock&#40;&#41; screen&#58;clear&#40;Color.new&#40;0,0,0&#41;&#41; screen&#58;blit&#40;0, 0, image&#41; screen.waitVblankStart&#40;&#41; screen.flip&#40;&#41; while t...
by romero126
Sat Mar 17, 2007 9:44 am
Forum: PSP Lua Player Development
Topic: Image Resizeing
Replies: 2
Views: 2221

Image Resizeing

Is there any easy way to resize an image down to a certain specified size?

Possibly a 3d way to do that?
by romero126
Wed Feb 07, 2007 7:21 am
Forum: PSP Lua Player Development
Topic: Pressing buttons?
Replies: 14
Views: 5037

I was drunk as a skunk when i wrote it leave me alone.
by romero126
Tue Feb 06, 2007 7:49 am
Forum: PSP Lua Player Development
Topic: Pressing buttons?
Replies: 14
Views: 5037

I posted that on the previous post. It just looks a lil diff.
by romero126
Mon Feb 05, 2007 10:13 am
Forum: PSP Lua Player Development
Topic: Pressing buttons?
Replies: 14
Views: 5037

http://wiki.ps2dev.org/psp:lua_player:f ... s#controls


while true do
if not key = Controls.read() then
key = Controls.read()
if key:triangle() then
-- do stuff here
end
end
end
by romero126
Mon Feb 05, 2007 6:30 am
Forum: PSP Lua Player Development
Topic: Pressing buttons?
Replies: 14
Views: 5037

Reset the timer each time you press a button..
by romero126
Thu Jan 25, 2007 10:34 am
Forum: PSP Lua Player Development
Topic: Noob - Timer Question
Replies: 3
Views: 2339

self.Timer = os.clock() -- resets the clock

If you dont want to reset the clock then dont call that function. Everything should work fine after that
by romero126
Wed Jan 24, 2007 1:50 am
Forum: PSP Lua Player Development
Topic: Noob - Timer Question
Replies: 3
Views: 2339

Code: Select all

-- Init it up here somewhere
self.Timer = os.clock&#40;&#41;,

-- more code WHiletrue and such
	local CHECK_TIME = os.clock&#40;&#41; - self.Timer
	if &#40;CHECK_TIME >= 1&#41; then
		self.Timer = os.clock&#40;&#41; -- resets the clock
		-- Do stuff here!
	end

by romero126
Wed Jan 24, 2007 1:40 am
Forum: PSP Lua Player Development
Topic: System.usbDiskModeActivate() ?
Replies: 9
Views: 3851

I don't need it. If I wanted a better Text Editor I would have downloaded one by now.
by romero126
Mon Jan 22, 2007 5:10 am
Forum: PSP Lua Player Development
Topic: Howto Guide for 3.0x oe With LUAPlayer.
Replies: 4
Views: 3984

That would be a developer issue that mustbe solved. However as of now the only way to run homebrew on the PSP 3.03 OE is to use the 1.50 kernel mode in Dark-Alex's firmware. That would be theonly way to runhomebrew with that software. If you want other functionality talk to shine or build your own m...
by romero126
Sun Jan 21, 2007 6:09 am
Forum: PSP Lua Player Development
Topic: Howto Guide for 3.0x oe With LUAPlayer.
Replies: 4
Views: 3984

Howto Guide for 3.0x oe With LUAPlayer.

I have noticed a large ammount of complaints about not being able to run LUAPlayer on your PSP using the firmware 3.03oe-b. So here is a quick Guide to doing so. There are two guides so read carefully. Guide 2 This is the easy way to install 1.50 homebrew but only works if there is an eboot in the /...
by romero126
Sat Jan 20, 2007 5:11 am
Forum: PSP Lua Player Development
Topic: System.usbDiskModeActivate() ?
Replies: 9
Views: 3851

Notepad only for me. I find simplicitiy is a better way to program.