19.09.2010, 12:40
Hallo ich habe gestern angefangen Lua zu programmieren und stehe schon jetzt vor einem Problem.
Ich will ein Programm entwerfen, dass ein bestimmtes Gameboot bzw. Bootsound installiert.
Download Link:
http://rapidshare.com/files/419942413/Lua.ra
Das sind meine Lua dateien:
script.lua
Ich will ein Programm entwerfen, dass ein bestimmtes Gameboot bzw. Bootsound installiert.
Download Link:
http://rapidshare.com/files/419942413/Lua.ra
Das sind meine Lua dateien:
script.lua
Zitat:
--Mod Installer by Daniel
--19.09.2010
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
Schwarz = Color.new(0,0,0)
Weiss = Color.new(255,255,255)
Grau = Color.new(166,166,166)
Rot = Color.new(255,0,0)
Gray = Color.new(0,255,0)
Blau = Color.new(0,0,255)
Menu = Image.load("Menu.jpg")
--------------------
while true do
screen:blit(0,0,Menu,true)
System.setcpuspeed("22")
pad = Controls.read()
if pad:circle()
then require "quit"
end
if pad:cross()
then require "install"
end
screen.flip()
screen.waitVblankStart()
end
--19.09.2010
---------------------------------------------------------------------------------------------------------------
---------------------------------------------------------------------------------------------------------------
Schwarz = Color.new(0,0,0)
Weiss = Color.new(255,255,255)
Grau = Color.new(166,166,166)
Rot = Color.new(255,0,0)
Gray = Color.new(0,255,0)
Blau = Color.new(0,0,255)
Menu = Image.load("Menu.jpg")
--------------------
while true do
screen:blit(0,0,Menu,true)
System.setcpuspeed("22")
pad = Controls.read()
if pad:circle()
then require "quit"
end
if pad:cross()
then require "install"
end
screen.flip()
screen.waitVblankStart()
end
install.lua
Zitat:
Install = Image.load("Install.jpg")
function assign
System.unassign("flash"..flash..":")
System.sleep(80)
System.assign("flash"..flash..":","lflash0:0,"..flash,"flashfat"..flash..":")
System.sleep(80)
end
function installgb
System.removeFile(flash0.."flash0/vsh/resource/gameboot.pmf")
port(root.."Data/Gameboot/gameboot.pmf","flash0:/vsh/resource")
end
function installbs
System.removeFile(flash0.."flash0/vsh/resource/opening_plugin.rco")
port(root.."Data/Bootsound/opening_plugin.rco","flash0:/vsh/resource")
end
while true do
screen:blit(0,0,Install,true)
function assign()
end
if pad:up then
installgb()
end
if padown then
installbs()
if pad:cross
then require "continue"
end
screen.flip()
screen.waitVblankStart()
end
function assign
System.unassign("flash"..flash..":")
System.sleep(80)
System.assign("flash"..flash..":","lflash0:0,"..flash,"flashfat"..flash..":")
System.sleep(80)
end
function installgb
System.removeFile(flash0.."flash0/vsh/resource/gameboot.pmf")
port(root.."Data/Gameboot/gameboot.pmf","flash0:/vsh/resource")
end
function installbs
System.removeFile(flash0.."flash0/vsh/resource/opening_plugin.rco")
port(root.."Data/Bootsound/opening_plugin.rco","flash0:/vsh/resource")
end
while true do
screen:blit(0,0,Install,true)
function assign()
end
if pad:up then
installgb()
end
if padown then
installbs()
if pad:cross
then require "continue"
end
screen.flip()
screen.waitVblankStart()
end
quit.lua
Zitat:
while true do
System.Quit()
screen.flip()
screen.waitVblankStart()
end
System.Quit()
screen.flip()
screen.waitVblankStart()
end
Kann mir einer helfen???
Die PSP streikt immer bei install.lua.