1.4.5 go on

This commit is contained in:
p.kosyh 2011-07-17 11:13:28 +00:00
parent c82a738ed8
commit 55ee03a8f9
18 changed files with 35 additions and 37 deletions

View file

@ -1,4 +1,4 @@
VERSION := 1.4.4 VERSION := 1.4.5
PREFIX=./ PREFIX=./
DESTDIR= DESTDIR=

View file

@ -1,6 +1,6 @@
# Contributor: Peter Kosyh <p.kosyhgmail.com> # Contributor: Peter Kosyh <p.kosyhgmail.com>
pkgname=instead pkgname=instead
pkgver=1.4.4 pkgver=1.4.5
pkgrel=1 pkgrel=1
pkgdesc="instead quest interpreter" pkgdesc="instead quest interpreter"
arch=('i686' 'x86_64') arch=('i686' 'x86_64')

View file

@ -1,4 +1,4 @@
VERSION := 1.4.4 VERSION := 1.4.5
DESTDIR= DESTDIR=
BIN= BIN=

View file

@ -1,4 +1,4 @@
VERSION := 1.4.4 VERSION := 1.4.5
DESTDIR= DESTDIR=
BIN= BIN=

View file

@ -1,4 +1,4 @@
VERSION := 1.4.4 VERSION := 1.4.5
PREFIX=/usr/local PREFIX=/usr/local
DESTDIR= DESTDIR=

View file

@ -1,4 +1,4 @@
VERSION := 1.4.4 VERSION := 1.4.5
PREFIX=./ PREFIX=./
DESTDIR= DESTDIR=

View file

@ -1,4 +1,4 @@
VERSION := 1.4.4 VERSION := 1.4.5
PREFIX= PREFIX=
DESTDIR= DESTDIR=

View file

@ -13,7 +13,7 @@ body { font-family: Verdana, Arial, Helvetica, sans-serif;
</style> </style>
<title>INSTEAD -- interpreter of simple text adventures for Unix and Windows</title> <title>INSTEAD -- interpreter of simple text adventures for Unix and Windows</title>
</head><body bgcolor="#f0f0f0"> </head><body bgcolor="#f0f0f0">
<h2>INSTEAD 1.4.4</h2> <h2>INSTEAD 1.4.5</h2>
<p>INSTEAD -- interpreter of simple text adventures for Unix and Windows.<br> <p>INSTEAD -- interpreter of simple text adventures for Unix and Windows.<br>
INSTEAD was designed to interpret the games that are the mix of visual novels, text quests and classical 90'ss quests.</p> INSTEAD was designed to interpret the games that are the mix of visual novels, text quests and classical 90'ss quests.</p>

View file

@ -1,4 +1,4 @@
.TH INSTEAD 6 "Version 1.4.4" Instead GAMES .TH INSTEAD 6 "Version 1.4.5" Instead GAMES
.SH NAME .SH NAME

View file

@ -8,7 +8,7 @@
&EN &EN
; standard SIS file header ; standard SIS file header
#{"INSTEAD"},(0xA0020410),1,4,4 #{"INSTEAD"},(0xA0020410),1,4,5
;Localised Vendor name ;Localised Vendor name
%{"Peter Kosyh"} %{"Peter Kosyh"}

View file

@ -1,6 +1,6 @@
Summary: simply text adventures/visual novels engine and game Summary: simply text adventures/visual novels engine and game
Name: instead Name: instead
Version: 1.4.4 Version: 1.4.5
Release: 1%{?dist} Release: 1%{?dist}
License: GPLv2 License: GPLv2
URL: http://instead.googlecode.com URL: http://instead.googlecode.com

View file

@ -1,4 +1,4 @@
INSTEAD 1.4.4 INSTEAD 1.4.5
============= =============
WARNING! For successfull building you must install these development packages (names may vary in your distribution): WARNING! For successfull building you must install these development packages (names may vary in your distribution):

View file

@ -1,11 +1,11 @@
[Setup] [Setup]
AppName=INSTEAD-KIT AppName=INSTEAD-KIT
AppVerName=INSTEAD 1.4.4 AppVerName=INSTEAD 1.4.5
DefaultDirName={pf}\Pinebrush games\INSTEAD DefaultDirName={pf}\Pinebrush games\INSTEAD
DefaultGroupName=Pinebrush games DefaultGroupName=Pinebrush games
UninstallDisplayIcon={app}\sdl-instead.exe UninstallDisplayIcon={app}\sdl-instead.exe
OutputDir=. OutputDir=.
OutputBaseFilename=instead-kit-1.4.4 OutputBaseFilename=instead-kit-1.4.5
AllowNoIcons=true AllowNoIcons=true
[Languages] [Languages]

View file

@ -1,11 +1,11 @@
[Setup] [Setup]
AppName=INSTEAD AppName=INSTEAD
AppVerName=INSTEAD 1.4.4 AppVerName=INSTEAD 1.4.5
DefaultDirName={pf}\Pinebrush games\INSTEAD DefaultDirName={pf}\Pinebrush games\INSTEAD
DefaultGroupName=Pinebrush games DefaultGroupName=Pinebrush games
UninstallDisplayIcon={app}\sdl-instead.exe UninstallDisplayIcon={app}\sdl-instead.exe
OutputDir=. OutputDir=.
OutputBaseFilename=instead-1.4.4 OutputBaseFilename=instead-1.4.5
AllowNoIcons=true AllowNoIcons=true
SetupIconFile=icon\sdl_instead.ico SetupIconFile=icon\sdl_instead.ico
ChangesAssociations=yes ChangesAssociations=yes

View file

@ -1,7 +1,7 @@
#ifndef S60_H #ifndef S60_H
#define S60_H #define S60_H
#define PATH_MAX 256 #define PATH_MAX 256
#define VERSION "1.4.4" #define VERSION "1.4.5"
#define DATAPATH "./" #define DATAPATH "./"
#define STEAD_PATH DATAPATH"stead/" #define STEAD_PATH DATAPATH"stead/"
#define THEMES_PATH DATAPATH"themes/" #define THEMES_PATH DATAPATH"themes/"

View file

@ -196,15 +196,15 @@ end
stead.go = stead.hook(stead.go, function(f, ...) stead.go = stead.hook(stead.go, function(f, ...)
local r,v = f(...) local r,v = f(...)
if type(r) == 'string' and stead.get_cctx() then if type(r) == 'string' and stead.cctx() then
pr (r) pr (r)
end end
if stead.in_life_call then if stead.in_life_call then
ACTION_TEXT = nil ACTION_TEXT = nil
end end
if r == nil and v == nil then if r == nil and v == nil then
if stead.get_cctx() then if stead.cctx() then
stead.get_cctx().action = true stead.cctx().action = true
else else
r = true r = true
end end

View file

@ -39,7 +39,7 @@ stead.restore_snapshot = function (nr)
i = do_ini(game, true); i = do_ini(game, true);
RAW_TEXT = true RAW_TEXT = true
-- delete_snapshot(nr); -- delete_snapshot(nr);
if stead.get_cctx() then if stead.cctx() then
pr(i) pr(i)
end end
return i; return i;

View file

@ -1,5 +1,5 @@
stead = { stead = {
version = "1.4.4", version = "1.4.5",
api_version = "1.1.6", -- last version before 1.2.0 api_version = "1.1.6", -- last version before 1.2.0
table = table, table = table,
delim = ',', delim = ',',
@ -13,7 +13,7 @@ stead = {
os = os, os = os,
readdir = readdir, readdir = readdir,
call_top = 0, call_top = 0,
cctx = { txt = nil, self = nil }, call_ctx = { txt = nil, self = nil },
-- functions = {}, -- code blocks -- functions = {}, -- code blocks
timer = function() timer = function()
if type(timer) == 'table' and type(timer.callback) == 'function' then if type(timer) == 'table' and type(timer.callback) == 'function' then
@ -94,15 +94,13 @@ stead.tostring = function(v)
return v return v
end end
function cctx() stead.cctx = function()
return stead.cctx[stead.call_top]; return stead.call_ctx[stead.call_top];
end end
stead.get_cctx = cctx
function callpush(v, ...) function callpush(v, ...)
stead.call_top = stead.call_top + 1; stead.call_top = stead.call_top + 1;
stead.cctx[stead.call_top] = { txt = nil, self = v, action = false }; stead.call_ctx[stead.call_top] = { txt = nil, self = v, action = false };
args = {...}; args = {...};
arg1 = args[1] arg1 = args[1]
arg2 = args[2] arg2 = args[2]
@ -135,7 +133,7 @@ end
stead.clearargs = clearargs stead.clearargs = clearargs
function callpop() function callpop()
stead.cctx[stead.call_top] = nil; stead.call_ctx[stead.call_top] = nil;
stead.call_top = stead.call_top - 1; stead.call_top = stead.call_top - 1;
if stead.call_top < 0 then if stead.call_top < 0 then
error ("callpush/callpop mismatch") error ("callpush/callpop mismatch")
@ -145,34 +143,34 @@ end
stead.callpop = callpop stead.callpop = callpop
function pclr() function pclr()
stead.get_cctx().txt = nil stead.cctx().txt = nil
end end
stead.pclr = pclr stead.pclr = pclr
function pget() function pget()
return stead.get_cctx().txt; return stead.cctx().txt;
end end
stead.pget = pget stead.pget = pget
function p(...) function p(...)
local i local i
local a = {...} local a = {...}
for i = 1, stead.table.maxn(a) do for i = 1, stead.table.maxn(a) do
stead.get_cctx().txt = stead.par('', stead.get_cctx().txt, tostring(a[i])); stead.cctx().txt = stead.par('', stead.cctx().txt, tostring(a[i]));
end end
stead.get_cctx().txt = stead.cat(stead.get_cctx().txt, ' '); stead.cctx().txt = stead.cat(stead.cctx().txt, ' ');
end end
stead.p = p stead.p = p
function pr(...) function pr(...)
local i local i
local a = {...} local a = {...}
for i = 1, stead.table.maxn(a) do for i = 1, stead.table.maxn(a) do
stead.get_cctx().txt = stead.par('', stead.get_cctx().txt, tostring(a[i])); stead.cctx().txt = stead.par('', stead.cctx().txt, tostring(a[i]));
end end
end end
stead.pr = pr stead.pr = pr
function pn(...) function pn(...)
p(...); p(...);
stead.get_cctx().txt = stead.par('', stead.get_cctx().txt,'^'); stead.cctx().txt = stead.par('', stead.cctx().txt,'^');
end end
stead.pn = pn stead.pn = pn
-- merge strings with "space" as separator -- merge strings with "space" as separator
@ -822,7 +820,7 @@ function call(v, n, ...)
if type(a) == 'boolean' and b == nil then if type(a) == 'boolean' and b == nil then
b, a = a, stead.pget() b, a = a, stead.pget()
if a == nil then if a == nil then
if stead.get_cctx().action then if stead.cctx().action then
a = true a = true
else else
a = b a = b
@ -833,7 +831,7 @@ function call(v, n, ...)
a = stead.pget() a = stead.pget()
b = nil b = nil
end end
if a == nil and b == nil and stead.get_cctx().action then if a == nil and b == nil and stead.cctx().action then
a = true a = true
end end
stead.callpop() stead.callpop()