forums.ps2dev.org Forum Index forums.ps2dev.org
Homebrew PS2, PSP & PS3 Development Discussions
 
 FAQFAQ   SearchSearch   MemberlistMemberlist   UsergroupsUsergroups   RegisterRegister 
 ProfileProfile   Log in to check your private messagesLog in to check your private messages   Log inLog in 

Enigma (Oxyd) for Lua Player?

 
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development
View previous topic :: View next topic  
Author Message
yudonomi



Joined: 06 Dec 2005
Posts: 1

PostPosted: Tue Dec 06, 2005 1:05 pm    Post subject: Enigma (Oxyd) for Lua Player? Reply with quote

Hi all, I've been investigating what it would take to port Lua-based Enigma to Lua Player for PSP, and found that it's a little beyond my coding skills at the moment.

I'm going to keep trying, but maybe other folks around here could take a look at the source code (and download the app and play with it), and tell me how feasible it would be to adapt for Lua Player?[/url]
Back to top
View user's profile Send private message
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Tue Dec 06, 2005 9:26 pm    Post subject: Re: Enigma (Oxyd) for Lua Player? Reply with quote

This looks like a lot of work. I don't know why, but the author has used Lua only for some minor tasks, like level initialization, but has implemented many things with C++, e.g. roboter moving, so you have to reimplement this to Lua.

But it uses SDL, so it would be less work to port the whole program to the PSP, because SDL is already available for the PSP.
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Wed Dec 07, 2005 3:44 am    Post subject: Reply with quote

Shine wrote:
SDL is already available for the PSP.

Are you referring to sceGu* or Gu.* that are available in Lua Player? If so, would you give us direction where to find info regarding parameters needed for each Gu.* function? Wiki didn't tell us exactly where.
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
Shine



Joined: 03 Dec 2004
Posts: 728
Location: Germany

PostPosted: Wed Dec 07, 2005 4:02 am    Post subject: Reply with quote

KawaGeo wrote:

Are you referring to sceGu* or Gu.* that are available in Lua Player? If so, would you give us direction where to find info regarding parameters needed for each Gu.* function? Wiki didn't tell us exactly where.


No, with SDL I mean the SDL package in PSPSDK. My idea was to take the original source of the game (it is GPL and free available at the website) and compile it with psp-gcc, not with Lua Player.

The documentation for the Gu.* and Gum.* functions in Lua Player are referenced in the wiki (but the links were outdated, I've corrected it)

pspgu.h
samples

I don't know, if there are more documentation. But you are right, it is not very easy to use, perhaps someone should write some Lua code for easier usage, e.g. a higher level API like Java 3D, which uses a scene graph and some easy to use classes for meshes and transformations.
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Wed Dec 07, 2005 5:37 am    Post subject: Reply with quote

Thanks, Shine, for the corrected links.

It is a little bit out of topic but you mentioned a higher level "API" library for Lua Player coders. I was thinking of the same way you did. I'd rather to implement GLScene concept that is widely used for Delphi developers. I don't know about Java 3D scene since I am not a Java guy. Right now, I am refreshing myself with OpenGL per se. NeHe's tutorials, indeed, help.

Just a note: Atomic puzzle for Lua Player was ported from WAtomic program written in Delphi with GLScene.
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
SiGi



Joined: 20 Oct 2005
Posts: 11
Location: Phoenix, AZ

PostPosted: Wed Dec 07, 2005 8:27 am    Post subject: Reply with quote

Quote:
Just a note: Atomic puzzle for Lua Player was ported from WAtomic program written in Delphi with GLScene.


Well, I didn't even look at the sourcecode for WAtomic at all (since I've never used Delphi before). All I used was the graphics and levels. The game itself was coded in LUA from scratch. The controls and layout are wastly different as well.

Similalry, I've ported the Windows XP Minesweeper just by taking graphics from screenshots, everything else was coded from scratch of course (the source code for the Win Minesweeper is not even available, since MS is not a great fan of open source:)
Back to top
View user's profile Send private message
KawaGeo



Joined: 27 Aug 2005
Posts: 191
Location: Calif Mountains

PostPosted: Wed Dec 07, 2005 9:49 am    Post subject: Reply with quote

Sorry, SiGi. My pressumation was wrong. It is good for you to start coding from a scratch. That is the best education, indeed.

I was trying to make a point that GLScene is popular among Delphi developers who want 3D graphics.
_________________
Geo Massar
Retired Engineer
Back to top
View user's profile Send private message Send e-mail
Display posts from previous:   
Post new topic   Reply to topic    forums.ps2dev.org Forum Index -> PSP Lua Player Development All times are GMT + 10 Hours
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


Powered by phpBB © 2001, 2005 phpBB Group