PSP Hacks - Forums
Go Back   PSP Hacks - Forums > PSP Community > PSP Programming & Development

Notices

Reply
 
Thread Tools Display Modes
  #1  
Old 05-31-2008, 10:01 PM
pirata nervo pirata nervo is offline
Programmer
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 4,948
pirata nervo User Has a Beginner Reputation
Default



This is the final version of NervOS for the psp-hacks competition.

I have worked this week on 2.0.5 so here it is.

Changes/Additions:
*Added new icons to menu (main: Applications | sub: Calculator, Text Editor, Web Browser and USBHostFS)
*Fixed 2 bugs in recovery menu.
*Improved Calculator
*Fixed memory issues
*From now on, file browser displays ICON0.PNG when you are highlighting a PBP/CSO/ISO file
*Removed NervOS Boot PBP and replaced by Main PBP.
*Added Scripting System - this scripting system was made by me and it is still under creation, a lot of functions will be added on future releases and the parser will be improved.

The scripting system was made to allow users with no programming knowledge to create their own games or programs.
Of course this is the first version of the scripting system so a lof things are missing and some bugs may be found.

Screenshot (the new icons)


To run scripts at 80% speed, make sure you use 333mhz.

Here's a small sample.
Code:
NervOS_Script("NervOS*Script*File");

background = LoadImage("ms0:/NervOS/themes/Original/background.png");
smallicon = LoadImage("ms0:/NervOS/themes/Original/exit.png");

StartLoop();

DisplayImage(0, 0, background);
DisplayImage(100, 100, smallicon);

IfPressButton(CIRCLE);
Then EndScript();

EndLoop();

EndScript();
Screenshot (of my sample script running)


Remember this is the first version of the script and it's slow.
Only a few functions are available but its all I could do this week.
May have some bugs of course.

DisplayImage(X,Y(integer variable here won't work), imgname);

Here's the documentation of NervOS Script:
http://www.consoleworld.net/nervos/i...ting_Functions

[Download: NervOS 2.0.5]
[Mirror: NervOS 2.0.5]

[Download: Theme Pack 1.5]
Note: some themes included in v1.0 are not in v1.5 due to NervOS 2.0.5 incompatibility.
__________________

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
Reply With Quote
  #2  
Old 05-31-2008, 10:47 PM
PSdonkey's Avatar
PSdonkey PSdonkey is offline
Squirrel Admin
PSP Titan
 
Join Date: Mar 2006
Posts: 9,089
PSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond reputePSdonkey has a reputation beyond repute
Default

Nice work. On the spoiler issue, you can't use a code tag inside a spoiler tag as it will then not hide the spoiler. To fix it, just edit out the code tags from within the spoiler.
__________________
Want to become a PSP Dev the easy way? Check out my tutorial for the PSP here www.psp-hacks.com/forums/viewtopic.php?id=65403
Want to learn how to create your own games on the PSP? Check out my tutorial here http://www.psp-hacks.com/forums/view...693884#p693884
Want to learn how to program C++ ? Check out that tutorial here www.psp-hacks.com/forums/viewtopic.php?id=28694
Reply With Quote
  #3  
Old 05-31-2008, 11:26 PM
sk8mystery23 sk8mystery23 is offline
PSP Guru
 
Join Date: Sep 2007
Location: I am everywhere, but nowhere.
Posts: 1,583
sk8mystery23 User Has a Beginner Reputation
Default

oh you did the icon0 thing? i remember saying that kinda but im sure you thought about that before
__________________
Reply With Quote
  #4  
Old 05-31-2008, 11:55 PM
Blade_punk's Avatar
Blade_punk Blade_punk is offline
Moderator
PSP Monk
 
Join Date: Nov 2006
Location: Candy Mountain
Posts: 2,584
Blade_punk will become famous soon enoughBlade_punk will become famous soon enough
Default

Damn, you made your own scripting engine? Thats some sweet stuff, mad work Pirata :)
Reply With Quote
  #5  
Old 06-01-2008, 12:10 AM
SG57 SG57 is offline
Moderator
PSP Veteran
 
Join Date: Apr 2007
Location: Washington
Posts: 1,362
SG57 User Has a Beginner Reputation
Default

Rather then reinvent hte wheel Pirata, incorporate liblua and script with that :) Tons of documentation online for lua scripting for those who would wnat to script for this (rather then learn a whole new scripting language :P). Think of it as a cutdown, custom, in-control luaplayer :(
__________________
...you'll never know what it's like...spending your whole life in a dream...


Checkout my site for a majority of my projects (too lazy to keep updating)
Reply With Quote
  #6  
Old 06-01-2008, 06:13 AM
pirata nervo pirata nervo is offline
Programmer
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 4,948
pirata nervo User Has a Beginner Reputation
Default

@psdonkey, thanks for telling me that :)
@blade_punk, yeh I made it this week but as I aid its not perfect.
@SG57, I wanted to give it a try and create my own, its always good to learn how to create this things
thanks
__________________

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
Reply With Quote
  #7  
Old 06-01-2008, 10:57 AM
Brick Brick is offline
Programmer
PSP Smarty
 
Join Date: Mar 2008
Posts: 145
Brick User Has a Beginner Reputation
Default

Nice update ,and its the only version that actually worked for me.

I just wanna point out something.

That isn't scripting system , it looks more like a parser with more cases that
require parsing, that's why its slow.

Scripting engine = Parser,Lexer,Compiler(to build "code" into bytecode),
Virtual Machine(executes bytecode,increases program counter..etc),and other
advanced stuff(eg:more than 1 instructions packed into 1..etc)...
Reply With Quote
  #8  
Old 06-01-2008, 11:22 AM
pirata nervo pirata nervo is offline
Programmer
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 4,948
pirata nervo User Has a Beginner Reputation
Default

yes its a parser
__________________

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
Reply With Quote
  #9  
Old 06-01-2008, 12:01 PM
MaxTheBest MaxTheBest is offline
PSP Newbie
 
Join Date: May 2008
Posts: 14
MaxTheBest User Has a Beginner Reputation
Default

Well, great job!:twothumbs:
That's so nice to see that even on those days when we see hundreds of lua shells a day, some people still do awesome one's.
Not as good as irshell yet, but I think that it will one day (for the moment it's normal, irshell has quite a lot of releases behind it...)
Reply With Quote
  #10  
Old 06-01-2008, 12:10 PM
pirata nervo pirata nervo is offline
Programmer
PSP Titan
 
Join Date: Mar 2007
Location: www.consoleworld.net
Posts: 4,948
pirata nervo User Has a Beginner Reputation
Default

yeh its not so cool as iRShell but oh well I did my best for 3 months.
thanks!
__________________

Upgrade your PSP Slim or FAT now!
NervOS Official Forum
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:34 PM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
©