---++ Installation <div style="float:right; margin:5px; width:350px; padding:5px; color:#4E5155; background-color:#F0EDED; border:1px solid #ccc;"> ---++++ SDK Directory & Files <noautolink> [Audio] [config] [database] [EBooks] [fonts][packages] [ParaChat] [plugins] [Prerequisites] [Screen Shots] [script] [temp] [Texture] [worlds] changes.txt copyright.txt copyright_product.txt jabber-net.dll *log.txt* main.pkg MozHTMLRenderer.dll MyApp.vcproj NPLWebServiceClient.dll NPLWebServiceClientLib.dll ParaAllInOne.dll *ParaEngine.sig* ParaEngineManaged.dll ParaIDE.dll *ParaWorld.exe* *perf.txt* PhysXLoader.dll readme.txt *script.sln* script.vcproj </noautolink> </div> ParaEngine SDK can be installed on top of any !ParaEngine powered product. ParaWorld is the recommended free product built by ParaEngine. Please follow steps below. * Download and install the latest version of ParaWorld from DownloadCenter. It provides all the latest binaries of the game engine. * e.g. the installation directory may be set as !D:\ParaEngineSDK\, this is where you'll store all of the SDK files * Download and install the latest version of ParaEngineSDK. Please select the same installation folder as the ParaWorld. * e.g. !D:\ParaEngineSDK\ This directory should be automatically selected for you if installed ParaWorld prior to install ParaEngineSDK. * During installation, it will prompt you to install NPL language service. You can install it anywhere on your disk or just leave it with the default. After installation, your SDK directory should look like the folder shown to the right. You will see the files <noautolink>ParaWorld.exe, ParaEngine.sig, script.sln</noautolink> ---++ Compiling NPL source code Visual studio 2008 is required in order to benefit from our development tools. Make sure it is installed prior to install SDK. * Open *script.sln*. it contains two projects: script and myapp. * The script project provides all NPL source code files (or their placeholders according to the SDK license you have). Normally we shall not edit the script project, they are kept there for quick references. * The myapp project is where you should place your application specific files. You can modify the project name or add new projects to the solution. ---+++ NPL compiling rules ==[sdkroot]/script/bin/== contains the npl/lua compiler. By default, it will automatically compile all files in the solution with .lua file extension. Please refer to the script project for how to set compile rules. ---+++ Running & debugging One can configure the visual studio project property to set ParaWorld.exe as the command line ParaWorld.exe can have the following argument. Usually we need to start in windowed mode. For more application specific command, please see ParaWorldCommandLine. | single="true" | whether only one instance of the game is allowed.| | fullscreen="true" | whether start as fullscreen or windowed mode | | d3d="false" | whether start without graphics | | bootstrapper="config/bootstrapper.xml" | which bootstrapper file to use at startup | * script property for debugging: <br /> <img src="%ATTACHURLPATH%/script_property.jpg" alt="script_property.jpg" /> ---++ Source code syntax highlight and code sense NPL/Lua Syntax highlighting is provided as a visual studio package (vspackage) called NPL language service. It provides syntax highlighting and code sense for all major NPL classes. It can coexist with [[www.wholetomato.com][visual assist]]. ---+++ Adding my own class and code sense If you have developed your own npl classes, and you want them code sensed in visual studio. Do the following * make sure the windows registry : ==!Current user:Software\ParaEngine\ParaEngineSDK== the default key points to your sdk root directory. * open the script project and browse to script/VisualStudioNPL * You can also add your own code sense by adding or modifying XML files at ==[sdkroot]/script/VisualStudioNPL== * restart visual studio for the changes to take effect * if there are errors in your xml files, the entire intellisense will be greyed. | *sample code sense xml file* | |<verbatim> <?xml version="1.0" encoding="utf-8" ?> <doc> <!-- raw NPL classes. Generated based on http://pedn.paraengine.com/ --> <tables> <table name="commonlib"> <function name="echo"> <summary>log anything to log.txt file</summary> <parameter name="object">anything</parameter> </function> </table> <table name="localserver"> <function name="new"> <summary>add a new global control</summary> <parameter name="sControlName">string control name</parameter> <parameter name="ctl">the control object to add</parameter> </function> </table> </tables> <variables> <variable name="commonlib" type="commonlib" /> <variable name="localserver" type="localserver" ns="Map3DSystem.localserver"/> </variables> </doc> </verbatim>|
Attachments
Attachments
Topic attachments
I
Attachment
History
Action
Size
Date
Who
Comment
jpg
script_property.jpg
r1
manage
47.6 K
2008-10-23 - 05:37
LiXizhi
script property for debugging
Edit
|
Attach
|
P
rint version
|
H
istory
:
r3
<
r2
<
r1
|
B
acklinks
|
V
iew topic
|
Raw edit
|
More topic actions...
Topic revision: r2 - 2008-10-23
-
LiXizhi
Home
Site map
CCWeb web
HaqiTeen web
Main web
ParaEngine web
TWiki web
Main Web
Users
Groups
Index
Search
Changes
Notifications
RSS Feed
Statistics
导航页WebTopMenu
Preferences
开发指南
Getting Started
ParacraftSDK
NPL
MCML
NPL Reference Manual
美术Mod
Account
Log In
English
简体中文
簡體中文
Edit
Attach
Copyright © 2008-2024 by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki?
Send feedback