Skip to content

Commit 834bcfa

Browse files
committed
2.02.51
1 parent 453d78b commit 834bcfa

46 files changed

Lines changed: 1230 additions & 484 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

SCRIPTS

Lines changed: 123 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -7,14 +7,17 @@
77
#nop static (16) flag to <168>.
88
#nop -------------------------------------------------------------------------
99

10-
#loop 1 1000 vnum
10+
#alias {color_static}
1111
{
12-
#map at $vnum
12+
#loop 1 1000 vnum
1313
{
14-
#map get roomflags result;
15-
#if {$result & 16}
14+
#map at $vnum
1615
{
17-
#map set roomcolor <168>
16+
#map get roomflags result;
17+
#if {$result & 16}
18+
{
19+
#map set roomcolor <168>
20+
}
1821
}
1922
}
2023
}
@@ -152,7 +155,7 @@
152155
}
153156
{60}
154157

155-
#alias {ticklist}
158+
#alias {tickers}
156159
{
157160
#info tickers save;
158161

@@ -242,33 +245,35 @@
242245
#nop Show xterm 256 colors.
243246
#nop -------------------------------------------------------------------------
244247

245-
#var temp {}
246-
247-
#foreach {0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15} {var1}
248+
#alias {color_table}
248249
{
249-
#showme {$var1 \e[38;5;${var1}m}
250-
}
250+
#var temp {};
251251

252-
#foreach {a;b;c;d;e;f} {var1}
253-
{
254-
#foreach {a;b;c;d;e;f} {var2}
252+
#foreach {0;1;2;3;4;5;6;7;8;9;10;11;12;13;14;15} {var1}
255253
{
256-
#foreach {a;b;c;d;e;f} {var3}
254+
#showme {$var1 \e[38;5;${var1}m}
255+
};
256+
257+
#foreach {a;b;c;d;e;f} {var1}
258+
{
259+
#foreach {a;b;c;d;e;f} {var2}
257260
{
258-
#var temp {$temp <$var1$var2$var3><<888>$var1$var2$var3>}
259-
};
260-
#showme $temp;
261-
#var temp {}
262-
}
263-
}
261+
#foreach {a;b;c;d;e;f} {var3}
262+
{
263+
#var temp {$temp <$var1$var2$var3><<888>$var1$var2$var3>}
264+
};
265+
#showme $temp;
266+
#var temp {}
267+
}
268+
};
264269

265-
#loop 0 23 cnt
266-
{
267-
#format temp {$temp <g%+02s><<888>g%+02s} {$cnt} {$cnt};
270+
#loop 0 23 cnt
271+
{
272+
#format temp {$temp <g%+02s><<888>g%+02s} {$cnt} {$cnt};
273+
};
274+
#showme $temp
268275
}
269276

270-
#showme $temp
271-
272277
#nop -------------------------------------------------------------------------
273278
#nop Draw a health bar. Alternatively: #draw bar -2 1 -2 20 {%1;%2;<faa><afa>}
274279
#nop -------------------------------------------------------------------------
@@ -437,15 +442,15 @@
437442
#line gag
438443
}
439444

440-
#alias {repeat_check}
445+
#alias {repeat_show}
441446
{
442447
#if {$repeat[cnt] <= 1}
443448
{
444449
#line ignore #showme {$repeat[str]}
445450
};
446451
#else
447452
{
448-
#line ignore #showme {($repeat[cnt]) %0}
453+
#line ignore #showme {<128>($repeat[cnt]) <088>$repeat[str]}
449454
};
450455
#var repeat[str] {};
451456
#var repeat[cnt] 1
@@ -848,7 +853,7 @@
848853

849854
#draw red teed line $SCROLL[BOT_ROW]+1 $SCROLL[TOP_COL] $SCROLL[BOT_ROW]+1 $SCROLL[BOT_COL];
850855

851-
#screen clear square $SCROLL[BOT_ROW]+2 $SCROLL[TOP_COL] $SCROLL[OLD_ROW] $SCROLL[BOT_COL];
856+
#nop #screen clear square $SCROLL[BOT_ROW]+2 $SCROLL[TOP_COL] $SCROLL[OLD_ROW] $SCROLL[BOT_COL];
852857
};
853858
};
854859
#if {$SCROLL[MODE] == 1}
@@ -1038,6 +1043,95 @@
10381043
#line ignore #showme <118>wton %0 = $wton
10391044
}
10401045

1046+
#nop -------------------------------------------------------------------------
1047+
#nop Utility aliases to save variables as json, and load json as variables.
1048+
#nop -------------------------------------------------------------------------
1049+
1050+
#alias {json_save}
1051+
{
1052+
#if {"%1" == "" || "%2" == ""}
1053+
{
1054+
#showme Syntax: json_save <variable> <filename>;
1055+
#return
1056+
};
1057+
1058+
#line quiet #log remove %2;
1059+
#line json {%1} {#line log {%2} {&0}}
1060+
}
1061+
1062+
#alias {json_load}
1063+
{
1064+
#if {"%1" == "" || "%2" == ""}
1065+
{
1066+
#showme Syntax: json_load <variable> <filename>;
1067+
#return
1068+
};
1069+
#line quiet #unvar {%2};
1070+
#scan json {%2} {%1}
1071+
}
1072+
1073+
#nop -------------------------------------------------------------------------
1074+
#nop Example of switching to an editing window, with mouse support. Use #edit
1075+
#nop create to start editing. After editing is finished you can use #edit save
1076+
#nop to store the data to a variable.
1077+
#nop -------------------------------------------------------------------------
1078+
1079+
#config mouse on
1080+
1081+
#event {PROGRAM START}
1082+
{
1083+
#screen raise {SCREEN RESIZE}
1084+
}
1085+
1086+
#event {SCREEN RESIZE}
1087+
{
1088+
#screen clear all;
1089+
1090+
#screen scroll 2 2 -10 -2;
1091+
#screen input -7 2 -2 -2;
1092+
1093+
#draw azure rounded left right bot top side 1 1 -9 -1;
1094+
#draw azure rounded left right bot top side -8 1 -1 -1
1095+
}
1096+
1097+
#event {PRESSED INPUT MOUSE BUTTON ONE}
1098+
{
1099+
#cursor position %0 %1
1100+
}
1101+
1102+
#event {EDIT STARTED}
1103+
{
1104+
#screen inputregion 2 2 -10 -2;
1105+
#screen scrollregion -7 2 -2 -2
1106+
}
1107+
1108+
#event {CATCH EDIT FINISHED}
1109+
{
1110+
#screen input -7 2 -2 -2;
1111+
#screen scroll 2 2 -10 -2;
1112+
#showme <138>EDIT FINISHED %0. LINES: %1 SIZE: %2
1113+
}
1114+
1115+
#nop -------------------------------------------------------------------------
1116+
#nop Example script for drawing health bars
1117+
#nop -------------------------------------------------------------------------
1118+
1119+
#split 26 0
1120+
#screen clear top
1121+
1122+
#alias {draw_bar}
1123+
{
1124+
#math value 0;
1125+
#loop 1 26 cnt
1126+
{
1127+
#draw ralign tile $cnt 1 $cnt 8 <178>$value/100;
1128+
#draw horizontal bar $cnt 10 $cnt 20 {$value;100;%0};
1129+
#math value $value + 4
1130+
}
1131+
}
1132+
1133+
draw_bar <faa><afa>
1134+
10411135
#nop -------------------------------------------------------------------------
10421136
#nop
10431137
#nop -------------------------------------------------------------------------

TODO

Lines changed: 6 additions & 75 deletions
Original file line numberDiff line numberDiff line change
@@ -1,78 +1,27 @@
1-
- switch to pcre2
2-
3-
- check if #scan file is escaping braces
4-
5-
- If I set #config log_level low then it ignores #log timestamp {%Y-%m-%d-%H:%M:%S}
6-
7-
- Update script's --time-style=full-iso doesn't work on Mac.
8-
9-
- Investigate: EVENT_FLAG_UPDATE running as gtd->level->quiet++ in check_all_events
10-
11-
- Add an example #edit script to SCRIPTS
12-
13-
- #map offset 10 10 doesn't generate an error
14-
15-
- strip [ ] from auto tab completion
16-
17-
- #draw tile 1 1 1 1 {\x7B}
1+
- make roomdata searchable in #map
182

19-
- #screen scroll 10 1 -3 -1;#showme {bla} {-2}
3+
- #split 0 0 -100 -100 should do something sensible
204

21-
#draw RED ROUNDED BOX {1 1 2 2} gives a poor error message
5+
- Add blight to msdp/gmcp/mssp listing
226

23-
- #var foo {{}{aaa}} creates no assignment
24-
25-
- With internet down, #session reconnect events might fail
26-
27-
- Write an example script that makes tintin mimic Discord, with soft enters, emoticons, etc.
28-
29-
- Add an example script to display time left on tickers using #info tickers save
7+
- switch to pcre2
308

319
- comprehensive memory breakdown for variables/triggers/mapper/etc
3210

33-
- #draw calign grid table {2} {2} {8} {42} {n;s;w;e} {n;s;w;e}; doesn't work properly.
34-
3511
- a better trigger stack debug buffer
3612

37-
- Problem with restoring true color subs.
38-
#sub bla {<F00AA00>bla}
39-
#high blo <118>
40-
#showme <158>test bli bla blo test
41-
42-
- named delays don't work in gts
43-
44-
- #SPLIT when you give the top bar a negative value for its size, TinTin isn’t drawing the white box around it
45-
46-
- Add an option to insert multiple items to a list
47-
4813
- allow setting output encoding for #port
4914

5015
- https://github.com/mintty/mintty/wiki/CtrlSeqs#audio-support
5116
- mintty --configdir DIRNAME
5217

53-
- Fix: #ERROR: UNKNOWN TOKEN TYPE: 14 (#info tokenizer)
54-
55-
- split screen scrollback setting in #screen
56-
57-
- terrain based weight modifier
58-
- weightless mode for #map list and #map find
59-
6018
- Make #draw scroll grid table work properly.
6119

62-
6320
- update https://tintin.mudhalla.net/info/ansicolor/
6421

6522
- Make sure #config compact also applies to the log file.
6623

67-
- Add an #event that triggers when a function/variable is not found.
68-
69-
- tab completion on input history
70-
71-
- look into handling VARIABLE UPDATE event better
72-
73-
- catch event to handle #map global exceptions
74-
75-
24+
- catch event for #map global to handle exceptions
7625

7726
- Add routine to escape 0x00 in port.c RECEIVED DATA event.
7827

@@ -110,20 +59,14 @@
11059

11160
- #line escape {variables;functions}
11261

113-
- look into a #debug flag for #class
114-
11562
- Another nice thing would be if there was some flag to make a trigger match newlines as space.
11663

117-
- fix up named delays and undelay
118-
11964
- add a #regex like command for #cursor to update the input line.
12065

12166
- custom mapping for unicode table to set width
12267

12368
- color code for dynamic color ranges
12469

125-
- #MACRO {\cz} {#cursor get t;#var t} does not handle { } in input.
126-
12770
- Look into delete_index_list leaving a table with ->used set to 0 causing #list crashes
12871

12972
- #daemon attach fails under high cpu load
@@ -137,7 +80,7 @@
13780
- set_line_screen debug: col = -5 (64) from draw_text(%p,%d,%p,%p,%p)
13881
- set_line_screen stack call triggered on android
13982

140-
- regex101 like regex tester
83+
14184

14285
- check: #var bla { x};#draw scroll box 1 1 3 40 $bla
14386

@@ -155,10 +98,6 @@
15598

15699
- vertical bar drawing
157100

158-
- error: cursor_check_line_modified1:
159-
- https://tintin.sourceforge.io/forum/viewtopic.php?f=10&t=2811 (possible
160-
issue with initiating input buffer for a new session)
161-
162101
- finish BUFFER_SIZE replacement.
163102

164103
- WSL sound, double check soundpack scripts for lag/stutter
@@ -173,10 +112,6 @@
173112

174113
* STUFF THAT IS PROBABLY GONNA GET DONE
175114

176-
- #line timeshot to auto destroy a trigger after given interval.
177-
178-
- make named delays proper delays
179-
180115
- Finish port proxy support: resizing, input, security
181116

182117
- look into transparent drawing
@@ -223,8 +158,6 @@
223158

224159
- Remote script loading
225160

226-
- add class specific debug
227-
- better class event and class size handling ?
228161

229162
- more potent long-click handling including held down ticks.
230163

@@ -240,8 +173,6 @@
240173

241174
- TELNET documentation.
242175

243-
- Add JSON support to #scan
244-
245176
- see if #break 2 is possible, maybe #continue 2 as well.
246177

247178
- IPv6 for chat

0 commit comments

Comments
 (0)