| Other Grids / Virtual Worlds Discuss other grids, services, and virtual worlds. |
| |
![]() |
| | LinkBack (6) | Thread Tools | Display Modes |
| | #152 (permalink) | |
| Junior Member ![]() Join Date: May 2009
Posts: 11
My Mood: | Quote:
Thanks a lot for the infromation but i am using realxtend0.4 version.I installed 0.3 version but the problem is that i have rexserverblankwithassets0.4.when i try to run it with realXtendviewer 0.3.I find my user in sea and there i cant do anything.I tried to search rexserverblankwithassets0.3 from internet but couldn't succeed.Is it compatibity problem or something else and if contiue work on 0.4version for viewer then how can i run python there. | |
| | |
| | #153 (permalink) | |
| Hypersonic Absolutist ![]() ![]() ![]()
Fully Zeno certified
Join Date: Aug 2007
Posts: 1,506
| Quote:
| |
| | |
| | #156 (permalink) |
| Account Closed
Unedited
Join Date: Jun 2007
Posts: 33,567
My Mood: | You might have better luck contacting realXtend directly for support, as no one from their company posts here. realXtend Sorry I can't help you further, I have never tried to do anything with python in realXtend. |
| | |
| | #157 (permalink) |
| Junior Member ![]() Join Date: May 2009
Posts: 11
My Mood: | Hi guys thanks a lot for your replies.I transferred my REalXTendviewer 0.4 and server to another computer and there the python code is working actually at the beginning the edit the python file with notepad this can be problem.Now i dont know how to create a new file in python and how can we edit the existing files. |
| | |
| | #158 (permalink) | |
| Hypersonic Absolutist ![]() ![]() ![]()
Fully Zeno certified
Join Date: Aug 2007
Posts: 1,506
| Quote:
I confirmed the following in a fresh install of realXtend v0.4. 1) Navigate to <your_server_dir>/rexserver/ScriptEngine/PythonScript (You should see directories "ChambersOfIkuturso", "RXCore", and "Samples". 2) Create a new directory, I called mine "Cale". 3) In "Cale" create a new file, "__init__.py", containing the single line "import touch_test". 4) In "Cale", create a new file "touch_test.py", containing the following code: Code: import rxactor
import sys
import clr
print "file touch_test.py loaded!"
asm = clr.LoadAssemblyByName('OpenSim.Region.ScriptEngine.Common')
class TouchHandler(rxactor.Actor):
def GetScriptClassName():
return "touch_test.TouchHandler"
def EventTouch(self, toucher):
self.llShout(0,"Help, Cale is molesting me!")
def EventCreated(self):
super(self.__class__,self).EventCreated()
print "class touch_test.TouchHandler created"
6) Create and edit a cube. Hit the "reX" tab, and then the "Misc" sub-tab. In the Class Name box enter "touch_test.TouchHandler". Exit edit mode. 7) The cube now shouts a message every time you touch it: ![]() 8) Look in the "Samples" directory for more python examples. | |
| | |
| | #159 (permalink) | |
| Junior Member ![]() Join Date: May 2009
Posts: 11
My Mood: | Quote:
| |
| | |
| | #162 (permalink) |
| Junior Member ![]() Join Date: May 2009
Posts: 11
My Mood: | hi i am using following LSL script for opening and closing the door // Handles the touch event. // Handles the collision event. vector delta = <1.0, 0.0, 0.0>; // amount to move door // when we open it vector closed_position; // original position of the // door when closed // Processing for the script when it first starts up default { // What we do when we first enter this state state_entry() { closed_position = llGetPos(); // Save position when door is closed state closed; // Move to the closed state } } // Processing for the script when it is in the closed state public state closed { // What we do when we first enter this state state_entry() { llSetPos(closed_position); // Move door to closed position } touch_start(integer total_number) { state open; // Move to the open state } // What to do when something hits the door collision_start(integer total_number) { state open; // Move to the open state } } // Processing for the script when it is in the open state public state open { // What we do when we first enter this state state_entry() { llSetPos(closed_position + delta); // Move door to open position } touch_start(integer total_number) { state closed; // Move to the closed state } // What to do when something hits the door collision_start(integer total_number) { // Do nothing, the door is already open } } but when i run it on RealXtend i get following error Member modifier public must proceed with name member type and name.Does anyone know about it ? |
| | |
| | #163 (permalink) |
| Neko-licious™ ![]() ![]() ![]() ![]() ![]() ![]() SLU Supporter ![]() ![]() ![]() ![]() ![]() ![]()
Swooping...is...bad...
Join Date: Aug 2007
Posts: 8,211
My Mood: SL Join Date: 8/8/06 Blog Entries: 3 XBOX Leaderboard: 41st | Help, Cale is molesting me! |
| | |
| 1 User Laughed: |
![]() |
| Thread Tools | |
| Display Modes | |
| |
LinkBacks (?)
LinkBack to this Thread: http://www.sluniverse.com/php/vb/other-grids-virtual-worlds/7027-now-here-real-shiny-realxtend.html | ||||
| Posted By | For | Type | Date | |
| SL Exchange | This thread | Refback | 08-15-2008 10:34 AM | |
| realXtend | This thread | Refback | 02-26-2008 07:29 AM | |
| Tutoriel d'instalation d'opensim - Page 10 - Second Life | This thread | Refback | 02-19-2008 01:44 PM | |
| YouTube - realXtend v0.1 | This thread | Refback | 02-18-2008 01:30 PM | |
| MOTHERFCUKING BLOGS ON A PRIM! on Flickr - Photo Sharing! | This thread | Refback | 02-15-2008 08:27 PM | |
| New non-Linden grid opening [updated] - Massively | This thread | Refback | 02-15-2008 03:47 PM | |