Page 1 of 3

[Java] Multiple Bitmap Internalizer

Posted: Thu Feb 08, 2007 3:50 pm
by TunesRus90
Well here is my first venture into programming. Some of you may find this useful. This program can internalize multiple bitmaps very quickly. Here is what is included in the two downloads.

Bitmap Internalizer.zip - the executable (.jar) and the src (including BlueJ project files for those of you who use that IDE).

BI_app.zip - this is for MAC USERS ONLY. It is just the .jar file bundled into a .app (the standard application format) so that it has an icon, can be added to the dock etc. Basically, it just feels more like a native application, but it runs exactly the same as the .jar.

Instructions
1.) The first time you open the app, it will prompt you for your shared maps. You should only have to do this once, unless you delete/rename/move a shared map.
2.) Open a map. It will display all external bitmaps in the top list.
3.) Select a bitmap that you want to internalize, and click "Add Tag" this will remove it from the top list and add it to the bottom list.
4.) Once you have added all the tags that you want to the bottom list, click "Internalize" and it will internalize all tags that you have selected.

Features
  • 100% proper, all LODS and everything
  • Works on all operating systems that support the Java 1.5 environment or later (sorry mac users, that means it only works on Tiger).
  • Internalize all bitmaps (I don't actually recommend you use this. It works, but I doubt you would actually need it. I just put it there for a speed test)
  • Tag searching
  • Saves shared map locations
  • Resign map
Pictures
Image
Image
(thats 1.188 seconds for those of you who don't know milliseconds)

Thanks
  • A huge thanks to chiefdestroyer who taught me pretty much everything I know about working with Halo maps in Java, and who gave me a ton of source code, including the RandomAccessFileSP class used in this program.
  • Punk - beta testing and feature suggestions
  • All other testers/helpers. Thanks so much!

Posted: Thu Feb 08, 2007 3:57 pm
by -DeToX-
No body better say it doesn't work. -_-. It does work. ;p.

Posted: Thu Feb 08, 2007 4:03 pm
by Jubakuba
Shoop da woop
kool beans...


*ot*
Ive noticed my post rate has decreased very dramatically ever since the merge :-(

Posted: Thu Feb 08, 2007 4:04 pm
by halo0001
it also works on windows (execute the .jar file ;) http://i102.photobucket.com/albums/m107 ... indows.jpg

Posted: Thu Feb 08, 2007 4:10 pm
by CptnNsan0
wow awesome. good job man

Posted: Thu Feb 08, 2007 4:10 pm
by Punk Rock0905
/me wins
Image
Where's my cookie?

Nice Job TunesRus90

Posted: Thu Feb 08, 2007 4:15 pm
by Killswitch91
Sweet man, works like a charm, thanks :D

Posted: Thu Feb 08, 2007 4:17 pm
by TunesRus90
halo0001 wrote:it also works on windows (execute the .jar file ;) http://i102.photobucket.com/albums/m107 ... indows.jpg
TunesRus90 wrote:Works on all operating systems that support the Java 1.5 environment
That's the beauty of Java.

Posted: Thu Feb 08, 2007 4:27 pm
by Th3 ScarY BeaR
Me praises TunesRus. Thanks much for my first Halo 2 Application for my Mac. :D



*suggests he makes more editors with java*

Posted: Thu Feb 08, 2007 4:46 pm
by DarkMetal
Awesome, man. I started on java a while back, but stopped... I guess I just got side tracked. Maybe I'll get back into it :)

Posted: Thu Feb 08, 2007 4:50 pm
by antszy101
very useful and helpfull

Posted: Fri Feb 09, 2007 12:15 pm
by THE-MASTER
Like I said on Halopatch. Great job!

Posted: Fri Feb 09, 2007 5:48 pm
by StalkingGrunt911
This is awesome and resigns fast. :)

Posted: Sat Feb 10, 2007 6:43 pm
by DemonicSandwich
-DeToX- wrote:No body better say it doesn't work. -_-. It does work. ;p.
IT DOESN'T WORK!................JK :lol:
This is an excellent and useful application.
An awesome improvement over that other internalizer in applications
Great job! :mrgreen: Image :mrgreen:

Posted: Sat Feb 10, 2007 9:11 pm
by DoorM4n
Thank you very much.

Posted: Sat Feb 10, 2007 11:17 pm
by alby
this is great. it's really fast! oh and by the way...me wins :roll:
Image
:D :shock:Image

Posted: Mon Feb 12, 2007 4:00 am
by dfmjw
well done on the app, can't wait till the next java application for halo modding.
has anyone taken a look at the source of the application yet to see why it runs so fast?

it is because buffers are used when reading maps in and pre-planning is done before the program actually goes out and collects resources, so operations are done once instead of many times saving memory and speed

i would not say the source is that great could have been layed out a lot better but not bad if you want a good starting point example for java and halo

Posted: Mon Feb 12, 2007 4:31 pm
by TunesRus90
yeah he's right. Buffers and pre-planning etc are what make this app super fast. For example, it calculates the total Raw size first, shifts the data, then adds in all the raw files, instead of shifting for each raw file. Also I know the source isn't the most organized, but don't worry, my next programs will be much better layed out. I am learning a lot.

Posted: Mon Feb 12, 2007 4:50 pm
by OwnZ joO
Cool tunes, I'm glad you're learning java quickly and making apps that some of the mac users can use. I hope you keep this up and keep open sourcing your stuff, cuz I would like to look at it and learn a few things in java.

Posted: Sat Apr 07, 2007 6:45 pm
by EclispedSUN
how do u get this to work on windows