You are here

Bioware closure - can we establish a scripting forum here?

11 posts / 0 new
Last post
Proleric
Proleric's picture
Bioware closure - can we establish a scripting forum here?

After the Bioware forum closes, we will need a new scripting forum.

This is the obvious site, since many of us already hang out here.

However, unless I missed something, it's not easy to post nwscript here in a neat format.

Can the admins provide something better?

If not, can we think of a neat way of formatting posts, using what we already have?

NWN and DAO adventures at http://proleric.com/

  • up
    100%
  • down
    0%
Vanya Mia

It is possible to post script text here, but you have to change the text format to ... one I can never remember in the drop down box. Someone will doubtless say what.

Either way, it's a good idea.

There's quite a bit of scripting help on here already for those that need it, but it's often not categorised very well and would be hard to find later. If we're doing this then a suggested way of doing that in terms of search words to include might be useful. Not sure how to go about that though as those needing help are often not sure what they are asking for help with.

"I took Skill Focus: Craft Disturbing Mental Image as my feat last level." Belkar, OOTS

  • up
    50%
  • down
    50%
Proleric
Proleric's picture

I searched for "format nwscript" but found no relevant posts on this site (apart from this one).

Does anyone know what format to use for scripting?

  • up
    50%
  • down
    50%
Proleric
Proleric's picture

Trying an example:

<code>// Set check number and call master check routine

int StartingConditional()
{
    object oPC = GetFirstPC();

    SetLocalInt(oPC, "DialogOption", 1);
    ExecuteScript("bh__check", OBJECT_SELF);
    return GetLocalInt(oPC, "CheckResult");
}</code>

seems to prove that the <code> tag does not work as described <a href="http://www.w3schools.com/tags/tag_code.asp">here</a>.

Also, in this example, my indentation was honoured, but I'd welcome clarification on how to do that, too, as it doesn't always seem to work.

  • up
    50%
  • down
    50%
Proleric
Proleric's picture

Trying to use a table to outline a code block:

 <table>
  <tr>
    <td>// Set check number and call master check routine

int StartingConditional()
{
    object oPC = GetFirstPC();

    SetLocalInt(oPC, "DialogOption", 1);
    ExecuteScript("bh__check", OBJECT_SELF);
    return GetLocalInt(oPC, "CheckResult");
}</td>
  </tr>
</table>

does not work.

I'm using the Filtered HTML text format - how come none of these "supported" html tags seem to work?

  • up
    50%
  • down
    50%
Rolo Kipp

Let me give it a go...

// Set check number and call master check routine

int StartingConditional()
{
    object oPC = GetFirstPC();

    SetLocalInt(oPC, "DialogOption", 1);
    ExecuteScript("bh__check", OBJECT_SELF);
    return GetLocalInt(oPC, "CheckResult");
}

What I did was write out the code block, hilight it and then used the "Styles" dropdown choosing the "computer code" option.


Rolo Kipp
 
From Dreamguard on Needlespire, The Gemworld of Amethyst
  • up
    100%
  • down
    0%
Proleric
Proleric's picture

Hm... that does seem to work... maybe the "Allowed HTML tags" message on the "Add A New Comment" screen should be replaced with a reference to the styles tab, as the actual tags don't seem to work any more?

----------------------------------------------------------------------

// Set check number and call master check routine

int StartingConditional()
{
    object oPC = GetFirstPC();

    SetLocalInt(oPC, "DialogOption", 1);
    ExecuteScript("bh__check", OBJECT_SELF);
    return GetLocalInt(oPC, "CheckResult");
}

----------------------------------------------------------------------

  • up
    50%
  • down
    50%
Rolo Kipp

That would be nice... :-P

Unfortunately, the text is built in to the filter module.

The tags not working anymore (or ever working properly) is probably due to the order of the filter stack. I'll look into it... at some point.

It's related to the video embedding not working right as well. You should be able to type [ VIDEO::youtube video url::videostyle ] and have a link converted to an embedded video. But it isn't working either.

In both cases one of the security filters is converting a symbol or tag before it gets to the filter that is supposed to handle it. Somewhere.

  • up
    100%
  • down
    0%
Baaleos

I've kind of always wanted to build a NWN Specific scripting community.
If there was a demand for it - I would be happy to spend a bit of time building one that could cater for the need.
Eg: Proper code tag handling, upload of nss files into topics etc

Its just been one of those burning desires I had, but never had the drive to do it.
If there was enough peer pressure on me - I would probably get it done.
 

  • up
    100%
  • down
    0%
Rolo Kipp

Just mentioning, since it seems to not be obvious anymore, you *are* a Vault developer Baaleos. You Developers should have access to the admin forums and stuff.

Let me know if you don't. 

Might be broken, it's been derelict in the desert so long now...

  • up
    50%
  • down
    50%
Baaleos

I think a while back I actually saw that I had access to administrative-esq features on the forum, and didnt realise I had elevated rights - so was posting all over the place trying to get your attention to the fact that there is a login exploit that gives an attacker admin access. Lol

Yeah, havent really tried any of the development features - Is that why the project submission screen is so complex?

I remember when I was adding the 'Save the Forums' project, that the amount of fields seemed overkill.
Was that explicitly for me because I am listed as a dev? Do normal users get a simplified submission form?

I wouldn't know much about drupal - tend to gravitate towards the .Net side of things, so I would likely develop a .Net website that handles scripting.
Could be a generic site for all I know - scripting for games etc

  • up
    50%
  • down
    50%