Kuribo64
Views: 8,536,784 Home | Forums | Uploader | Wiki | Object databases | IRC
Rules/FAQ | Memberlist | Calendar | Stats | Online users | Last posts | Search
06-21-18 07:27 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 New reply


NoThisIsStupider
Posted on 07-01-16 09:32 PM 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?

____________________
o2DS on Latest firm w/ B9S (used mostly only for Smash)
Wii U 5.5.1 w\ DNS, Haxchi, & Softmodded vWii
Switch on 4.1.0, waiting for atmosphere release
PC with an i7-4790K, RX480, 16GB ram

RicBent
Posted on 07-02-16 08:07 AM 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 06: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.

____________________
o2DS on Latest firm w/ B9S (used mostly only for Smash)
Wii U 5.5.1 w\ DNS, Haxchi, & Softmodded vWii
Switch on 4.1.0, waiting for atmosphere release
PC with an i7-4790K, RX480, 16GB ram

RicBent
Posted on 07-02-16 06: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 New reply

Page rendered in 0.028 seconds. (2048KB of memory used)
MySQL - queries: 27, rows: 106/106, time: 0.023 seconds.
[powered by Acmlm] Acmlmboard 2.064 (2017-11-20)
© 2005-2008 Acmlm, Xkeeper, blackhole89 et al.