Page 1 of 1
Update: Entity 1.3.3
Posted: Tue Aug 07, 2007 11:08 pm
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.
Posted: Tue Aug 07, 2007 11:22 pm
by Fleabag77
Sounds great, especially the Goto Tag function. Good job.
Posted: Wed Aug 08, 2007 3:12 am
by DrXThirst
Noice. x10
Posted: Wed Aug 08, 2007 3:27 am
by xzodia
excellent.
Posted: Fri Sep 07, 2007 2:02 pm
by VitaminMODS
Can someone give me the link to download Framework 2.0 Please?
Posted: Fri Sep 07, 2007 2:48 pm
by UpsetSpy
Nice, 1.3 was the version I used most, this settles it.
Posted: Fri Sep 07, 2007 10:36 pm
by mr_penguin
I constantly get broken Ident errors in campain maps in the scnr tag
Posted: Sat Sep 08, 2007 3:50 am
by Prey
Hey, Prodigy = Me
..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

Posted: Sat Sep 08, 2007 5:58 am
by DrXThirst
Cool. I will edit the source so that I have a fully working entity.
Posted: Sat Sep 08, 2007 8:32 am
by OwnZ joO
Prey wrote:Hey, Prodigy = Me

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
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

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
Re: Entity 1.3.1
Posted: Sat Sep 08, 2007 8:45 am
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
Posted: Sat Sep 08, 2007 9:26 am
by Prey
OwnZ joO wrote:I think I will update, and i'll do it in one line
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..
Posted: Sat Sep 08, 2007 9:37 am
by DrXThirst
Very nice.
Posted: Sat Sep 08, 2007 9:43 am
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);

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...
Posted: Sat Sep 08, 2007 12:49 pm
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.
