Author Topic: Handy PUD bitmap maker.  (Read 16480 times)

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Handy PUD bitmap maker.
« on: May 27, 2018, 01:47:56 AM »
Looks like mostly my SS grabber is only being used to make pics of maps - not really in game SS, so this is probably much easier to use.

TuPaC asked for this so I just did a very quick and nasty hack of my pud editor project and made it a console app.

Just unzip then drop a .pud file onto pudpic.exe and it will make a .bmp file, without having to use war2 at all.

128x128 full map bitmaps are over 16MB so you will probably want to convert to png or jpg or whatever.

There's no error checking - if you give it a rubbish file it will just crash.


UPDATED 9/2018

Will now resize &/or save to jpeg format (see below).
« Last Edit: September 16, 2018, 07:26:18 AM by Lambchops »
its gooder to hax hard and NEVER get caught!

Offline Delete mine too

  • Death Knight
  • *********
  • Posts: 2652
  • http://meatspin.com
    • View Profile
    • http://meatspin.com
Re: Handy PUD bitmap maker.
« Reply #1 on: May 27, 2018, 02:19:45 AM »
Looks like mostly my SS grabber is only being used to make pics of maps - not really in game SS, so this is probably much easier to use.

TuPaC asked for this so I just did a very quick and nasty hack of my pud editor project and made it a console app.

Just unzip then drop a .pud file onto pudpic.exe and it will make a .bmp file, without having to use war2 at all.

128x128 full map bitmaps are over 16MB so you will probably want to convert to png or jpg or whatever.

There's no error checking - if you give it a rubbish file it will just crash.



Thanks works perfect!

make a batch file

cd C:\War2Combat\maps\
for /r %%i in (*.pud) do pudpic.exe "%%i"
pause

edit your war2 maps directory above put the files(pudpic files, bat.file) into the same directory the root map folder is. Now it will convert all your maps to an image! :)



Edit: Adding those map pictures to my game info list. Would look cool if @iL added that to the anti hack status page....








« Last Edit: May 27, 2018, 02:38:36 AM by tupac »

Offline iL

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 1653
    • View Profile
Re: Handy PUD bitmap maker.
« Reply #2 on: May 28, 2018, 06:39:49 AM »
Would look cool if @iL added that to the anti hack status page....
Hm, would be very interesting to get that pubpic for UNIX!

To make it possible to build that as ./pudpic file.pud file.bmp (or png).
Then we will be able to make something like maps gallery, similar to ss.war2.ru.
@Lambchops, what do you think about that?

Also, my desire: an option to write amount of gold/oil on mine/patch.
Gold mine with number 60000 or w/e would be very useful as for me.
« Last Edit: May 28, 2018, 06:42:24 AM by iL »
Need help to translate War2Combat to German, French, Italian, Polish or another language: http://forum.war2.ru/index.php/topic,4728.0.html
Please, contact me if you are interested in that.

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Handy PUD bitmap maker.
« Reply #3 on: May 30, 2018, 01:33:43 AM »
Would look cool if @iL added that to the anti hack status page....
Hm, would be very interesting to get that pubpic for UNIX!

To make it possible to build that as ./pudpic file.pud file.bmp (or png).
Then we will be able to make something like maps gallery, similar to ss.war2.ru.
@Lambchops, what do you think about that?

Also, my desire: an option to write amount of gold/oil on mine/patch.
Gold mine with number 60000 or w/e would be very useful as for me.

Yeah I would like to add some more features like that, should be pretty easy, it's on my to-do list.

Re-building it for UNIX is possible, although there's some Windows specific API functions used in both the exe (C++) and the DLL's (ASM) so they would have to be re-written to use their UNIX counterparts.
its gooder to hax hard and NEVER get caught!

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Handy PUD bitmap maker.
« Reply #4 on: September 15, 2018, 10:37:47 PM »
i really love you lamb

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Handy PUD bitmap maker.
« Reply #7 on: September 15, 2018, 10:46:14 PM »

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Handy PUD bitmap maker.
« Reply #8 on: September 15, 2018, 11:02:07 PM »
i am a spirioth clone

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Handy PUD bitmap maker.
« Reply #10 on: September 16, 2018, 04:39:35 AM »
OK I have finally done a little bit more on PUDPIC.

You can get the new version HERE.


I wrote an ASM image resize/blend procedure so it can produce a pic of the size you want. Also has a jpeg save option.

i.e.

    PUDPIC /s:500  MyMap.pud

will make a 500x500 32 bit blended bitmap

Without the /s switch it will default to producing a full size 8bit bitmap with the original game palette (the current behavior).

   PUDPIC /j:80 ThisMap.pud

will save the full size 8 bit image as a quality 80 jpeg

   PUDPIC /s:1024 /j:90 Maposaurus.pud

will resize to 1024x1024 and save as quality 90 .jpg file

 ^- THESE SETTINGS SEEM TO BE PRETTY GOOD FOR A GENERAL PURPOSE POST ON FORUM/DISCORD ETC IMAGE
( give you around a 300KB file that looks ok if you dont zoom in too close)




... also if you want you can just rename the exe file to include the size/quality.

i.e.  if you rename it to "PUDPICs500.exe" it will automatically make a 500x500 bitmap any time you drop a file on it.

or if you rename it to "PUDPICs1024j90.exe" it will automatically make a 1024x1024 quality 90 jpeg any time you drop a file on it.

You can even have multiple copies of the exe file with different sizes you use and just drop your pud file on the one you want.

Like this:




I *think* the command line switches will work in a UNICODE environment - but please let me know if you have any problems.

Have fun  :critter:


its gooder to hax hard and NEVER get caught!

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Handy PUD bitmap maker.
« Reply #11 on: September 16, 2018, 04:47:07 AM »




Here's gow resized to 1024x1024 jpg qual 90

Seems ok for a 267KB file.

Of course you can play with the settings and make anything from a full sized pixel perfect bitmap to a thumbnail if you want.



-- EDIT --

   .....  and OMG lmao at those default hall spots ;D even after 20 years they still make me go WTH?

« Last Edit: September 16, 2018, 04:54:58 AM by Lambchops »
its gooder to hax hard and NEVER get caught!

Offline chayliss

  • Grunt
  • ***
  • Posts: 219
  • [quote author=KaNuKs~ link=topic=2345.msg40515#msg
    • View Profile
    • [quote author=KaNuKs~ link=topic=2345.msg40515#msg40515 date=1469984330] wazzup chay [/quote]
Re: Handy PUD bitmap maker.
« Reply #12 on: January 22, 2024, 10:38:42 AM »
i want this utility but it keeps telling me some kinda network error =[
oh the later post with new verison worked, why not modify OP with new link/vers to help solve confusion. this is common not just this thead.

Looks like mostly my SS grabber is only being used to make pics of maps - not really in game SS, so this is probably much easier to use.

TuPaC asked for this so I just did a very quick and nasty hack of my pud editor project and made it a console app.

Just unzip then drop a .pud file onto pudpic.exe and it will make a .bmp file, without having to use war2 at all.

128x128 full map bitmaps are over 16MB so you will probably want to convert to png or jpg or whatever.

There's no error checking - if you give it a rubbish file it will just crash.


UPDATED 9/2018

Will now resize &/or save to jpeg format (see below).


Quote from: KingHillBilly
I respect players like Chayliss
Quote from: Fast Luck
Top quality trolling Chayliss.  Hat tip to you
Quote from: Sparkz102
also in this post - special shout out to my boy chay
Quote from: CLAW
not bad at all, chayliss. Gooder then me expectoned

Offline DANILIN

Re: PUDPIC Handy PUD bmp or jpg maker!!!
« Reply #13 on: March 14, 2024, 06:33:33 AM »
Каталоги файлов PUD лучше дополнять файлами pudpic
& bat с десятками строк вида
PUDPICs720j88 12345.PUD

где список файлов PUD создаётся автоматически
подсветив файлы каталога и нажав шифт и скопировав путь
и далее вставить в блокнот и заменив пути слева на PUDPICs720j88

Результат: все файлы PUD дополнены эскизами карт JPG
и оформляется за минуту начиная с копии файлов в каталог PUD
и сразу видны пустые карты

Настройка PUDPICs720j88 взята из моих файлов 2019 года
почти 5-летней давности




PUD file better directories should be supplemented with pudpic files
& bat with dozens of lines like
PUDPICs720j88 12345.PUD

where list of PUD files is created automatically
by highlighting directory files and pressing shift and copying path
and then paste it into notepad and replace paths left on PUDPICs720j88

Result: all PUD files are supplemented with JPG map thumbnails
and is completed in a minute starting with a copy of files in PUD directory
and empty cards are immediately visible

PUDPICs720j88 setup taken from my 2019 files
almost 5 years ago




Katalogi faylov PUD luchsche dopolnyat' faylami pudpic
& bat s desyatkami strok vida
PUDPICs720j88 12345.PUD

gde spisok faylov PUD sozdayotsya avtomaticheski
podsvetiv fayly kataloga i nazhav shift i skopirovav put'
i daleye vstavit' v bloknot i zameniv puti sleva na PUDPICs720j88

Rezul'tat: vse fayly PUD dopolneny eskizami kart JPG
i oformlyayetsya za minutu nachinaya s kopii faylov v katalog PUD
i srazu vidny pustyye karty

Nastroyka PUDPICs720j88 vzyata iz moikh faylov 2019 goda
pochti 5-letney davnosti

all-consuming new worlds WarCraft2 from Russia
Russia looks world from future
Rossiya smotrit mir iz buduschego
http://forum.war2.ru/index.php?topic=5127.0