| View previous topic :: View next topic |
| Author |
Message |
Kajo5
Joined: 17 Sep 2006 Posts: 18 :
Items
|
Posted: Sun Sep 17, 2006 11:40 pm Post subject: Lua Player Plugin |
|
|
This is my first try to post somthing so hello everybody.
I created an external EBOOT that loads LUAPLAYER.PBP and automaticly launches the lua script selected in iR Shell.
I made an external EBOOT and did'nt modify the Lua code itself because I think updating and changing Lua versions should be a lot easier now.
I used some of Mondy's code so thanks for that.
Any feedback or anything would be great.
EDIT
The plugin has been updated and bugs have been fixed.
This is the link to the FINAL version of the plugin:
http://rapidshare.de/files/33922623/LuaPlayer_iR_Shell_Plugin_FINAL.zip
EDIT II
Here's the new link:
http://rapidshare.com/files/2655751/iR_Shell_Lua_Plugin.rar
Last edited by Kajo5 on Fri Nov 10, 2006 2:00 am; edited 4 times in total |
|
| Back to top |
|
 |
Dark Fire
Joined: 21 Aug 2006 Posts: 50 :
Items
|
Posted: Sun Sep 17, 2006 11:47 pm Post subject: |
|
|
| This is great, thanks for the contribution. |
|
| Back to top |
|
 |
StoneCut Site Admin


Joined: 05 Mar 2006 Posts: 1926 : Location: Planet Earth
Items
|
Posted: Mon Sep 18, 2006 12:12 am Post subject: |
|
|
That's a neat way of doing it. Many thanks for sharing !!!
EDIT
Congratulations on the PSPupdates news
User Knutselmaaster (comment #5 for your news on pspupdates) noticed there might be some bugs:
| Quote: |
Locks up psp when i press start?
In an attempt to get out of calculator, i pressed start and my psp locks up and shuts down? When i press home i don't go back to irshell but straight to xmb!
Please change this for the next version. |
Can you look into this ? _________________ Check out the iR Shell 3.0 Pack Generator !!! <- Klick this ! |
|
| Back to top |
|
 |
Jumpin Jehosaphat Beta Tester


Joined: 04 Sep 2006 Posts: 480 : Location: USA West
Items
|
Posted: Mon Sep 18, 2006 9:46 am Post subject: |
|
|
| thanks for making a new plugin. |
|
| Back to top |
|
 |
ahman Site Admin

Joined: 17 Feb 2006 Posts: 1527 : Location: Antarctica
Items
|
Posted: Mon Sep 18, 2006 2:14 pm Post subject: |
|
|
Kajo5, thanks for making a plugin for iR Shell. However, the main problem for your plugin is it's using sceKernelLoadExec function and this will unload iR Shell from memory. Meaning you can't switch back or exit back to iR Shell. To do it properly, you can use "sceKernelLoadModule" & "sceKernelStartModule" to launch the luaplayer. You'll need to change your EBOOT.PBP into a PRX module. Otherwise, you won't be able to load another PBP module from your EBOOT.PBP. If you've turned your EBOOT.PBP into a PRX, you can simply rename it as "EBOOT.PBP" for iR Shell to launch it as a plugin (even though it's a real PRX module). _________________ iR Shell Homepage
www.irshell.com |
|
| Back to top |
|
 |
Illegal Machine
Joined: 23 Jun 2006 Posts: 58 :
Items
|
Posted: Mon Sep 18, 2006 3:08 pm Post subject: |
|
|
Hmmm... Now I have a few questions about this.
WHY are all the lua games Ive seen so far in eboot form? how does this transmute into a .lua extention identification?
Why lua .16 when it's up to .20? and why is it in extapp #8? #7 is the next in line, did I miss something I should have? |
|
| Back to top |
|
 |
LordSturm Beta Tester


Joined: 24 Feb 2006 Posts: 510 : Location: Australia
Items
|
Posted: Mon Sep 18, 2006 3:19 pm Post subject: |
|
|
Rofl life gets confusing, face it.
As for why .16, apparanty thats cuz its stable?
Lua games come prepackaged with a lua player, which just means what watste of space...
Just go into System folder and find what it loads, then rename that file to index.lua, and copy its folder back into um... lua player... |
|
| Back to top |
|
 |
Kajo5
Joined: 17 Sep 2006 Posts: 18 :
Items
|
Posted: Tue Sep 19, 2006 10:52 pm Post subject: |
|
|
hi,
I am glad many people liked the plugin.
I tried to fix the kernel problems using the tips ahman gave me but I still have some problems.
I don't have much experiance as a coder so I thought maybe some of you guys could look at my source and tell me whats wrong.
It seems that the loader loads the lua eboot but I get some kind of error.
when I use my previous plugin with the same lua I don't get this error.
I realy want everyone to enjoy this plugin so please help, thanks.
download the source here:
http://rapidshare.de/files/33678399/iR_Shell_Lua_Plugin_src.rar |
|
| Back to top |
|
 |
pipspsp
Joined: 19 Feb 2006 Posts: 120 :
Items
|
Posted: Wed Sep 20, 2006 7:58 am Post subject: |
|
|
you should just post the code
here let me do it 4 u
main.cpp
| Code: |
//Lua Player Loader iR Shell Plugin by Kajo5
//Created September 17th 2006
//Updated September 19th 2006
#include <pspkernel.h>
#include <pspdebug.h>
#include <string.h>
#define printf pspDebugScreenPrintf
PSP_MODULE_INFO("LUALOADER", 0x1000, 1, 1);
PSP_MAIN_THREAD_ATTR(0);
int main(int argc, char *argv[])
{
//writes lua file name to cfg file
char *pmp_argv1;
if (argc > 1)
pmp_argv1 = argv[1];
else
pmp_argv1 = NULL;
SceUID file;
file = sceIoOpen ("ms0:/IRSHELL/EXTAPP/APP8/LUA_TEMP.CFG", PSP_O_WRONLY | PSP_O_CREAT | PSP_O_TRUNC, 0777);
sceIoWrite (file, pmp_argv1, strlen (pmp_argv1));
sceIoClose (file);
//loads Lua Player LUAPLAYER.PBP
pspDebugScr
eenInit();
printf("Loading Lua Player...\n");
int lua = sceKernelLoadModule("ms0:/IRSHELL/EXTAPP/APP8/LUAPLAYER.PBP", 0, 0);
sceKernelStartModule(lua, 0, 0, 0, 0);
sceKernelSleepThread();
return(0);
} |
makefile
| Code: |
TARGET = LUALOADER
OBJS = main.o
BUILD_PRX=1
INCDIR =
CFLAGS = -O0 -G0 -Wall
CXXFLAGS = $(CFLAGS) -fno-exceptions -fno-rtti
ASFLAGS = $(CFLAGS)
LIBS = -lpspdebug -lpsphprm_driver
LIBDIR =
LDFLAGS =
EXTRA_TARGETS = EBOOT.PBP
PSP_EBOOT_TITLE = Lua Player Plugin
PSPSDK=$(shell psp-config --pspsdk-path)
include $(PSPSDK)/lib/build.mak
|
I like your idea. your a newb with ideas. I'm just a newb.
also do you need all thoses 0's in sceKernelStartModule? I read this topic b4 and im not saying I understood it, but he has 1 0.
anyways heres the topic
http://forums.ps2dev.org/viewtopic.php?p=44889&sid=0596926e2ef83693e534f741697d3769 |
|
| Back to top |
|
 |
Kajo5
Joined: 17 Sep 2006 Posts: 18 :
Items
|
Posted: Wed Sep 20, 2006 8:39 pm Post subject: |
|
|
Thanks pipspsp for posting my source I'll try to remember to do it this way next time.
I checked what you asked about the 0's and I actualy need them.
I'm sorry I can't give you a more explained and proffesional reason, it's just because I'm realy new to this and I don't want to give you wrong information.
Anyway, I want to ask again for some help fixing this code and thanks to those who took a look at it so far. |
|
| Back to top |
|
 |
ahman Site Admin

Joined: 17 Feb 2006 Posts: 1527 : Location: Antarctica
Items
|
Posted: Thu Sep 21, 2006 8:49 pm Post subject: |
|
|
Hi Kajo5,
I made some changes to your source and it should work now. Just rename the PRX to EBOOT.PBP and place it in the plugin folder.
http://www.irshell.com/download/lua.zip _________________ iR Shell Homepage
www.irshell.com |
|
| Back to top |
|
 |
Kajo5
Joined: 17 Sep 2006 Posts: 18 :
Items
|
Posted: Thu Sep 21, 2006 10:40 pm Post subject: |
|
|
ahman you are great!
The plugin works and the previous problems were solved!
Thank you for your help, now many people could enjoy the plugin with no problems and I learned some things as a coder.
And also thanks to everyone else for the support and to those who use this plugin.
I will edit the first post and update the link to the updated plugin. |
|
| Back to top |
|
 |
Kajo5
Joined: 17 Sep 2006 Posts: 18 :
Items
|
Posted: Fri Nov 10, 2006 1:12 am Post subject: |
|
|
As StoneCut requested I now reuploaded my Lua Player Plugin.
I made a little change, the plugin should now be in APP7 folder and not APP8.
ahman, I would really like you to include this plugin with your new iR Shell release I think it's useful. Here is the new link (I will also update the first post):
http://rapidshare.com/files/2655751/iR_Shell_Lua_Plugin.rar |
|
| Back to top |
|
 |
StoneCut Site Admin


Joined: 05 Mar 2006 Posts: 1926 : Location: Planet Earth
Items
|
Posted: Fri Nov 10, 2006 1:43 am Post subject: |
|
|
Many thanks Kajo5. That's much appreciated
I think we still have a couple of days until public release so hopefully AhMan will get to check it out. _________________ Check out the iR Shell 3.0 Pack Generator !!! <- Klick this ! |
|
| Back to top |
|
 |
| |
|