Hacking ndstrim 1.0

recover

Well-Known Member
OP
Member
Joined
Aug 6, 2007
Messages
161
Trophies
1
Website
Visit site
XP
252
Country
Looks awesome, thanks for taking the time.
biggrin.gif
 

Azimuth

Chicken Teriyaki Boy!
Member
Joined
Feb 23, 2006
Messages
637
Trophies
0
Website
Visit site
XP
110
Country
Canada
Looks awesome, thanks for taking the time.
biggrin.gif

no problem, thanks for writing the trimmer(I can't code in C to save my life).

*update*

I wrote a small daemon for the GUI impaired. When you place .nds files in the specified watch directory it will automatically trim them, move them to the target directory you specified and delete the old files.



download
 

Azimuth

Chicken Teriyaki Boy!
Member
Joined
Feb 23, 2006
Messages
637
Trophies
0
Website
Visit site
XP
110
Country
Canada
I haven't worked on this for a while, I had a bit of time to update the daemon.

v1.2

-Added coloured output:
blue - file added
red - file deleted
yellow - error
white - info about trimming

-Added rar, 7z, zip support. Working on bz2 and gz support.

-An error file is created in the target dir when trimming fails.

any suggestions/complaints are welcomed.

download
 

Azimuth

Chicken Teriyaki Boy!
Member
Joined
Feb 23, 2006
Messages
637
Trophies
0
Website
Visit site
XP
110
Country
Canada
Here's a working link

http://ndstrim.googlecode.com/files/ndstrim-1.27.tar.gz

Wndows: The daemon written in ruby should be cross platform but I haven't tested it on windows, you need to install ruby for it to work. I will try to pack it into an "executable" when I get my hands on a windows pc.

OSX: The daemon should work fine on macs since ruby is already bundled in with OSX. The gui won't since you need gtk and ruby-gnome2, which I believe are available via mac ports?
 

recover

Well-Known Member
OP
Member
Joined
Aug 6, 2007
Messages
161
Trophies
1
Website
Visit site
XP
252
Country
Yep, me and 4zimuth have been working a great deal on ndstrim lately
smile.gif

We have a pretty nice GUI and have been doing some reliability updates...
I don't know when we'll release the next stable, but it's in the works.
biggrin.gif
 

Azimuth

Chicken Teriyaki Boy!
Member
Joined
Feb 23, 2006
Messages
637
Trophies
0
Website
Visit site
XP
110
Country
Canada
We didn't want to bring attention to it until we have perfected the trimmer but I guess a small update won't hurt.

*update*

The trimmer is now a true "3rd gen" trimmer, yay!
 

recover

Well-Known Member
OP
Member
Joined
Aug 6, 2007
Messages
161
Trophies
1
Website
Visit site
XP
252
Country
Ok... I still find the term a little unnecessary
tongue.gif
but I guess I'll use it if everyone else do
We still have a bunch of features to implement, I think development is going pretty well
smile.gif
 

matriculated

Well-Known Member
Member
Joined
Sep 27, 2007
Messages
598
Trophies
0
Website
www.nubecoder.com
XP
77
Country
Canada
n45800 said:
Here is a pre-compiled mac version (CLI, Universal Binary).
I'll see if I can whip up a quick Cocoa GUI later today.
And another small bug report. You should probably have a test for if the file actually exists before you try doing anything, otherwise it bombs with the error "./ndstrim: fopen() failed in file ndstrim.c, line 45.".

Hmmm. I've tried this out (specifically on Assassin's Creed and Mario and Sonic) and it it seems to over trim or something because the games don't load (white screen).
frown.gif
I'd love to get this to work as I wrote a OSX Python droplet that de-archives, renames, adds boxart as an icon and copies to the TF card. It'd be great to add trimming to my script.
smile.gif
I love CLI apps, BTW.
 

Azimuth

Chicken Teriyaki Boy!
Member
Joined
Feb 23, 2006
Messages
637
Trophies
0
Website
Visit site
XP
110
Country
Canada
matriculated said:
n45800 said:
Here is a pre-compiled mac version (CLI, Universal Binary).
I'll see if I can whip up a quick Cocoa GUI later today.
And another small bug report. You should probably have a test for if the file actually exists before you try doing anything, otherwise it bombs with the error "./ndstrim: fopen() failed in file ndstrim.c, line 45.".

Hmmm. I've tried this out (specifically on Assassin's Creed and Mario and Sonic) and it it seems to over trim or something because the games don't load (white screen).
frown.gif
I'd love to get this to work as I wrote a OSX Python droplet that de-archives, renames, adds boxart as an icon and copies to the TF card. It'd be great to add trimming to my script.
smile.gif
I love CLI apps, BTW.

Here is a ruby script that I've been working on, should work perfectly well on mac OSX. Its also pretty well commented so it should be easy for you to understand (and convert it to python if you want to).
 

matriculated

Well-Known Member
Member
Joined
Sep 27, 2007
Messages
598
Trophies
0
Website
www.nubecoder.com
XP
77
Country
Canada
I've just taught myself Python over the weekend (along with Bash scripting and Applescript) so I really have no idea how to do binary/bytewise file manipulation - in any language for that matter. Although this might give me incentive. This kind of stuff scares me.

Although... Ruby is standard on OSX Leopard installations so your code might work with little to no tweaking!
 

recover

Well-Known Member
OP
Member
Joined
Aug 6, 2007
Messages
161
Trophies
1
Website
Visit site
XP
252
Country
matriculated said:
Hmmm. I've tried this out (specifically on Assassin's Creed and Mario and Sonic) and it it seems to over trim or something because the games don't load (white screen).
Try compiling it for yourself and see it the same thing happens.
We can't say the other binary is safe since we didn't compile it, but I can't see any reason for n45800 to be that evil
ph34r.gif
 

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • K3Nv2 @ K3Nv2:
    See some new 830gb builds that should work on the cheaper ones
  • Psionic Roshambo @ Psionic Roshambo:
    For your steam deck ken?
  • Psionic Roshambo @ Psionic Roshambo:
    If just for PC I would recommend an external hard drive like 2 TB and just build your own bootable drive
  • Psionic Roshambo @ Psionic Roshambo:
    Although even if it's the steam deck and a 1TB MicroSD I would still recommend building it yourself.... Almost all the builds I tried just sucked
  • K3Nv2 @ K3Nv2:
    Yeah but why not just have a img file mounted through us you can still transfer through windows
  • K3Nv2 @ K3Nv2:
    Usb*
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah Batocera has a shared folder it's pretty cool
  • K3Nv2 @ K3Nv2:
    Less clutter for all the 6 usb options we never use
  • Psionic Roshambo @ Psionic Roshambo:
    Just drag and drop your Barbie Roms
  • Psionic Roshambo @ Psionic Roshambo:
    Barbies BDSM Dungeon Adventure Featuring Gimp Ken!
  • K3Nv2 @ K3Nv2:
    It's the Florida meth
  • Psionic Roshambo @ Psionic Roshambo:
    Don't make Barbie put a cigarette out on your nipples!
  • K3Nv2 @ K3Nv2:
    Although expensive Florida meth can rot the brightest of minds
    +1
  • K3Nv2 @ K3Nv2:
    lol qbits almost taking a
    full gb of ram usage
    +1
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, qbittorrent?
  • K3Nv2 @ K3Nv2:
    no I dont torrent
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, then whats qbits?
  • K3Nv2 @ K3Nv2:
    A type of fish
  • Xdqwerty @ Xdqwerty:
    gonna do my homework
  • Xdqwerty @ Xdqwerty:
    see ya
  • K3Nv2 @ K3Nv2:
    Man steams only downloading 15mbps
  • Xdqwerty @ Xdqwerty:
    back
  • Xdqwerty @ Xdqwerty:
    @K3Nv2, wdym thats quite fast
    Xdqwerty @ Xdqwerty: @K3Nv2, wdym thats quite fast