![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
This is a discussion on request for conversions - lua to c converter within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; request - conversions lua to c converter i would like as many people as possible to help with this i ...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#1 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
request - conversions
lua to c converter i would like as many people as possible to help with this i would like and and all of the conversions for lua code to c and vice versa e.g. screen rint = pspDebugScreenPrintfand so on for a program that i am makeing to help people who know lua to learn c as i do not yet know c myself i cannot convert them all and even if i could i would probably forget some the program will help people who know lua to learn c and even if they dont want to lean it it will help them to compile their lua programs into c code which would be useful for every one and more people would learn lua and c please if you have any conversions for me or have any suggestions of how to do some of the conversions please pm me !!!!!!!!!
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). Last edited by FaT3oYCG; 11-03-2007 at 05:07 AM.. |
|
|
|
|
|
#3 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
it will work i have it working it is quite easy and it auto matically includes files depending on what code you use
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
#5 | |
![]() ![]() Bush Programmer
|
Quote:
How many people ever went back to LUA from using C with the PSP? it could work the other way round for many programs, if not all programs. LUA is written in C, so there's C syntax for everything LUA does. |
|
|
|
|
|
|
#6 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
basically i want the conversions to convert the lua to c and yes it does work and it does only stop c going to lua
as that would be nearley impossibe also why would you want to go from c code to lua you wouldnt by me creating this app lua coders can learn c by coding in lua therefore teaching themselfes this would be a good application for everyone and all im asking is for people to tell me the conversions that they know ill add them in and see if they work and to answer your question the conversion from lua to graphics works in my program it only converts the code tho and i havent tested yet but it is more likeley to work than not
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
#7 | |
|
Banned for LIFE
|
Quote:
|
|
|
|
|
|
|
#8 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
i meant the conversion if you said
screen rint = pspDebugScreenPrintfit would mean the same as pspDebugScreenPrintf = screen rintof you were makeing an lua to c converter ill add that to the first post sorry
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
#9 |
![]() ![]() lol
Join Date: Aug 2006
Real First Name: Robert
Location: Whittier, CA
Just Played: Madden 10
Posts: 5,791
Trader Feedback: 0
|
Why did you make a thread AND make a post in the lua help thread AND make a post in the C help thread?
STOP SPAMMING! I got a suggestion, Learn C/C++ then do the "conversions" yourself. |
|
|
|
|
|
#11 | |
![]() ![]() Avada Kedavra
|
Quote:
__________________
|
|
|
|
|
|
|
#12 | |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
Quote:
i also hoped to use my own program to help me learn c as it would show me the references between c and lua and help me to associate the relevant c code with the equivelant lua code
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
|
#14 | |
![]() ![]() lol
Join Date: Aug 2006
Real First Name: Robert
Location: Whittier, CA
Just Played: Madden 10
Posts: 5,791
Trader Feedback: 0
|
You cant just learn C by using "converted" lua functions.
All in all, Your program will be a watse of time. Plus the syntax is different. -= Double Post =- Quote:
Last edited by Anti-QuickJay; 11-02-2007 at 03:56 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
|
#15 | |
![]() ![]() Bush Programmer
|
Quote:
|
|
|
|
|
|
|
#16 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
yes it would which is what my program will let you do and it will work because ive already started
![]() that is just a coupple coz ive only added a few as i only started tonight and im going bed now see yall tomorrow i think oh soz for the big pic
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
#17 |
![]() ![]() Developer
|
Just converting the function names isn't enough, the complete syntax needs to be changed, datatypes modified, semicols added, other type of loops, different includes, Makefile needs to be made etc.
The compilers are also very strict, one mistake will stop it from compiling, you could fix it with common sense then, but I doubt you will be able to make it convert precisely enough to make the compiler accept it without any changes. Learning C is pretty easy, you don't need weird converters for it, take a look at the tutorials at http://www.psp-programming.com/, also take a look in the forums. For some reason I find the C syntax easier then LUA, but that's my opinion.
__________________
Bubbletune's Release Site |
|
|
|
|
|
#18 | |
![]() |
Quote:
__________________
[center][B][SIZE="3"]wheeee =:D[/SIZE][/B][/center] |
|
|
|
|
|
|
#19 | |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
Quote:
all i would like people to do is use this ("PSP LUA Code", "PSP C Code") and replace them with the relevant data and i can add them in and make the converter actually do something i am going to make it able to make a simple hello world program just to prove my poc and maybe then you will see that it would be a useful program to have
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
|
#20 |
![]() ![]() Avada Kedavra
|
Learn C instead of wasting your time with this useless idea.
__________________
|
|
|
|
|
|
#21 |
![]() ![]() sceKernelExitGame();
|
I agree, this is a waste. Anyone who is seriously about learning C would never use this (disregarding the fact that you'll never get this to work).
Then only way I could see this working is using a lex, yacc, ANTLER, flex, bison, ect... to generate code for you. You'd need to make the grammer yourself for Lua's syntax. So basically, that's almost like recreating the Lua language, which I can guarantee you won't be able to do.
__________________
|
|
|
|
|
|
#23 |
![]() ![]() Developer
|
Not every function in LUA exists in C directly, you'll need to have like 20 lines of code sometimes, for something LUA would do in one. Unless you create header files that has the complete code, and then have it convert it to one line which then redirects to the header file. But that wouldn't help you to learn at all, it simply changes the syntax (and I doubt you are able to change the syntax anyways) but keeps everything the same speed, functions etc.
Another thing, how are you going to create a converter if you don't even know C yourself? You'll have to ask a question about it for everything you add in the program, making it far from "your" work, more the work of the community who told you how to do all of it.
__________________
Bubbletune's Release Site |
|
|
|
|
|
#24 |
![]() Developer and Tutor.
My Mood:
Join Date: Jul 2007
Real First Name: Craig
Location: Widnes, England
Just Played: Life.
Posts: 1,646
Trader Feedback: 0
|
i can look at the code snippets for the translations most are common sense i can use lua player for some otheres <-- the source and ust tuts that are on the internet for the rest then when i have finished if i have missed any out i can ask here
and i am able to make it convert one line of lua code into many lines of c code i could even make it create a hellow world program if you typed hello world !!! if i wanted to just for poc
__________________
------ FaT3oYCG -----
AKA Craig, call me what you want to It's your preference. My Website: is down for a while ... I'll bring a new one back soon. Currently working on: (0) PGE Gears Of War - On hold (Very large project). (0) PS???? - A tactical 2d side scrolling game involving AI and online multiplayer features. - Tile engine nearley finished (1 bug to fix). |
|
|
|
|
|
#25 |
![]() ![]() Developer
|
Only one thing: You need a lexical analyzer to write a working LUA to C converter, and unless you know what that is - which I heavily doubt, seeing as you don't even understand what you're trying to do - then the whole project will not work out.
PS: As said many times already: Just replacing function calls with C function calls will not be enough. It will only work out for the LUA scripts that you wrote the replacements for and won't work in general. If you can't understand that, then... well... have fun with wasting lots of time until you'll find out for yourself when you hit the wall.
__________________
Raphs board rules #31: Excessive use of punctuation is either a sign of a lesser ego or a small mind. Avoid it if you don't want to look like a total moron. Raphs board rules #17: When you need to ask whether you are capable of doing something, you are not. Raphs board rules #2: Exploits aren't found by changing version numbers, blindly merging data into a file or turning your PSP upside down. Raphs board rules #1: If you have no clue how exploits work, don't come up with ideas about them. |
|
|
|
|
|
#26 |
![]() Ænima
|
There's already a Lua to C converter. It's for the PC version of lua. And since the source is most likely released as well, you just have to change it to include some of the PSP specific functions.
__________________
[IMG]http://upload.wikimedia.org/wikipedia/commons/thumb/c/c5/Zoso.svg/744px-Zoso.svg.png[/IMG] Looking for some good C programming tutorials for the PSP? Look no further! [URL="http://psp-coding.com/"]PSP-Coding.com[/URL] is your source for all your PSP coding needs. |
|
|
|
|
|
#28 | |
![]() ![]() sceKernelExitGame();
|
Quote:
__________________
|
|
|
|
|
|
|
#29 | |
|
Banned for LIFE
|
Quote:
|
|
|
|
|
|
|
#30 | |
![]() ![]() Developer
|
Quote:
__________________
|
|
|
|
|
![]() |
| Tags |
| conversions , converter , lua , request |
| Thread Tools | |
|
|