Skip to Content.
Sympa Menu

sm-sorcery-bugs - [SM-Sorcery-Bugs] [Bug 8430] New: scribbler doesnt understand API_VERSION or FUNCTIONS files

sm-sorcery-bugs AT lists.ibiblio.org

Subject: Bugs for Sorcery are reported here

List archive

Chronological Thread  
  • From: bugzilla-daemon AT bugs.sourcemage.org
  • To: sm-sorcery-bugs AT lists.ibiblio.org
  • Subject: [SM-Sorcery-Bugs] [Bug 8430] New: scribbler doesnt understand API_VERSION or FUNCTIONS files
  • Date: Tue, 15 Mar 2005 23:39:19 -0800 (PST)

http://bugs.sourcemage.org/show_bug.cgi?id=8430

Summary: scribbler doesnt understand API_VERSION or FUNCTIONS
files
Product: Sorcery
Version: 1.13.x
Platform: Other
OS/Version: other
Status: NEW
Severity: normal
Priority: P2
Component: codexroutines
AssignedTo: sm-sorcery-bugs AT lists.ibiblio.org
ReportedBy: acedit AT armory.com


If you move a spell with scribbler and it doesnt have BUILD_API set because it
relies on a section/grimoire-wide API_VERSION file then it wont work because
scribbler doesnt preserve it. It also doesnt perserve FUNCTIONS files or any
other section/grimoire libs.

To fix this we need the notion of self-contained spells similar to whats in
the
tablet. The spell layout will be

<custom-grimoire-path>/<section>/<spell-name>/<spell files>
section/...
grimoire/...

The section and grimoire sub-dirs will contain all the files in the grimoire
and
section at the time the spell was scribbled, which will include the
API_VERSION
file and any grimoire libraries. Scribbler can then setup some obvious flag to
indicate the spell is self-contained (like an empty file named SCRIBBLED).
Then
finally in codex_set_current_spell add conditional code to set
SECTION_DIRECTORY
and GRIMOIRE to $SCRIPT_DIRECTORY/section and $SCRIPT_DIRECTORY/grimoire
instead
of their usual counterparts.

This will work seemlessly so long as spells use those variables instead of ..
or
"../..". This transition is already occuring for tablet based casting and out
of
general principle :-)

This seems like a good little project for someone wanting to get into sorcery,
if you're interested come talk to me or submit a patch.

--
Configure bugmail: http://bugs.sourcemage.org/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.



  • [SM-Sorcery-Bugs] [Bug 8430] New: scribbler doesnt understand API_VERSION or FUNCTIONS files, bugzilla-daemon, 03/16/2005

Archive powered by MHonArc 2.6.24.

Top of Page