• Welcome to SC4 Devotion Forum Archives.

New tool: SC4 Icon Wizard

Started by fafalone, May 10, 2014, 01:39:11 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

fafalone

I'm putting the finishing touches on a tool to automatically make a SC4 icon from an image. I don't mind releasing the code if no one makes fun of me for using VB6 :)  It's still a powerful language fully compatible with Win7 and 8.

Right now I can just export the PNG; I don't know how to insert it into a DAT or SC4lot. Maybe for version 2?

Any suggestions before I pull the trigger?









Supported Input Formats: PNG, BMP, JPG/JPEG, GIF, ICO, CUR. Other image types may be supported depending on your system- this program uses GDI Plus.
Requirements: This program runs on XP, but some visual effects will not show up (this does not effect the output). gdiplus must be installed. It comes preinstalled with XP or higher, and any version is ok. An image editor is not included; your picture must be created with another program.


-------------------------------------
Beta Release 5/11/2014

Assuming anyone besides me actually wants to use it, I'm posting a beta version now. It's feature-complete for Version 1.0 (will add new items... but some of you know how long it can me to release sequels). It works fine on my machine, Win7 x64, and Microsoft et al. say all of the dependencies don't need to be redistributed by me (msvbvm60.dll, gdiplus.dll, comdlg.dll), but I don't have the time or resources to test it on a bunch of different systems.
So please let me know if there's any problems!

SC4 Icon Wizard Version 0.1 Beta Release

FrankU

This looks like a useful tool, but I must confess that I can use SC4-Pim for making icons. So maybe there is some advantage to your program, otherwise I think I will not need it?

fafalone

Batch processing mainly. I make a lot of icons. Also if you want to keep the icon around. Plus SC4PIM is unstable and I try to avoid using it, would rather do everything in the regular lot editor, leprop, and reader. (leprops import icon only works with existing icons). Besides this is an early version, I plan to add quite a few more features. Mainly for batch processing to save me time. I made it because it saves me time given the programs I use (not SC4PIM) and the way I do things (have to edit things in reader even if i DID use sc4pim, so it's less extra grief to add it there), and thought I'd release it in case anyone else does things that way too. If not, don't download it.

catty


Well whether people use it or not, its still a great effort and a karma point heading your way

&apls
I meant," said Ipslore bitterly, "what is there in this world that truly makes living worthwhile?" DEATH thought about it. "CATS," he said eventually, "CATS ARE NICE.

mrbisonm

If it is easier to work with than the freaking PIM,(I try to avoid it as much as possible) then I will use it, or at least try it. ;)

Fred


....Uploading the MFP 1.... (.........Finishing the MFP1)

vester

#5
Looks like it could be a useful tool.

I use Photoshop for icons myself. Have a template, which I think got for the Andreas, which I modified.
Lately I created an action, so now I just need to paste, play the action and save the file as a PNG.
Starting to use action took months of nothing. Creating the action took 20 seconds, running it now takes 2 seconds.

Works like a charm :)

fafalone

Looks like I'm not alone in my SC4PIM avoidance!


Beta version released, see first post.

fafalone

Quote from: vester on May 10, 2014, 03:56:42 PM
Looks like it could be a useful tool.

I use Photoshop for icons myself. Have a template, which I think got for the Andreas, which I modified.
Lately I created an action, so now I just need to paste, play the action and save the file as a PNG.
Starting to use action took months of nothing. Creating the action took 20 seconds, running it now takes 2 seconds.

Works like a charm :)

So you have to paste it into the template and run the action, for each icon?

I take it you don't make projects with 100-200 separate lots. That's why I really made this program, to automatically perform that action on dozens or hundreds of files. And this is just the beginning.
Version 2 is already in the works, here's a short list of planned features:
-automatically overlay text
-inset smaller images on a background (a la RMIP)
-actually inserting it into a dat isn't really do-able, since there's no VB-compatible libraries and I have no intention of trying to re-learn the java i forgot after college and port that to vb, and other languages are beyond me... that said, I should be able to make a script for the new reader to set the tgi once it's imported, since reader has to be used anyway. i already have several scripts that help set properties on bulk files.

On a related note, if any developers know of a DLL/type library for DBPF files that makes them workable... point me in that direction. There's one C++ "library" but it looks like a console application and I can't even get it to compile.

Tropod

#8
Quote from: fafalone on May 10, 2014, 01:39:11 AM
Right now I can just export the PNG; I don't know how to insert it into a DAT or SC4lot. Maybe for version 2?

Any suggestions before I pull the trigger?

Looks nice :thumbsup:. The more tools the merrier I say ..... as for inserting into a *dat; you could use ilives Reader or my SC4Reader tool to do this if you don't care to write your own ;).

EDIT: to clarify; I meant to insert using these tools after generating ico/png/etc file(s).

memo

Nice progress, so far! I've never been able to figure out how to create an icon with SC4PIMX, so I ended up using Andreas' templates... for the maybe dozen icons I have ever created.

Quote from: fafalone on May 11, 2014, 01:19:40 AM
-actually inserting it into a dat isn't really do-able, since there's no VB-compatible libraries and I have no intention of trying to re-learn the java i forgot after college and port that to vb, and other languages are beyond me... that said, I should be able to make a script for the new reader to set the tgi once it's imported, since reader has to be used anyway. i already have several scripts that help set properties on bulk files.

On a related note, if any developers know of a DLL/type library for DBPF files that makes them workable... point me in that direction. There's one C++ "library" but it looks like a console application and I can't even get it to compile.

There are two C++ libraries I know of (one, two), but I have not used or compiled either of them. You may also be able to extract what you need from the source code of other programs, e.g. TheSimsEdit originally written in VB and rewritten in C++ (which also appears to be actively developed), or even the Reader, written in C++. You may also contact cogeo as he mentioned that he has his own set of routines for writing DBPF files in C++, I think.

That said, if it is merely intended for importing files into dats, a batch import script for the Reader is an elegant solution, if you ask me, as it is what the Reader already solves satisfactory.

art128

Quote from: fafalone on May 11, 2014, 01:19:40 AM
I take it you don't make projects with 100-200 separate lots.

He does icons for 20-30 maybe more train skins at once... Sure that's not hundreds of lots but it's still a big number... :)
I'll take a quiet life... A handshake of carbon monoxide.

Props & Texture Catalog

vester

#11
Have just done 65 icons.

So how do you control what you want the picture to be and what part of it?
I have full control over what it is going to be.

You take about adding text. Tell a little more about that part.