Author Topic: Creating Haks  (Read 509 times)

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Creating Haks
« Reply #15 on: September 18, 2012, 09:56:43 pm »


               Also... would removing dialogue files and putting them into a hak be causing game crashes for players, somehow?
               
               

               
            

Legacy_Just a ghost

  • Full Member
  • ***
  • Posts: 244
  • Karma: +0/-0
Creating Haks
« Reply #16 on: September 19, 2012, 10:55:18 am »


               Another trick: put all the crafting items in a container and place that in a locked area. You can use that to copy/place stuff if that's what you need to do (you can also make a builder hak for that, of course). Then you look in the script for the place where the crafting system generates new items (if that's the case). Instead of using CreateObject you now look in the container for the item that you need and copy it.
               
               

               
            

Legacy_Just a ghost

  • Full Member
  • ***
  • Posts: 244
  • Karma: +0/-0
Creating Haks
« Reply #17 on: September 19, 2012, 10:55:50 am »


               O, and then you obviously trash everything that's on the palette.
               
               

               
            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Creating Haks
« Reply #18 on: September 19, 2012, 06:27:03 pm »


               Ah, smart idea for container items.

I am just baffled at this point though.... removed a lot of stuff and the dm client login works. However, it seems that if I add 1 script or 100.... it goes back to crashing again. I swear nwn trolls me. At this point I'm at a loss for why.
               
               

               


                     Modifié par Jenna WSI, 19 septembre 2012 - 05:27 .
                     
                  


            

Legacy_Just a ghost

  • Full Member
  • ***
  • Posts: 244
  • Karma: +0/-0
Creating Haks
« Reply #19 on: September 20, 2012, 07:34:28 am »


               Open the mod, look in Temp0 and post the file count?
               
               

               
            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Creating Haks
« Reply #20 on: September 20, 2012, 07:27:06 pm »


               This is the working module... after we removed convo files and moved them into a cep hak for storage. Just not sure why adding one dialogue file messes it up again. Even after adding what we needed and removing MORE files it still crashes the dm client.

12,233

Edited version that doesn't work - 12,239

Post edit: Okay a bare bones module with nothing but areas, with scripts added to a hak does allow dms to login. After going back to the old mod, removing all the scripts except core scripts, dialogue files also gone, only monsters and some items still in the module... it's crashing again. FML.
               
               

               


                     Modifié par Jenna WSI, 20 septembre 2012 - 09:17 .
                     
                  


            

Legacy_Just a ghost

  • Full Member
  • ***
  • Posts: 244
  • Karma: +0/-0
Creating Haks
« Reply #21 on: September 21, 2012, 07:15:25 am »


               Did you also try areas + script + dialogues in the module, but without anything on the palette? And then the same, but with every item, creature etc in a hak?

Mind that each hak also has a 16K limit.
               
               

               


                     Modifié par Just a ghost, 21 septembre 2012 - 06:16 .
                     
                  


            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Creating Haks
« Reply #22 on: September 21, 2012, 05:05:15 pm »


               Not yet. PRC and CEP has monsters placed into the mod for use... not sure if I can move them to a hak and have everything still functional?
               
               

               


                     Modifié par Jenna WSI, 21 septembre 2012 - 04:05 .
                     
                  


            

Legacy_Just a ghost

  • Full Member
  • ***
  • Posts: 244
  • Karma: +0/-0
Creating Haks
« Reply #23 on: September 21, 2012, 05:42:29 pm »


               Me neither, I never touched PRC and CEP because I want my stuff lean and mean.
               
               

               
            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Creating Haks
« Reply #24 on: October 24, 2012, 05:29:34 am »


               Dunno if anyone has new ideas, this has pretty much killed my interest in working with nwn for half a year now. Every time I look at it the problem defies normal logic. Take a module that works. Add 12 scripts to it. Remove 15 areas to give more space, nope.... dm client crash. Remove all scripts, nope... dm client crash. The module I'm trying to use is very much smaller than the old one that works. This time I even replaced the plc pallet with a blank one, removing all the placeables references there and it still crashes on dm login. I'm just stumped.
               
               

               


                     Modifié par Jenna WSI, 24 octobre 2012 - 04:35 .
                     
                  


            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
Creating Haks
« Reply #25 on: October 24, 2012, 05:51:19 am »


               I thought the DM Client crash was palette related. So why bother with removing scripts? I think the things to remove to solve the DM client crash would be monsters, placeables, items etc....

But then you replaced the PLC palette. I would think that would solve the problem. BUT perhaps it still counts the actual objects in teh module so an empty palette doesn't solve it.

OR maybe your particular crash is not related to palette overload, but something else.

--
That aside: Please don't let this bring you down. Find something else in NWN that serves your need for creativity. We miss you when you are gone.
               
               

               


                     Modifié par henesua, 24 octobre 2012 - 04:52 .
                     
                  


            

Legacy_Invisig0th

  • Sr. Member
  • ****
  • Posts: 279
  • Karma: +0/-0
Creating Haks
« Reply #26 on: October 24, 2012, 04:04:27 pm »


               One thing I've found often works in situations like this is to go back to the most recent backup before your recent set of changes. (You did make regular backups along the way, right?) Then reapply ONLY the changes necessary to get the module up to where you want it to be now. Depending on exactly what you did, going directly for the end result (instead of adding/removing and adding/removing, etc. etc.) may produce a module that does not have the errors you are reporting. Also, based on what I've seen here, messing with your module this extensively may also result in a corrupt module. At which point, it might indeed seem to behave illogically if you continue to add and remove items from the module hoping to solve the problem.

It is best to go back to the most recent "good" version and reapply your changes. Break your changes up into smaller groups of changes, and always test the module before adding the next small group of changes. Even if this does not work, it should at least give you some clues as to what the problem is.

Remember, what you are doing here is literally going right up to the hard limits of what the NWN engine was designed handle, and then using a workaround to bypass those built-in limitations. Doing something like that is generally not going to be easy or straightforward..
               
               

               


                     Modifié par Invisig0th, 24 octobre 2012 - 03:18 .
                     
                  


            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Creating Haks
« Reply #27 on: October 24, 2012, 05:47:43 pm »


               I already tried that. I went back to an older version that we'd taken all the conversations out of and removed a bunch of items to clean it up, didn't work. I went back to an older version before that which dms can login to that isn't cleaned up, didn't work. You can login as a dm but only if nothing at all is added to the module.

Going back any farther would mean using a mod from before we added PRC, so yay... I guess all that work is for nothing? We just can't use the PRC? Seriously confused because overwriting the ooc room area on top of the existing one will even break the module so dms can't login. Makes no sense.
               
               

               


                     Modifié par Jenna WSI, 24 octobre 2012 - 04:54 .
                     
                  


            

Legacy_s e n

  • Hero Member
  • *****
  • Posts: 654
  • Karma: +0/-0
Creating Haks
« Reply #28 on: October 24, 2012, 06:06:08 pm »


               it may have something to do with ceop item and placeable blueprints? i remember having issues with them in the past
               
               

               
            

Legacy_Jenna WSI

  • Hero Member
  • *****
  • Posts: 1837
  • Karma: +0/-0
Creating Haks
« Reply #29 on: October 24, 2012, 06:48:41 pm »


               Tried removing PRC in the hak list and the module variables. Gives me an access violation error and doesn't let me reopen the module. Going back to a module before PRC was added means that module doesn't react the same way with blocking dms from logging after you edit it. So... it's something related to the PRC. I might just revert back and load in the spells only from prc and leave the rest of it alone, tired of banging my head on this issue. -.-
               
               

               


                     Modifié par Jenna WSI, 24 octobre 2012 - 07:33 .