PSP Hacks - Forums
Go Back   PSP Hacks - Forums > Tech Talk > LUA Scripting

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 09-27-2005, 04:13 PM
LordCthulu LordCthulu is offline
Senior Member
PSP Veteran
 
Join Date: Mar 2005
Posts: 1,029
LordCthulu User Has a Beginner Reputation
Default

Heres a sticky of cool/useful/fun Lua things! Yes, things.




Downloads:

A script that lets you enter and leave Usb mode.
http://thend.net/downloads/usbModeScript.rar

PSPoof. Allows the hiding of files in jpegs,
and has good examples of file input/output.

http://www.cs.ulm.edu/~jself/jmenc/PSpoofv11.rar

Drawing Fun. Lets you use the analog stick to draw
on a canvas in different colors. Now lets you change
the color of the canvas. (little buggy there)

http://www.thend.net/downloads/drawingFun.rar


Scripts:

LPut library: Has prebuilt functions like magnify and round.
Use: Have the file in the same directory as your script,
and have the line dofile("LPut02.lua") somewhere near the top.

http://webpages.charter.net/kawageo/PSPstuff/LPut02.lua


Games:

Game by Laserix/Bigmoor
http://psp-news.dcemu.co.uk/laserix.shtml




If you have something you want to add to the list, just upload it somewhere and send me the link, and I'll edit it into the post.
__________________
Member number: 3
Meat lover? Watch: http://www.chooseveg.com/animal-cruelty.asp
Reply With Quote
  #2  
Old 09-27-2005, 05:25 PM
modsyn modsyn is offline
PSP Monk
 
Join Date: Aug 2005
Location: Shinigami Kurosaki Ichigo!
Posts: 2,966
modsyn User Has a Beginner Reputation
Default

This script displays the values of the analog stick (useful for development)

Code:
System.usbDiskModeActivate()
red = Color.new(255, 0, 0);
white = Color.new(255, 255, 255);

canvas = Image.createEmpty(480, 272)
canvas:clear(white)

while true do
	pad = Controls.read()
	dx = pad:analogX()
	dy = pad:analogY()
	screen:blit(0, 0, canvas, 0, 0, canvas:width(), canvas:height(), false)
	screen:print(11, 11, "dx: " .. tostring(dx), red)
	screen:print(11, 21, "dy: " .. tostring(dy), red)
	screen.waitVblankStart()
	screen.flip()
	if pad:start() then break end
	if pad:select() then screen:save("screenshot.tga") end
end
__________________
jMEnc Guide, jMEnc2 page - by the way, you smell nice
Reply With Quote
  #3  
Old 09-27-2005, 05:28 PM
Exira Exira is offline
PSP Titan
 
Join Date: Jun 2005
Posts: 4,863
Exira User Has a Beginner Reputation
Default

I've been loking for the LUA XP shell. I want the source code.

I stickied it
__________________
Oh come let us adore him, betray, and then ignore him.
Reply With Quote
  #4  
Old 09-27-2005, 06:21 PM
RaiderX's Avatar
RaiderX RaiderX is offline
Administrator
PSP Titan
 
Join Date: Jun 2005
Posts: 900,010,784
RaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond repute
Default

Thanks for that script it will help! Also, can someone give me a short script that will direct gravity towards the direction you press on the d-pad, or give me the command that will direct gravity? thx again. mdosyn, ur help is really appriciated!
__________________
Reply With Quote
  #5  
Old 09-27-2005, 06:22 PM
qwerty qwerty is offline
Senior Member
PSP Guru
 
Join Date: Jun 2005
Location: Texas
Posts: 2,371
qwerty User Has a Beginner Reputation
Default

cool, new downgrade, to. can today get any better? its weird though, cus i just returned my 1.51 psp yesterday and got a 1.5. today theres a downgrader :rolleyes: go figure
__________________

PSP 5.00 m33
Reply With Quote
  #6  
Old 09-27-2005, 06:24 PM
RaiderX's Avatar
RaiderX RaiderX is offline
Administrator
PSP Titan
 
Join Date: Jun 2005
Posts: 900,010,784
RaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond repute
Default

HOLY SHIT!!!!!!!!!! **** WAB!!! SOEMONE ELSE DID IT!!!!!

What abotu all the 2.0 expliots now tho.../ sony is ***ed!! it hink Im gonna dwongrade my 2.0, then I'll ahve 2 1.5s!!
__________________
Reply With Quote
  #7  
Old 09-27-2005, 06:32 PM
qwerty qwerty is offline
Senior Member
PSP Guru
 
Join Date: Jun 2005
Location: Texas
Posts: 2,371
qwerty User Has a Beginner Reputation
Default

check out the thread! http://boardsus.playstation.com/play...age.id=1148725im qwertyu2day, cus someone already took qwerty from me.
__________________

PSP 5.00 m33
Reply With Quote
  #8  
Old 09-27-2005, 06:44 PM
RaiderX's Avatar
RaiderX RaiderX is offline
Administrator
PSP Titan
 
Join Date: Jun 2005
Posts: 900,010,784
RaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond reputeRaiderX has a reputation beyond repute
Default

this is da ****! But continue conversation in the thread in hack, cracks and mods, k?
__________________
Reply With Quote
  #9  
Old 09-27-2005, 07:04 PM
qwerty qwerty is offline
Senior Member
PSP Guru
 
Join Date: Jun 2005
Location: Texas
Posts: 2,371
qwerty User Has a Beginner Reputation
Default

im just all happy :E :E :E :E :E :E :E :lol:
__________________

PSP 5.00 m33
Reply With Quote
  #10  
Old 09-27-2005, 07:21 PM
modsyn modsyn is offline
PSP Monk
 
Join Date: Aug 2005
Location: Shinigami Kurosaki Ichigo!
Posts: 2,966
modsyn User Has a Beginner Reputation
Default

this is back on topic:
http://webpages.charter.net/kawageo/PSPstuff/LPut02.lua
is the LPut library that has prebuilt functions like magnify and round.
to use the functions just have the file in the same directory as your
script and have the line
dofile("LPut02.lua") somewhere near the top.

as for gravity, i don't have any quick code for it. i haven't tried to
implement gravity for anything yet. sorry.
__________________
jMEnc Guide, jMEnc2 page - by the way, you smell nice
Reply With Quote
Reply

 



Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT -4. The time now is 06:08 PM.


Powered by vBulletin® Version 3.8.0
Copyright ©2000 - 2009, Jelsoft Enterprises Ltd.
©