War2.ru Slogan
News: New responsive forum theme available!
Click here to switch! More info here!


Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Welcome to the forums! We're glad to have you here! :) You can register your account here, then feel free to introduce yourself in the Server.War2.ru board & let us know who you are on the server.

Handy PUD bitmap maker. 113  3

Sappers Posts: 810 Karma: +57/-0 ******

Lambchops

  • Sappers
  • ******
  • *
  • Posts: 810
    • 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.

Ogre Mage Posts: 2440 Karma: +77/-1 ********

tupac

  • Ogre Mage
  • ********
  • *
  • Posts: 2440
    • View Profile
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....








Administrator Ogre Posts: 1072 Karma: +103/-9 *****

iL

  • Administrator
  • Ogre
  • *****
  • *
  • Posts: 1072
    • View Profile
*

iL

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.
Sappers Posts: 810 Karma: +57/-0 ******

Lambchops

  • Sappers
  • ******
  • *
  • Posts: 810
    • 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.