ScriptUO
September 09, 2010, 04:17:02 PM *
Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
Sorry, you must be logged in to use the shoutbox!
News: For site news during uptime issues, Twitter me at TrailMyx
 
   Home   Help Search Groups Calendar Tags Links Auction Login Register  
Ultima Online Scripting Fan Site
Pages: [1]   Go Down
  Print  
Author Topic: Questions and Answers - ScriptUO specific  (Read 3192 times)
0 Members and 1 Guest are viewing this topic.
TrailMyxTopic starter
Cheatamus Extremus
Administrator
*
*

Reputation Power: 85
TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!TrailMyx is awe-inspiring!
Offline Offline

Gender: Male
Location: Escondido, CA
Posts: 7132
Referrals: 6



Activity
100%

Food chain!


View Profile WWW Awards
« on: July 13, 2008, 07:30:57 AM »

Q: How can I run a script with SUO?

A: You can't.  The Alpha/Beta release is intended for script development only.
------------------
Q: Why does my code indent waaay to the right after I select "Tools/Auto Indent Script"?

A: Chances are you still have syntax errors in your code (either nested subs without returns, or brace imbalances). Sometimes it's really hard to find these kinds of errors, so it's actually useful to run an auto indent when you suspect you have one of these errors because you can physically see where the script starts to indent incorrectly and this location is normally where you have a problem.  Fix the error and re-auto indent and you should have pretty code again.
------------------
Q: I don't like your auto indention style.

A: Well, I've always used Allman style indention for just about everything.  Actually my first decision would be the original K&R style since that's how I've written my C code for years now, but the EasyUO parser doesn't like having braces on the same line.  Whenever I do code, I like to have it compact, but clear.  If you indent too much, you get so much whitespace and nothing really to show for it.  Whitespace should be used to make your code easier to read, and not tedious to read.

If you like Whitesmiths style, i.e.
while x == y
    {
    gosub something
    gosub somethingelse
    }
 
gosub finalthing

I never liked that one because large code just isn't as clear to me as K&R or Allman .  I may add support for Whitesmiths and GNU style when I finally implement the much needed User Config panel.  There's lots of hidden options that are just being defaulted to right now, but you might want to tweak those.
------------------
Q: Will ScriptUO be a new language entirely?

A: No, it will adhere to the syntax of EasyUO as a subset.  I don't want to completely alienate all those script authors and scripts out there so I wanted to maintain a specific compatibility.  However, I'm already adding additional functionality to SUO and will probably add more commands/functions as it draws closer to Beta.
« Last Edit: November 08, 2009, 01:17:12 AM by TrailMyx » Logged

 
Please read the ScriptUO site RULES
Tags:
Pages: [1]   Go Up
  Print  
 
Jump to:  

ScriptUO
EasyUO scripts, Heartwood questing, Autolooter
Powered by MySQL Powered by PHP © TrailMyx 2008-2010
Disclaimer: Ultima Online, ORIGIN are trademarks of Electronic Arts Inc. Game content and materials copyright 2003 Electronic Arts Inc. All rights reserved.

EasyUO is © Copyright 2003-2009 by Cheffe

Powered by SMF 1.1.11 | SMF © 2006-2009, Simple Machines LLC
Twitter Mod 1.3 created by 2by2host.com - a web hosting company
| Sitemap
Valid XHTML 1.0! Valid CSS!


Google visited last this page September 08, 2010, 06:39:59 AM