Nicht eingeloggt.
Passwort vergessen?


Bitte erst registrieren. Danach ist es möglich Beiträge zu schreiben.



 Nach unten   Vorheriges Thema   Nächstes Thema

#1
Padder
Geschrieben am: 20.10.2018 13:52
PVB Elite
Dabei seit 01.07.2011
Deutschland
1115 Beiträge
CoderContributorTop10 PosterLong Time User (8 Years) App CoderPVBCC 2013 Entry
Hey everyone,

I wrote a simple Padder to support the new bigger carts. It's a commandline tool but you can just drag and drop your vb file onto the Padder.exe as well.

I used .Net Core 2.1 this time which allowed me to create a linux and mac version. I'm not sure if this works for everyone but in theory it should. If someone can try these out, that would be great.

Edit: the gif preview on planetvb seems to be broken but you can watch it but clicking on the gif.

Datei anhängen:


zip Padder.linux-x64.zip Größe: 417.81 KB; Hits: 47
zip Padder.osx-x64.zip Größe: 620.55 KB; Hits: 49
zip Padder.win-x64.zip Größe: 460.18 KB; Hits: 61
zip Padder.src.zip Größe: 5.05 KB; Hits: 52

gif  padder.gif (137.04 KB)
1709_5bcb1721c4150.gif 949X460 px
Bearbeitet von thunderstruck am 20.10.2018 14:04:36
Nach oben

#2
Re: Padder
Geschrieben am: 20.10.2018 17:49
VUE(xpert)
Dabei seit 15.12.2016
USA
302 Beiträge
Long Time User (2 Years)
Thank you sir!!!
Nach oben

#3
Re: Padder
Geschrieben am: 21.10.2018 7:13
PVB Elite
Dabei seit 26.07.2003
USA
1465 Beiträge
PVBCC EntryCoderContributorSpecial AchievementTop10 PosterHOTY09 EntryLong Time User (15 Years) App Coder20+ Game RatingsPVBCC 2013 Entry
Not that I have a problem with it, but I don't see why this program was necessary. The existing padding tools (DogP's and mine - which I made around the same time as the ROM shrinker, but doesn't seem to be hosted on PVB) have both always supported padding to theoretically any "power-of-two" size (limited, of course, by RAM and HDD space, among other things).

I just did a test with mine (which is attached), and I was able to pad to 128MB (16Mbit) and 512MB (64Mbit) easily. I even used my shrinker to automatically reduce the 128MB to 64MB. I started with a 128KB ROM.

Run the tool by itself to see how to use it. For reference, passing a value of 27 results in a 256MB ROM (adding one will double the size, subtracting one will halve it, and so on). Passing no number (e.g. dropping the ROM on the executable) should automatically pad the ROM to the next power-of-two size.

The source is included with both programs (the shrinker is here on the site), and they should, in theory, also be cross-platform, since they use the C standard library.

Datei anhängen:


zip padromvb.zip Größe: 6.58 KB; Hits: 59
Nach oben

#4
Re: Padder
Geschrieben am: 21.10.2018 8:58
PVB Elite
Dabei seit 01.07.2011
Deutschland
1115 Beiträge
CoderContributorTop10 PosterLong Time User (8 Years) App CoderPVBCC 2013 Entry
Zitat:

RunnerPack wrote:
Not that I have a problem with it, but I don't see why this program was necessary. The existing padding tools (DogP's and mine - which I made around the same time as the ROM shrinker, but doesn't seem to be hosted on PVB) have both always supported padding to theoretically any "power-of-two" size (limited, of course, by RAM and HDD space, among other things).


Haha, I actually didn't know that. I wrote this in half a hour while being on a boring conference call. Some people asked for it as well. I think it would be best to have the padding as part of the programmer firmeware.

Zitat:

RunnerPack wrote:
I just did a test with mine (which is attached), and I was able to pad to 128MB (16Mbit) and 512MB (64Mbit) easily. I even used my shrinker to automatically reduce the 128MB to 64MB. I started with a 128KB ROM.


I keep confusing this but I think 16 Megabit are 2 Megabyte. 64 Megabit would be 8 Megabyte.

Zitat:

RunnerPack wrote:
Run the tool by itself to see how to use it. For reference, passing a value of 27 results in a 256MB ROM (adding one will double the size, subtracting one will halve it, and so on). Passing no number (e.g. dropping the ROM on the executable) should automatically pad the ROM to the next power-of-two size.


I only added output options for 16, 32, 64, 128 and 256 to not confuse people. The code is simple enough to support other sizes though.

Zitat:

RunnerPack wrote:
The source is included with both programs (the shrinker is here on the site), and they should, in theory, also be cross-platform, since they use the C standard library.


I'm really impressed by what Microsoft is doing with c#. Asp.net and the core for console applications is now open source and can be compiled to other systems then windows. With 3.0 they want to include WPF which means my GUIs could be compiled for Mac.
Nach oben

#5
Re: Padder
Geschrieben am: 21.10.2018 16:52
Administrator
Dabei seit 08.01.2000
Deutschland
2515 Beiträge
Highscore Top10Highscore Top ScoreCoder#1 PosterHOTY09 1stLong Time User (15 Years) App Coder90+ Game Ratings
Not sure why your padder was not on the site yet, RunnerPack, but I just added both yours and thunderstruck's to the database.
Nach oben

#6
Re: Padder
Geschrieben am: 21.10.2018 21:34
PVB Elite
Dabei seit 26.07.2003
USA
1465 Beiträge
PVBCC EntryCoderContributorSpecial AchievementTop10 PosterHOTY09 EntryLong Time User (15 Years) App Coder20+ Game RatingsPVBCC 2013 Entry
Zitat:

KR155E wrote:
Not sure why your padder was not on the site yet, RunnerPack, but I just added both yours and thunderstruck's to the database.

Thanks, KR155E!

Zitat:

thunderstruck wrote:

I think it would be best to have the padding as part of the programmer firmware.

That's a good idea. It would minimize the data sent down the wire (or space on the SD card). Supporting compression would be even nicer, perhaps using LZO or LZ4.

Zitat:

thunderstruck also wrote:

I keep confusing this but I think 16 Megabit are 2 Megabyte. 64 Megabit would be 8 Megabyte.

You're right, of course... I divided when I should have multiplied (or vice versa).

Anyway, nice work on the padder. It's a great way to use otherwise-wasted meeting time
Bearbeitet von RunnerPack am 21.10.2018 21:46:50
Bearbeitet von RunnerPack am 21.10.2018 21:48:10
Nach oben

#7
Re: Padder
Geschrieben am: 22.10.2018 0:52
VUE(xpert)
Dabei seit 15.12.2016
USA
302 Beiträge
Long Time User (2 Years)
Maybe I've been using the wrong padder this whole time. I have one thats called Pad_VB.exe and it won't pad up to 256Mbit on my machine. Says padding size is too large.

I was using Python the pad the files before burning them.
Nach oben

#8
Re: Padder
Geschrieben am: 01.03.2019 2:23
Virtual Freak
Dabei seit 27.01.2019
USA
91 Beiträge
I've tried using all 3 and can't get any of them to work that are on the site and it's maddening.

The one in this thread spits up some garbage about missing files.

The other two if you do as it says and use the default (21) to get a 16mbit file (for flashboy sizes) it acts like it does, no error, but back to a prompt and no file.

I don't see why this has to be complicated but it is. I'm just trying to pad out that file for the english translated Innsmouth Mansion and would like to get it going for other odd files from the demo world and so forth.
Nach oben

 Nach oben   Vorheriges Thema   Nächstes Thema


Bitte erst registrieren. Danach ist es möglich Beiträge zu schreiben.