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 » Mon Jun 27, 2011 7:57 pm

@Mator:
1. Could you also post the other filenames where the error occurs please? These files contain data I need in order  to improve the texture import/export
2. Fixed the problem. I'll upload a newer version soon. Actually, the problem was that the export script just picked the material of the first node in the scene which was a dummy in your case (main_menu.4ds) that has no material property, so you got that error. In multiplayer_menu the first node is an editable mesh, so it works. But i've now added some functions that handle all that texture stuff correctly.
Last edited by hdmaster on Mon Jun 27, 2011 8:01 pm, edited 1 time in total.

User avatar
Mator
Private
Posts: 6
Joined: Tue Mar 29, 2011 12:18 pm
Contact:

Re: 4ds files hacked

Unread post by Mator » Mon Jun 27, 2011 8:12 pm

I'll post it today.But i need time for verify ALL files.ok? =)
Some filenames:
w_LeesFPV
W_cknifefpv
vodopad1
vodopad2
us04
us03
us02
us01
RU01
RU02
ohen1
ohen2
NPC_Ge10b
NPC_Ge05b
NA01
mp_en01-12
mp_ge01a-31b
mp_it01-03
mp_ru01,02
mp_us01-04
IT01
IT02
IT03
GE01a-GE31b
k_majak1
It's not all files.I'll add new filenames later. :wink:
Last edited by Mator on Tue Jun 28, 2011 3:21 pm, edited 1 time in total.

User avatar
MCh2207Cz
Private
Posts: 11
Joined: Wed Jun 01, 2011 5:01 pm

Re: 4ds files hacked

Unread post by MCh2207Cz » Fri Jul 01, 2011 10:25 pm

Just addition to the "error-file-list".

In general, I had problems with importing first person weapon models (those weapon models that have "fpv" at the end of their filename).

User avatar
JonnySniper
Lieutenant
Posts: 101
Joined: Thu Dec 24, 2009 11:33 am
Location: Germany
Contact:

Re: 4ds files hacked

Unread post by JonnySniper » Sat Jul 02, 2011 12:07 pm

MCh2207Cz wrote: Just addition to the "error-file-list".

In general, I had problems with importing first person weapon models (those weapon models that have "fpv" at the end of their filename).
me too
and the player models makes problems.
www.object-arts.de.tl
Idee := Brain.Activate(self);

User avatar
betteryouthanme
Lieutenant
Posts: 116
Joined: Thu Jun 12, 2008 1:37 pm
Location: Germany
Contact:

Re: 4ds files hacked

Unread post by betteryouthanme » Sun Jul 24, 2011 1:38 pm

:shock: Where's the bringer of hope?

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) » Sat Jul 30, 2011 7:00 am

Sometimes I'm watching the actual games, but there is no better game than HD2! I hope we can make new levels in the near future, so please don't give up hdmaster! I separated the texture files into separated folders, for example: Arctic, Africa, Czech....etc. The Arctic and Africa has sub-folders, for ex.. Walls, Grounds, Doors, Furnitures....etc.

So if you need the filelist I'll send it on mail to you hdmaster!
Last edited by Marvin (hun) on Sat Jul 30, 2011 11:10 am, edited 1 time in total.

User avatar
Mator
Private
Posts: 6
Joined: Tue Mar 29, 2011 12:18 pm
Contact:

Re: 4ds files hacked

Unread post by Mator » Sat Jul 30, 2011 12:18 pm

Hey.Somebody knows how to edit collision data in tree.klz files?I didn't see any editor for it.And without editor for tree.klz can not make new levels  ;)

User avatar
betteryouthanme
Lieutenant
Posts: 116
Joined: Thu Jun 12, 2008 1:37 pm
Location: Germany
Contact:

Re: 4ds files hacked

Unread post by betteryouthanme » Sun Jul 31, 2011 8:02 am

Now there's one for Mafia but it is not working for HD2.
http://www.moddb.com/games/mafia/downloads/treere-4-v12

But maybe you can make something out of it? *fingers crossed*

User avatar
Mator
Private
Posts: 6
Joined: Tue Mar 29, 2011 12:18 pm
Contact:

Re: 4ds files hacked

Unread post by Mator » Sun Jul 31, 2011 10:35 am

First we need to decipher tree.klz.And later create program like TreeRE.This work may do scripter better than me. :roll:

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

Re: 4ds files hacked

Unread post by hdmaster » Fri Aug 05, 2011 5:37 pm

Sorry for the long wait time on updates but I was very busy.
I'll definetly upload a new version within the next week with a few more features like export for imported sectors and occluder, which means you'll be able to export a complete map back to .4ds :).
I've also tested importing most of the FPV weapons with a newer version and it worked. But importing soldiers (us01.4ds, ge01.4ds and so on) is still not going to work.

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) » Fri Aug 05, 2011 6:24 pm

Thanks for the great news hdmaster! Does it means also that the map collisions will work?

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 » Sat Aug 06, 2011 10:18 pm

I'm trying the new version of the plugin with 3ds max 9.0 and get this error:
-- Type Error: Call needs function or class, got: undefined

and is highlighted this line:
header_time = ReadDouble f

Does anybody know how to fix it?
I've also installed the FBX 2009.3 Plug-in for 3ds Max 9.0
but seems it had no effect.  help01

Edit:
I've replaced "header_time = ReadDouble f" with "fseek f 8 #seek_cur" and it worked.
Seems that "ReadDouble" function is not supported by my version.
Luckyly, it's used just once for a useless value :)
Last edited by Ikaros on Sun Aug 07, 2011 10:07 am, edited 1 time in total.
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 Aug 08, 2011 1:56 pm

@Marvin:
It's still not possible to build new collisions, but have a look at the 'tree.klz think tank' thread here for new information about collisions.

@Ikaros:
The function ReadDouble is supported by versions prior to 3ds Max 2008 only through the Avguard DLX Extension (download here). This package extends MaxScript in older 3ds Max versions with some nice functions that were later directly included in 3ds Max (2008+).
But as you already mentioned, you don't really need that function. I guess this is also the only function I'm using in my scripts that's not supported by 9.0 :)

// Edit:

Screenshot of Africa1_mp exported from 3ds Max. I don't know why that turquoise color appears..

Image

Uploaded with ImageShack.us
Last edited by hdmaster on Mon Aug 08, 2011 2:04 pm, edited 1 time in total.

User avatar
-ViTaMiHnM203-
SAS Soldier
Posts: 1347
Joined: Wed May 11, 2005 7:52 am
Location: Classified
Contact:

Re: 4ds files hacked

Unread post by -ViTaMiHnM203- » Tue Aug 09, 2011 12:13 am

Don't worry about it too much, the developers of HD2 had the same problem as well. :mrgreen:
Eight, 8, the burning eight; between Sunday and Monday exists a day so great, it will devastate. :twisted:

lexov
Private
Posts: 6
Joined: Sun Aug 07, 2011 11:21 pm

Re: 4ds files hacked

Unread post by lexov » Tue Aug 09, 2011 6:56 pm

hdmaster wrote: Screenshot of Africa1_mp exported from 3ds Max. I don't know why that turquoise color appears..
Mafia renders objects with incorrect lightmaps this way. Your export probably changed that mesh object somehow so it's not consistent with the data stored for the associated lightmap anymore. Try to find the lightmap for that object in the scene2.bin and delete it.

Post Reply

Who is online

Users browsing this forum: No registered users and 70 guests