Compilation Woes

Start a log and update it occasionally with your projects progress
Post Reply
JeromeVictor
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: March 3rd, 2014, 2:14 pm

Compilation Woes

Post by JeromeVictor » March 3rd, 2014, 2:29 pm

Hey all! I am new to this forum and have decided to ask for help with a compilation disc I've been having trouble with for a little while now for a little fun and late 90s nostalgia! I've been using Loser's PSX Menu 1.5 to load a ripped version of a certain horror game but I appear to be making a mistake somewhere and thus the game will not even load to the in game license screen (not the PSX BIOS one). I've created working blank one second long STR and XA files which I've put solely into an image using BUILDCD, which gives me no errors like file length isn't multiple of 2336 bytes per sector and have scanned the image using jPSXDec and both have played correctly with no scanning or reading errors. However when I use pSX or ePSXe the game sadly does not work. I will list the three batch files I am using to create my images:

1.bat
makecti.exe /SA lic.bin /2E .STR /2E .XAS data data.cti

2.bat (Needs DOSBox! :crying )
buildcd -idata.iso data.cti

3.bat
stripiso 2352 data.iso data.img
copy /b lic.bin+data.img data.bin
del CDW900E.TOC, data.cti, data.img, data.iso, PCD600.TOC, QSHEET.TOC

Hopefully I've provided enough information for someone with much more experience to chip in with maybe something helpful that I've missed or just not been made aware of. Many thanks for reading and for this forum. :)

User avatar
t0rxe
C Programming Expert
C Programming Expert
Posts: 140
Joined: December 19th, 2012, 8:08 pm
IRC: t0rxe
Motto: /\OX[]
PlayStation Model: SCPH-5502
Location: Australia

Re: Compilation Woes

Post by t0rxe » March 4th, 2014, 7:55 pm

What does your CTI table (DATA.CTI) look like?
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"

JeromeVictor
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: March 3rd, 2014, 2:14 pm

Re: Compilation Woes

Post by JeromeVictor » March 4th, 2014, 11:28 pm

Thank you for your response, t0rxe! I've used a smaller game as to not spam this page so much. :)

Code: Select all

Disc XA_PSX     

	LeadIn XA             
		Empty 1000    
    		PostGap 150     

	EndTrack              

	Track XA                      				
    		Pause 150              
				
    		Volume ISO9660     
			SystemArea lic.bin
				
	    		PrimaryVolume               				
				SystemIdentifier        "PLAYSTATION"   
				VolumeIdentifier        "PSX"           
	    			VolumeSetIdentifier     "PSX"
	    			PublisherIdentifier     "PSX"
	    			DataPreparerIdentifier  "PSX"
	    			ApplicationIdentifier   "PSX"
				
	    			Lpath               
	    			OptionalLpath
	    			Mpath
	    			OptionalMpath
					
				Hierarchy
					File DUMMY.STR
						XASource data\DUMMY.STR
					EndFile
					File FMV.EXE;1
						XAFileAttributes  Form1 data
						Source data\FMV.EXE
					EndFile
					File INTRO.STR
						XASource data\INTRO.STR
					EndFile
					File JESTERS.PKG;1
						XAFileAttributes  Form1 data
						Source data\JESTERS.PKG
					EndFile
					File LOGO.STR
						XASource data\LOGO.STR
					EndFile
					File OUTRO.STR
						XASource data\OUTRO.STR
					EndFile
					File PROGRAMS.TXT;1
						XAFileAttributes  Form1 data
						Source data\PROGRAMS.TXT
					EndFile
					File PSX.EXE;1
						XAFileAttributes  Form1 data
						Source data\PSX.EXE
					EndFile
					File SLUS_002.32;1
						XAFileAttributes  Form1 data
						Source data\SLUS_002.32
					EndFile
					File SYSTEM.CNF;1
						XAFileAttributes  Form1 data
						Source data\SYSTEM.CNF
					EndFile
				EndHierarchy       				  
			EndPrimaryVolume    		  
		EndVolume           
 	  
		PostGap  150        	
	EndTrack             

	LeadOut  XA
		Empty  150
	EndTrack 	
EndDisc

User avatar
t0rxe
C Programming Expert
C Programming Expert
Posts: 140
Joined: December 19th, 2012, 8:08 pm
IRC: t0rxe
Motto: /\OX[]
PlayStation Model: SCPH-5502
Location: Australia

Re: Compilation Woes

Post by t0rxe » March 6th, 2014, 11:57 am

No problem. Here is the correct way on how to go about putting your files.
It's just an example. Edit it to your liking and ensure you have the license files pointed correctly.
After creating the .ISO from STRIPISO.EXE, patch the image with 'Disc Patcher'.

Code: Select all

Define LicensePath c:\cdgen\licenseDefine LicenseFile licensee.dat

Disc CDROMXA_PSX

	CatalogNumber 0000000000000

	LeadIn XA
		Empty 1000
		PostGap 150
	EndTrack

	Track XA

		Pause 150
		Volume ISO9660
			SystemArea [LicensePath][LicenseFile]
			PrimaryVolume
				SystemIdentifier "PLAYSTATION"
				VolumeIdentifier "SPYRO"
				VolumeSetIdentifier "SPYRO"
				PublisherIdentifier "SCEE"
				DataPreparerIdentifier "SONY"
				ApplicationIdentifier "PLAYSTATION"
				LPath
				OptionalLpath
				MPath
				OptionalMpath

				Hierarchy
					XAFileAttributes  Form1 Audio
					XAVideoAttributes ApplicationSpecific
					XAAudioAttributes ADPCM_C Stereo ;you can also add 'Emphasis_On' before Stereo

					File SYSTEM.CNF
						XAFileAttributes Form1 Data
						Source c:\psyq\projects\spyro\cdrom\SYSTEM.CNF
					EndFile

					File SPYRO.EXE
						XAFileAttributes Form1 Data
						Source c:\psyq\projects\spyro\cdrom\SPYRO.EXE
					EndFile

					Directory DATA
						Directory TIM
							File IMAGE1.TIM
								XAFileAttributes Form1 Data
								Source c:\psyq\projects\spyro\cdrom\tim\IMAGE1.TIM
							EndFile

							File IMAGE2.TIM
								XAFileAttributes Form1 Data
								Source c:\psyq\projects\spyro\cdrom\tim\IMAGE2.TIM
							EndFile
						EndDirectory

						Directory VAG
							File AUDIO1.VAG
								XAFileAttributes Form1 Data
								Source c:\psyq\projects\spyro\cdrom\vag\AUDIO1.VAG
							EndFile

							File AUDIO2.VAG
								XAFileAttributes Form1 Data
								Source c:\psyq\projects\spyro\cdrom\vag\AUDIO2.VAG
							EndFile
						EndDirectory
					EndDirectory

					Directory XA
						File MUSIC1.XA
							XASource c:\psyq\projects\spyro\cdrom\xa\MUSIC1.XA
						EndFile
						File MUSIC2.XA
							XASource c:\psyq\projects\spyro\cdrom\xa\MUSIC2.XA
						EndFile
					EndDirectory
					
					Directory STR
						File VIDEO1.STR
							XAFileAttributes Form1 Video
							Source c:\psyq\projects\spyro\cdrom\str\VIDEO1.STR
						EndFile
						
						File VIDEO2.STR
							XAFileAttributes Form1 Video
							Source c:\psyq\projects\spyro\cdrom\str\VIDEO2.STR
						EndFile
					EndDirectory

				EndHierarchy
			EndPrimaryVolume
		EndVolume

		Empty 300
		PostGap 150
	EndTrack

	;place as many audio tracks as you wish, but you must change the lead out to AUDIO instead of XA!
	;Track AUDIO
		;Pause 150
		;Source  c:\psyq\music\spyro1.raw
	;EndTrack

	LeadOut XA ;note that the leadout track must be the same data type as the last track (IE: AUDIO, XA or MODE1)
		Empty 150
	EndTrack
EndDisc
"Nostalgia isn't a big enough word to describe the PlayStation from my eyes"

JeromeVictor
What is PSXDEV?
What is PSXDEV?
Posts: 3
Joined: March 3rd, 2014, 2:14 pm

Re: Compilation Woes

Post by JeromeVictor » March 7th, 2014, 6:45 am

Awesome! Tried your CTI and using a fade to black effect I have discovered that my custom STRs are freezing at the end of playback. Still figuring out what's causing it.

Post Reply

Who is online

Users browsing this forum: No registered users and 2 guests