| View previous topic :: View next topic |
| Author |
Message |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Sun Dec 27, 2009 3:36 am Post subject: Eboot launch help |
|
|
can some one explain to me why this isnt working?
| Code: |
#include <pspdebug.h>
#include <pspkernel.h>
#include <pspctrl.h>
#include <psploadexec.h>
#define printf pspDebugScreenPrintf
#define PATH "ms0:/PSP/GAME/TestEboot/Eboot.PBP"
PSP_MODULE_INFO("launch eboot test", 0, 0, 1);
SceCtrlData pad;
int main(void)
{
pspDebugScreenInit();
pspDebugScreenClear();
while(1)
{
printf("Please Press [X] to Launch Test Eboot.PBP...");
sceCtrlPeekBufferPositive(&pad, 1);
if (pad.Buttons & PSP_CTRL_CROSS)
{
struct SceKernelLoadExecParam param
{
param.size = sizeof(param);
param.args = strlen(PATH)+1;
param.argp = PATH;
param.key = "game";
}
SceKernelLoadExec(PATH, param);
}
}
}
|
|
|
| Back to top |
|
 |
m0skit0
Joined: 02 Jun 2009 Posts: 226
|
Posted: Sun Dec 27, 2009 5:18 am Post subject: |
|
|
Can someone explain why you don't give more details? _________________
| The Incredible Bill Gates wrote: | | The obvious mathematical breakthrough would be development of an easy way to factor large prime numbers. |
|
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Sun Dec 27, 2009 5:43 am Post subject: |
|
|
| if you need more details then you obviously cant answer my question |
|
| Back to top |
|
 |
gotmilk065
Joined: 28 Nov 2009 Posts: 25
|
Posted: Sun Dec 27, 2009 5:53 am Post subject: |
|
|
| S4LVAT10N wrote: | | if you need more details then you obviously cant answer my question |
Assholery will get you nowhere ;) |
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Sun Dec 27, 2009 12:58 pm Post subject: |
|
|
| dats not being an asshole. thats being upfront. and love da word btw :p |
|
| Back to top |
|
 |
ab5000
Joined: 06 May 2008 Posts: 74
|
Posted: Sun Dec 27, 2009 8:29 pm Post subject: |
|
|
1) AFAIK, this isn't correct C:
| Code: | struct SceKernelLoadExecParam param
{
param.size = sizeof(param);
param.args = strlen(PATH)+1;
param.argp = PATH;
param.key = "game";
} |
2) C is case-sensitive, so don't use SceKernelLoadExec. You have to use sceKernelLoadExec, with lowercase "s". _________________
| Code: | %:include<stdio.h>
int _(int __,int ___,int ____,int _____)
<%for(;____<___;_____=_____*__,____++);
return _____;%>main()<%printf
("%d\n",_(2,5,0,1));%> |
|
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Sun Dec 27, 2009 9:12 pm Post subject: |
|
|
Shouldn't the compiler give some kind of error which would tell him exactly the same think you just said?
If S4LVAT10Ns compiler threw that error then S4LVAT10N is not ready to code.
Or said in a way S4LVAT10N talks to us:
if you can't read compiler errors then you obviously arent ready to code. _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Sun Dec 27, 2009 11:48 pm Post subject: |
|
|
If you try to compile you code you'll get a lot of errors,
next time try to post error log....
That's the right code:
| Code: |
char* PATH = "ms0:/module.prx";
struct SceKernelLoadExecParam param;
param.size = sizeof(param);
param.args = strlen(PATH)+1;
param.argp = PATH;
param.key = "game";
SceUID modid = sceKernelLoadExec(PATH, ¶m);
if(modid < 0)
{
pspDebugScreenInit();
pspDebugScreenPrintf("Error 0x%08X", modid);
sceKernelDelayThread(2000000);
}
|
_________________ Get Xplora! |
|
| Back to top |
|
 |
Raphael

Joined: 17 Jan 2006 Posts: 646 Location: Germany
|
Posted: Mon Dec 28, 2009 12:13 am Post subject: |
|
|
He doesn't even have a PSP to test his code on: http://www.psp-programming.com/forums/index.php/topic,4597.0.html
So he's basically asking to get already working code and then find someone to test it for him. Nothing I will support really.
@SALVAT10N: As I already told you on psp-programming, better set up a programming environment for your PC and learn basic programming there before jumping onto a special hardware plattform that you can't even test the code on. _________________ <Don't push the river, it flows.>
http://wordpress.fx-world.org - my devblog
http://wiki.fx-world.org - VFPU documentation wiki
Alexander Berl |
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Mon Dec 28, 2009 2:30 am Post subject: |
|
|
im not asking for wrorking code. since your already on psp programming you would know i already figured this out. thats not how you write structures and thats why this didnt work. it should be written like:
| Code: |
struct SceKernelLoadExecParam param;
param.size = sizeof(param);
param.args = strlen(PATH)+1;
param.argp = PATH;
param.key = "game";
sceKernelLoadExec(PATH, ¶m);
|
thank you all thoose who tried to help. i finished my program last night so you were a lil late |
|
| Back to top |
|
 |
jojojoris
Joined: 30 Mar 2008 Posts: 261
|
Posted: Mon Dec 28, 2009 7:38 am Post subject: |
|
|
How do you know your program is finished? You don't have a psp to test it on? _________________
| Code: | int main(){
SetupCallbacks();
makeNiceGame();
sceKernelExitGame();
} |
|
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Mon Dec 28, 2009 8:08 am Post subject: |
|
|
| 1) someone tests it for me. 2) i also use the psp emulator to test out my programs. you dont neccesarily need NEED a psp to program for psp |
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Tue Dec 29, 2009 1:42 am Post subject: |
|
|
| btw thanks neoh. i had figured this out a while before you guys started posting but thank you for trying to help. |
|
| Back to top |
|
 |
whistler
Joined: 04 Mar 2008 Posts: 40
|
Posted: Tue Dec 29, 2009 2:38 am Post subject: |
|
|
| good luck learning to code in c using a platform you don't own....your gonna need it |
|
| Back to top |
|
 |
ne0h
Joined: 21 Feb 2008 Posts: 386
|
Posted: Tue Dec 29, 2009 3:20 am Post subject: |
|
|
It's a really bad idea to dev on a platform that you don't know and you don't own...
Good luck!
ne0h _________________ Get Xplora! |
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Tue Dec 29, 2009 7:53 am Post subject: |
|
|
| why does every1 think i dnt have a psp? i just didnt have one for that day because i was grounded. well i still dnt but eventually im ggetting it back. but thanks for the help |
|
| Back to top |
|
 |
Davee
Joined: 22 Jun 2009 Posts: 59
|
Posted: Wed Dec 30, 2009 12:46 am Post subject: |
|
|
| Man, you really are an asshole. How about you learn C before ever coming back to PSP? |
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Wed Dec 30, 2009 1:35 am Post subject: |
|
|
| how am i an asshole. since i got on this site people been treating me like trash and i greatly appreciate thoose who havent. how is that being an ass? take the log out of your eye before you come telling me bout the speck in mine |
|
| Back to top |
|
 |
PsPfReAK
Joined: 28 Mar 2009 Posts: 61
|
Posted: Wed Dec 30, 2009 9:39 am Post subject: |
|
|
| S4LVAT10N wrote: | | how am i an asshole. since i got on this site people been treating me like trash and i greatly appreciate thoose who havent. how is that being an ass? take the log out of your eye before you come telling me bout the speck in mine |
mate, people are treating you like a cunt cause your flipping rude, end off, if you dont like me being upfront, piss off :D
happy coding, good luck, happy new year lol.
and still you need to correct:
SceKernelLoadExec
to
sceKernelLoadExec |
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Wed Dec 30, 2009 10:37 am Post subject: |
|
|
| well i dont mean to sound like im flipping off. i dont mean to send off a signal like that. for that i apologize. but if people would maybe treat me with a little more respect and possibly actually help me rather than tell what i should learn first. its kind of agrivating when im trying to figure something out and instead of people giving me the answer or pointing towards my answer they always tell me something qite honestly i dont care about. just please help or dont comment *no flaming intended here. just explaining myself. no one flip please* |
|
| Back to top |
|
 |
Davee
Joined: 22 Jun 2009 Posts: 59
|
Posted: Wed Dec 30, 2009 2:12 pm Post subject: |
|
|
| S4LVAT10N wrote: | | how am i an asshole. since i got on this site people been treating me like trash and i greatly appreciate thoose who havent. how is that being an ass? take the log out of your eye before you come telling me bout the speck in mine |
aaah don't call me a hypocrite. People are here to help you, if someone asks for more information in order to help you, YOU GIVE IT. These people are giving up their time to help you, and you're just a rude prick that clearly has no respect for these people. You talk down to people and make yourself sound so high level to these people doing you a favour. Also, looking at your history it seems when someone gives a solution you tend to suprise us all with "I already done that" or some lame excuse that disregards the effort put in to these assistants.
Also, I amn't the nicest guy around, not many people like me at all. I'm straight forward and blunt but I know what I'm talking about. Also, If you don't like peoples advice would you kindly just leave? These people helping you all know what they're talking about, when they say learn something else first, it'd seriously consider doing what they state. Also, you get what you deserve, if you show respect you get respect, don't bite the hand that feeds because it's not smart, clever or makes you look good.
Sure, you might totally disregard my post and think "that guy is a prick" and honestly I won't blame you, you're an asshole yourself. We both have arrogance in common, but showing a little respect here and there to the people that help you, or just programmers in general.
You might throw that clumsy, "ohnoez am still a wee baby" or "ohnoez am still lrning to lolcode", they are nothing more than excuses and seriously won't get you anyway. If you become reliant on excuses to get out of situations, you'll never succeed.
Now to everyone that thinks I've just broke this guys heart of becoming a programmer, I don't mean this to be a complete downer. Take it in the way that you're in no situation and never will be to act like an asshole to someone giving you help. If you act like this you'll never be able to co-operate with others and people will not listen to you. I'm telling you this for your own good, teamwork is vital in programmer whether it's a brief project, or a massive project. You'll eventually have to work with someone.
Don't get me wrong I like to see new developers emerge, but I really, really don't like it when they act like twats. People are trying to help them, it's the thought that counts. Even if they don't succeed in helping you, at least they attempted. I mean, it's all big mouth talk from me since I barely help anyone unless they directly ask, but you get my point? right? please tell me you do ? >.<
You're not a programmer... yet. |
|
| Back to top |
|
 |
NoEffex
Joined: 27 Nov 2008 Posts: 108
|
Posted: Wed Dec 30, 2009 2:17 pm Post subject: |
|
|
| S4LVAT10N wrote: | | well i dont mean to sound like im flipping off. i dont mean to send off a signal like that. for that i apologize. but if people would maybe treat me with a little more respect and possibly actually help me rather than tell what i should learn first. its kind of agrivating when im trying to figure something out and instead of people giving me the answer or pointing towards my answer they always tell me something qite honestly i dont care about. just please help or dont comment *no flaming intended here. just explaining myself. no one flip please* |
Sal, I told you on Lan, I told you on Uni, and I'll tell you here too, since it applies.
These guys know what they're talking about, and I advise you to listen to whatever they say and don't argue. They are much smarter than you or I.
You will find it a lot easier to program on the PC, until you at least learn how C works. You clearly don't know the language, and it would be best for you to learn on the PC first. _________________ Programming with:
Geany + Latest PSPSDK from svn |
|
| Back to top |
|
 |
coyotebean
Joined: 05 Dec 2009 Posts: 26
|
Posted: Wed Dec 30, 2009 2:41 pm Post subject: |
|
|
| S4LVAT10N wrote: | | well i dont mean to sound like im flipping off. i dont mean to send off a signal like that. for that i apologize. but if people would maybe treat me with a little more respect and possibly actually help me rather than tell what i should learn first. its kind of agrivating when im trying to figure something out and instead of people giving me the answer or pointing towards my answer they always tell me something qite honestly i dont care about. just please help or dont comment *no flaming intended here. just explaining myself. no one flip please* |
The thing is that you keep posting codes with simple syntax issue which can be fixed quicker than posting here for anwsers. It will give off an impression that you don't know the language. |
|
| Back to top |
|
 |
Art
Joined: 09 Nov 2005 Posts: 647
|
Posted: Wed Dec 30, 2009 9:02 pm Post subject: |
|
|
He's a kid who had his PSP taken away from him as punishment.
What do you expect? _________________ If not actually, then potentially. |
|
| Back to top |
|
 |
S4LVAT10N
Joined: 27 Dec 2009 Posts: 16
|
Posted: Thu Dec 31, 2009 12:35 am Post subject: |
|
|
| ya i understand everyone |
|
| Back to top |
|
 |
jbit Site Admin

Joined: 28 May 2005 Posts: 293 Location: København, Danmark
|
Posted: Thu Dec 31, 2009 2:15 am Post subject: |
|
|
| Drama lock |
|
| Back to top |
|
 |
|