PKG Reorder

New program!

aaro4130
MM2X Super Active User
MM2X Super Active User
Posts: 2405
Registered for: 15 years 10 months
Location: Canada
Been thanked: 1 time

PKG Reorder

Postby aaro4130 » Fri Jun 14, 2013 11:52 am

Hey! This is a little program called PKG Reorder. Basically, MM2 needs a specific order of objects for different type of objects

Even with Maxoff's PKG filter it seemed that when I exported sp_tree1.pkg in building mode it still had the wrong order, and before this there was no way to fix it

Now we can just load up the PKG file, change the order, and save it!

Image

Tested to work on Windows 7 and Windows XP
Download here : https://www.dropbox.com/s/d6c927f6omroi ... eorder.zip
[img]https://i61.tinypic.com/25zrngo.jpg[/img][color=white]
- Most creative active member
- Most smart active member
- Best MM2 innovation of the year
- Best programmer

[img]https://i60.tinypic.com/2m4c2h5.jpg[/img]
- Most helpful active member[/color]

User avatar
RohitXL5
MM2X Active User
MM2X Active User
Posts: 901
Registered for: 11 years 5 months
Location: Indore, Madhya Pradesh, India

Postby RohitXL5 » Fri Jun 14, 2013 1:46 pm

Nice program. Make that type of program for MM1 too. ;)
[img][/img]

[color=#01B5DD][size=150]Boss of Martians![/size][/color]

[img][/img] [color=yellow]Best Active Member MM1 screenshot-er | Best MM2 breakout of the year[/color]
[img][/img] [color=yellow]Author of the best mod of the year[/color]

User avatar
The_Most_Wanted
MM2X Active User
MM2X Active User
Posts: 960
Registered for: 11 years 5 months
Location: Egypt

Postby The_Most_Wanted » Fri Jun 14, 2013 2:11 pm

Nice program! :D
Image
Best Midtown Madness 2 car converter of the year
Best Midtown Madness 2 innovation of the year
Author of the best Midtown Madness 2 mod of the year

Image
Best Midtown Madness 2 breakout of the year
Author of the best Midtown Madness 2 car add-on of the year

Image

User avatar
e-cobra
MM2X Very Active User
MM2X Very Active User
Posts: 1629
Registered for: 13 years 2 months
Location: Navi Mumbai, India

Postby e-cobra » Fri Jun 14, 2013 7:51 pm

What does the 'Length' value mean? :wink:
[img][/img]
[url=https://www.mm2x.com/page.php?name=Forums&file=viewtopic&t=5362&start=52&highlight=e-cobra][color=gold][size=75]MM2X Awards[/size][/color][/url]
[b][size=84][color=blue]If a tree falls in the woods and no one?s around to hear it, does it make a sound?[/color][/size][/b]

aaro4130
MM2X Super Active User
MM2X Super Active User
Posts: 2405
Registered for: 15 years 10 months
Location: Canada
Been thanked: 1 time

Postby aaro4130 » Fri Jun 14, 2013 10:27 pm

Size in bytes
[img]https://i61.tinypic.com/25zrngo.jpg[/img][color=white]
- Most creative active member
- Most smart active member
- Best MM2 innovation of the year
- Best programmer

[img]https://i60.tinypic.com/2m4c2h5.jpg[/img]
- Most helpful active member[/color]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 9 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Fri Jun 14, 2013 11:26 pm

Nice program and idea, good work.
Personally I haven't got a such problem with the Maxoff's PKG filter exporting the PKG files as building type. The objects order problem happens when the objects are called H, M, L and VL, for the PKG files to be used as city objects. For the ones designated to be used as breakable props, there are also the numbered BREAK objects.
Make that type of program for MM1 too. ;)
This shouldn't be necessary, because this PKG files objects order problem it's related with the ZModeler's PKG filter. A similar problem probably doesn't happen in creating the equivalent file in MM1.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|

aaro4130
MM2X Super Active User
MM2X Super Active User
Posts: 2405
Registered for: 15 years 10 months
Location: Canada
Been thanked: 1 time

Postby aaro4130 » Fri Jun 14, 2013 11:32 pm

@Franch, try exporting sp_tree1

or a new traffic light/street lamp

This is the "Prop" type that isnt in the PKG filter by Maxoff, therefore I made this program

EDIT : Did some GUI work, added delete button
Image
[img]https://i61.tinypic.com/25zrngo.jpg[/img][color=white]
- Most creative active member
- Most smart active member
- Best MM2 innovation of the year
- Best programmer

[img]https://i60.tinypic.com/2m4c2h5.jpg[/img]
- Most helpful active member[/color]

User avatar
Franch88
MM2X Admin
MM2X Admin
Posts: 15758
Registered for: 16 years 9 months
Location: Italy
Been thanked: 1 time
Contact:
Italy

Postby Franch88 » Sat Jun 15, 2013 11:30 pm

I've tried to export the sp_tree1_l.pkg file (has been my first time), the most used tree prop object in MM2, and in fact it gives working problems exported with the Maxoff's PKG filter. The problem there's with the numbered BREAK objects order, which are 5 in it: their order from the top to the bottom, instead to be from BREAK01_H to BREAK05_H, it's BREAK01_H, BREAK03_H, BREAK05_H, BREAK04_H and BREAK02_H. This kind of error doesn't happen with only the first two of these BREAK objects; maybe it happens having the first three.
Evidently Maxoff didn't noticed that there was also this to fix when he improved the filter.

Nice update. Nice the new GUI, and great for the adding of the delete button, it should work well for the deleting of the H object in buildings PKG files, something impossible to do with the similar function in MM2 City Toolkit program (it's made to delete only the other LOD objects).
See if you can implement this: the objects duplicating. So, with this tool it's easily possible make the M, L and VL LOD objects from the H one. Actually, a similar thing it's possible to do with MM2 City Toolkit program, but only in the moment of generating the city files from its 3DS files importing function. This is obviously good for the buildings PKGs making, and it's already done so in MM2 Revisited V5 mod.
Fiat 500 = Italian motorization. Franch88, MM2 eXtreme forum and website Administrator.
|Franch88's MM2 Releases|