Jump to content


Photo

Dreamfall Modding?


  • Please log in to reply
19 replies to this topic

#1 BenBandu

BenBandu

    Fringe Café Regular

  • Dreamer
  • PipPip
  • 72 posts

Posted 20 November 2014 - 07:20

Not sure if this is the right place to post this, or if there already exists a modding thread somewhere, but whatever  :rolleyes: 

I've been exporting a few models from the game now, but I can't for the life of me figure out if there's a way to export the joints and/or animations as well. If anyone is in the know of how to go about doing such a thing, I'd very much appreciate it if you passed on the information  ^_^



#2 Aj17

Aj17

    Arcadia Native

  • Member
  • PipPipPip
  • 448 posts
  • LocationUSA

Posted 21 November 2014 - 13:31

Pretty sure there is or was a modding topic on the funcom forums at one point, people did manage to mod Zoe so it's indeed possible.

 

Edit:

Found it http://forums.longes...read.php?t=3262


jHevh80.jpg


#3 BenBandu

BenBandu

    Fringe Café Regular

  • Dreamer
  • PipPip
  • 72 posts

Posted 21 November 2014 - 14:46

Yeah I came over that, and I've been able to extract Zoe's model and the textures using the DreamView program, but I can't get the bones/joints along with it. I tried DFToolBox as well but it crashed every time I try and import the gamefiles. I'll read through the topic though and see if anyone had the same problem. 



#4 khh

khh

    Harbinger of the Balance

  • Moderator
  • 7122 posts
  • LocationNorway

Posted 21 November 2014 - 17:34

Yeah I came over that, and I've been able to extract Zoe's model and the textures using the DreamView program, but I can't get the bones/joints along with it. I tried DFToolBox as well but it crashed every time I try and import the gamefiles. I'll read through the topic though and see if anyone had the same problem.

If I remember correctly that happened on localised versions of the game, as they contained an unsupported pak file. Hiding it was all you needed to do. I can't remember which one it was, though.

April Ryan is my friend,
Every sorrow she can mend.
When I visit her dark realm,
Does it simply overwhelm.


#5 BenBandu

BenBandu

    Fringe Café Regular

  • Dreamer
  • PipPip
  • 72 posts

Posted 21 November 2014 - 19:59

Oh alright, I have the steam version, but I'll look into it anyway. Thanks for the heads up  :)



#6 khh

khh

    Harbinger of the Balance

  • Moderator
  • 7122 posts
  • LocationNorway

Posted 21 November 2014 - 20:20

Apparently it's the bin/res/resource.pak file
  • Clairobscur likes this

April Ryan is my friend,
Every sorrow she can mend.
When I visit her dark realm,
Does it simply overwhelm.


#7 BenBandu

BenBandu

    Fringe Café Regular

  • Dreamer
  • PipPip
  • 72 posts

Posted 21 November 2014 - 20:50

Still gives me a crash sadly  :( I'll keep trying different things though, I'm bound to find something that'll work eventually.

E:
I've found a way to get the bones now, however it's not skinned correctly. It might be hard to import it perfectly skinned though, so I'll probably just be painting the weightmaps to make it work.

 

E2:
Found a way to get the model with the bones now, and skinned almost correctly as well! Just have to do minor tweaks to it to avoid bugs.


  • khh likes this

#8 Dreamcatcher

Dreamcatcher

    Arcadia Native

  • Vestrum
  • PipPipPip
  • 152 posts
  • LocationGermany

Posted 10 December 2014 - 17:21

I did not try to extract animations.
but this is how I export and import models with dreamview:

If you want to reimport a modified mesh. Export it out of dreamview in smd format.
Even if you use Milkshape. Use smd. Don´t convert. It will most likely not work.
I found one(!) program that can import and export smd files and works with dreamview
reliably and that is fragMotion.
Milkshape is supposed to work,too.
I really like Blender but I could not get the smd export of Blender to work with Dreamview.
until i figured out fragMotion could fix the Blender smd im/export tool.
Here´s how:
1.) Export mesh out of dreamview as smd.
2.) Import mesh in Blender. Textures are gone, I did not figure out why, but
you can now sculpt the mesh or add vertices, and adjust weightdata with weightpaint.
3.) Export smd file out of Blender
it is properties panel -> scene tab.
do not check "ignore Blender materials" these are the textures,
they have to be written in the export file.
4.) That took me a while to figure out:
import that smd file in fragMOTION (yay textures are back) and export it again as smd.
(If you open the smd files in a Editor you see
that Blender writes "0" where Dreamview wants a Bonenumber.)
If you added a lot of vertices (like select the whole mesh and click subdivide)
fragMotion might break the mesh. There seems to be a limit.

5.) import smd file in dreamview.

6.) play a modded Dreamfall.

Links:

Spoiler



#9 Simon

Simon

    Rubber Ducky

  • Member
  • Pip
  • 2 posts

Posted 11 December 2014 - 10:58

When you import the model into blender does it have correct weightdata? I've tried importing the smd to both Maya and 3ds max and the weights are always slightly off. Like the shoulder joint will randomly pull out some parts of the hair and whatnot. 



#10 Dreamcatcher

Dreamcatcher

    Arcadia Native

  • Vestrum
  • PipPipPip
  • 152 posts
  • LocationGermany

Posted 11 December 2014 - 12:03

I im/exported a few of Zoes models and weightdata was perfectly exported.

Milkshape has a great view to check weightdata but its not
good for editing it.
If I subdivide parts of the mesh to give it higher resolution,
blender automatically adds weightdata perfectly. Milkshape and fragMotion don´t.
Weightpainttool in Blender works well.
When the mesh is torn appart, that might be because the
information to attach one vertice to more than one bone might have gone lost.
You can check smd files in an editor. They are pretty easy to read and most times you can see what
might be wrong by comparing the original exported file to the one you try to import back.

What I never accomplished is to export props and scenes, I tried zoes room or castillos living room.
I wanted to smooth the jagged box like appearence of some things.
But I gave up on that.



#11 Dreamcatcher

Dreamcatcher

    Arcadia Native

  • Vestrum
  • PipPipPip
  • 152 posts
  • LocationGermany

Posted 17 December 2014 - 16:18

Fix for Blender Export to work with Dreamview:


Blender source tools for smd export do not work with dreamview.
There is a ParentboneID missing in the exported files.
Milkshape exports these parenbone IDs only without weightdata.
but with halflive2 format and weightdata the parentbone
was 0 when I tested it.

Its not a big Problem
Since the parentbone is usually the first in Order of the weight assignment.
this:
0 -1.614389 2.512028 46.978024 -0.798608 0.522782 -0.298135 0.539859 0.132652 2 14 0.472207 18 0.527793
just needs to be this:
14 -1.614389 2.512028 46.978024 -0.798608 0.522782 -0.298135 0.539859 0.132652 2 14 0.472207 18 0.527793

Since fragmotion breaks large files and milkshape can not do it.
I came up with a script that can fix the smd files from Blender export
so they can be imported with dreamview.

Just copy and past, save as html, open in Browser.
Open the smd file from Blender you want to use with dreamview in an editor.
Copy and paste the filecontent in the inputfield. press "go" wait a few seconds.
A file save dialog should appear. you can directly save your fixed file to disk.

It works with newer firefox. Other Browsers untested.
It may crash if you process large files~>20MB
It may not work in many Browsers at all.

The only alternative for this script I know is IM/Export the file with fragMotion.
 

<!DOCTYPE html>
<html>
<head>
<script type="text/javascript">
<!--
function fixblender() {
var lines = document.Formular.inputtext.value.split("\n");
var lineslenght = lines.length;
var i;
var a=0;
while (lines[a]!="triangles"&&a<=1000) {lines[a]=lines[a].replace(/  /g, " ");a++}
document.write("Please Wait...");
for (i=a;i < lineslenght; i++) {
    var element = lines[i].replace(/  /g, " ").split(" ");
    if (!isNaN(element[0])){element[0]=element[10]}        
    lines[i]=(element.join(" "));
}
window.open('data:text/csv;charset=utf-8,' + escape(lines.join(String.fromCharCode(13,10))));
}
//-->
</script>
</head>
<body>
<form name="Formular" action="">
<textarea name="inputtext" cols="100" rows="20"></textarea>
<input type="button" value="go" onclick="fixblender()">
</form>
</body>
</html>




#12 Clairobscur

Clairobscur

    Arcadia Native

  • Minstrum
  • PipPipPip
  • 298 posts
  • LocationKyrandia

Posted 20 March 2015 - 10:45

I have been trying to switch Zoë's outfits from one location to another (ie playing with Marcuria clothes in Casablanca), but it's not working. If it is possible, can someone please help and tell me how to achieve that? Thanks.



#13 Dreamcatcher

Dreamcatcher

    Arcadia Native

  • Vestrum
  • PipPipPip
  • 152 posts
  • LocationGermany

Posted 20 March 2015 - 11:29

It should be possible with Dreamview.

Export the Model you want to use and Import it back.

What did you do so far?



#14 Clairobscur

Clairobscur

    Arcadia Native

  • Minstrum
  • PipPipPip
  • 298 posts
  • LocationKyrandia

Posted 20 March 2015 - 11:57

It should be possible with Dreamview.

Export the Model you want to use and Import it back.

What did you do so far?

 

- I exported the Marcuria model with Dreamview as a SMD file (got SMD, TAG and JPG files).

- I selected Zoë in "jardin_des_roses.pak" and imported the SMD file from above. Nothing happens in Dreamview.

- Then I tried "inject BUN -> PAK". It updates the PAK file with the same Zoë model.

 

What am I doing wrong? Thanks. :)



#15 Dreamcatcher

Dreamcatcher

    Arcadia Native

  • Vestrum
  • PipPipPip
  • 152 posts
  • LocationGermany

Posted 20 March 2015 - 13:18

Right now I´m having the exact same problem on a computer where I`m sure it worked.

The only difference may be an update from win 8 to 8.1

If I figure something out I`ll post it. This is strange.

it seems to load but not update the model and there is nothing in the logfile.



#16 Clairobscur

Clairobscur

    Arcadia Native

  • Minstrum
  • PipPipPip
  • 298 posts
  • LocationKyrandia

Posted 20 March 2015 - 13:56

Right now I´m having the exact same problem on a computer where I`m sure it worked.

The only difference may be an update from win 8 to 8.1

If I figure something out I`ll post it. This is strange.

it seems to load but not update the model and there is nothing in the logfile.

 

Thanks for your reply. I am under Windows 7 64. I just tried with my old laptop and XP and it does not work either.



#17 khh

khh

    Harbinger of the Balance

  • Moderator
  • 7122 posts
  • LocationNorway

Posted 20 March 2015 - 14:04

I'm not sure if that feature ever worked. Did it?

 

I know dftoolbox has been used to inject mods into the game, but AFAIK it's only been used for texture mods and not models. Might work though.


April Ryan is my friend,
Every sorrow she can mend.
When I visit her dark realm,
Does it simply overwhelm.


#18 Clairobscur

Clairobscur

    Arcadia Native

  • Minstrum
  • PipPipPip
  • 298 posts
  • LocationKyrandia

Posted 20 March 2015 - 14:12

I'm not sure if that feature ever worked. Did it?

 

I know dftoolbox has been used to inject mods into the game, but AFAIK it's only been used for texture mods and not models. Might work though.

 

It's possible to inject new models, but I do not know how:

http://redthreadgame...mfall-chapters/


  • khh likes this

#19 Dreamcatcher

Dreamcatcher

    Arcadia Native

  • Vestrum
  • PipPipPip
  • 152 posts
  • LocationGermany

Posted 20 March 2015 - 15:57

I figured out why dreamview did not work:

The model you want to import needs to use the same texture names,bonestructure
and the same pak file as the model you want to replace.

I´m afraid I was wrong. There is no easy way to do this.  

The problem is: when I try to open the smd file in an editor and use search replace to change all name_of_body_texture.jpg
into name_of_orig_body_texture_as_in_orig_pak_file.jpg
Then rename the bodytexture.JPG to match the original pak file and use this with the pak file of the original model
I can import the model, but it messes up the texturemapping.
(I ve tried with marcuria outside zoe and casablanca zoe.)
I don´t know why.
The texture mapping should be part of the smd file.
Maybe it is because of the jacket. Maybe the bonestructure is different.
I don´t know what the pak file really does and if it is possible to edit it somehow to make it work.
But most likely you would have to remap the bodytexture.
This would be a lot of work.
Maybe if you open the messed up and the not messed up version in a 3d programm
there could be a chance to transfer the texturemaps, but this is trial and error.

 

If you still want to give it a try, I will try to help.

 

PS: I did still use the original texturenames and the original pak file and the original bonestructure when I made the Zoe from chapters mod.

I never tried to use a different pak file. But now it makes perfect sense, Dreamview can not import a different bonestructure and different texturenames and it looks like that is somehow described in the pak file, so of course it can not use a different pak file.


  • khh and Clairobscur like this

#20 Clairobscur

Clairobscur

    Arcadia Native

  • Minstrum
  • PipPipPip
  • 298 posts
  • LocationKyrandia

Posted 20 March 2015 - 16:09


If you still want to give it a try, I will try to help.

 

Thank you very much for looking into this! Unfortunately, I know nothing about 3D stuff and it seems too complicated for me to try further.

I will keep playing with your great DFC mod instead. :)


  • Dreamcatcher likes this




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users