How To Ask For Scripting Help

Post » Sun May 05, 2013 8:00 am

How To Ask For Scripting Help


If you can't find the answer to your question on your own, this forum is an excellent resource. Many knowledgeable and helpful people post here regularly. In this post, there are some tips on how to ask a question that will make you more likely to get an answer.

Here are a few things that you should always do when asking for help with scripting:

1. Post your scripts!
While we may sometimes be able to guess your problem, especially if it's a common one, you're much more likely to get the right answer first (and to get an answer quickly) if you post your scripts. And I mean all of the relevant scripts, even the long ones.

If they make your post look very long, then I recommend wrapping them in spoiler tags. This hides your scripts and adds a button that can be used to toggle their visibility. Here's an example of a spoiler:
Spoiler

Here's the BBCode I used:
[spoiler]Look, I'm a spoiler![/spoiler]

2. Use code tags!
Like spoiler tags, code tags change the way your scripts are displayed. In particular, they ensure your scripts use a fixed-width font, and they maintain whitespace. If you just paste a script straight into your post, it will appear flat (i.e. unindented) and be very difficult to follow. More than anything else, this makes people who could help you less inclined to read about your problem.

Here's an example of some code:
Here's some code!
Here's the BBCode I used:
[code]Here's some code![/code]

It's also possible to use xml tags for this, and they don't seem to apply any syntax highlighting (which is more annoying than anything here). They can be used like this:
Here's some code!

Here's the BBCode I used:
[xml]Here's some code![/xml]

2.a) Indent your scripts!
Please please please make good use of whitespace so your scripts are easy to follow at a glance. This is something you should always do, whether you're posting a script, releasing a mod, or even creating a script for your own private use. It's a good habit, plain and simple.

Here's a (nonsense) example of a correctly indented script (note: inside a code tag inside a spoiler tag):
Spoiler

Whether you use tabs or spaces for indentation is entirely up to you, so long as you do use them. It's worth noting that you may need to change your posting mode to simple (click on the switch in the upper left corner of the posting box) in order for tab characters to work properly.

Making good use of extra linebreaks is also a good idea, although this is more of a personal thing - different people will break up their scripts in different ways. For example, you can see that I've added empty lines at the start and ends of my events. That's just me - you don't need to do it like that - but adding empty lines at sensible places can make scripts easier to read.

3. Explain your problem clearly!
I've seen so many threads that just say something like "it's not working", and inevitably the first reply, if anyone bothers to reply to such a vague thread, is "please explain the problem in more detail". Let's do us all a favour and skip that step entirely - please explain your problem clearly in your opening post:
  • What do you want to happen?
  • What have you done (i.e. how is everything set up? This includes posting your scripts)
  • What is happening instead?

If you are having issues following a tutorial, please post a link to the tutorial as well.

3.a) Show us your errors!
As part of explaining your problem clearly, please post any compiler errors that you're getting, if that's relevant to your problem. If you have compiler errors, make sure they're posted with the entire script (in spoiler tags). It can be useful to put the list of errors in spoiler and code tags, like your script, as well.

I ask you to post the entire script when you have compiler errors (although it's generally useful anyway) because these errors report line numbers, and unless we can see your whole script we'll have to manually find the line giving the error you're reporting.

4. Give your thread a descriptive name!
It might be tempting to name your thread "Script won't work!" or "Help me please", or something else that's very vague. However, if you name your thread something more specific, such as "How do I print debug text to console?" or "Getting a Script to Correctly Return a Global Value" (both actual examples of well-named threads that I looked at because of the name) anyone looking at the forum with the knowledge required to help you will be more likely to recognise your thread as something they can help with.

5. Reply if you figure it out
Sometimes, you figure out your own problem before anyone answers. If this is the case, post the solution! Even if you think nobody cares, there's nothing more frustrating than searching for the answer to a problem you've been having, and all you can find is a thread asking the exact same question followed by "Never mind, I figured it out". Let's do all we can to rid the world of this problem.

Cipscis
User avatar
e.Double
 
Posts: 3318
Joined: Tue Jul 24, 2007 11:17 pm

Post » Sun May 05, 2013 3:00 pm

Sticky!

I feel like too much of a newbie to take as drastic a step as PMing a moderator to do it, so I'll just show my support here...
User avatar
Hearts
 
Posts: 3306
Joined: Sat Oct 20, 2007 1:26 am

Post » Sun May 05, 2013 11:44 am

I Agree Sticky.
User avatar
Robert DeLarosa
 
Posts: 3415
Joined: Tue Sep 04, 2007 3:43 pm

Post » Sun May 05, 2013 7:00 am

Vote for Sticky Thanks for your dedication.
User avatar
Karen anwyn Green
 
Posts: 3448
Joined: Thu Jun 15, 2006 4:26 pm

Post » Sun May 05, 2013 6:27 pm

It's been 12 hours since the last post, and this thread is now on page 7, so I'm just going to bump it up back up to the top. From what I've seen just today, there are still plenty of people that should read this.

Cipscis
User avatar
Elle H
 
Posts: 3407
Joined: Sun Aug 06, 2006 3:15 am

Post » Sun May 05, 2013 10:49 am

Stick!
Mods go
User avatar
Ladymorphine
 
Posts: 3441
Joined: Wed Nov 08, 2006 2:22 pm

Post » Sun May 05, 2013 11:38 am

Sticky please!
User avatar
Abel Vazquez
 
Posts: 3334
Joined: Tue Aug 14, 2007 12:25 am

Post » Sun May 05, 2013 7:42 am

On page 8, and about 21 hours since the last post. I'm going to bump this up again, as it's still relevant.

Cipscis
User avatar
Tania Bunic
 
Posts: 3392
Joined: Sun Jun 18, 2006 9:26 am

Post » Sun May 05, 2013 1:09 pm

Over 24 hours since the last bump, and I'm still seeing lots of code posted outside of code tags so evidently there are still more people that need to read this.

Cipscis
User avatar
Charlotte X
 
Posts: 3318
Joined: Thu Dec 07, 2006 2:53 am

Post » Sun May 05, 2013 5:16 am

Good stuff here, I may be a little guilty of not following these procedures
User avatar
Sarah MacLeod
 
Posts: 3422
Joined: Tue Nov 07, 2006 1:39 am

Post » Sun May 05, 2013 7:01 pm

/Bump

Useful info...
User avatar
Kelvin
 
Posts: 3405
Joined: Sat Nov 17, 2007 10:22 am

Post » Sun May 05, 2013 5:11 pm

From Cipscis
User avatar
Tanika O'Connell
 
Posts: 3412
Joined: Fri Jan 26, 2007 1:34 am

Post » Sun May 05, 2013 4:57 am

Sticky, the first thread I read on this forum.
User avatar
Alexxxxxx
 
Posts: 3417
Joined: Mon Jul 31, 2006 10:55 am

Post » Sun May 05, 2013 5:13 pm

One minor thing to consider using apostrophes in the code ( as in code comments) is that the forums consider them opening quotation marks for strings, so they color all after in pink until next is found...

; It's me!!!; Really it's me!!!

Using two of them or skipping them help to read the code in posts too

; It''s me!!!; Really it''s me!!!

; It s me!!!; Really it s me!!!
User avatar
jessica sonny
 
Posts: 3531
Joined: Thu Nov 02, 2006 6:27 pm

Post » Sun May 05, 2013 6:12 am

On that note, I've noticed that "xml" tags seem to be usable as, well, basically code tags that don't apply syntax highlighting. Compare these 2, the first is in a code block and the second in xml:
Spoiler
Spoiler


I've added a mention of this to the post.

Cipscis
User avatar
Stephanie Valentine
 
Posts: 3281
Joined: Wed Jun 28, 2006 2:09 pm

Post » Sun May 05, 2013 6:55 pm

cant see any script posted in tis topic....
its because no base scripting tutorials existing
i mean noob frandly........
aind its sad......

it seems i need to read thousands of forums pages to get some info

i want to make a new spell damage tupe - as cold or fire
and i want make new resist tupe
is it possible?

one more thing - i want to kil manaregeneration entarely -
is it possible?
User avatar
Stephanie I
 
Posts: 3357
Joined: Thu Apr 05, 2007 3:28 pm

Post » Sun May 05, 2013 11:19 am

@exione:
This is a thread about how to ask for scripting help. If you need to ask for scripting help, this isn't the place. Instead, create a new thread in this forum.

There are a fair few Papyrus tutorials around, and a lot of information on the wiki. I just recently published a "http://www.cipscis.com/skyrim/tutorials/beginners.aspx" tutorial myself, if you're looking for such a thing.

Cipscis
User avatar
clelia vega
 
Posts: 3433
Joined: Wed Mar 21, 2007 6:04 pm

Post » Sun May 05, 2013 8:54 am

then what about this thread????
User avatar
Ashley Tamen
 
Posts: 3477
Joined: Sun Apr 08, 2007 6:17 am

Post » Sun May 05, 2013 3:18 pm


Like I said before, this is a thread about how to ask for scripting help. If you want to actually ask about scripting help, then you should make your own thread.

Cipscis
User avatar
Ross
 
Posts: 3384
Joined: Thu Aug 10, 2006 7:22 pm

Post » Sun May 05, 2013 4:14 am

oh man just close this threat and dont waste your time next time...
and my too.
User avatar
Emma Copeland
 
Posts: 3383
Joined: Sat Jul 01, 2006 12:37 am

Post » Sun May 05, 2013 2:47 am

Certainly not a waste of time - this thread helped point me in the right direction!
User avatar
Joe Bonney
 
Posts: 3466
Joined: Tue Jul 17, 2007 12:00 pm

Post » Sun May 05, 2013 10:31 am

I am looking for a way to summon a horse and then be able to ride it,if anyone can help with this please let me know thanks
User avatar
Kill Bill
 
Posts: 3355
Joined: Wed Aug 30, 2006 2:22 am

Post » Sun May 05, 2013 1:09 pm


Like I said before, this is a thread about how to ask for scripting help. If you want to actually ask about scripting help, then you should make your own thread.

Cipscis

@Dragonasskicker:
As I've said twice in recent posts in this thread, please start a new thread if you want assistance with a particular scripting problem.

Cipscis
User avatar
Chris BEvan
 
Posts: 3359
Joined: Mon Jul 02, 2007 4:40 pm

Post » Sun May 05, 2013 6:37 pm

Definitely guilty of most of these "don't dos" thanks for the post, will follow proper etiquette from now on
User avatar
CArla HOlbert
 
Posts: 3342
Joined: Wed Feb 21, 2007 11:35 pm

Post » Sun May 05, 2013 3:19 am

How can I get hold of a script for a toonshader mod for sky. I loved borderlands in HD/zelda.
User avatar
Megan Stabler
 
Posts: 3420
Joined: Mon Sep 18, 2006 2:03 pm

Next

Return to V - Skyrim