Homebrew Saturn emulation using Cotton/Guardian Force testing and debug

Sidnei

Member
Newcomer
Joined
Nov 19, 2018
Messages
21
Trophies
0
Age
30
XP
943
Country
Brazil
its really not that difficult
makes sure you have the latest Ultimate-Switch-Hack-Script-master
on your pc desktop just make a folder named rom no () or ... or anything else just a simple folder name
place the Guardian_Force_Saturn_Tribute nsp in the rom folder make sure its the standalone game not the 3 in 1 as the 3 in 1 does not work with the current Ultimate-Switch-Hack-Script-master
place your prod.keys and title.keys in the Ultimate-Switch-Hack-Script-master folder just for convenience
place your saturn game in the rom folder bin and cue again no () or ... or anything else just a simple name like Sega Rally Championship.bin rename your Sega Rally Championship.cue to GuardianForce.cue

now run the script make sure settings are correct font lucide console blah blah
press continue
select n if you have the latest version
then 2
then 6
then 16
then n
this gets you to the injector
now press 2
press continue and select Guardian_Force_Saturn_Tribute nsp
press continue and select rom folder or whatever you named it
press continue and select prod.keys in the Ultimate-Switch-Hack-Script-master
press continue and select title.keys in the Ultimate-Switch-Hack-Script-master
just keep pressing n at this point until you get to ID: the just press continue
name your nsp keep it simple like Sega Rally 95 and press continue
name author again keep it simple like Sega and press continue
name version something like v1 and press continue
press continue now choose folder best to just save nsp in the rom folder
select y
let it build nsp just ignore the key errors i did and it still works just fine

once you have mastered the basic injection process you can start playing with icon/tex/wp and so on
hope this helps

massive thanks to @shadow256 for the script hope this saves you a load of question
and to the op @lisreal2401

Turn off the antivirus too.
 
  • Like
Reactions: Prb

shadow256

Well-Known Member
Member
Joined
Sep 30, 2017
Messages
188
Trophies
0
Age
38
XP
1,340
Country
France
its really not that difficult
makes sure you have the latest Ultimate-Switch-Hack-Script-master
on your pc desktop just make a folder named rom no () or ... or anything else just a simple folder name
place the Guardian_Force_Saturn_Tribute nsp in the rom folder make sure its the standalone game not the 3 in 1 as the 3 in 1 does not work with the current Ultimate-Switch-Hack-Script-master
place your prod.keys and title.keys in the Ultimate-Switch-Hack-Script-master folder just for convenience
place your saturn game in the rom folder bin and cue again no () or ... or anything else just a simple name like Sega Rally Championship.bin rename your Sega Rally Championship.cue to GuardianForce.cue

now run the script make sure settings are correct font lucide console blah blah
press continue
select n if you have the latest version
then 2
then 6
then 16
then n
this gets you to the injector
now press 2
press continue and select Guardian_Force_Saturn_Tribute nsp
press continue and select rom folder or whatever you named it
press continue and select prod.keys in the Ultimate-Switch-Hack-Script-master
press continue and select title.keys in the Ultimate-Switch-Hack-Script-master
just keep pressing n at this point until you get to ID: the just press continue
name your nsp keep it simple like Sega Rally 95 and press continue
name author again keep it simple like Sega and press continue
name version something like v1 and press continue
press continue now choose folder best to just save nsp in the rom folder
select y
let it build nsp just ignore the key errors i did and it still works just fine

once you have mastered the basic injection process you can start playing with icon/tex/wp and so on
hope this helps

massive thanks to @shadow256 for the script hope this saves you a load of question
and to the op @lisreal2401
The "2" choice for the log mode is only necessary if you encounter problems or bugs, the best way it to make an empty choice to have a better experience.

I want to rework the NSP extraction (no title.keys will be needed anymore and the good files will be chosen), someone know how to compile the Squirrel python's script cause I need a modification in it but this seems to require specific settings to create a functionnal package with pyinstaller.
 
  • Like
Reactions: Prb

LordShadowNWolf

Member
Newcomer
Joined
Oct 20, 2021
Messages
7
Trophies
0
Age
30
XP
45
Country
Costa Rica
Open your cotton2.cue file (which you've renamed) in any text editor and check FILE BINARY line. It must contain the EXACT name of bin file. Try deleting spaces and uppercases to be sure. For example, this is cue file of dragonforce and the name of bin file is "dragonforce.bin" in this instance.
View attachment 280657
Make sure there is no absolute paths in this line, just filename. I've seen cues with directories such as "C:\Users\... etc" in this line.

Thanks for the help pal! The name on the cue is the same!
I already resolved it, I was using a single Dragon Force bin, when the roms has 2... I downloaded the rom from another website which contained 2 bin files, add them both with the cue included and bingo... Working now.
I deleted the smaller size bin to confirm if that was the error and it was...
So if someone has that issue make sure the rom work first.

Now im reading to check how to do it widescreen, not that I mind seen that almost naked fairy but still... Is with the ini file but how do I delete my savefile? Should I delete an specific file from the SD or I have to delete the save from the Switch home menu?
 
  • Like
Reactions: EddieRiggs

Prb

Well-Known Member
Member
Joined
Nov 10, 2020
Messages
1,032
Trophies
1
XP
3,862
Country
United Kingdom
The "2" choice for the log mode is only necessary if you encounter problems or bugs, the best way it to make an empty choice to have a better experience.

I want to rework the NSP extraction (no title.keys will be needed anymore and the good files will be chosen), someone know how to compile the Squirrel python's script cause I need a modification in it but this seems to require specific settings to create a functionnal package with pyinstaller.
i only included the 2 for the log as you know people will be like its not working
just saves saying run the log :)
once again great work on the script :toot:
 

LordShadowNWolf

Member
Newcomer
Joined
Oct 20, 2021
Messages
7
Trophies
0
Age
30
XP
45
Country
Costa Rica
Does someone knows how to hide the Options screen?
I saw that someone figure it out but I spend 6 hours yesterday reading the thread I dont think can do it again XD
 

LordShadowNWolf

Member
Newcomer
Joined
Oct 20, 2021
Messages
7
Trophies
0
Age
30
XP
45
Country
Costa Rica
Does someone knows how to hide the Options screen?
I saw that someone figure it out but I spend 6 hours yesterday reading the thread I dont think can do it again XD
Found it is on the 1st page... Texture file and thats it...

Remember if you want to use widescreen and the texture file you have to enter the settings of your switch and delete the save file... So do this before you start a run on your games!
 

Prb

Well-Known Member
Member
Joined
Nov 10, 2020
Messages
1,032
Trophies
1
XP
3,862
Country
United Kingdom
Found it is on the 1st page... Texture file and thats it...

Remember if you want to use widescreen and the texture file you have to enter the settings of your switch and delete the save file... So do this before you start a run on your games!
was using that myself but it was messing up the options
how does it effect yours ?
 

LordShadowNWolf

Member
Newcomer
Joined
Oct 20, 2021
Messages
7
Trophies
0
Age
30
XP
45
Country
Costa Rica
was using that myself but it was messing up the options
how does it effect yours ?
For me it work fine... Im playing dragon force... Just started, so I cant say if causes issues in the future but the opening sequence is doing great!

I delete the save file again after I add the texture file... Just in case
 

lingbergh

Active Member
Newcomer
Joined
Oct 18, 2021
Messages
41
Trophies
0
Age
45
XP
276
Country
Germany
its really not that difficult
makes sure you have the latest Ultimate-Switch-Hack-Script-master
on your pc desktop just make a folder named rom no () or ... or anything else just a simple folder name
place the Guardian_Force_Saturn_Tribute nsp in the rom folder make sure its the standalone game not the 3 in 1 as the 3 in 1 does not work with the current Ultimate-Switch-Hack-Script-master
place your prod.keys and title.keys in the Ultimate-Switch-Hack-Script-master folder just for convenience
place your saturn game in the rom folder bin and cue again no () or ... or anything else just a simple name like Sega Rally Championship.bin rename your Sega Rally Championship.cue to GuardianForce.cue

now run the script make sure settings are correct font lucide console blah blah
press continue
select n if you have the latest version
then 2
then 6
then 16
then n
this gets you to the injector
now press 2
press continue and select Guardian_Force_Saturn_Tribute nsp
press continue and select rom folder or whatever you named it
press continue and select prod.keys in the Ultimate-Switch-Hack-Script-master
press continue and select title.keys in the Ultimate-Switch-Hack-Script-master
just keep pressing n at this point until you get to ID: the just press continue
name your nsp keep it simple like Sega Rally 95 and press continue
name author again keep it simple like Sega and press continue
name version something like v1 and press continue
press continue now choose folder best to just save nsp in the rom folder
select y
let it build nsp just ignore the key errors i did and it still works just fine

once you have mastered the basic injection process you can start playing with icon/tex/wp and so on
hope this helps

massive thanks to @shadow256 for the script hope this saves you a load of question
and to the op @lisreal2401
Yep, this is exactly the way I generated the NSP. Installed it using Goldleaf to SDCard (also tested DBI, Tinfoil). No error message and the icon appears. When I start it, switch animation (gif) >> immediate crash.

I've run out of ideas why this is happening...
Even with a corrupted BIN/CUE, the game should launch I guess...

AMS 1.1.1 | 13.0.0 | emuMMC

This is the generated NSP:
nsp.png
 

Prb

Well-Known Member
Member
Joined
Nov 10, 2020
Messages
1,032
Trophies
1
XP
3,862
Country
United Kingdom
You're probably using injection method via script.
If so - try texture.tex file from post #385 instead
nice one thanks

Got 305 saturn cd images in my pc LaunchBox (bigbox) collection to test out :)
time to do some converting :cry: that should be fun
 

Prb

Well-Known Member
Member
Joined
Nov 10, 2020
Messages
1,032
Trophies
1
XP
3,862
Country
United Kingdom
Yep, this is exactly the way I generated the NSP. Installed it using Goldleaf to SDCard (also tested DBI, Tinfoil). No error message and the icon appears. When I start it, switch animation (gif) >> immediate crash.

I've run out of ideas why this is happening...
Even with a corrupted BIN/CUE, the game should launch I guess...

AMS 1.1.1 | 13.0.0 | emuMMC

This is the generated NSP:
View attachment 280710
check your dm
 
  • Like
Reactions: lingbergh

Purple_Shyguy

Well-Known Member
Member
Joined
Nov 8, 2008
Messages
2,338
Trophies
2
Age
33
Location
Republic of Ireland
XP
4,715
Country
Regarding Baku Baku Animal. I just tried it again on a Windows machine with Mednafen - the game running on the Switch is much slower particularly with the menus etc, gameplay is better - playable, but defintely slower than on a PC. What are the possible remedies please?
Overclock?
Okay, first off, great thread! Got everything sorted for the most part. I have Guardian Heroes running over Cotton2 using the Collection as a base (0100094014BE4006), however, is there any way to overwrite all 3 games included? If so, how can I figure out the ID for contents/IDNUMBER/romfs of the other two titles? Or are we just restricted to one for now unless we install the other standalone's? Thanks!
0100094014BE4006 is cotton 2
0100094014BE4007 is cotton boomerang
0100094014BE4008 is guardian force.

Just make 3 title ID folders
 

Prb

Well-Known Member
Member
Joined
Nov 10, 2020
Messages
1,032
Trophies
1
XP
3,862
Country
United Kingdom
I think sometime the script doesn't keep the good "main" and "main.npdm" files, I need to rewrite extraction process.
works great for me my friend
what setting do you recommend for converting cd images got 305 saturn image to convert ?
 

Deleted member 323844

Well-Known Member
Member
Joined
Feb 17, 2013
Messages
802
Trophies
1
XP
2,335
Country
Spain
View attachment 280700
Ok, you mean like this?
Sorry for the confusion, I just wanted to make sure before I rebuild the NSP.

Also in regards to Virtual on, I will try another iso with default configs, but I remember reading that there is a problem with the 2nd player controller? and that the config.ini needs to also be edited with PadType1_0="5"
No. Only one value (BlockClock="200", for example). I meant that that was the safe range, but I don't know what is the highest working value, it could be higher than 250. I would be interesting since the higher the value, the better the performance (probably not much difference tho).

Thanks! Is there a setting to make virtua cop 2 play as full speed?
According to xYuunaX, VDP1DrawThread, AlternativeDecode and Deinterlace could benefit the performance in some cases. You could try SH2Cache as well.

Here are some profiles to test, if you don't want to mess with the settings: https://github.com/xYuunaX/SegaSaturnTribute/tree/main/config

Please, can you share ini file for Story of Thor 2 PAL with spanish translation? Thanks.
I haven't tried more games, but if the translation does not change anything important, it should work out of the box. Aside that glitched very first area.
 
  • Like
Reactions: helvetinperkeles

shadow256

Well-Known Member
Member
Joined
Sep 30, 2017
Messages
188
Trophies
0
Age
38
XP
1,340
Country
France
works great for me my friend
what setting do you recommend for converting cd images got 305 saturn image to convert ?
Sometimes it works but sometime it doesn't and this is realy a pain to fix that, that's the reason for my demand on how to freeze Squirrel package of NSC-Builder, this package will help me to make process more efficient.


Sory but settings are not something that I know very well, me I just apply what people have made but I haven't realy made a lot of tests on different games.

To make some ini and config tests you can create one package (note it TitleID), install it on the Switch, launch it one time, use DBI to modify the save of the game with the MTP mode (this could require some configurations in the homebrew). In the save delete the "SaveData00088000.bin" and "SaveData00008000.bin" files and create folders with these name (with DBI it may not want to create the folders so create them on your PC and copy them in the save directory). After this modifications your game will throw some errors when you launch it or when you exit from the settings but, if you create a folder "atmosphere\contents\titleid_of_your_modified_game\romfs" you can change the ini and game files easily and makie some tests before a real injection.
 
  • Like
Reactions: EddieRiggs and Prb

Prb

Well-Known Member
Member
Joined
Nov 10, 2020
Messages
1,032
Trophies
1
XP
3,862
Country
United Kingdom
Sometimes it works but sometime it doesn't and this is realy a pain to fix that, that's the reason for my demand on how to freeze Squirrel package of NSC-Builder, this package will help me to make process more efficient.


Sory but settings are not something that I know very well, me I just apply what people have made but I haven't realy made a lot of tests on different games.

To make some ini and config tests you can create one package (note it TitleID), install it on the Switch, launch it one time, use DBI to modify the save of the game with the MTP mode (this could require some configurations in the homebrew). In the save delete the "SaveData00088000.bin" and "SaveData00008000.bin" files and create folders with these name (with DBI it may not want to create the folders so create them on your PC and copy them in the save directory). After this modifications your game will throw some errors when you launch it or when you exit from the settings but, if you create a folder "atmosphere\contents\titleid_of_your_modified_game\romfs" you can change the ini and game files easily and makie some tests before a real injection.
thanks
i need to do some googling need a batch converter all 305 roms are 160gb
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
    Veho @ Veho: Firefox users be like "look at what they have to do to mimic a fraction of our power."