Author Topic: NWN Lexicon  (Read 1707 times)

Legacy_WhiZard

  • Hero Member
  • *****
  • Posts: 2149
  • Karma: +0/-0
NWN Lexicon
« Reply #60 on: October 19, 2013, 02:47:49 pm »


               There are many functions that have valid values outside of their constant group.  The "constant" column in 2das is just an identification aid for human readers and the actual label in that column is not used (if you look carefully through all the 2das you'll see a number of entries where the entry in the constant column is not the exact lettering of the constant the game actually uses).

For the valid values without constants there could be a number of approaches.  For example, in the NWNwiki article for SAVING_THROW_TYPE_* I added an unlabeled row for the value used in the saving throw label "vs. paralysis".  The table was already in numerical order, so adding in this label in the last row maintained order as well giving further documentation.  This approach would not work for POLYMORPH_TYPE_* constants as there are so many of them that alphabetical order makes more sense than numeric order.  Nevertheless, there are many (roughly 30%) missing constants for polymorphs.  This type of data is not best merged with the rest, though I have not come up with a good feasible way of presenting it.

EDIT:  If you are looking within the game for something to corroborate these values, use NWNEXPLORER to look under 1.69 -> INFORMATION FILES -> *.set
               
               

               


                     Modifié par WhiZard, 19 octobre 2013 - 02:14 .
                     
                  


            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
NWN Lexicon
« Reply #61 on: October 19, 2013, 09:52:39 pm »


               

CaveGnome wrote...

I tried to parse some Nwn system files searching the constants with no success, but i am not a master searcher / hacker ;-) and as i don't know of a script instruction returning the constant names it was difficult to experiment.

If you look to the right side of the script editor window, there's a searchable list of functions. Above it, there's a button to switch to constants. Click that, and you can see all constants available to your script.

Some constants are defined within include scripts, but the TILESET_RESREF_* group is globally available (i.e., it's defined in nwscript.nss and so can be accessed by any script without having to include any files). 

Was hoping someone with better skills could verify them, if not, perhaps we should replace these names with "UNKNOWN" entrys.

The constants aren't unknown; there's just no constants matching those values. However, I'll add an addendum to the article noting the values referring to the tilesets not represented by constants.
               
               

               


                     Modifié par Squatting Monk, 19 octobre 2013 - 08:53 .
                     
                  


            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
NWN Lexicon
« Reply #62 on: October 19, 2013, 11:18:47 pm »


               Okay. I've updated the article to reflect the values not covered by constants.
               
               

               
            

Legacy_CaveGnome

  • Sr. Member
  • ****
  • Posts: 432
  • Karma: +0/-0
NWN Lexicon
« Reply #63 on: October 21, 2013, 07:22:12 pm »


               

Squatting Monk wrote...

Okay. I've updated the article to reflect the values not covered by constants.


Great! Thanks for that :-)
               
               

               
            

Legacy_Zarathustra217

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +0/-0
NWN Lexicon
« Reply #64 on: February 02, 2014, 04:30:09 pm »


               I can't seem to be allowed to register a login on the wiki - what must I do? '<img'>
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
NWN Lexicon
« Reply #65 on: February 02, 2014, 09:06:58 pm »


               New account creation was set to admin-only due to botspam. Message me with your preferred username and I'll set you up.
               
               

               
            

Legacy_Zarathustra217

  • Sr. Member
  • ****
  • Posts: 322
  • Karma: +0/-0
NWN Lexicon
« Reply #66 on: February 03, 2014, 01:14:39 am »


               

Squatting Monk wrote...

New account creation was set to admin-only due to botspam. Message me with your preferred username and I'll set you up.


Splendid, thanks!
               
               

               
            

Legacy_Squatting Monk

  • Hero Member
  • *****
  • Posts: 776
  • Karma: +0/-0
NWN Lexicon
« Reply #67 on: September 30, 2014, 10:10:16 pm »


               

Shadooow and Proleric have both been promoted to admin status on the wiki. If I'm ever absent or slow to respond, feel free to direct requests to them (for issues with the website itself, though, continue to contact acomputerdood). Thanks to both of these fellows for stepping up to ensure this great resource does not fall by the wayside.



               
               

               
            

Legacy_acomputerdood

  • Sr. Member
  • ****
  • Posts: 378
  • Karma: +0/-0
NWN Lexicon
« Reply #68 on: October 01, 2014, 07:23:06 pm »


               


as for the dump, i went looking into it again and i'm thinking more and more that i never set it up.  i thought there was an extension to generate dumps on the fly, but i think it's more of a cron job / direct link kind of thing.




 


it's not an automated system (so in no way is this an ideal situation), but i created a manual html dump of the lexicon's wiki pages.  this snapshot can be downloaded from:


 


http://www.nwnlexico...14.09.30.tar.gz


 


i also have dumps of the wiki database (again, a manual process) that i keep for my own peace of mind.  i imagine other people would be interested in archiving them as well?


               
               

               
            

Legacy_henesua

  • Hero Member
  • *****
  • Posts: 6519
  • Karma: +0/-0
NWN Lexicon
« Reply #69 on: February 07, 2016, 03:32:43 pm »


               

Wanted to highlight this thread for new comers to scripting. The NWN Lexicon is the best place to go to find info about scripting. If you have a question about something, or need a tutorial, the lexicon wiki should be your first stop.