Duke4.net Forums: Build to DNF T3D Map converter - Duke4.net Forums

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Build to DNF T3D Map converter

#1

I made a Build to T3D map converter. T3D files are Unreal 1 text files that you can import directly into the DNF editor. Awhile ago I ported Polymer to C# for my Unity DukeSharp port, I refactored that code to be a map converter. So basically this uses Polymer as a backend to convert map files.

Notes:
Any sectors that relied on overlapping sectors, were sectors existed in the same 3D space, will need to be fixed. There's no way for an exporter to fix that.

https://github.com/j...leases/tag/1.01

How to:

1) Extract the map file and tables.dat into the same folder as the executable.
2) DukeMapT3D.exe MapFile
3) Open DukeED and do file -> import and click on the T3D file that's generated.

To fix the bad UV's.
1) Right click on any face and select "select all faces".
2) Right click on any face click on align selected then click planar.

Posted Image

This post has been edited by icecoldduke: 06 June 2022 - 08:01 AM

5

#2

This can be quite useful for the community. Do you know if other engines support t3d files or if there are converter tools that will convert t3d files to formats those engines support? Specifically I am thinking of O3DE, Godot or any of the open source idTech engines.
1

#3

Posted Image

Automatic Texture Assignment now works. So you can export a build map to duke nukem forever and textures will automatically be assigned to each brush.

https://github.com/j...leases/tag/1.02

How to:

EDIT:
!!If you are loading a mod you need to extract all of the mod art files as well!!!

1) Extract the map file and tables.dat and palette.dat and all .art files into the same folder as the executable.
2) DukeMapT3D.exe MapFile
3) BEFORE importing the T3D file, you need to import all the textures and SAVE out the Duke Texture Package. Generated textures are in a new folder that has the same name as you map.
4) OPEN THE PACKAGE FILE WITH THE TEXTURE BROWSER OR SOMETIMES THE ENGINE WONT LOAD ALL THE TEXTURES.
5) Open DukeED and do file -> import and click on the T3D file that's generated.

To fix the bad UV's.
1) Right click on any face and select "select all faces".
2) Right click on any face click on align selected then click planar.

This post has been edited by icecoldduke: 06 June 2022 - 01:20 PM

1

#4

View PostKristian Joensen, on 06 June 2022 - 10:15 AM, said:

This can be quite useful for the community. Do you know if other engines support t3d files or if there are converter tools that will convert t3d files to formats those engines support? Specifically I am thinking of O3DE, Godot or any of the open source idTech engines.


It can definetely be modified to output to whatever format but unreal 1-3 to my knowledge is the only engines that support t3d.
1

User is offline   max_nukem 

#5

Hello. Not works for me, I see long polygons after importing.

Posted Image
1

User is offline   vini1264 

#6

Me too, i've build the map, followed all the instructions and it ended up looking like this:

Attached thumbnail(s)

  • Attached Image: imagem_2022-06-06_184610322.png


This post has been edited by vini1264: 06 June 2022 - 02:47 PM

1

#7

Sorry you are experiencing this. Can you post the map file you've experienced this with? So far we haven't been able to repo this issue. Here's an example of DUKERIDE from DNF 2013 importing just fine. But definetely please let me know what map you guys are trying to import and ill see if I can reproduce that issue.

Posted Image

This post has been edited by icecoldduke: 06 June 2022 - 03:09 PM

0

User is offline   vini1264 

#8

View Posticecoldduke, on 06 June 2022 - 03:00 PM, said:

Can you post the map file you've experienced this with?


Sure, it was E1L2:

Attached File(s)

  • Attached File  E1L2.zip (331.47K)
    Number of downloads: 174

1

User is offline   max_nukem 

#9

Used tool from Release3.1.rar

Attached File(s)

  • Attached File  E1L1.zip (123.64K)
    Number of downloads: 169


This post has been edited by max_nukem: 06 June 2022 - 03:11 PM

1

#10

View Postvini1264, on 06 June 2022 - 03:08 PM, said:

Sure, it was E1L2:

I did a fresh import of E1L2 and on my end it works.
1

User is offline   vini1264 

#11

View Posticecoldduke, on 06 June 2022 - 03:17 PM, said:

I did a fresh import of E1L2 and on my end it works.

Are you using some different version of DukeED? I'm using the one that comes from the original leak + the MegaPatch

This post has been edited by vini1264: 06 June 2022 - 03:20 PM

1

#12

View Postvini1264, on 06 June 2022 - 03:19 PM, said:

Are you using some different version of DukeED? I'm using the one that comes from the original leak + the MegaPatch

So the issue is somehow in your version the periods got changed to commas. I dont know how that would have happened. So its either some really weird on your end or somehow it got manually changed, but I don't think this is a issue directly related to the tool.

Posted Image

Posted Image

This post has been edited by icecoldduke: 06 June 2022 - 03:27 PM

1

User is offline   vini1264 

#13

View Posticecoldduke, on 06 June 2022 - 03:24 PM, said:

So the issue is somehow in your version the periods got changed to commas. I dont know how that would have happened. So its either some really weird on your end or somehow it got manually changed, but I don't think this is a issue directly related to the tool.

Posted Image

Could this be related to my system language? I'm Brazilian so the language in my PC is portuguese.
1

#14

View Postvini1264, on 06 June 2022 - 03:27 PM, said:

Could this be related to my system language? I'm Brazilian so the language in my PC is portuguese.


It could be, if so then it is then its an issue with .NET. You can try switching your language to english.
1

User is offline   Aleks 

#15

Regional settings of Windows and having either comma or dot set up as a decimal separator can definitely fuck with data output/input from applications, had that happen to me before. In Windows 10 (probably 7 and 11 as well), you can change this by going to Control Panel -> Clock and region -> Region/Change format of date, hour or numbers -> Formats -> Additional settings -> Decimal symbol.

Anyway, impressive work on the tool, Icecoldduke! I can see this being useful, even if the SOS geometry gets messed up.
1

User is offline   vini1264 

#16

View Posticecoldduke, on 06 June 2022 - 03:28 PM, said:

It could be, if so then it is then its an issue with .NET. You can try switching your language to english.

Just confirmed, it was indeed my system language, just changed it to english and the map now imports just fine

Attached thumbnail(s)

  • Attached Image: Screenshot 2022-06-06 202935.png

1

User is offline   Sixty Four 

  • Turok Nukem

#17

I noticed a few were interested in bringing dn3d levels over. Good job on making it easier to do. That's some solid code also I see. I'd probably use this for if I want to port one of my old maps or something lol. I'll try it sometime good idea.
1

User is offline   max_nukem 

#18

View PostAleks, on 06 June 2022 - 03:55 PM, said:

Regional settings of Windows and having either comma or dot set up as a decimal separator can definitely fuck with data output/input from applications, had that happen to me before. In Windows 10 (probably 7 and 11 as well), you can change this by going to Control Panel -> Clock and region -> Region/Change format of date, hour or numbers -> Formats -> Additional settings -> Decimal symbol.

Anyway, impressive work on the tool, Icecoldduke! I can see this being useful, even if the SOS geometry gets messed up.



It helps, thanks for all,
0

#19

View Posticecoldduke, on 06 June 2022 - 01:16 PM, said:

It can definetely be modified to output to whatever format but unreal 1-3 to my knowledge is the only engines that support t3d.


Do you know if there are any converters, similar to this, from t3d to the formats of other engines?
0

User is offline   MusicallyInspired 

  • The Sarien Encounter

#20

That's pretty freaking cool nice job!
1

#21

View PostKristian Joensen, on 07 June 2022 - 01:15 AM, said:

Do you know if there are any converters, similar to this, from t3d to the formats of other engines?


In my latest I changed the code to export to a custom interm format that you can use to import to into other software.

Plane E1L1_1
{
	xyz 4403.2 -1433.6 -51.2
	normal 0 0 -0.9999999
	xyz 4454.4 -1356.8 -51.2
	normal 0 0 -0.9999999
	xyz 4460.8 -1363.2 -51.2
	normal 0 0 -0.9999999
	xyz 4761.6 -1356.8 -51.2
	normal 0 0 -0.9999999
	xyz 4460.8 -1363.2 -51.2
	normal 0 0 -0.9999999
	xyz 4454.4 -1356.8 -51.2
	normal 0 0 -0.9999999
	xyz 4492.8 -1363.2 -51.2
	normal 0 0 -1
	xyz 4460.8 -1363.2 -51.2
	normal 0 0 -1
	xyz 4761.6 -1356.8 -51.2
	normal 0 0 -1
	xyz 4716.8 -1363.2 -51.2
	normal 0 0 -1
	xyz 4492.8 -1363.2 -51.2
	normal 0 0 -1
	xyz 4761.6 -1356.8 -51.2
	normal 0 0 -1
	xyz 4755.2 -1363.2 -51.2
	normal 0 0 -1
	xyz 4716.8 -1363.2 -51.2
	normal 0 0 -1
	xyz 4761.6 -1356.8 -51.2
	normal 0 0 -1
	xyz 4812.8 -1433.6 -51.2
	normal 0 0 -1
	xyz 4755.2 -1363.2 -51.2
	normal 0 0 -1
	xyz 4761.6 -1356.8 -51.2
	normal 0 0 -1
}

1

User is offline   Sixty Four 

  • Turok Nukem

#22

Hey,

I get this errors when I try to run this. Did I miss a step or what am I doing wrong here?

Posted Image

Posted Image
0

User is offline   max_nukem 

#23

Hi,
Error, when try to convert custom map.
Map in attaced archive.
Posted Image

Attached File(s)

  • Attached File  t3dm.zip (155.17K)
    Number of downloads: 173

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic


All copyrights and trademarks not owned by Voidpoint, LLC are the sole property of their respective owners. Play Ion Fury! ;) © Voidpoint, LLC

Enter your sign in name and password


Sign in options