Frictional Games Forum (read-only)
Nublette Requires Assistance with Scripting and Puzzles - Printable Version

+- Frictional Games Forum (read-only) (https://www.frictionalgames.com/forum)
+-- Forum: Amnesia: The Dark Descent (https://www.frictionalgames.com/forum/forum-6.html)
+--- Forum: Custom Stories, TCs & Mods - Development (https://www.frictionalgames.com/forum/forum-38.html)
+---- Forum: Development Support (https://www.frictionalgames.com/forum/forum-39.html)
+---- Thread: Nublette Requires Assistance with Scripting and Puzzles (/thread-19800.html)

Pages: 1 2 3


RE: The Nublette Needs Help With Everything - str4wberrypanic - 01-08-2013

I have an idiot question and i don't want to create a new thread just for it. What is the -1, 0, and 1 of the " AddEntityCollideCallBack " ?


RE: The Nublette Needs Help With Everything - TheGreatCthulhu - 01-08-2013

@str4wberrypanic: You can read about that on the wiki.

In short, these are indicators, or "flags", or so called "magic numbers" which have specific meaning when passed to this function.

When passed as parameter to AddEntityCollideCallback(), they determine when exactly the collision event should be detected:
  • 1 means when the two entities (or an entity and an area) first intersect (collision on enter)
  • -1 means when they, or rather their bounding boxes, stop intersecting (collision on leave)
  • 0 means both

The callback itself has a similar input parameter (alState on the wiki), which you can check to see which event triggered the collision; naturally, it can only be 1 or -1.


RE: The Nublette Needs Help With Everything - CarnivorousJelly - 01-08-2013

Edit: That ninja Cthulhu beat me to it


RE: The Nublette Needs Help With Everything - str4wberrypanic - 01-08-2013

(01-08-2013, 03:47 AM)TheGreatCthulhu Wrote: @str4wberrypanic: You can read about that on the wiki.

In short, these are indicators, or "flags", or so called "magic numbers" which have specific meaning when passed to this function.

When passed as parameter to AddEntityCollideCallback(), they determine when exactly the collision event should be detected:
  • 1 means when the two entities (or an entity and an area) first intersect (collision on enter)
  • -1 means when they, or rather their bounding boxes, stop intersecting (collision on leave)
  • 0 means both

The callback itself has a similar input parameter (alState on the wiki), which you can check to see which event triggered the collision; naturally, it can only be 1 or -1.
Thank you Cthulhu, you're aways helping me. Big Grin


RE: The Nublette Needs Help With Everything - CarnivorousJelly - 01-10-2013

>.>
<.<
Guess what I did.
Spoiler below!

[Image: seven_circles_of_hell_by_rueppells_fox-d5qzt6t.png] I made a 7-floor library, it is possible O_O


Edit: oops, forgot spoiler tag


RE: The Nublette Needs Help With Everything - FlawlessHappiness - 01-10-2013

(01-10-2013, 02:43 AM)Kiandra Wrote: >.>
<.<
Guess what I did.
Spoiler below!

[Image: seven_circles_of_hell_by_rueppells_fox-d5qzt6t.png] I made a 7-floor library, it is possible O_O


Edit: oops, forgot spoiler tag

Then make it good! And not big and empty Wink


RE: The Nublette Needs Help With Everything - TheGreatCthulhu - 01-10-2013

Nice. You might want to consider giving the floors some volume, by having two parallel plains, one for the ceiling of the previous story, one for the floor of the next.

You can use welder objects for places where the gap would be visible, for example, where the stairs are (say, use the lower beam of a railing to cover the gap), or you can also use primitive plains.


RE: The Nublette Needs Help With Everything - CarnivorousJelly - 01-11-2013

(01-10-2013, 10:50 PM)TheGreatCthulhu Wrote: Nice. You might want to consider giving the floors some volume, by having two parallel plains, one for the ceiling of the previous story, one for the floor of the next.

You can use welder objects for places where the gap would be visible, for example, where the stairs are (say, use the lower beam of a railing to cover the gap), or you can also use primitive plains.

I see what you meant by volume, they do have volume Big Grin Just the one that looks like it doesn't is being seen from above the ceiling plane and below the floor plane >.<

Quote:Then make it good! And not big and empty Wink
Oh don't worry, I intend to fill it with lots and lots of stuff (insert evil laugh of your choice here) just as long as it doesn't cause too much lag. Any suggestions on how to keep that to a minimum with such a large map size?

Edit: Seems like I forgot the question I was going to post out of excitement.


RE: The Nublette Needs Help With Everything - NaxEla - 01-11-2013

That map looks really cool! With a bunch of bookshelves and books, it will look really nice Big Grin.
Here's a few tips from the wiki about optimization for levels:

http://wiki.frictionalgames.com/hpl2/amnesia/performance
http://wiki.frictionalgames.com/hpl2/tutorials/level_editor/tutorial_2 (specific to lighting)


RE: The Nublette Needs Help With Everything - CarnivorousJelly - 01-12-2013

I want to make sure I'm not the only person able to solve my riddle-based puzzle:


Mouthless it consumes
Lungless, breathes
Provider and destroyer
Lifeless, it drowns

Answer:
Spoiler below!

Fire

Too hard, too easy?
I'll add the other 4 riddles when I think something up/leach them from the internet Smile

Also, thank you for the advise about optimization!