Sandbox Shard Howto

Announcements and discussion regarding any projects related to Cyan Worlds' Plasma Engine including (but not limited to) CyanWorlds.com Engine, Drizzle, OfflineKI, PyPRP, and libHSPlasma.

Sandbox Shard Howto

Postby phoenix » Tue Jul 26, 2011 10:13 am

Hi Guys

I have finally managed to get the first version of the tut out and posted.

Check out http://www.guildofwriters.com/wiki/Deve ... dbox_Shard

Please bear with the bad formatting as I acclimatise to the wiki way of things.

Later

Phoenix
User avatar
phoenix
 
Posts: 88
Joined: Wed May 19, 2010 2:29 am

Re: Sandbox Shard Howto

Postby Deledrius » Tue Jul 26, 2011 5:52 pm

Wow, that's quite a substantial amount of work you've done. Thanks for contributing!

One thing I've noticed which may be an oversight, or it may be the root of some of your own troubles you've had running things: your instructions reference pulling the moul-scripts repo, but never mention checking out the python27 branch. The master branch is based on Cyan's Python2.3 code, which will cause you problems if you've compiled plClient.exe against Python2.7 per the recommended instructions. It's mostly just syntactic fixes, but you'll definitely want to be sure you're using the correct moul-scripts branch.

The rest of the page will need some fixes and formatting as you suggest, but it's a good start with quite a large amount of information. It's very helpful to see where the existing documentation is lacking and where you found the process difficult.
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Sandbox Shard Howto

Postby phoenix » Wed Jul 27, 2011 2:58 am

Thanks for the observations and glad to help out.

I see under moulscripts on github there is:

1) gow-server - does not git
2) master - gits just fine
3) python27 - does not git

Am I correct in thinking I should use;

1) "gow-server" for the shard?
2) "master" for CWE compiled with python 2.3 to connect with Cyan (and should use the installer of python or the source tarball?)
3) and "python27" with CWE compiled with python 2.7 to connect to dirtsand shard?

PS: Just done a major overhaul of the wiki. Starting to look usable!
User avatar
phoenix
 
Posts: 88
Joined: Wed May 19, 2010 2:29 am

Re: Sandbox Shard Howto

Postby Paradox » Wed Jul 27, 2011 7:22 am

If you are compiling Plasma from H-uru/Plasma master, using the devlibs provided on GoW, you need the python27 branch of H-uru/moulscripts.
Paradox
 
Posts: 1290
Joined: Fri Sep 28, 2007 6:48 pm
Location: Canada

Re: Sandbox Shard Howto

Postby phoenix » Wed Jul 27, 2011 8:00 am

As mentioned in the reply the 2.7 branch does not git...

Here is the output from github:

Code: Select all
Boxy@BOXY-PC /e/CWE Sandbox/CWE Repo/moulscripts
$ git clone https://github.com/H-uru/moul-scripts/tree/python27 python27
Cloning into python27...
fatal: https://github.com/H-uru/moul-scripts/tree/python27/info/refs not found:
did you run git update-server-info on the server?


Unless "python27" is now "master" ??

Another quick one... anyone know what happened to the plasma engine based on python 2.3?
User avatar
phoenix
 
Posts: 88
Joined: Wed May 19, 2010 2:29 am

Re: Sandbox Shard Howto

Postby Christian Walther » Wed Jul 27, 2011 9:02 am

That’s not how you check out a branch in Git. You can’t clone a single branch, you clone the whole repository and then check out a branch inside it. Try this:
Code: Select all
tsessebe:~ cwalther$ git clone https://github.com/H-uru/moul-scripts   
Cloning into moul-scripts...
remote: Counting objects: 1319, done.
remote: Compressing objects: 100% (828/828), done.
remote: Total 1319 (delta 642), reused 1164 (delta 489)
Receiving objects: 100% (1319/1319), 2.32 MiB | 362 KiB/s, done.
Resolving deltas: 100% (642/642), done.
tsessebe:~ cwalther$ cd moul-scripts/
tsessebe:~/moul-scripts cwalther$ git checkout python27
Branch python27 set up to track remote branch python27 from origin.
Switched to a new branch 'python27'


phoenix wrote:anyone know what happened to the plasma engine based on python 2.3?

Nothing, basically. It’s still here if you compile with Visual Studio 2003 (at least from the OpenUru.org codebase – I haven’t tried H-uru). The trouble, as far as I can see, is that compiling CyPython 2.3 with Visual Studio 2010 (possibly also 2008) is hard – at least I gave up when it still crashed even after fixing the obvious problems.
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Re: Sandbox Shard Howto

Postby Deledrius » Wed Jul 27, 2011 9:39 am

Christian Walther wrote:
phoenix wrote:anyone know what happened to the plasma engine based on python 2.3?

Nothing, basically. It’s still here if you compile with Visual Studio 2003 (at least from the OpenUru.org codebase – I haven’t tried H-uru). The trouble, as far as I can see, is that compiling CyPython 2.3 with Visual Studio 2010 (possibly also 2008) is hard – at least I gave up when it still crashed even after fixing the obvious problems.

Pretty much. AFAIK there's no reason you couldn't use it. There's simply no reason to use it over the newer and supported version. Additionally, if you followed the provided instructions, it's the version you have. The more important point here is that whichever Python version you use, you need to use scripts that function with that version, as there were some minor changes between 2.3 and 2.7. It's not nearly the same as the change to Python 3.x, that's certain!
User avatar
Deledrius
Gehn Shard Admin
 
Posts: 1377
Joined: Mon Oct 01, 2007 1:21 pm

Re: Sandbox Shard Howto

Postby phoenix » Wed Jul 27, 2011 10:24 am

A little clarity please...

Is "master" the moulscripts for python 2.3?

and "python27" the moulscripts for python 2.7?

and "gow_server" the moulscripts for the linux shard?

The github command line is making my head spin... but I have a handle on it now... whew!
Last edited by phoenix on Wed Jul 27, 2011 10:45 am, edited 1 time in total.
User avatar
phoenix
 
Posts: 88
Joined: Wed May 19, 2010 2:29 am

Re: Sandbox Shard Howto

Postby Tsar Hoikas » Wed Jul 27, 2011 10:40 am

git help

man git
Image
Tsar Hoikas
Councilor of Technical Direction
 
Posts: 2180
Joined: Fri Nov 16, 2007 9:45 pm
Location: South Georgia

Re: Sandbox Shard Howto

Postby Christian Walther » Wed Jul 27, 2011 10:54 am

Or, if you don’t plan to follow development or do any development of your own, you don’t even have to use Git – you can just download the latest version from GitHub: Use the Downloads button on the page https://github.com/H-uru/moul-scripts/tree/python27 (direct link: https://github.com/H-uru/moul-scripts/zipball/python27).
Christian Walther
 
Posts: 443
Joined: Sun Jun 08, 2008 3:10 am
Location: Switzerland

Next

Return to Plasma Development

Who is online

Users browsing this forum: No registered users and 0 guests

cron