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
  • Psionic Roshambo @ Psionic Roshambo:
    Tandem even
  • The Real Jdbye @ The Real Jdbye:
    i think i heard of that, it's a good idea, shouldn't need a dedicated GPU just to run a LLM or video upscaling
  • The Real Jdbye @ The Real Jdbye:
    even the nvidia shield tv has AI video upscaling
  • The Real Jdbye @ The Real Jdbye:
    LLMs can be run on cpu anyway but it's quite slow
  • BakerMan @ BakerMan:
    Have you ever been beaten by a wet spaghetti noodle by your girlfriend because she has a twin sister, and you got confused and fucked her dad?
  • Psionic Roshambo @ Psionic Roshambo:
    I had a girlfriend who had a twin sister and they would mess with me constantly.... Until one chipped a tooth then finally I could tell them apart.... Lol
  • Psionic Roshambo @ Psionic Roshambo:
    They would have the same hair style the same clothes everything... Really messed with my head lol
  • Psionic Roshambo @ Psionic Roshambo:
    @The Real Jdbye, I could see AMD trying to pull off the CPU GPU tandem thing, would be a way to maybe close the gap a bit with Nvidia. Plus it would kinda put Nvidia at a future disadvantage since Nvidia can't make X86/64 CPUs? Intel and AMD licensing issues... I wonder how much that has held back innovation.
  • The Real Jdbye @ The Real Jdbye:
    i don't think nvidia wants to get in the x64 cpu market anyways
  • The Real Jdbye @ The Real Jdbye:
    you've seen how much intel is struggling getting into the gpu market
  • The Real Jdbye @ The Real Jdbye:
    and nvidia is already doing ARM
  • The Real Jdbye @ The Real Jdbye:
    i don't think they want to take more focus away from their gpus
  • Psionic Roshambo @ Psionic Roshambo:
    Yeah I think Nvidia s future lays in AI GPU acceleration stuff if they can get that going it's going to be super interesting in the long term
  • Psionic Roshambo @ Psionic Roshambo:
    AI assisted game creation might become a thing
  • Psionic Roshambo @ Psionic Roshambo:
    At least that's something I think would be pretty cool.
  • Psionic Roshambo @ Psionic Roshambo:
    Don some VR glasses and gloves and talk to the computer and paint entire worlds
  • Psionic Roshambo @ Psionic Roshambo:
    "OK Cortana I want that mountain a little taller and more snow on top, and I would like some random ancient pine forest around the bottom"
  • Psionic Roshambo @ Psionic Roshambo:
    "Now we need a spring fed river flowing down the north side and add some wild life appropriate for the biome"
  • Psionic Roshambo @ Psionic Roshambo:
    Many TBs of assets and the programming of something like that is going to be tough but I think it's something we might see in 20 years maybe sooner
  • The Real Jdbye @ The Real Jdbye:
    @Psionic Roshambo AI assisted game creation is kinda already here, there was recently that AI that can turn any 2D image into a fully modeled 3D object, it's not perfect, but it's a starting point, beats starting from zero
  • The Real Jdbye @ The Real Jdbye:
    before that there was one to generate a fully modeled scene from a 2D image
  • The Real Jdbye @ The Real Jdbye:
    but most recently, there was one that actually generates a working unity scene with terrain and textures already set up that you can import right into unity, that's a huge time saver right there
  • The Real Jdbye @ The Real Jdbye:
    and using LLMs to generate NPC dialogue and even dynamically generated quests is something i'm sure is already happening
  • The Real Jdbye @ The Real Jdbye:
    will just take some time for games made using those things to be completed and released
    The Real Jdbye @ The Real Jdbye: will just take some time for games made using those things to be completed and released