Update: Entity 1.3.3

Utilities designed primarily for the xbox version of Halo 2.
Post Reply
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Update: Entity 1.3.3

Post by OwnZ joO »

This is my edited version of the 1.3 source released to the public.

Features:

This feature has not been released publicly as far as I know - I made it have the ability to be a single instance application, this means that if you have entity open, and double click a map file from the windows explorer, it will open the map in that existing entity. This can be turned off in the settings.

Proper renaming, it's tricky though, as it forces you to rename it with a name the same size or smaller than the original.

Allows you to choose the name of meta when duplicating.

Bitmap internalizer - Anthony

Goto Tag function - Prey

Set map paths, and if they're not set/the map is not found, it will pop up an open file dialog asking to open the map

Edit: 9/7/07 Updated internalizer code, internalizer map paths, Duplicating now gives extra space in naming dialog, for a longer name if you want, plugins are from xzodia's site using Prey's plugin downloader.
Attachments
Entity_1.3.3.rar
Entity 1.3.3 Executable with plugins from Xodia's Site
(1.53 MiB) Downloaded 107 times
Entity_1.3.3_src.rar
Entity 1.3.3 Source Code
(1.5 MiB) Downloaded 64 times
Last edited by OwnZ joO on Sat Sep 08, 2007 9:39 am, edited 3 times in total.
Fleabag77




Commentator

Posts: 544
Joined: Sun Dec 31, 2006 5:12 am

Post by Fleabag77 »

Sounds great, especially the Goto Tag function. Good job.
User avatar
DrXThirst




Connoisseur Foundry Pyre

Posts: 3011
Joined: Fri Jun 29, 2007 6:28 am
Location: Georgia
Contact:

Post by DrXThirst »

Noice. x10
Image
User avatar
xzodia




Translator Connoisseur Coagulator

Posts: 1981
Joined: Sun May 15, 2005 10:31 am
Location: UK
Contact:

Post by xzodia »

excellent.
Image
Halo 2 Plugins | Lock-on To Just About Anything | My Sites | Snow Hog
Old Plugins you have, upgrade you must...
Always Maintain a High Quality-To-Crap Ratio.
VitaminMODS





Posts: 107
Joined: Wed Sep 20, 2006 1:59 pm
Location: Queen City, Canada

Post by VitaminMODS »

Can someone give me the link to download Framework 2.0 Please?
Image
UpsetSpy




Coagulator Wordewatician 100

Posts: 146
Joined: Fri Jun 16, 2006 6:05 am
Location: Emerging from that dark hole in which hid for the past months

Post by UpsetSpy »

Nice, 1.3 was the version I used most, this settles it.
Needs motivation to continue modding =[
Lockdown - 85% Updated 9/11
GridIron 1.1Prisoner: UPDATED 9/6!
mr_penguin





Posts: 541
Joined: Thu Feb 08, 2007 5:39 pm
Location: NJ

Post by mr_penguin »

I constantly get broken Ident errors in campain maps in the scnr tag
Your mom became oversized. Please make your mom smaller before reposting. :shock:
Infern0 wrote:You just shave the excess bush and burn the leftovers.
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

Hey, Prodigy = Me :wink:

..and here's just a few things I noticed:
  • The internalise code is pretty poor; it adds alls the new space that is needed in chunks, and then proceeds with overwriting that space with the bitmap raw. This way of doing things slows down the method, and will also consume more memory to get the job done.
  • The way the padding for the bitmap LOD is calculated is not exactly sound. Yours/ants way will always work still, but once the bitmap raw becomes divisible exactly by 512, the method will return 512 (when it should be returning 0). This means you'll end up with 512 pointless bytes in your map.

    Here, I modified the method for you if you ever want to update the application:

    Code: Select all

            private int RoundTo512(int Value2Round)
            {
                int padding = 512 - (Value2Round % 512);
                if (padding == 512) padding = 0;
                return Value2Round + padding;
            }
  • The internaliser doesn't use the map paths set by the user. If the bitmap raw is in an external map (which it will be of course 99% of the time), it will just look in the currently-opened-map's directory for them...andd thus you'll get an error if that is not where they are placed.
Apart from all that though it looks good. I especially like the single-instance implementation, tis' a nice touch Image
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
User avatar
DrXThirst




Connoisseur Foundry Pyre

Posts: 3011
Joined: Fri Jun 29, 2007 6:28 am
Location: Georgia
Contact:

Post by DrXThirst »

Cool. I will edit the source so that I have a fully working entity.
Image
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Prey wrote:Hey, Prodigy = Me :wink:
I actually knew that, but forgot, I guess I'll update the post
Prey wrote:The internalise code is pretty poor; it adds alls the new space that is needed in chunks, and then proceeds with overwriting that space with the bitmap raw. This way of doing things slows down the method, and will also consume more memory to get the job done.
Anthony's code
Prey wrote:The way the padding for the bitmap LOD is calculated is not exactly sound. Yours/ants way will always work still, but once the bitmap raw becomes divisible exactly by 512, the method will return 512 (when it should be returning 0). This means you'll end up with 512 pointless bytes in your map.
Internalizer all from Anthony, I didn't code any of it, except for using it
Prey wrote: Here, I modified the method for you if you ever want to update the application:

Code: Select all

        private int RoundTo512(int Value2Round)
        {
            int padding = 512 - (Value2Round % 512);
            if (padding == 512) padding = 0;
            return Value2Round + padding;
        }
I think I will update, and i'll do it in one line 8)

Code: Select all

return ( 512 - ( Value2Round % 512 ) ) % 512;
Prey wrote:The internaliser doesn't use the map paths set by the user. If the bitmap raw is in an external map (which it will be of course 99% of the time), it will just look in the currently-opened-map's directory for them...andd thus you'll get an error if that is not where they are placed.
Yeah I have this updated in mine, but forgot to rerelease, I don't use it that much, haven't modded a lot lately.
Prey wrote:Apart from all that though it looks good. I especially like the single-instance implementation, tis' a nice touch Image
Yeah, I thought about it, and nobody had done it, but it's nice in programs like photoshop and everything, so I got some code off of thecodeproject.net to make it work.
Honestly though, I really didn't do that much coding, mostly just cleaned up a bunch of crap, and added a few nice features that other people implemented. It makes for a nice version of the program though.
I updated my version a little bit without rereleasing, by adding like 10 blank spaces to the duplicate dialog, for the ability to have longer names on duplicated weapons if you want(you can deleted if you want)
I also fixed the map paths for the internalizer I think.
I'll add in your code and rerelease I guess
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Re: Entity 1.3.1

Post by OwnZ joO »

OwnZ joO wrote:This is my edited version of the 1.3 source released to the public.

Features:

This feature has not been released publicly as far as I know - I made it have the ability to be a single instance application, this means that if you have entity open, and double click a map file from the windows explorer, it will open the map in that existing entity. This can be turned off in the settings.

Proper renaming, it's tricky though, as it forces you to rename it with a name the same size or smaller than the original.

Allows you to choose the name of meta when duplicating.

Bitmap internalizer - Anthony

Goto Tag function - Prey

Set map paths, and if they're not set/the map is not found, it will pop up an open file dialog asking to open the map
User avatar
Prey




Connoisseur Snitch! Pyre Articulatist 500

Posts: 1026
Joined: Wed Dec 27, 2006 6:49 am
Location: UK
Contact:

Post by Prey »

OwnZ joO wrote:I think I will update, and i'll do it in one line 8)

Code: Select all

return ( 512 - ( Value2Round % 512 ) ) % 512;
That won't work. The code is fine, but you forgot that the method rounds the given value...here:

Code: Select all

return Value2Round + ( ( 512 - ( Value2Round % 512 ) ) % 512);
Also you might want to actually just update your first post instead of posting a quote...and delete the other attached entity's, as it's just confusing otherwise..
Halo 2 Prophet - Skin with ease with the simple 3D point and click interface.
Halo 3 Research Thread - Contribute to the research into Halo 3.
User avatar
DrXThirst




Connoisseur Foundry Pyre

Posts: 3011
Joined: Fri Jun 29, 2007 6:28 am
Location: Georgia
Contact:

Post by DrXThirst »

Very nice.
Image
OwnZ joO




Articulatist 500

Posts: 980
Joined: Thu Nov 10, 2005 4:24 pm

Post by OwnZ joO »

Prey wrote:That won't work. The code is fine, but you forgot that the method rounds the given value...here:

Code: Select all

return Value2Round + ( ( 512 - ( Value2Round % 512 ) ) % 512);
:cry: Haha my senioritis is killing me, it's just so hard to think... Yeah I updated the first post, but I think I mighta forgot to submit it one of the times I updated it, because some of the changes I thought I made weren't there, that or I'm just hallucinating them...
User avatar
StalkingGrunt911




Recreator Connoisseur Acolyte Coroner
Sigma Pyre

Posts: 3618
Joined: Wed May 24, 2006 12:30 pm
Location: Florida!
Contact:

Post by StalkingGrunt911 »

OwnZ joO wrote:

Code: Select all

return ( 512 - ( Value2Round % 512 ) ) % 512;
Wouldn't it be something like

Code: Select all

return Value2Round + (( 512 - ( Value2Round % 512 )) % 512));
?

Edit: Ha, I didn't look down past your post to see Prey posted it the right way, and it looks like I accidentally added a ) at the end. :lol:
Post Reply