QJ.NET | Videos | Forums | iPhone | MMORPG | Nintendo DS | Wii | PlayStation 3 | PSP | Xbox 360 | PC | Downloads | Contact Us
Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact

QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides

Go Back   QJ.net Game Discussion - PSP, Xbox, Wii, PS3, PSP Homebrew, and PSP Guides > Developers Corner > PSP Development, Hacks, and Homebrew > PSP Development Forum
The above video goes away if you are a member and logged in, so log in now!

ok tiff there is no instructions for...

This is a discussion on ok tiff there is no instructions for... within the PSP Development Forum forums, part of the PSP Development, Hacks, and Homebrew category; making tiffsdk.x ... so how do i do it?????...

Reply
 
LinkBack Thread Tools
Old 10-28-2006, 08:03 PM   #1
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default ok tiff there is no instructions for...

making tiffsdk.x ... so how do i do it?????
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:04 PM   #2
 
Join Date: Jul 2006
Location: NorCal
Posts: 24,900
Trader Feedback: 0
Default

Programming I presume?

There are no tutorials for TIFF coding. No idea myself.

PM SG57, as he is a very good TIFF dev.
__________________
If you ever need me, you can contact me at [URL="**********.net"]**********.net.[/URL]
Adiuvo is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:05 PM   #3
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

Quote:
Originally Posted by _Axel_
Programming I presume?

There are no tutorials for TIFF coding. No idea myself.

PM SG57, as he is a very good TIFF dev.
no i dont need tutorial... but the makefile is missing info on making tiffsdk.x (for the pcp to use to make it)
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:13 PM   #4

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

Im a little lost here... The tiffsdk.x shouldnt need editing whatsoever. The tiffsdk.c however, can be edited. Alot of functions sys calls have been found out for 2.x+ but not all of them are stubbed and linked in the tiffsdk.c. Therefore, you must do it yourself. Just follow the pattern within tiffsdk.c all the other functions follow nad youll be fine.

data_type
function_name
( arguments )
{ asm ("syscall 0x0000;"); }

Than later in the init function...

linkFunctionByNID ( INSERT_ADDRESS , &function_name );

But i doubt when your just starting out youll need to mess with that, Forst start making small games and build from there Best of luck with what ever you want. If this isnt what you were talking about, feel free to better detail your question

Oh and if your talking about creating your own game from scratch, dont 'reinvent the wheel' just take the Tetris v1.1 source and delte all tetris related stuff leaving yourself with a blank template for any TIFF app that is compilable.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:19 PM   #5
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

Quote:
Originally Posted by SG57
Im a little lost here... The tiffsdk.x shouldnt need editing whatsoever. The tiffsdk.c however, can be edited. Alot of functions sys calls have been found out for 2.x+ but not all of them are stubbed and linked in the tiffsdk.c. Therefore, you must do it yourself. Just follow the pattern within tiffsdk.c all the other functions follow nad youll be fine.

data_type
function_name
( arguments )
{ asm ("syscall 0x0000;"); }

Than later in the init function...

linkFunctionByNID ( INSERT_ADDRESS , &function_name );

But i doubt when your just starting out youll need to mess with that, Forst start making small games and build from there Best of luck with what ever you want. If this isnt what you were talking about, feel free to better detail your question

Oh and if your talking about creating your own game from scratch, dont 'reinvent the wheel' just take the Tetris v1.1 source and delte all tetris related stuff leaving yourself with a blank template for any TIFF app that is compilable.
PSPSDK=$(shell psp-config --pspsdk-path)
PSPDEV=$(shell psp-config --pspdev-path)
INCLUDE=$(PSPSDK)/include

all: tetris

clean:
rm -rf *~ *.o *.elf *.bin *.s *.bin

CC = psp-gcc
CFLAGS := -D PSP -I $(INCLUDE) -W -Wall -O2 -G0 -fno-pic -mno-abicalls -w -fomit-frame-pointer

ASM = psp-as

tiffsdk.o: tiffsdk.c
# Optimisation level 2 (-O2) MUST be used.
$(CC) $(CFLAGS) -O2 -S tiffsdk.c -o tiffsdk.s
$(ASM) tiffsdk.s -o tiffsdk.o

gfx.o: gfx.c gfx.h
$(CC) $(CFLAGS) -S gfx.c -o gfx.s
$(ASM) gfx.s -o gfx.o

tetris.o: tetris.c gfx.h
$(CC) $(CFLAGS) -S tetris.c -o tetris.s
$(ASM) tetris.s -o tetris.o

tetris: tetris.o gfx.o tiffsdk.o tiffsdk.x
$(PSPDEV)/bin/psp-ld -T tiffsdk.x -L$(PSPSDK)/lib tetris.o gfx.o tiffsdk.o -o tetris.elf
$(PSPDEV)/bin/psp-strip -s tetris.elf
$(PSPDEV)/bin/psp-objcopy -O binary tetris.elf restart.bin


thats the makefile... i only editted the file that it will make (the bin) but look it asks for tiffsdk.x but never makes it...
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:40 PM   #6

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

If it spits out a .bin for you (no errors) dont worry about it. fi its saying it cant find tiffsdk.x than you dont have it in the smae directory as your makefile.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:42 PM   #7
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

it spit out a.out... is that it?? oh wait thats o kb and wen i open on a hew editor... its empty
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:44 PM   #8

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

No. Can you type 'make' in your TIFF apps directory and copy/paste the output here please?
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 08:46 PM   #9
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

C:\pspdev\restart>make
psp-gcc -D PSP -I C:/pspdev/psp/sdk/include -W -Wall -O2 -G0 -fno-pic -mno
lls -w -fomit-frame-pointer -S tetris.c -o tetris.s
psp-as tetris.s -o tetris.o
psp-gcc -D PSP -I C:/pspdev/psp/sdk/include -W -Wall -O2 -G0 -fno-pic -mno
lls -w -fomit-frame-pointer -S gfx.c -o gfx.s
psp-as gfx.s -o gfx.o
# Optimisation level 2 (-O2) MUST be used.
psp-gcc -D PSP -I C:/pspdev/psp/sdk/include -W -Wall -O2 -G0 -fno-pic -mno
lls -w -fomit-frame-pointer -O2 -S tiffsdk.c -o tiffsdk.s
psp-as tiffsdk.s -o tiffsdk.o
make: *** No rule to make target `tiffsdk.x', needed by `tetris'. Stop.



i use the alternate verion that uses cmp... so ya
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:03 PM   #10

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

post your makefile.. hmm...
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:07 PM   #11
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

Quote:
Originally Posted by davidthefat
PSPSDK=$(shell psp-config --pspsdk-path)
PSPDEV=$(shell psp-config --pspdev-path)
INCLUDE=$(PSPSDK)/include

all: tetris

clean:
rm -rf *~ *.o *.elf *.bin *.s *.bin

CC = psp-gcc
CFLAGS := -D PSP -I $(INCLUDE) -W -Wall -O2 -G0 -fno-pic -mno-abicalls -w -fomit-frame-pointer

ASM = psp-as

tiffsdk.o: tiffsdk.c
# Optimisation level 2 (-O2) MUST be used.
$(CC) $(CFLAGS) -O2 -S tiffsdk.c -o tiffsdk.s
$(ASM) tiffsdk.s -o tiffsdk.o

gfx.o: gfx.c gfx.h
$(CC) $(CFLAGS) -S gfx.c -o gfx.s
$(ASM) gfx.s -o gfx.o

tetris.o: tetris.c gfx.h
$(CC) $(CFLAGS) -S tetris.c -o tetris.s
$(ASM) tetris.s -o tetris.o

tetris: tetris.o gfx.o tiffsdk.o tiffsdk.x
$(PSPDEV)/bin/psp-ld -T tiffsdk.x -L$(PSPSDK)/lib tetris.o gfx.o tiffsdk.o -o tetris.elf
$(PSPDEV)/bin/psp-strip -s tetris.elf
$(PSPDEV)/bin/psp-objcopy -O binary tetris.elf restart.bin

thats it
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:09 PM   #12

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

Wait, can/have you downloaded the TIFF tetris sourc eand just tried to compile it? If not, do so now and see if it still has a problme. If so, than I guess you cant compile using hte TIFF SDK on PSPDev...
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:10 PM   #13
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

ok let me try i got an error i did not change anything

C:\pspdev>cd tiff sdk

C:\pspdev\tiff sdk>make
psp-gcc -D PSP -I C:/pspdev/psp/sdk/include -W -Wall -O2 -G0 -fno-pic -mno-abica
lls -w -fomit-frame-pointer -S tetris.c -o tetris.s
tetris.c : In function 'ProcessKeys':
tetris.c(626) : error: 'PSP_CTRL_SCREEN' undeclared (first use in this function)

tetris.c(626) : error: (Each undeclared identifier is reported only once
tetris.c(626) : error: for each function it appears in.)
make: *** [tetris.o] Error 1
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:11 PM   #14
 
Join Date: May 2006
Posts: 46
Trader Feedback: 0
Default

SG57 CAN U MAKE A TUTORIAL FOR TIFF?? WE WILL ALL APPRECIATED ..I WANNA MAKE ONE
IMMIGRANT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:22 PM   #15

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

david - Thats becasue YOUR pspctrl.h doesnt have PSP_CTRL_SCREEN in the enumerator/macro so... Add this to the very top of your code (below the includes tho):

#define PSP_CTRL_SCREEN 0x400000

Thatll fix that error. than re-post what happens.
-= Double Post =-
IMMIGRANT - I could port Yeldarb's tutorials (a majority of them) to TIFF but TIFF is no different than regular C / 1.5/0 programming, just different functions... but sure... Ill do it later I suppose.
__________________

Last edited by SG57; 10-28-2006 at 09:22 PM.. Reason: Automerged Doublepost
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:25 PM   #16
 
Join Date: May 2006
Posts: 46
Trader Feedback: 0
Default

k thats if u want but i mean a really NOOBISH tutorial.. plz i understand if u dont want serisly ..i jst want more 2.8 ppl to b able to have some games or applications
IMMIGRANT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:25 PM   #17
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

well i dont have psp_ctrl thing... and that was the sdk... unchanged
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:35 PM   #18

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

Just add

#define PSP_CTRL_SCREEN 0x400000

To your code somewhere above int main()

Than compile
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 09:55 PM   #19
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

still doenst work
-= Double Post =-
forget it... its stupid (i was making an app that take pics, turns off and ya

Last edited by davidthefat; 10-28-2006 at 09:55 PM.. Reason: Automerged Doublepost
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 10:01 PM   #20
 
Join Date: May 2006
Posts: 46
Trader Feedback: 0
Default

dont give up
IMMIGRANT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 10:02 PM   #21
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

Quote:
Originally Posted by IMMIGRANT
dont give up
y shouldnt i?? its all in the game minus the game... its stupid...
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 10:13 PM   #22
 
Join Date: May 2006
Posts: 46
Trader Feedback: 0
Default

jst ask SG or jst wait for his tutorial..then u might know what to do
IMMIGRANT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 10:15 PM   #23
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

Quote:
Originally Posted by IMMIGRANT
jst ask SG or jst wait for his tutorial..then u might know what to do
i dont need a tutorial... its just the regular hb but less functions
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 10:23 PM   #24
 
Join Date: May 2006
Posts: 46
Trader Feedback: 0
Default

can u tell me the most basics to make a tiff game or application? do i need a program?? am serius noob..but i wanna learn
IMMIGRANT is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-28-2006, 10:24 PM   #25
 
davidthefat's Avatar
 
Join Date: Mar 2006
Posts: 146
Trader Feedback: 0
Default

later i g2g to sleep... pm me
davidthefat is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 10-29-2006, 12:51 PM   #26

Muppet Magnet
 
Fanjita's Avatar
 
Join Date: Sep 2005
Location: Edinburgh, UK
Posts: 2,388
Trader Feedback: 0
Default

tiffsdk.x is included in the SDK zip. You don't need to make your own.
Fanjita is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2006, 03:45 PM   #27
 
Join Date: Oct 2006
Location: Houston,TX
Posts: 68
Trader Feedback: 0
Default

unzip the tiffsdk file into a folder cmd your way there and type make
it should compile using the pspsdk i have done so plenty of times..
FLIK is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Old 11-02-2006, 04:54 PM   #28

...in a dream...
 
SG57's Avatar
 
Join Date: Jul 2005
Posts: 4,957
Trader Feedback: 0
Default

immigrant - i started a small respository of lessons for TIFF programming. Give those a look. Oh and provided a nice blank template with enough functionality to make a small game once discussed in laterl essons if you dont know C from prior expereince.
__________________
SG57 is offline  
Digg this Post!Add Post to del.icio.usBookmark Post in TechnoratiFurl this Post!
Reply With Quote
Reply

Tags
instructions , tiff

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

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



All times are GMT -8. The time now is 08:47 AM.



Use of this Web site constitutes acceptance of the TERMS & CONDITIONS and PRIVACY POLICY
Copyright © 2009, QJ.NET. All Rights Reserved.
Contact Us