Facebook Twitter YouTube Frictional Games | Forum | Privacy Policy | Dev Blog | Dev Wiki | Support | Gametee

Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
Has anyone figured out .nodes files?
FragdaddyXXL Offline

Posts: 136
Threads: 20
Joined: Apr 2012
Reputation: 7
Has anyone figured out .nodes files?

I was looking at some of Amnesia's source files and I noticed a 10_daniels_room_servant_grunt.nodes file. I was wondering if anyone knows of an easy way to make one. I say easy because one of the values needed are distance values between each node. Ex.
<Node Name="PathNodeArea_1" ID="580">
        <Edge Node="PathNodeArea_28" Distance="1.67661678791046142578" />
        <Edge Node="PathNodeArea_25" Distance="1.74686419963836669922" />
        <Edge Node="PathNodeArea_4" Distance="2.35236239433288574219" />
        <Edge Node="PathNodeArea_2" Distance="3.08871102333068847656" />
        <Edge Node="PathNodeArea_29" Distance="3.24689984321594238281" />
        <Edge Node="PathNodeArea_7" Distance="4.88411092758178710938" />
Of course it's possible to calculate the distance between two points, but it would be quite tedious to do so. Or am I just crazy, and that Distance value means something else completely. I would like to use such a file so that I can just clear the current path nodes from the AI and call up paths that I have already pre-made.

Oh, and they use it like so:
AddEnemyPatrolNode("grunt_normal_1", "PathNodeArea_28", 0, "");

Or is that just how far the enemy can stray from the nodes?

Dark Seclusion Here
(This post was last modified: 04-19-2012, 05:26 PM by FragdaddyXXL.)
04-19-2012, 05:22 PM
Your Computer Offline

Posts: 3,456
Threads: 32
Joined: Jul 2011
Reputation: 235
RE: Has anyone figured out .nodes files?

There's no need to figure out those files, the game will work without them.

Tutorials: From Noob to Pro
04-19-2012, 10:57 PM
Website Find
Homicide13 Offline
Senior Member

Posts: 323
Threads: 41
Joined: Nov 2010
Reputation: 14
RE: Has anyone figured out .nodes files?

I think the game tends to generate those files by itself (in the same way that it generates .mesh files).

I could be wrong though.

04-20-2012, 06:51 AM
Putmalk Offline
Senior Member

Posts: 290
Threads: 13
Joined: Apr 2012
Reputation: 15
RE: Has anyone figured out .nodes files?

When you open the mapviewer, it makes them. I'm not too well versed in them though.

04-20-2012, 07:28 AM
Knittel Offline
Junior Member

Posts: 8
Threads: 1
Joined: Apr 2012
Reputation: 0
RE: Has anyone figured out .nodes files?

These nodes are for the movement of an enemy following the player (I'm not sure, but this would make sense). It shows every Pathnode and the Pathnodes, where no Object is in between. The distance is also saved, I don't know why. Maybe to save performance.
For creating of a custom_story it is unimportant, you don't need to change them. The Mapviewer (and Game sometimes) creates it.

[Image: 2ZwH0ZGD0AwL2.png]

04-20-2012, 11:03 AM
Cranky Old Man Offline
Posting Freak

Posts: 986
Threads: 20
Joined: Apr 2012
Reputation: 38
RE: Has anyone figured out .nodes files?

This is my guess:
The monster will of course choose the path to the player that has the least distance. By lowering the distance values between two nodes, you can made the monster prefer this path. For instance, if the player is hiding on the other side of a spike pit, you can set the distance leading over the pit to be really long. In that way the monster will percieve the paths leading around the pit to be shorter, and take that path instead. Only if those paths are blocked off, will the monster try to cross the spike trap.

Noob scripting tutorial: From Noob to Pro

(This post was last modified: 04-20-2012, 11:11 AM by Cranky Old Man.)
04-20-2012, 11:10 AM

Users browsing this thread: 1 Guest(s)