Author Topic: Nerd's Corner  (Read 109221 times)

Offline mousEtopher

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 2065
    • View Profile
    • War2.me
Re: Nerd's Corner
« Reply #75 on: March 07, 2017, 09:39:51 AM »
hooooooooly shit, Lamby, you made the big ss thing!

squeak!

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Nerd's Corner
« Reply #76 on: March 08, 2017, 10:52:17 AM »
hooooooooly shit, Lamby, you made the big ss thing!

awww thx mousey. now I'm blushing :)
its gooder to hax hard and NEVER get caught!

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Nerd's Corner
« Reply #77 on: March 08, 2017, 11:05:06 AM »
 I updated the SS grabber.

Now saves to PNG by default but will also save to JPG and/or bmp
also stamps the images with the PUD name, the time/date and the player names.



oops. just noticed the player names aren't the right colors. :( I'll fix that shortly.


updated link <3 mousey
« Last Edit: March 15, 2017, 02:55:45 PM by mousEtopher »
its gooder to hax hard and NEVER get caught!

Offline Incos

  • Axe Thrower
  • ****
  • Posts: 253
    • View Profile
Re: Nerd's Corner
« Reply #78 on: March 10, 2017, 06:35:59 AM »
Ok lanky, I tried to use your PDF on ripping sprite sheets. However the grp converter has it skip frames. I use that sfqconvertor had the brood war icon. It only rips sheets that have the units all in a row.

Wardraft is outdated and for old war2.

Easy I also use your sheet editor, but when I group, am I grouping them allot just the animations that belong together like lambys tutorial?

And do you have the macro that sheets them with spaces and makes them war2 compliant available ?

I
https://www.twitch.tv/incoswc - my twitch. Streaming 9:30pm - 11pm est most days!!

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Nerd's Corner
« Reply #79 on: March 11, 2017, 05:55:59 AM »
oops. just noticed the player names aren't the right colors. :( I'll fix that shortly.


Ok fixed that. Now writes player names in the correct color for the game.



Also added -t switch to just take SS and exit if anyone wants to run it via the command line from another app.

Should be the final release for now.

its gooder to hax hard and NEVER get caught!

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Nerd's Corner
« Reply #80 on: March 11, 2017, 09:07:41 AM »
incos go to the easycompany thread..

Offline mousEtopher

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 2065
    • View Profile
    • War2.me
Re: Nerd's Corner
« Reply #81 on: March 11, 2017, 11:04:20 AM »
I am a huge scrub and need help Lamby. I opened the app then went to single player custom scenario and pressed F6 key and it did the scrolling around thing & saved the file as .png but it's 0kb. halp

The original version that saves a bmp works though (after I figured out that having a 2nd monitor makes it do odd things... :D)
squeak!

Offline mousEtopher

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 2065
    • View Profile
    • War2.me
Re: Nerd's Corner
« Reply #82 on: March 13, 2017, 10:00:36 AM »
actually they're still coming out goofy without 2nd monitor (I thought it worked right at one point though)



I noticed crazy eights ss was buggy too http://forum.war2.ru/index.php?action=dlattach;topic=3047.0;attach=1132
squeak!

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Nerd's Corner
« Reply #83 on: March 13, 2017, 01:03:03 PM »
I am a huge scrub

won't hear of it   :-X

and need help Lamby.

OMG Sorry I missed this post and didn't reply mousey.

I opened the app then went to single player custom scenario and pressed F6 key and it did the scrolling around thing & saved the file as .png but it's 0kb. halp

The original version that saves a bmp works though (after I figured out that having a 2nd monitor makes it do odd things... :D)

Well firstly, cool I'm glad you got something working.

The first version just uses bread&butter file writing to save the internal buffer straight to a .BMP file. Very uncomplicated.

The next version uses the Windows GDI+ interface (GDIPlus.dll) to save to either PNG, JPG or BMP. This is done via the GdipSaveImageToFile func for all 3 image types, the format depends on the CLSID and encode paramaters you pass it.

It doesn't use anything that should interact with the screen or the desktop AFAIK, so in theory a dual monitor system should have no effect.

That being said, I don't have a dual monitor system to test it out on, and "in theory" has never stopped windows from messing things up before, however I would still check if there are any GDI+ updates of fixes released for your operating system.

its gooder to hax hard and NEVER get caught!

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Nerd's Corner
« Reply #84 on: March 13, 2017, 02:44:53 PM »
actually they're still coming out goofy without 2nd monitor (I thought it worked right at one point though)
I noticed crazy eights ss was buggy too

hmm. Ok thanks for letting me know.
This is unrelated to the  0 length .PNG problem.
(That is probably a bad class ID or encoders not installed properly type of thing)

Its good that you have text on the screen in your SS, from that I can see that the bitmap is being constructed and saved correctly.

The problem is that the screen offset is not being set correctly.
Could I ask what OS you are using and are you pressed for processor time... like VM or older comp? I should be able to get this fixed with a little bit of tinkering, but right now i have to be at court in 5 hours and I'd like to spend at least 1 of them asleep. bbl
 

« Last Edit: March 13, 2017, 03:03:07 PM by Lambchops »
its gooder to hax hard and NEVER get caught!

Offline mousEtopher

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 2065
    • View Profile
    • War2.me
Re: Nerd's Corner
« Reply #85 on: March 13, 2017, 04:05:44 PM »
np! thank you for your attention! c: I will test the png one on some other pcs to see if it works right and what I can learn. This pc is Win7 & plenty of available processor power

Good luck at court! fingers crossed for a sane, lamb-favoring outcome
squeak!

Offline shesycompany

  • Death Knight
  • *********
  • Posts: 3587
  • retired, be in music section
    • View Profile
Re: Nerd's Corner
« Reply #86 on: March 14, 2017, 12:15:37 AM »
ive got the old one and it works in my win7..the bmp one.

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Nerd's Corner
« Reply #87 on: March 14, 2017, 05:30:09 AM »
Ok. For the first problem, where the PNG file is 0 length, would you please run the attached .exe on any machine that has this problem then post the results.

the .exe will produce a small text file, which should look something like this:

Code: [Select]
Class ID   : {557cf400-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cab-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in BMP Codec
Module     :
Description: BMP
File Types : *.BMP;*.DIB;*.RLE
MIME Type  : image/bmp

-------------------------------------------

Class ID   : {557cf401-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cae-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in JPEG Codec
Module     :
Description: JPEG
File Types : *.JPG;*.JPEG;*.JPE;*.JFIF
MIME Type  : image/jpeg

-------------------------------------------

Class ID   : {557cf402-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cb0-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in GIF Codec
Module     :
Description: GIF
File Types : *.GIF
MIME Type  : image/gif

-------------------------------------------

Class ID   : {557cf405-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cb1-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in TIFF Codec
Module     :
Description: TIFF
File Types : *.TIF;*.TIFF
MIME Type  : image/tiff

-------------------------------------------

Class ID   : {557cf406-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3caf-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in PNG Codec
Module     :
Description: PNG
File Types : *.PNG
MIME Type  : image/png

its gooder to hax hard and NEVER get caught!

Offline mousEtopher

  • Administrator
  • Ogre Mage
  • *****
  • Posts: 2065
    • View Profile
    • War2.me
Re: Nerd's Corner
« Reply #88 on: March 14, 2017, 07:41:03 PM »
Code: [Select]
Class ID   : {557cf400-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cab-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in BMP Codec
Module     :
Description: BMP
File Types : *.BMP;*.DIB;*.RLE
MIME Type  : image/bmp

-------------------------------------------

Class ID   : {557cf401-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cae-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in JPEG Codec
Module     :
Description: JPEG
File Types : *.JPG;*.JPEG;*.JPE;*.JFIF
MIME Type  : image/jpeg

-------------------------------------------

Class ID   : {557cf402-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cb0-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in GIF Codec
Module     :
Description: GIF
File Types : *.GIF
MIME Type  : image/gif

-------------------------------------------

Class ID   : {557cf405-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3cb1-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in TIFF Codec
Module     :
Description: TIFF
File Types : *.TIF;*.TIFF
MIME Type  : image/tiff

-------------------------------------------

Class ID   : {557cf406-1a04-11d3-9a73-0000f81ef32e}
Format ID  : {b96b3caf-0728-11d3-9d7b-0000f81ef32e}
Codec      : Built-in PNG Codec
Module     :
Description: PNG
File Types : *.PNG
MIME Type  : image/png


Here it is. The other pc that's nearby does the exact same thing w/ both versions. I think they're both using the same version of Win7 installed from the same place, so it might be related to that? Don't worry about it if it's going to be a headache for you to troubleshoot, it's probably my own fault for having some inferior version of windows c:
squeak!

Offline Lambchops

  • Ogre Mage
  • ********
  • Posts: 1541
    • View Profile
Re: Nerd's Corner
« Reply #89 on: March 15, 2017, 06:37:35 AM »
Great, thanks very much for doing that, and no don't be concerned that you are causing me problems, you are helping me. :) If I have written routines to do basic things like save an image, I need to know that they will work as they are supposed to, and if not, find out why, and fix the issue.

I really should have a bunch of VMs set up running different versions of windows so I can test things out to make sure that they are work in all environments, but at the moment I am limited to just my main machine, which remains, as it has been for many years, a 32 bit XP installation. So until told otherwise I can only assume that when things work on that that they will work everywhere else.

So just making sure I have this right: you have tried with 2 different systems, both running win7, both fail to save a .png image, and you have now ruled out your monitor/desktop configuration as a factor? Also using the original version that saves to .BMP you have, at lest some of the time, had glitchy SSs saved that are not constructed correctly on both systems?


its gooder to hax hard and NEVER get caught!