![]() |
| Forums | Gaming News | Videos | Downloads | Today's Posts | Mark Forums Read | Chat | FAQ | Members List | Contact |
| ||||||
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?????...
![]() |
|
|
LinkBack | Thread Tools |
|
|
#2 |
![]() |
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] |
|
|
|
|
|
#3 | |
![]() |
Quote:
|
|
|
|
|
|
|
#4 |
![]() ![]() ...in a dream...
|
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.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#5 | |
![]() |
Quote:
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... |
|
|
|
|
|
|
#6 |
![]() ![]() ...in a dream...
|
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.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#8 |
![]() ![]() ...in a dream...
|
No. Can you type 'make' in your TIFF apps directory and copy/paste the output here please?
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#9 |
![]() |
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 |
|
|
|
|
|
#10 |
![]() ![]() ...in a dream...
|
post your makefile.. hmm...
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#11 | |
![]() |
Quote:
|
|
|
|
|
|
|
#12 |
![]() ![]() ...in a dream...
|
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...
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#13 |
![]() |
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 |
|
|
|
|
|
#15 |
![]() ![]() ...in a dream...
|
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.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) Last edited by SG57; 10-28-2006 at 09:22 PM.. Reason: Automerged Doublepost |
|
|
|
|
|
#18 |
![]() ![]() ...in a dream...
|
Just add
#define PSP_CTRL_SCREEN 0x400000 To your code somewhere above int main() Than compile
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
|
|
#26 |
![]() ![]() Muppet Magnet
|
tiffsdk.x is included in the SDK zip. You don't need to make your own.
__________________
Using firmware v2.00-v3.50? Open up a whole world of homebrew here
The PSP Homebrew Database needs YOU! Your ISP may be illegally wiretapping all your web activity. Stop Phorm Now! Visiting the Edinburgh Festivals? Get practical advice from experts. |
|
|
|
|
|
#28 |
![]() ![]() ...in a dream...
|
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.
__________________
...you'll never know what it's like... spending your whole life in a dream...
Launch a Kitten out of a Cannon and win real cash! Checkout my newly updated site for all my projects (Kitten Cannon, BOXHEAD, Light Cycle 3D) |
|
|
|
![]() |
| Tags |
| instructions , tiff |
| Thread Tools | |
|
|