4ds files hacked

This is for general discussion about Hidden & Dangerous 2, talk about what you liked or what you didn't like about the sequel. Talk about multiplayer games, setup matches etc.
hdmaster
Sergeant
Posts: 84
Joined: Thu Jan 27, 2011 9:31 pm
Location: Germany

Re: 4ds files hacked

Unread post by hdmaster » Wed May 18, 2011 12:00 pm

@Marvin:
I'm soon going to re-write the importer. The code will get cleaner and I also  hope it's easier to solve the problems then.
Yes, I imported the model with my importer and then exported it again back to a new .4ds file.
I just renamed the .4ds to the name of a palm used in Africa 1 so instead of the palm you see the tank. That shadow belongs to the palm that was there before.

Some progress:
Image

Uploaded with ImageShack.us

User avatar
Ikaros
Sergeant
Posts: 82
Joined: Wed Mar 23, 2011 11:30 am
Location: Italy
Contact:

Re: 4ds files hacked

Unread post by Ikaros » Wed May 18, 2011 12:14 pm

@hdmaster Very nice progress!

Did you understand something new (true for all meshes),
or did you change your script to empirically make just the tank works?

Keep on!
http://malgolan.altervista.org/
Italian politicians - Not in my name!

hdmaster
Sergeant
Posts: 84
Joined: Thu Jan 27, 2011 9:31 pm
Location: Germany

Re: 4ds files hacked

Unread post by hdmaster » Wed May 18, 2011 1:20 pm

That works for all meshes so far. The problem was the vertex positions, that were not relative to the center of the mesh they belong to. Instead the absolute position to the world center was exported. So the standard transformations like positioning/rotating, applied to their mesh, moved them from the right place.

User avatar
Marvin (hun)
Sergeant
Posts: 59
Joined: Sat Mar 19, 2011 3:01 pm
Location: Hungary

Re: 4ds files hacked

Unread post by Marvin (hun) » Wed May 18, 2011 2:06 pm

Haha, really cool! So you made a joke with the palm model.

And it paralell means that the HD2 can read your exported 4ds files! It's UNBELIEVEABLE! Congratulation!

User avatar
Ikaros
Sergeant
Posts: 82
Joined: Wed Mar 23, 2011 11:30 am
Location: Italy
Contact:

Re: 4ds files hacked

Unread post by Ikaros » Wed May 18, 2011 2:07 pm

Oh! So it's an even greater conquest! Many compliments!
http://malgolan.altervista.org/
Italian politicians - Not in my name!

User avatar
2k
Sergeant
Posts: 57
Joined: Wed Jul 04, 2007 6:32 pm

Re: 4ds files hacked

Unread post by 2k » Wed May 18, 2011 4:23 pm

Awesome! Hope you will fix those uv problem  as well easily.

User avatar
Ikaros
Sergeant
Posts: 82
Joined: Wed Mar 23, 2011 11:30 am
Location: Italy
Contact:

Re: 4ds files hacked

Unread post by Ikaros » Thu May 19, 2011 9:21 am

Yesterday I tried to manually modify the map.4ds of Normandy 2B occupation.

I've changed the short indicating the number of objects, from 23 to 27.
Then I've duplicated the objects zone5, allied5, axis5 and zone_disabled5 and appended the bytes at end of file.
I've renamed them to zone6, allied6, axis6 and zone_disabled6.
I've also changed the 1st short of allied6, axis6 and zone_disabled6, making them pointing to zone6.

So the hierarchy changed from:
| - center
   | - mapa scale
      | - zone5
         | - allied5
         | - zone_disabled5
         | - axis5
      | - zone4
         | - allied4
         | - zone_disabled4
         | - axis4
      | - zone3
         | - allied3
         | - zone_disabled3
         | - axis4
      | - zone2
         | - allied2
         | - zone_disabled2
         | - axis2
      | - zone1
         | - allied1
         | - zone_disabled1
         | - axis1
| - selectzone

to:
| - center
   | - mapa scale
      | - zone5
         | - allied5
         | - zone_disabled5
         | - axis5
      | - zone4
         | - allied4
         | - zone_disabled4
         | - axis4
      | - zone3
         | - allied3
         | - zone_disabled3
         | - axis4
      | - zone2
         | - allied2
         | - zone_disabled2
         | - axis2
      | - zone1
         | - allied1
         | - zone_disabled1
         | - axis1
| - selectzone
      | - zone6
         | - allied6
         | - zone_disabled6
         | - axis6

But it din't work. It's because 'selectzone' can't be in the middle of 'mapa.scale' children, even if zone6 points to mapa.scale?

I could try more experiments, but if anyone already knows, it's a lot of time saved.
Thank you :)

Edit: moving zone6 and children before selectzone seems to work. As never asked! :)
Last edited by Ikaros on Thu May 19, 2011 5:39 pm, edited 1 time in total.
http://malgolan.altervista.org/
Italian politicians - Not in my name!

finnlayer
Corporal
Posts: 39
Joined: Sat Apr 09, 2011 10:17 pm

Re: 4ds files hacked

Unread post by finnlayer » Thu May 19, 2011 7:48 pm

Hi,

I not much idea of this, is their any think you need to adjust or add in the texty.txt

example:

Normandy 2_mp_zone

8700 "ZONE 1 - ALLIED"
8701 "ZONE 2"
8702 "ZONE 3"
8703 "ZONE 4"
8704 "ZONE 5 - AXIS"

?

User avatar
Ikaros
Sergeant
Posts: 82
Joined: Wed Mar 23, 2011 11:30 am
Location: Italy
Contact:

Re: 4ds files hacked

Unread post by Ikaros » Fri May 20, 2011 7:33 am

@finnlayer

I'm sorry, I didn't understand what you tried to say. If it was a help for me, I thank you, but I resolved, as I stated in my "edit" quote.

If it was a request for help, try so say it in some other way :)
http://malgolan.altervista.org/
Italian politicians - Not in my name!

hdmaster
Sergeant
Posts: 84
Joined: Thu Jan 27, 2011 9:31 pm
Location: Germany

Re: 4ds files hacked

Unread post by hdmaster » Sun May 29, 2011 4:41 pm

@Ikaros
Any news on your editor?

I've re-written parts of the importer to make it more compatible with the exporter. The exporter now also supports UVW export. Here's a screen of the czech1 locomotive imported into 3ds max and exported back to 4ds :)

Image

Uploaded with ImageShack.us

User avatar
2k
Sergeant
Posts: 57
Joined: Wed Jul 04, 2007 6:32 pm

Re: 4ds files hacked

Unread post by 2k » Sun May 29, 2011 8:40 pm

Excellent. smile01 It seems like an alpha channel problem on wheels.

User avatar
Marvin (hun)
Sergeant
Posts: 59
Joined: Sat Mar 19, 2011 3:01 pm
Location: Hungary

Re: 4ds files hacked

Unread post by Marvin (hun) » Mon May 30, 2011 7:11 am

It's amazing! The 4ds files have collision models too?

User avatar
Ikaros
Sergeant
Posts: 82
Joined: Wed Mar 23, 2011 11:30 am
Location: Italy
Contact:

Re: 4ds files hacked

Unread post by Ikaros » Mon May 30, 2011 10:27 am

@hdmaster: Very Well! A great work you are doing! :D

Yes, I'm working on the editor by now. Here are some other screenshots, if you like:
index.php/topic,2116.msg10818.html#msg10818

The DC|ED-style editor is almost done. Now I'm working on the more user friendly editor, which handles insert/remove/drag&drop of object by mouse-clicks on map. It's very time consuming :)
http://malgolan.altervista.org/
Italian politicians - Not in my name!

hdmaster
Sergeant
Posts: 84
Joined: Thu Jan 27, 2011 9:31 pm
Location: Germany

Re: 4ds files hacked

Unread post by hdmaster » Mon May 30, 2011 3:22 pm

Very nice  improvement on your editor, Ikaros.

I've added alpha map support for the exporter. There's also a little problem with the brightness of the objects, the left side is always darker than the right one.

Left:
Image

Uploaded with ImageShack.us

Right:
Image

Uploaded with ImageShack.us

User avatar
Marvin (hun)
Sergeant
Posts: 59
Joined: Sat Mar 19, 2011 3:01 pm
Location: Hungary

Re: 4ds files hacked

Unread post by Marvin (hun) » Tue May 31, 2011 2:39 pm

Maybe a "hidden" light in the 4ds file!? For example: in the Half-Life 2 models there are a pre-defined light for each model by coords, which can give a better visualistaion for the models.
Last edited by Marvin (hun) on Tue May 31, 2011 8:13 pm, edited 1 time in total.

Post Reply

Who is online

Users browsing this forum: No registered users and 60 guests