Complete.Org: Mailing Lists: Archives: freeciv-dev: November 2001:
[Freeciv-Dev] csl (C Scripting Language) Client side scripting patch
Home

[Freeciv-Dev] csl (C Scripting Language) Client side scripting patch

[Top] [All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index] [Thread Index]
To: freeciv-dev@xxxxxxxxxxx
Subject: [Freeciv-Dev] csl (C Scripting Language) Client side scripting patch
From: Petrus Gerhardus Viljoen <viljoenp@xxxxxxxxxxx>
Date: Thu, 22 Nov 2001 02:12:46 +0200
Reply-to: viljoenp@xxxxxxxxxxx

The patch allows the player to control selected units via csl (C Scripting 
Language ) scripts. The current patch only do the basics .
A VERY simple sample script is suplied  in <freecivdir>/scripting
Things you will need. 
        1. freeciv cvs Source of 22 November 2001
        2. gtk (I only added the script selection popup to the gui-gtk client)
        3. csl-4.2.1  (get it from sourceForge)   binaries +- 500k ,  source +- 
250k
        4. csl_scripting.diff.gz   +- 33k

For a reference of functions that is implemented/supported in the script please 
reference the c source files (<freecivdir>/scripting/csl/csl_scripting_*.c )
it should be clear for the source what functions & constants should be 
availible in the Scripts, I'll create some docs a bit later.

Rember to run "autoconf; automake; ./configure;" in the freeciv dir !!!!

configure parameters:
        --disable-scripting  (yes | no)         (scripting is enabled by 
default)
        --disable-scripting-js (yes | no)               (JavaScript support is 
disabled by default since it does not compile yet!!)
        --disable-scripting-csl (yes | no)              ( CSL support is 
enabled by default )

Notes:  
        Your scripts should have the folowing extentions .csl for csl scripts   
.js for JavaScript scripts. The scripting code uses the file extentions to 
identify the scripting engine to use.
        JavaScript code does not compile yet. But that should also be working 
shortly (disabled by default in configure.in)

Please email if you have any problems with the patch.

viljoenp2adept.co.za

Attachment: csl_scripting.diff.gz
Description: GNU Zip compressed data


[Prev in Thread] Current Thread [Next in Thread]
  • [Freeciv-Dev] csl (C Scripting Language) Client side scripting patch, Petrus Gerhardus Viljoen <=