Well it says...
PSP_MODULE_INFO("LUAPLAYE R", 0x1000, 1, 1)
So that's in kernel mode,
I had problems flashing some files using this mode but Pirata Nervo said he managed to flash files using it,
Printable View
Well it says...
PSP_MODULE_INFO("LUAPLAYE R", 0x1000, 1, 1)
So that's in kernel mode,
I had problems flashing some files using this mode but Pirata Nervo said he managed to flash files using it,
Yes, I was having trouble compiling it, so Pirata Nervo kindly edited the makefile for me...
although the damn thing still wont compile for me, as it keeps giving me errors in cygwin...
Spoiler for cygwin error:
So no, the lua player mod I'm actually using now, is running in 1.5 kernel...
EDIT: I just noticed looking over the error, that it looks as if I was trying to recompile [email protected]'s lua recompile source ??
I'll try to recompile it with the .16 version of lua player...
EDIT #2 I think my cygwin is not set up correctly...
I used [email protected]'s "newb proof" set up... Damn...
cygwin is a pain in the arse sometimes,
As for the error in sound.cpp it has...
#include "mikmod.h"
but I can not find it in the source that you uploaded after searching for the file,
change it to <mikmod.h>Zitat:
Zitat von hibbyware
^^^ OK, thanks guys.
[email protected] - I changed that, but now ended up with this error:
Spoiler for New Error:
#include "mikmod.h" appears in more then one file so it may be worth changing it in all the files,
Like sound.h etc
^^^ Did that... Still no luck.
This is frustrating...
Yeah I'm sure somebody here could figure it out,
I just don't understand why it says #include "mikmod.h" in all the file if mikmod.h does not get supplied with the lua player,
here is my luaplayer 0.20 i can compile that fine
LuaPlayer0.20.rar
if you want me to compile a special version for you send me the src or tell me what you want changing ans ill see what i can do for you
also if you wanted to make it easier add me on msn hotmail / windows live messenger at [email protected]
thanks
it also sounds like you havent installed lib mik mod or mik mod lib
go to cygwin and copy and paste this in
then it may workZitat:
Zitat von lib auto installer
- a word of warning it may take a while
Thanks hibby & [email protected] :)
[email protected] - I'll add you to msn :)
heya all, the other week some guy released a quiz thing. i decide to add a new quiz to it earlier and so edited the lua files and added one . but when i click cross on it on the psp it isn't loading it. can you look at the code please and see why. looks fine to me. i've added the ni(nintendo) section and heres a zip on rapidshare instead of posting the files.
http://rapidshare.com/files/86893719...eQuiz.rar.html
the edited file was mainly kat.lua and the ni folder. help plz anyone?
post the code that you edited and we will help you copy and paste it into [/code] [code] tagsZitat:
Zitat von mraellis
put the first one [/code-] at the end of the code
put the second one [code] at the beginning of your code
Code:your code goes here
ok, i'm not certain what it was before though but heres the code now.
kat.lua =
and heres the i.lua its meant to load.Code:unloadbuff()
System.powerGetBatteryLifePercent()
red = Color.new(255, 0, 0)
white = Color.new(255, 255, 255)
------------------------------------------------
Select=1
maxSelect=4
menuBackground = Image.load("img/bg1.png")
ico = Image.load("img/buton.png")
ico1 = Image.load("img/buton1.png")
ico2 = Image.load("img/buton2.png")
oldpad=Controls.read()
------------------------------------------------
while true do
pad=Controls.read()
screen:clear()
screen:blit(0,0,menuBackground)
------------------------------------------------
-----------------------------icons--------------
if pad:left() and oldpad:left() ~= pad:left() then
Select = Select - 1
end
if pad:right() and oldpad:right() ~= pad:right() then
Select = Select + 1
end
if Select > maxSelect then
Select = 1
elseif Select <= 0 then
Select = maxSelect
end
if Select == 1 then
screen:blit(100,75,ico)
screen:blit(200,80,ico1)
screen:blit(300,80,ico2)
end
if Select == 2 then
screen:blit(100,80,ico)
screen:blit(200,75,ico1)
screen:blit(300,80,ico2)
end
if Select == 3 then
screen:blit(100,80,ico)
screen:blit(200,80,ico1)
screen:blit(300,75,ico2)
end
if pad:cross() and Select == 1 then
dofile("ms/1.lua")
end
if pad:cross() and Select == 2 then
dofile("qs/1.lua")
end
if pad:cross() and select == 3 then
dofile("ni/1.lua")
end
screen:print(30,30,"Select a Category")
screen:print(50,50,"Every Category has 10 Questions")
screen.waitVblankStart()
screen.flip()
oldpad = pad
end
basically it loads without errors and has the new section (Nintendo one) has a option but when i click x on it it doesn't do anything.Code:unloadbuff()
menuBackground=Image.load("fl.png")
screen:blit(0,0,menuBackground)
oldpad=Controls.read()
screen:print(30,30,"What Does Ds mean?")
screen:print(80,130,"Dualshock")
screen:print(300,130,"Duel screen")
screen:print(200,220,"Dual screens")
screen.flip()
while true do
---------------------------
if pad:square() then
dofile("ni/wrong.lua")
end
if pad:circle() then
dofile("ni/wrong.lua")
end
if pad:triangle() then
dofile("ni/right.lua")
end
---------------------------
pad=Controls.read()
screen.waitVblankStart()
oldpad = pad
end
p.s i know about code tags but i uploaded it to show people as it'd be easyier since i'd added a a whole folder of like 15 lua files to, but i'll just assume they work atm since its not eve getting to them.
i dont see any errors with that ???
apart from the fact that max select should be 3 shouldn't it ?
as you only have three items in the menuCode:maxselect = 3 -- <-- i think that should be that
if select > maxselect then
select = 1
end
even has 3 it doesn't work. i tried 4 because when there was only 2 originally it said 3. i cant see a problem either but if u download from the rapidshare link and try it u'll see it will not load the Nintendo quiz.
oh looking at the code you have told it to load 1.lua but names the file i.lua
sorry that was a typo on my behalf, the files called 1.lua
Can anyone tell me the syntax for finding the number of lines in a file?
I think I have it but it's not quite working.
Thanks.
For more on the lua IO library and other methods of doing it, check here: http://lua-users.org/wiki/IoLibraryTutorialCode:file = io.open("myfile","r")
numberoflinesinthefile = 0
for line in file:lines() do
numberoflinesinthefile = numberoflinesinthefile+1
end
file:close()
any more ideas FaT3oYCG?
Well, for every one of your "screen:print()" calls, you didn't include a 4th argument. I'm pretty sure you need to supply one, not sure.
A fourth argument is not needed for screen:print, it will default to black.
it isn't needed but if you tell me what to change i can try it just to see.
Thanks, TurtlesPwn.
Code:menuBackground=Image.load("fl.png")
screen:blit(0,0,menuBackground)
screen:print(30,30,"What Does Ds mean?")
screen:print(80,130,"Dualshock")
screen:print(300,130,"Duel screen")
screen:print(200,220,"Dual screens")
oldpad=Controls.read()
while true do
pad=Controls.read()
---------------------------
if pad:square() then
dofile("ni/wrong.lua")
end
if pad:circle() then
dofile("ni/wrong.lua")
end
if pad:triangle() then
dofile("ni/right.lua")
end
---------------------------
screen.flip()
screen.waitVblankStart()
oldpad = pad
end
Bol**ks still didn't work, it doesn't seem to even be trying to load the 1.lua file anyway so it must be a kat.lua or its got something else elsewhere relating to it i haven't seen.
Hello,
I'm just learning Lua, and I'm trying to get System.usbDiskModeActivat e() to work on my PSP-2000 slim cfw3.80M33-5.
I have LuaPlayer for cfw3.71M33 installed in my /game folder.
In the Lowser/index.lua if you hit the L trigger, its supposed to trigger USB mode, but all it does is freeze up the LuaPlayer, so I have to hit [home] to quit out of it.
The memory stick LED flickers a second after I hit L trigger, but just freezes.
I've tried this on a completely clean memory stick with no plugins installed and only LuaPlayer installed, and connected to two different PC's.
I've also tried this with the PSPhud 1.3 installed to see if it was hitting the cpu when it locked, but it didn't appear to be.
I suspect cfw3.80M33-5 has something to do with it.
I've been searching a while for something about this, but can't seem to find anything.
Is there a better LuaPlayer for the Slim cfw3.80M33-5 anywhere?
I'm a complete noob at this, so sorry if theres something obvious I've missed.
Any help or insight would be greatly appreciated.
Thanks.
it just shows up as corrupted data on mine so you are further than meZitat:
Zitat von IMIX
and it probably wont work seen as in 3.80 there were some nid changes which mean that when it was made for 3.71 the nids are now different so do not relate to the same things
basically i cant get it to work at all and even if it does work like on yours i dbout any of the main functions will work - until a 3.80 version is made if there ever is
That makes sense, I didn't think about the nid changes.
I guess i could try to contact Emeric0101 over at XtreamLua.com to see if there's any chance of a new LuaPlayer release for the new cfw..
I wish I knew enough to mess with that stuff myself.
are you saying that the 3.71 luaplayer wont even run for you?
I formatted and reset my flash1 in recovery after this last update,
dunno if that would make a difference for you or not.
Thanks for the quick reply!
I just use Cool's Mod 4 built for 1.50. I use it in 3.80 M33-5 and the System.usbDiskModeActivat e() works perfectly.
I just ran the 3.71-M33 LuaPlayer on eLoader 1.0, and System.usbDiskModeActivat e() works now!!!
I've tried running every other LuaPlayer I could find normally, even through eLoader, with no luck.
how'd you get Mod 4 for 1.50 running on your slim?
Oh no, not on a slim, sorry. I misunderstood. My bad.
ah, no problem.
got it working (or worked around).
thanks all!
:Jump:
Good job! :)
hi,
i wanted to create a tile engine, but i get "loop in gettable" in line 27, which is
the whole code:Code:screen:blit(x*picture:width()+1-picture:width(),y*picture:height()+1-picture:heigt(),picture)
i hope you can help me.....im still a noob and it took quite some time to come up with this oOCode:white = Color.new(255,255,255)
green = Color.new(255,255,255)
tiles = {}
tiles[1] = Image.createEmpty(30,30)
tiles[1]:clear(white)
coord = {}
coord[1] = {}
coord[1].x1 = 1
coord[1].x2 = 6
coord[1].y1 = 3
coord[1].y2 = 7
coord[2] = {}
coord[2].x1 = 8
coord[2].x2 = 11
coord[2].y1 = 2
coord[2].y2 = 8
function tile(x1,x2,y1,y2,picture)
for x = x1,x2 do
for y = y1,y2 do
screen:blit(x*picture:width()+1-picture:width(),y*picture:height()+1-picture:heigt(),picture)
end
end
end
while true do
screen:clear()
tile(coord[1].x1,coord[1].x2,coord[1].y1,coord[1].y2,tiles[1])
tile(coord[2].x1,coord[2].x2,coord[2].y1,coord[2].y2,tiles[1])
screen.flip()
screen.waitVblankStart()
end
You misspelled height:
screen:blit(x*picture:wid th()+1-picture:width(),y*picture :height()+1-picture:heigt(),picture)
damn, i spent an hour just changing things in my script..
Not to be rude, but that's hilarious lol
this too --------------->
http://i165.photobucket.com/albums/u.../hilarious.jpg
yea, i know ;(...... and the tile engine sucks anyway,im going to make a new one today..... are there any lua tutorials "more advanced" than the ones on evilmana?