PSP3D Left Header
PSP3D Header Right
PSP3D Logo CraveOnline Logo
Help the PSP 3D community grow!
Vote for us below:


Vote on the PSP Top 200
PSP Top 200 - Games, Videos, Wallpapers, Files, Hacks, Homebrew

Development Center - Learn the basics of coding or talk about advanced coding techniques with other developers.

Welcome to PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums!

You are currently viewing our website as a guest, which gives you limited access to reply and interact to discussions and other members. By joining our free community, you will be able to post topics in the forums, communicate privately with other members, vote in polls, and access many other special features.

Registration is fast, simple, and absolutely free so join our community today!

Go Back PSP3D.com - Sony PlayStation Portable News, Homebrew, Hacks, Reviews, Videos, Mods, Forums > PSP Forums > Development Center
Tags: cygwin


Reply
 
LinkBack Thread Tools Display Modes
  #1 (permalink)  
Old 11-22-2006, 09:12 PM
D3luxe D3luxe is offline
Junior Member
 
Join Date: Mar 2006
Posts: 19
Points: 36.02
Donate
Black screen?

I was following the tutorials Here and my game compiles fine, but when i run it on my psp all i get is a black screen.

Am i missing something?

Code:
// Hello World - My First App for the PSP /* This program was created by (Your Name Here) on (Date Here) It is a simple "Hello World" Application. */ #include #include #include #include PSP_MODULE_INFO("count", 0, 1, 1); /* Exit callback */ int exit_callback(int arg1, int arg2, void *common) { sceKernelExitGame(); return 0; } /* Callback thread */ int CallbackThread(SceSize args, void *argp) { int cbid; cbid = sceKernelCreateCallback("Exit Callback", exit_callback, NULL); sceKernelRegisterExitCallback(cbid); sceKernelSleepThreadCB(); return 0; } /* Sets up the callback thread and returns its thread id */ int SetupCallbacks(void) { int thid = 0; thid = sceKernelCreateThread("update_thread", CallbackThread, 0x11, 0xFA0, 0, 0); if(thid >= 0) { sceKernelStartThread(thid, 0, 0); } return thid; } int main() { pspDebugScreenInit(); SetupCallbacks(); int counter = 0; int i = 0; SceCtrlData pad; printf("Press [X] To Start the Timer"); while(1) { sceCtrlReadBufferPositive(&pad, 1); if(pad.Buttons & PSP_CTRL_CROSS) { break; } } while(1) { sceCtrlReadBufferPositive(&pad, 1); if(pad.Buttons & PSP_CTRL_CIRCLE) { break; } pspDebugScreenClear(); printf("Press [O] To Stop the Timer\n"); printf("Counter: %i", counter); counter++; for(i=0; i<5; i++) { sceDisplayWaitVblankStart(); } } pspDebugScreenClear(); printf("Counter Finished."); printf("Final Count: %i", counter); sceKernelSleepThread(); return 0; }
that is my code for the lesson 3.
Reply With Quote
  #2 (permalink)  
Old 11-24-2006, 06:27 PM
Michael M.'s Avatar
Michael M. Michael M. is offline
Teh h4x0r admin
My Mood:
 
Join Date: Feb 2006
Location: New York
Age: 25
Posts: 961
Points: 9,999,500,270.52
Donate
Send a message via AIM to Michael M. Send a message via MSN to Michael M.
You have to define printf. Add this line after the #includes:
Code:
#define printf pspDebugScreenPrintf
Hope that helps.

And yes, I know they're not just #include; the part in <> is showing up as HTML instead of code.
Reply With Quote
  #3 (permalink)  
Old 11-29-2006, 07:18 PM
hobbiecar123's Avatar
hobbiecar123 hobbiecar123 is offline
Member
My Mood:
 
Join Date: Mar 2006
Posts: 63
Points: 1.74
Donate
how the hell do u right code in c when it is a .pbp that is being run?
__________________
1 PSP FW 2.5>2.6>1.5>1.0>1.5>2.71SE-a>2.71SE-b>2.71se''
GTA, thug2 remix, nfsmw, AND like million isos
2GB sandisk

Reply With Quote
  #4 (permalink)  
Old 12-01-2006, 11:13 AM
Michael M.'s Avatar
Michael M. Michael M. is offline
Teh h4x0r admin
My Mood:
 
Join Date: Feb 2006
Location: New York
Age: 25
Posts: 961
Points: 9,999,500,270.52
Donate
Send a message via AIM to Michael M. Send a message via MSN to Michael M.
Quote:
Originally Posted by hobbiecar123 View Post
how the hell do u right code in c when it is a .pbp that is being run?
Like this.
Reply With Quote
  #5 (permalink)  
Old 12-01-2006, 11:15 AM
sikheadtom's Avatar
sikheadtom sikheadtom is offline
Is Da Best PSP3D Member
My Mood:
 
Join Date: Dec 2005
Location: England
Posts: 651
Points: 1.19
Donate
Send a message via AIM to sikheadtom Send a message via MSN to sikheadtom
Quote:
Originally Posted by hobbiecar123 View Post
how the hell do u right code in c when it is a .pbp that is being run?

You complie it
Reply With Quote
Reply

« Trying to learn Applescript | PSPG - Help wanted, Apply within! :p »



Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
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

vB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On

Points Per Thread View: 0.00
Points Per Thread: 1.00
Points Per Reply: 0.10

Similar Threads
Thread Thread Starter Forum Replies Last Post
Custom GameBoot Screen sikheadtom Getting Started/Help/Tutorials 38 07-06-2006 01:14 AM
Who has a custom boot screen? chriscooke109 Homebrew/Hacking 28 06-14-2006 06:28 AM
PSP Screen Capture v0.03 lifesabeach Development Center 10 02-07-2006 04:13 PM
BLack screen after loading snes emulator fix Metal Reaper Homebrew/Hacking 14 01-29-2006 09:48 AM





Crave Partner Sites: CraveOnline.com | DVDFile.com | PSP3D.com | ComingSoon.net | SuperHeroHype.com | RedBalcony.com | ActionTrip.com | CraveLyrics.com
Soundtrack.net | CraveFix.com | SpikedHumor.com | RPGamer.com | TattooNow.com | ImpactWrestling.com | SeekLyrics.com | PedalBMX.com | WildKO.com
vidKing.com | StrategyInformer.com | HHdb.com | RapLeagues.com | HipHop-Lyrics.com | Cravecocktails.com | ThePhatPhree.com | RideJudge.com | HottieSpots.com

PSP3D Footer Left Powered by Custom vB Version 5.1.0 for Crave Online Media, LLC.
Copyright © 2000 - 2007, Jelsoft Enterprises Ltd. and PSP3D.com.
LinkBacks Enabled by vBSEO 3.0.0 RC8

All times are GMT -4. The time now is 10:22 PM.
PSP3D Footer Right