Image to Script Converter [Java] [UPDATE 1.1]

Forum rules
- Ask questions about or share code from languages other than Source Engine scripting.
- Start new topic titles with the code language in brackets (i.e. [C#], [C++], [PHP], etc.)
User avatar
killman2639
Former Server Admin
Posts: 292
Joined: Mon Aug 23, 2010 8:41 pm

Image to Script Converter [Java] [UPDATE 1.1]

Post by killman2639 »

This is a project Smacked (Blake) started with Blagho. Then I took it and added some things like the jFrame (GUI), file splitter, better waits and stuff like that. I hope you all like it :)

Link: http://matisuploads.com.ar/ImgToScript/ It is Open Source so feel free to edit the code, but give credit :). I included all the files, a compiled version and some examples.

It is highly recommended to put the image you want to convert in a folder, otherwise your desktop or the folder you have the image at will be "spammed" with .cfg files!
Oh and this was made with eclipse so the workstation folder is imgtoscript in case you didn't know! Merry Christmas, enjoy!

Tip: You can add cool effects using RenderFX. RenderFX 12 looks nice.

WARNING: Always make sure to remove it from the server you're on by typing ent_fire FILENAMEHERE_* kill.

Changelog:

Code: Select all

1.1 - Added Transparency Support.
1.0 - Initial Release.
Reloaded.-
Last edited by killman2639 on Wed Dec 26, 2012 10:24 pm, edited 2 times in total.
Hi, I'm Reloaded. :)

Image

Code: Select all

[GR|CMX] Reelawded | Reloaded :  hi, im black
[GR|CMX] Reelawded | Reloaded :  shit
Disconnect: being black.
Disconnect: being black.
User avatar
myback
Server Admin
Posts: 1051
Joined: Sat Mar 26, 2011 6:42 am
Location: United States

Re: Image to Script Converter - Merry Christmas! [Java]

Post by myback »

Guud work :)
Image
Peter B.: half counter fortress team portal life 2
Nicdel
Server Admin
Posts: 2417
Joined: Sun Apr 11, 2010 4:50 am

Re: Image to Script Converter - Merry Christmas! [Java]

Post by Nicdel »

No transparency support :(
Ingame: -[SaD]- Nico

Image
User avatar
Xseba360
Server Admin
Posts: 1663
Joined: Sun Apr 11, 2010 12:26 pm
Location: Poland

Re: Image to Script Converter - Merry Christmas! [Java]

Post by Xseba360 »

Nicdel wrote:No transparency support :(
lol yeah would be useful (alpha 2 renderamt)
User avatar
killman2639
Former Server Admin
Posts: 292
Joined: Mon Aug 23, 2010 8:41 pm

Re: Image to Script Converter - Merry Christmas! [Java]

Post by killman2639 »

Xseba360 wrote:
Nicdel wrote:No transparency support :(
lol yeah would be useful (alpha 2 renderamt)
It's open source so you could do it yourself :P But I'll check it tomorrow.
Hi, I'm Reloaded. :)

Image

Code: Select all

[GR|CMX] Reelawded | Reloaded :  hi, im black
[GR|CMX] Reelawded | Reloaded :  shit
Disconnect: being black.
Disconnect: being black.
User avatar
Xseba360
Server Admin
Posts: 1663
Joined: Sun Apr 11, 2010 12:26 pm
Location: Poland

Re: Image to Script Converter - Merry Christmas! [Java]

Post by Xseba360 »

killman2639 wrote:
Xseba360 wrote:
Nicdel wrote:No transparency support :(
lol yeah would be useful (alpha 2 renderamt)
It's open source so you could do it yourself :P But I'll check it tomorrow.
dunno java :>
User avatar
killman2639
Former Server Admin
Posts: 292
Joined: Mon Aug 23, 2010 8:41 pm

Re: Image to Script Converter - Merry Christmas! [Java]

Post by killman2639 »

The program is now updated to version 1.1. You can now choose if you want to use transparency or not. You will get a menu after you select the file.
Hi, I'm Reloaded. :)

Image

Code: Select all

[GR|CMX] Reelawded | Reloaded :  hi, im black
[GR|CMX] Reelawded | Reloaded :  shit
Disconnect: being black.
Disconnect: being black.
User avatar
Blagho
100+ Posts
100+ Posts
Posts: 223
Joined: Sat Sep 17, 2011 11:05 pm
Location: Climax Springs

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by Blagho »

I had dis now everyone has it now, I'm not special anymore.
Spoiler
Show
Image
But really Nice job Reloaded on everything about this cleaning of my laziness and making it better.
Spoiler
Show
Image
Image
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by shadowslayer »

Isn't it people like you going on about scriptors not doing stuff themselves?
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
User avatar
po0ka
Former Server Admin
Posts: 713
Joined: Fri Oct 29, 2010 7:40 pm

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by po0ka »

shadowslayer wrote:Isn't it people like you going on about scriptors not doing stuff themselves?
Is it better to break our own fingers on the keyboard with ctrl-c + ctrl-v? I faced that problem.
What i need is a hammer to script converter, as i wasted in total 8 hours of my life converting to builds and getting sick with my finger and must stop playing computers for 2 days.

Here comes real life injuries.
Image

Scripting normally doesn't give injuries.
Such repetition on long term can create bad health problems, thus stopping us on our goal to script. If we continue, we are getting more and more injured, and less we will recover. So this program offers this kind of help, it's not directly giving us a random image, it's because you entered a picture in it, so you are the source. Except if it's not ur image, except if it's not your camera or whatever... I know there's a limit, just to show where it is.

And blagho doesn't seems very on the side of anti-sharing.
Keep in mind that what i say is not static, it is dynamic.
Years, months, weeks, and days after i say something, i can say the opposite.
User avatar
Blagho
100+ Posts
100+ Posts
Posts: 223
Joined: Sat Sep 17, 2011 11:05 pm
Location: Climax Springs

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by Blagho »

po0ka wrote: And blagho doesn't seems very on the side of anti-sharing.
I'm anti-sharing when it comes to new scripters, but with people like Reloaded I don't mind sharing or helping out.(Usually people I share with I given up what wherever it was.)
Image
User avatar
shadowslayer
1000+ Posts
1000+ Posts
Posts: 1280
Joined: Fri Sep 03, 2010 8:51 pm

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by shadowslayer »

Blagho wrote:
po0ka wrote: And blagho doesn't seems very on the side of anti-sharing.
I'm anti-sharing when it comes to new scripters, but with people like Reloaded I don't mind sharing or helping out.(Usually people I share with I given up what wherever it was.)
Tell you the truth I do give some direct code and scripts when teaching new scripters, but I always explain what the code does and how to use it. (Hasn't failed yet.)
Spoiler
Show
Saying "Your lucky i'm peaceful" is pretty much like saying "when i grow up i wanna be an arms race!"-HL2shadowslayer, Area 51 Minecraft
Imagethe only reason you shouldnt mess with me
User avatar
po0ka
Former Server Admin
Posts: 713
Joined: Fri Oct 29, 2010 7:40 pm

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by po0ka »

As for me i started by checking line by line what they were doing.
I'm not the kind of person that notice the instructions, like, in a supermarket i search for something, ill not watch any notification panels, ill just go see everywhere, if i see a similar product i search for 2 minutes until i see it, or until i ask someone for help, and oit was straight infront of me.

It's always touched when it comes to teaching new players, because we don't really know them, nd most likely just give up because we don't give them our big scripts.
I don't want to ethernize on this subject so ill shut up, i don't want it to go out topic.


I think ill take the source codes of this and learn a bit more java single files creating, maybe i can make some nice stuffs ;D
(and it would help me to have a base of single program creating as i want to go in programming classes; kind of essential...)
Keep in mind that what i say is not static, it is dynamic.
Years, months, weeks, and days after i say something, i can say the opposite.
User avatar
killman2639
Former Server Admin
Posts: 292
Joined: Mon Aug 23, 2010 8:41 pm

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by killman2639 »

Blagho wrote:I had dis now everyone has it now, I'm not special anymore.
Spoiler
Show
Image
But really Nice job Reloaded on everything about this cleaning of my laziness and making it better.
Spoiler
Show
Image

Lol, Thanks blagho. And lol at Pookas reply (The 1st one).
Hi, I'm Reloaded. :)

Image

Code: Select all

[GR|CMX] Reelawded | Reloaded :  hi, im black
[GR|CMX] Reelawded | Reloaded :  shit
Disconnect: being black.
Disconnect: being black.
User avatar
po0ka
Former Server Admin
Posts: 713
Joined: Fri Oct 29, 2010 7:40 pm

Re: Image to Script Converter [Java] [UPDATE 1.1]

Post by po0ka »

I had like..... a super graphic of awesomeness!
Prewindows7-MSPaint ftw.
Keep in mind that what i say is not static, it is dynamic.
Years, months, weeks, and days after i say something, i can say the opposite.