Difference between revisions of "LSL Write Once Debug Everywhere/ja"

From Second Life Wiki
Jump to navigation Jump to search
m (New page: {{LSL Header/ja}} =Why Debug Everywhere= The LSL scripts that you write once can then run in many places. Consequently, copying your LSL script from one place to another can then make y...)
 
 
(4 intermediate revisions by 2 users not shown)
Line 1: Line 1:
{{LSL Header/ja}}
{{Multi-lang}}{{LSL Header/ja}}{{RightToc}}


=Why Debug Everywhere=
=なぜ至る場所でデバッグをするのか=


The LSL scripts that you write once can then run in many places.
LSLスクリプトは一度書くだけで色々場所で動かすことが出来ます。


Consequently, copying your LSL script from one place to another can then make your script fail to run well, or even fail to compile.
従って、ほかの場所へLSLスクリプトをコピーできますが、起動に失敗するかコンパイルエラーを起こす可能性があります。


The many places you can run your LSL script include the Linux, Mac OS X, and Windows clients from SecondLife.com that connect by broadband Internet to the main grid at Linden Labs. Other compilers and other grids also exist, for such purposes as looping thru the compile, edit, test  process while offline.
Linux、Mac OS X、そしてWindowsクライアントで、ブロードバンドインターネットにて接続したSecondLife.ComのLinden Labsにあるメイングリッドを含んだ場所で、LSLスクリプトを動かすことができます。オフラインの間にコンパイル、編集、テストなどの実行を繰り返して行うという目的などで、ほかのコンパイラやグリッドもまた、存在します。


This article explains how you can develop LSL scripts that run well and compile without error in all these many places.
この箇条書きした説明は あらゆる全ての場所でコンパイルエラーがない、及び動作可能なLSLスクリプトを製作可能にするためのものです。


=Works At My Desk=
=机上作業=


Ways in which your script can run fine at your desk while choking at mine include the following.
以下に述べる方法は、あなたのスクリプトを正確に動かすことができるようになるための活路です。


==Astonishing compile-time error messages==
==コンパイルタイムエラーメッセージに注意しよう==


The [[LSLEditorBugs]] article explains how a bug in an LSL compiler can make your script fail to compile in one place despite compiling and running well in another.
[[LSLEditorBugs]]一覧は、LSLコンパイラが、なぜスクリプトがほかの場所でコンパイルと起動するにもかかわらず、とある場所ではコンパイルに失敗させるのか教えてくれます。


The [[LSL_Errors]] article explains how one LSL compiler reporting "ERROR : Syntax error" can mean what another LSL compiler would describe as "ERROR : Byte code assembly failed -- out of memory". Naturally, different LSL compilers provide different efficiencies. For example, the 2007-08 Mac OS X Second Life client could compile 692 cascaded else-if's at a time when the Windows Second Life client could not compile 19 cascaded else-if's.
[[LSL_Errors]]一覧は、とあるLSLコンパイラのレポート "エラー : 文法エラー" は 別のLSLコンパイラでは "エラー : バイトコード生成に失敗しました。 -- メモリ上に存在しません" と補足しているということを教えてくれます。一般的に、異なるLSLコンパイラでは性能も異なります。たとえば、2007、8年の、Windows SecondLifeクライアントが19の else-ifの連続をコンパイルし終えないうちに、Max OS X SecondLifeクライアントでは 692もの else-ifの連続をコンパイルすることができます。


==Astonishingly different clients==
==違うクライアントに注意しよう==


The [[LSL Alternate Editors]] article lists other places within your own operating system that you can try running your LSL, besides the usual client that SecondLife.com offers free of charge.
あなたの使用しているOS上を含んだ、SecondLife.com上以外でのLSLを動かせる[[LSL Alternate Editors]]の説明一覧は、ころころかわります。


=Running Alternative Operating Systems=
=異なるOSで動かすことも視野にいれよう=


Running another operating system to test your script may be easier or harder than you think.
他のOSでスクリプトをためすのは、おそらくあなたが思うより簡単か難しいかのどっちかです。


Techniques that can let you restart your PC or Mac to run an alternate operating system include:
PCもしくはMacに異なるOSを入れて再起動させるための方法
# Inserting a DVD or CD disc
# DVDもしくはCDを入れます。
# Plugging in a USB Flash Drive (UFD)
# USBフラッシュディスクを差込みます。
# Repartitioning your internal ATA hard drive (without scrambling it)
# 内蔵ATAハードディスクのパーティションを再設定します。(混在させない)
# Adding an external FireWire hard drive
# 外部FireWireハードディスクを増設します。


Which technique works best for you varies according to your setup, in particular your boot BIOS.
さまざまなBIOSの特殊な設定を、セットアップが出来るように各種変更します。


Which technique works best for you will also vary bizarrely in accord with the copy restrictions added for you by the operating system vendor. For example, Microsoft Windows will often refuse to run from anywhere except from a partition of your internal ATA hard drive.
OSベンダーによって複製が制限されるのと同じような、変わったやり方です。たとえば、Microsoft Windowsではそうそう内蔵ATAハードディスクのパーティションを外部からうごかすことはできないでしょう。


The http://www.apple.com/macosx/bootcamp/ tool from Apple walks you thru the process of repartitioning your internal ATA hard drive without scrambling it, but only if you have an Intel-based Mac, not a Motorola-based Mac and not an Intel-based PC.
Apple walksの[[Bootcamp|http://www.apple.com/macosx/bootcamp/]]は内蔵ATAハードディスクに混在させること無く、パーティションの再設定まで通して行いますが、これはIntelベースのMacのみできることで、MotorolaベースのMac及びIntelベースのPCではできません。


Companies like [[Parallels|http://www.parallels.com/]] and [[VMware|http://www.vmware.com/]] sell you tools for running Windows in parallel with your usual operating system. You can even run Windows in parallel with itself, just to test different configurations without disrupting your normal Windows experience.
[[Parallels|http://www.parallels.com/]] や [[VMware|http://www.vmware.com/]]のような企業は普段つかっているOSをWindows上で同時に動かすツールを販売しています。それらをWindows上で動かすと、Windowsの操作と混合させることなく異なった条件下でテストできるでしょう。


==Running Linux==
==Linuxで動かす==


Linux demands skill & attention to run well enough to support Second Life.
Linuxの要求する技術と観察力は、SecondLifeを動かす上でとてもためになります。


As yet, Linux demands too much skill & attention: we haven't yet found a "how to" guide to tell us how people who don't already run OpenGL 2.0 in Linux can rapidly learn to run Second Life in Linux.
現状において、Linux上でSecondLifeを速やかに動かすことために必要なOpenGL2.0を動かせない人に、その方法を教えるハウツー本をいままでみたことがないように、Linuxはあまりにも技術と注意力を要求しています。


Techniques we've tried that don't let us run Second Life in Linux include:
Linux上でSecondLifeを動かそうとした結果は
# Linux CD-R Ubuntu Feisty 7.04 - ACPI vs. recent Apple hardware
# Linux CD-R Ubuntu Feisty 7.04 - ACPI vs. recent Apple hardware
# Linux CD-R Knoppix 2007-01-04 - "Window creation error"
# Linux CD-R Knoppix 2007-01-04 - "Window creation error"
# Linux DVD-R Knoppix 2007-01-04 - "Window creation error"
# Linux DVD-R Knoppix 2007-01-04 - "Window creation error"


Searching the web finds a Linux CD-R Knoppix for Second Life, but only a version that requires NVIDIA graphics without supporting the ATI Radeon graphics often found in Mac's.
SecondLife用にLinux CD-R Knoppixをweb上で探していますが、MacのATI Radeon graphicsのサポートがない、NVIDIA graphicsを必要とするバージョンがたまに見つかるくらいです。


==Running Mac OS X==
==Mac OS Xにて動かす==


Mac OS X just works, if you have a Mac.
Macを持っているなら、Mac OS Xを動かせます。


Mac OS X doesn't work at all if you don't have a Mac.
Macをもっていなければ、Mac OS Xを動かすことはできません。


==Running Windows==
==Windowsで動かす==


Windows demands skill & attention to run well enough to support Second Life.
Windowsの要求する技術と観察力は、SecondLifeを動かす上で十分に役立つでしょう。


The Windows installer's claim that you need administrator privilege to install appears to be false. People have seen copies of "C:\Program Files\SecondLife\" mostly work when dragged to into the "%userProfile%\Downloads\" of other Windows machines, without administrator privilege.
Windowsインストーラはインストール時に管理者権限を要求しません。C:\Program Files\SecondLife\"から、他のwindowsマシンの"%userProfile%\Downloads\"にドラッグして動かしても、管理者権限は要りません。


=See Also=
=さらに...=
 
[[LSL Alternate Editors/ja|環境別オフワールドエディタ]][[LSLEditorBugs]] を参照しましょう。
See also: [[LSL Alternate Editors]], [[LSLEditorBugs]]

Latest revision as of 02:19, 27 December 2007

なぜ至る場所でデバッグをするのか

LSLスクリプトは一度書くだけで色々場所で動かすことが出来ます。

従って、ほかの場所へLSLスクリプトをコピーできますが、起動に失敗するかコンパイルエラーを起こす可能性があります。

Linux、Mac OS X、そしてWindowsクライアントで、ブロードバンドインターネットにて接続したSecondLife.ComのLinden Labsにあるメイングリッドを含んだ場所で、LSLスクリプトを動かすことができます。オフラインの間にコンパイル、編集、テストなどの実行を繰り返して行うという目的などで、ほかのコンパイラやグリッドもまた、存在します。

この箇条書きした説明は あらゆる全ての場所でコンパイルエラーがない、及び動作可能なLSLスクリプトを製作可能にするためのものです。

机上作業

以下に述べる方法は、あなたのスクリプトを正確に動かすことができるようになるための活路です。

コンパイルタイムエラーメッセージに注意しよう

LSLEditorBugs一覧は、LSLコンパイラが、なぜスクリプトがほかの場所でコンパイルと起動するにもかかわらず、とある場所ではコンパイルに失敗させるのか教えてくれます。

LSL_Errors一覧は、とあるLSLコンパイラのレポート "エラー : 文法エラー" は 別のLSLコンパイラでは "エラー : バイトコード生成に失敗しました。 -- メモリ上に存在しません" と補足しているということを教えてくれます。一般的に、異なるLSLコンパイラでは性能も異なります。たとえば、2007、8年の、Windows SecondLifeクライアントが19の else-ifの連続をコンパイルし終えないうちに、Max OS X SecondLifeクライアントでは 692もの else-ifの連続をコンパイルすることができます。

違うクライアントに注意しよう

あなたの使用しているOS上を含んだ、SecondLife.com上以外でのLSLを動かせるLSL Alternate Editorsの説明一覧は、ころころかわります。

異なるOSで動かすことも視野にいれよう

他のOSでスクリプトをためすのは、おそらくあなたが思うより簡単か難しいかのどっちかです。

PCもしくはMacに異なるOSを入れて再起動させるための方法

  1. DVDもしくはCDを入れます。
  2. USBフラッシュディスクを差込みます。
  3. 内蔵ATAハードディスクのパーティションを再設定します。(混在させない)
  4. 外部FireWireハードディスクを増設します。

さまざまなBIOSの特殊な設定を、セットアップが出来るように各種変更します。

OSベンダーによって複製が制限されるのと同じような、変わったやり方です。たとえば、Microsoft Windowsではそうそう内蔵ATAハードディスクのパーティションを外部からうごかすことはできないでしょう。

Apple walksのhttp://www.apple.com/macosx/bootcamp/は内蔵ATAハードディスクに混在させること無く、パーティションの再設定まで通して行いますが、これはIntelベースのMacのみできることで、MotorolaベースのMac及びIntelベースのPCではできません。

http://www.parallels.com/ や http://www.vmware.com/のような企業は普段つかっているOSをWindows上で同時に動かすツールを販売しています。それらをWindows上で動かすと、Windowsの操作と混合させることなく異なった条件下でテストできるでしょう。

Linuxで動かす

Linuxの要求する技術と観察力は、SecondLifeを動かす上でとてもためになります。

現状において、Linux上でSecondLifeを速やかに動かすことために必要なOpenGL2.0を動かせない人に、その方法を教えるハウツー本をいままでみたことがないように、Linuxはあまりにも技術と注意力を要求しています。

Linux上でSecondLifeを動かそうとした結果は

  1. Linux CD-R Ubuntu Feisty 7.04 - ACPI vs. recent Apple hardware
  2. Linux CD-R Knoppix 2007-01-04 - "Window creation error"
  3. Linux DVD-R Knoppix 2007-01-04 - "Window creation error"

SecondLife用にLinux CD-R Knoppixをweb上で探していますが、MacのATI Radeon graphicsのサポートがない、NVIDIA graphicsを必要とするバージョンがたまに見つかるくらいです。

Mac OS Xにて動かす

Macを持っているなら、Mac OS Xを動かせます。

Macをもっていなければ、Mac OS Xを動かすことはできません。

Windowsで動かす

Windowsの要求する技術と観察力は、SecondLifeを動かす上で十分に役立つでしょう。

Windowsインストーラはインストール時に管理者権限を要求しません。C:\Program Files\SecondLife\"から、他のwindowsマシンの"%userProfile%\Downloads\"にドラッグして動かしても、管理者権限は要りません。

さらに...

環境別オフワールドエディタLSLEditorBugs を参照しましょう。