Author Topic: Diagnostic Tool  (Read 8419 times)

Offline *FuFa

  • learn2/spell/
  • Millennium Poster
  • *
  • Posts: 1316
  • Post quality +0/-0
  • Gender: Male
  • Spam King Barfday Boy¯\(°_o)/¯ ¯\(°_o)/¯ ¯\(°_o)/¯
Diagnostic Tool
« on: December 02, 2007, 09:35:09 AM »
Hey guys,

I'm looking for a diagnostic tool for the PSP that shows me if a button is pressed and which, the position of the analog nub would be awesome too. I don't know if that already exists or not, if not, anyone wanna program it? It would be hella useful.

Have no shame in being kindly and gentle, but if the time comes in the time of your life to kill, kill and have no regret. In the time of your life, live so that, in that wonderous time you shall not add to the misery and sorrow of the world, but shall smile to the infinite delight and mystery of it.

Offline mootoo

  • Who Farted ???
  • *
  • Posts: 220
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #1 on: December 04, 2007, 12:06:10 PM »
I can write tool like this for you mate  :cool:

Offline robin1989

  • Site Owner - Site Maintenance & development
  • Administrator
  • Mad Bomber
  • *
  • Posts: 6272
  • Post quality +21/-0
  • Gender: Male
  • Site owner
    • Acidmods
Re: Diagnostic Tool
« Reply #2 on: December 04, 2007, 03:54:19 PM »
that would be great for you to do that mootoo as it would allow modders to test all the buttons and triggers to help see if they have wired all the buttons up properly plus it would be really kwl

i am not responsible for what i do or my advice


Get the iPhone 4s from Three using Quidco and recieve £109 cashback

Offline mootoo

  • Who Farted ???
  • *
  • Posts: 220
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #3 on: December 05, 2007, 12:06:17 PM »
im working on it , maybe tomorow I can release it here. :winker:
phase : working on graphics i hate PS lol

Offline robin1989

  • Site Owner - Site Maintenance & development
  • Administrator
  • Mad Bomber
  • *
  • Posts: 6272
  • Post quality +21/-0
  • Gender: Male
  • Site owner
    • Acidmods
Re: Diagnostic Tool
« Reply #4 on: December 05, 2007, 04:45:05 PM »
if you ever need help with graphics im sure some of our artists would be more than happy to help if you dont like photoshop

i am not responsible for what i do or my advice


Get the iPhone 4s from Three using Quidco and recieve £109 cashback

Offline mootoo

  • Who Farted ???
  • *
  • Posts: 220
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #5 on: December 06, 2007, 03:21:47 PM »
OK work done!

only for digi buttons for this time .I can add analog nob in future.
http://www.sendspace.com/file/eo86my
http://rapidshare.com/files/74801772/BUTTOK.rar.html

Just paste folder BUTTOK in your PSP/GAME folder it worx on every CFW and Kxploited 1.50 FW.
Feedback wanted!
« Last Edit: December 06, 2007, 03:28:29 PM by mootoo »

Offline mootoo

  • Who Farted ???
  • *
  • Posts: 220
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #6 on: December 07, 2007, 11:20:45 AM »
no one care? test it out and give some feedback please .sry4DP

Offline *FuFa

  • learn2/spell/
  • Millennium Poster
  • *
  • Posts: 1316
  • Post quality +0/-0
  • Gender: Male
  • Spam King Barfday Boy¯\(°_o)/¯ ¯\(°_o)/¯ ¯\(°_o)/¯
Re: Diagnostic Tool
« Reply #7 on: December 07, 2007, 03:13:49 PM »
no one care? test it out and give some feedback please .sry4DP

No need to be sorry man, this is a piece of awesome right there. It just saved my ass, prevented alot of useless work. It's just overall awesome man.

I love it.

Too bad my PSP crashes when I set it to automaticly start it at boot up : (

Have no shame in being kindly and gentle, but if the time comes in the time of your life to kill, kill and have no regret. In the time of your life, live so that, in that wonderous time you shall not add to the misery and sorrow of the world, but shall smile to the infinite delight and mystery of it.

Offline mootoo

  • Who Farted ???
  • *
  • Posts: 220
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #8 on: December 07, 2007, 04:20:05 PM »
if U want some sw :censored:s just  pm me
sry i don't know why U can'tboot with my simple thing

i can add other things like UMD switch wifi sw and other things but u must write witch or how !!!!!!!!!!!!!!!!!!!!!!!!
« Last Edit: December 07, 2007, 04:35:02 PM by mootoo »

Offline Nemesis

  • Millennium Poster
  • *
  • Posts: 1186
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #9 on: December 07, 2007, 04:33:31 PM »
i find that amazing ill test it out later but thats a handy peice of software  :tup:

Offline *FuFa

  • learn2/spell/
  • Millennium Poster
  • *
  • Posts: 1316
  • Post quality +0/-0
  • Gender: Male
  • Spam King Barfday Boy¯\(°_o)/¯ ¯\(°_o)/¯ ¯\(°_o)/¯
Re: Diagnostic Tool
« Reply #10 on: December 07, 2007, 04:40:00 PM »
Well could you make it output a big text when a button is pressed? It's easier to see what you are pressing, especially when you have your screen hanging free.

Have no shame in being kindly and gentle, but if the time comes in the time of your life to kill, kill and have no regret. In the time of your life, live so that, in that wonderous time you shall not add to the misery and sorrow of the world, but shall smile to the infinite delight and mystery of it.

Offline 4dP

  • Millennium Poster
  • *
  • Posts: 1426
  • Post quality +0/-0
  • Modder For Hire - AM Donator
    • Modder For Hire website Hire me
Re: Diagnostic Tool
« Reply #11 on: December 07, 2007, 04:41:39 PM »
no one care? test it out and give some feedback please .sry4DP

did i post something i can't remember and why are you sorry

PINOY AKO

Offline mootoo

  • Who Farted ???
  • *
  • Posts: 220
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #12 on: December 08, 2007, 08:45:35 AM »
did i post something i can't remember and why are you sorry

 :rofl: its not about U 4DP= for double post

EDIT:If someone send me mp3s or wavs for buttons  like "left trigger" "circle" i can make it speak.
« Last Edit: December 08, 2007, 09:11:07 AM by mootoo »

Offline *FuFa

  • learn2/spell/
  • Millennium Poster
  • *
  • Posts: 1316
  • Post quality +0/-0
  • Gender: Male
  • Spam King Barfday Boy¯\(°_o)/¯ ¯\(°_o)/¯ ¯\(°_o)/¯
Re: Diagnostic Tool
« Reply #13 on: December 08, 2007, 10:21:17 AM »
:rofl: its not about U 4DP= for double post

EDIT:If someone send me mp3s or wavs for buttons  like "left trigger" "circle" i can make it speak.

Sexy

Have no shame in being kindly and gentle, but if the time comes in the time of your life to kill, kill and have no regret. In the time of your life, live so that, in that wonderous time you shall not add to the misery and sorrow of the world, but shall smile to the infinite delight and mystery of it.

Offline mootoo

  • Who Farted ???
  • *
  • Posts: 220
  • Post quality +0/-0
  • Gender: Male
Re: Diagnostic Tool
« Reply #14 on: December 08, 2007, 01:02:21 PM »
 :drunk: I got it here is link :
http://rapidshare.com/files/75239631/BUTTONS.rar.html

enjoy speech enabled button tester from mootoo's lab  :huh:

here is src:
Code: [Select]
#include <pspctrl.h>
#include <pspkernel.h>
#include <pspdebug.h>
#include <pspgu.h>
#include <png.h>
#include <stdio.h>
#include <pspaudio.h>
#include <pspaudiolib.h>

#include "wavloader.h"
#include "graphics.h"


PSP_MODULE_INFO("BUTTONSTESTER", 0, 1, 1);
WAV* OUTROS;
/* Exit callback */
int exit_callback(int arg1, int arg2, void *common) {
          WAV_Play(OUTROS);sceKernelDelayThread(3000000);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;
  }
 
 
SceCtrlData pad;
int STOP,PAUSE;
Image* BACK;
Image* LT;
Image* RT;
Image* LE;
Image* RI;
Image* UP;
Image* DO;
Image* TR;
Image* CR;
Image* SQ;
Image* CI;
Image* ST;
Image* SE;
WAV* INTROS;
WAV* LES;
WAV* RIS;
WAV* UPS;
WAV* DOS;
WAV* LTS;
WAV* RTS;
WAV* TRS;
WAV* CRS;
WAV* SQS;
WAV* CIS;
WAV* STS;
WAV* SES;
 
void WHATISPRESSED()
{
 sceCtrlReadBufferPositive(&pad, 1);
 if(pad.Buttons & PSP_CTRL_LTRIGGER){blitAlphaImageToScreen(0,0,62,32,LT,32,30);WAV_Play(LTS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_RTRIGGER){blitAlphaImageToScreen(0,0,62,32,RT,376,30);WAV_Play(RTS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_TRIANGLE){blitAlphaImageToScreen(0,0,81,85,TR,372,85);WAV_Play(TRS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_CIRCLE){blitAlphaImageToScreen(0,0,81,85,CI,372,85);WAV_Play(CIS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_SQUARE){blitAlphaImageToScreen(0,0,81,85,SQ,372,85);WAV_Play(SQS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_CROSS){blitAlphaImageToScreen(0,0,81,85,CR,372,85);WAV_Play(CRS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_RIGHT){blitAlphaImageToScreen(0,0,75,77,RI,25,89);WAV_Play(RIS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_LEFT) {blitAlphaImageToScreen(0,0,75,77,LE,25,89);WAV_Play(LES);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_UP)   {blitAlphaImageToScreen(0,0,75,77,UP,25,89);WAV_Play(UPS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_DOWN) {blitAlphaImageToScreen(0,0,75,77,DO,25,89);WAV_Play(DOS);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_SELECT){blitAlphaImageToScreen(0,0,107,24,SE,273,209);WAV_Play(SES);PAUSE=1;}
 if(pad.Buttons & PSP_CTRL_START){blitAlphaImageToScreen(0,0,107,24,ST,273,209);WAV_Play(STS);PAUSE=1;}
 }
void DRAWSCREEN()
{
blitAlphaImageToScreen(0,0,480,272,BACK,0,0);
WHATISPRESSED();
flipScreen();
if (PAUSE==1){PAUSE=0; sceKernelDelayThread(1000000);}
}

int main()
{
 SetupCallbacks();
   initGraphics();
WAV_Init();
INTROS = WAV_Load("./SOUND/INTRO.wav");
WAV_Play(INTROS);
LT=loadImage("./GRAPHICS/LTRIGGER.PNG");
RT=loadImage("./GRAPHICS/RTRIGGER.PNG");
LE=loadImage("./GRAPHICS/LEFT.PNG");
RI=loadImage("./GRAPHICS/RIGHT.PNG");
UP=loadImage("./GRAPHICS/UP.PNG");
DO=loadImage("./GRAPHICS/DOWN.PNG");
TR=loadImage("./GRAPHICS/TRIANGLE.PNG");
CR=loadImage("./GRAPHICS/CROSS.PNG");
SQ=loadImage("./GRAPHICS/SQUARE.PNG");
CI=loadImage("./GRAPHICS/CIRCLE.PNG");
ST=loadImage("./GRAPHICS/START.PNG");
SE=loadImage("./GRAPHICS/SELECT.PNG");
BACK=loadImage("./GRAPHICS/PSP.PNG");

OUTROS = WAV_Load("./SOUND/OUTRO.wav");
LES = WAV_Load("./SOUND/LEFT.wav");
RIS = WAV_Load("./SOUND/RIGHT.wav");
UPS = WAV_Load("./SOUND/UP.wav");
DOS = WAV_Load("./SOUND/DOWN.wav");
LTS = WAV_Load("./SOUND/LTRIGG.wav");
RTS = WAV_Load("./SOUND/RTRIGG.wav");
TRS = WAV_Load("./SOUND/TRIANGLE.wav");
CRS = WAV_Load("./SOUND/CROSS.wav");
SQS = WAV_Load("./SOUND/SQARE.wav");
CIS = WAV_Load("./SOUND/CIRCLE.wav");
STS = WAV_Load("./SOUND/START.wav");
SES = WAV_Load("./SOUND/SELECT.wav"); 

while(STOP==0)
{
DRAWSCREEN();
}
sceKernelExitGame();
return 0;
}
« Last Edit: December 08, 2007, 04:03:59 PM by mootoo »

 

SMF spam blocked by CleanTalk
SimplePortal 2.3.5 © 2008-2012, SimplePortal