Author Topic: RE: Very Strange - Anyone Seen this Before  (Read 639 times)

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« on: December 15, 2014, 01:47:41 pm »


               

I've created a male and female patron template and scattered a half dozen of them in my bar. To add a little variety to the group, I edited the patrons placed in the bar and changed their appearances so that each one is different. Each time I enter the bar, some of the patrons will have the appearance used for the template. The switch to the default template appearance seems to be random - e.g. one time when I enter I see the default appearance on the NPC, the next time its the appearance I changed it to. Since I have changed all of the appearances on the placed patrons, I shouldn't be seeing this default appearance. So, what gives?



               
               

               
            

Baaleos

  • Administrator
  • Hero Member
  • *****
  • Posts: 1916
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« Reply #1 on: December 15, 2014, 11:48:56 pm »


               is there an onspawn script that might be doing it?


Try DM connecting and possessing / inspecting inventories to see if they are missing gear etc

Is this vanilla nwn or is there any nwnx at work here?

I had a similar issue with nwnx_resman
If I tried to spawn a creature that was added to the externalsources folder - and he was trying to have equipment equipped which was also in the externalsources folder - then he would appear naked.
I ended up having to spawn him, spawn his gear, then equip after his spawn event.
               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« Reply #2 on: December 16, 2014, 12:54:22 am »


               

Its a module I've been working on that uses Project Q and a lot of other content - no NWNX stuff. They do have a custom OnSpawn script, but nothing in there does anything to the appearance. These are creatures I've created templates for and physically placed into an area. I then opened the properties of each creature and changed the appearance so they were all different. However, when I enter the area I sometimes see the default appearance, not the new one I've selected. Its also completely random as to which instances it affects.


 


In any event I appear to have fixed it by creating more templates - each with a different appearance.



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« Reply #3 on: December 16, 2014, 01:24:05 am »


               

very interesting behavior. i've wondered how creature spawns placed in the toolset work. And I wonder if the spawn you make is just data telling the machine how to modify the base template when it is spawned.


 


your experience seems to suggest that that is how it works.



               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« Reply #4 on: December 16, 2014, 02:08:26 am »


               

That would make sense. It seems to just be the appearance that gets messed up. The inventory is correct and it is firing the correct scripts for each event. I'd wager the skills and feats are ok too.



               
               

               
            

Legacy_meaglyn

  • Hero Member
  • *****
  • Posts: 1451
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« Reply #5 on: December 16, 2014, 03:06:24 am »


               


very interesting behavior. i've wondered how creature spawns placed in the toolset work. And I wonder if the spawn you make is just data telling the machine how to modify the base template when it is spawned.


 


your experience seems to suggest that that is how it works.




 


If pstemarie means painting creatures into the area directly and modifying them using properties, and I think that's what he was saying, then no, that's not how it works. The entire gff file worth of data (modulo some header bits) from the utc is added to the creature list in the .git file for the area. The whole thing is there, with appearance set to what it was set to in the toolset, all its equipment in the equipment list equally complete gff data etc. There's nothing fancy going on.  This is why gits get so big so easily. Pretty much everything you paint is in there.  You can actually delete the resref and the creature will still show up in the area.


 


That said, I've never seen what he's seeing. I have seen somewhat similar behavior at times using an onspawn script which randomizes appearances. But that was for NESS spawns that triggered on enter and made the changes live. These painted things should just be there correctly as painted.


               
               

               
            

Legacy_Pstemarie

  • Hero Member
  • *****
  • Posts: 4368
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« Reply #6 on: December 16, 2014, 10:59:30 am »


               
If pstemarie means painting creatures into the area directly and modifying them using properties, and I think that's what he was saying, then no, that's not how it works...

 


That's exactly what I'm saying. I painted them in the toolset, altered the appearance, and voila...the appearance is randomly changing back to the default template appearance. You can walk in and out of that area 100 times and each time you enter random bar patrons will have the default appearance.


 


This is the only template exhibiting this behavior. I have a custom OnSpawn that stores a "job" variable on the creature, but nothing that randomizes appearance. BUT, as stated above, my "solution" proved to be creating different templates - one for each appearance I was using. Thus, instead of one "Patron" template, I have six templates.



               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
RE: Very Strange - Anyone Seen this Before
« Reply #7 on: December 16, 2014, 06:13:55 pm »


               

well hell if I know then. Thanks for pointing that out, Meaglyn. I slapped my forehead when I realized that yes indeed you can delete the blueprint and still have a creature in an area.


 


Still it is weird behavior.