Kuribo64
Views: 22,888,613 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
10-04-24 02:32 PM
Guest:

0 users reading Need help Figuring out NTR's sendfile Command | 1 bot

Main - 3DS game hacking and emulation - Need help Figuring out NTR's sendfile Command Hide post layouts | New reply


NoThisIsStupider
Posted on 07-02-16 01:32 AM Link | #72811
So, for the past week, I've been trying to get sendfile working on NTR's debugger, I've gotten really close, but it hates me for some reason. For reference, I'm using a n3DS, on A9LH 11.0, with NTR 3.2. The debugger is from here.


The main reason I'm trying to do this is to skip the extra steps required to test a level. There's a YouTube video that demonstrates changing the level file while the world map is open, which would mean quicker testing than even the Wii version, since on that you still had to reboot the game in Dolphin.



So, after connecting to my 3DS, i try the sendfile command as layed out in the readme, which equates to

sendfile('d:\\path\to\file.extention', '\where\to\put.extention'


So I use this command:

sendfile('d:\\1-1.sarc', '/NSMB2Hax/Courses/1-2.sarc')


It throws the error "illegal characters in path". I simplify it to the point where layeredfs wouldn't work with it, just to try and figure out what's wrong, which makes the command:

sendfile('d:\\1-1.sarc', '/1-2.sarc')


Instead of working, it throws the error "The device is not ready".



And that's where I stopped, I'm stumped. I've tried asking around a bit, but nobody seems to know how it works. So does anybody here understand this command?

____________________
Switch on latest firm happily playing Smash daily
PC with an i7-4790K, RX480, 16GB ram
Various other consoles that are hardly used due to emulation existing

RicBent
Posted on 07-02-16 12:07 PM Link | #72843

It works when you replace all '\' with '/'.

Like this:

sendfile('z://NSMB2/romfs/Course/1-1.sarc', '/NSMB2/Course/1-1.sarc')


____________________
GitHub - YouTube - NSMBHD

NoThisIsStupider
Posted on 07-02-16 10:05 PM Link | #72871
Tried that, and tried changing D to the letter of the drive where the file was stored, and now it gives me the error "null" on the debugger, and my 3DS says "openFile failed: c8804478". Pressing B to get rid of the message disconnects...

And while typing I solved that error. My path was /NSMB2Hax/Courses/ instead of /NSMB2Hax/Course/. What's better is that when I was trying to get this to work a week ago, I actually got to the openFile failed error, but gave up without noticing the path. I guess the slash direction is irrelevant, because I was using the same slash directions before. IDK what I did differently, but it works now, so thanks.

____________________
Switch on latest firm happily playing Smash daily
PC with an i7-4790K, RX480, 16GB ram
Various other consoles that are hardly used due to emulation existing

RicBent
Posted on 07-02-16 10:37 PM Link | #72873

That NTR debugger is stupid as hell.
That send file thing would be usefull if the 3ds wouldn't diconnect every 3 minutes, requiring a reboot for NTR to work again.

____________________
GitHub - YouTube - NSMBHD


Main - 3DS game hacking and emulation - Need help Figuring out NTR's sendfile Command Hide post layouts | New reply

Page rendered in 0.017 seconds. (2048KB of memory used)
MySQL - queries: 25, rows: 108/108, time: 0.007 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2018-07-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.