-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Added python script for file_id preparation.
- Loading branch information
Showing
6 changed files
with
69 additions
and
35 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,15 @@ | ||
# icy_tools | ||
Tools for ansi/ascii/bbsing | ||
|
||
This repository contains tools releated to BBSing and Ansi in general. It contains: | ||
|
||
[Icy Term](https://github.com/mkrueger/icy_tools/blob/master/crates/icy_term/README.md) | ||
a terminal program for legacy BBS systems. | ||
|
||
[Icy Draw](https://github.com/mkrueger/icy_tools/blob/master/crates/icy_draw/README.md) | ||
a drawing tool supporting almost all ANSI formats. | ||
|
||
[Icy View](https://github.com/mkrueger/icy_tools/blob/master/crates/icy_view/README.md) | ||
a viewer to browse/view Ansi screens. | ||
|
||
[Icy Play](https://github.com/mkrueger/icy_tools/blob/master/crates/icy_play/README.md) | ||
a tool that shows icy draw animations on cmd line/bbs. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,26 @@ | ||
-* ICY DRAW #VERSION *- | ||
|
||
ANSI drawing tool. | ||
Supports: Everything, if it doesn't support | ||
something it'll get implemented :). | ||
|
||
- Written in pure rust | ||
- Own new file fomat: .icy | ||
based on .png (previews in file browser) | ||
- Supports Ansi, Ascii, Artworx ADF, | ||
Avatar, BIN, XBIN, PCBoard, iCE, | ||
Tundra Draw, CtrlA & Renegade files | ||
- Multi platform Windows, OSX, Linux | ||
- Supports multiple drawing layers | ||
- Brushes, fills, rectangles, halfblock support | ||
- Palette support | ||
- Multi window | ||
- 3D accelerated | ||
- Own animation system + animated GIF output | ||
- TheDraw Font support | ||
- Multiple Bitfont support | ||
- PNG export | ||
- Sauce | ||
- Color modes from classic to full RGB/iCE | ||
- Plugin support | ||
|
||
Development | ||
GitHub https://github.com/mkrueger/icy_tools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
import sys | ||
|
||
if len(sys.argv) != 3: | ||
print("need 2 arguments") | ||
sys.exit(1) | ||
|
||
version="" | ||
cargo = open(sys.argv[1] + "Cargo.toml", "r") | ||
for line in cargo.readlines(): | ||
if line.startswith("version"): | ||
m = line.index('"') | ||
version = line[m + 1:len(line) - 2] | ||
break | ||
cargo.close() | ||
|
||
file_id = open(sys.argv[1] + "/build/file_id.diz", "r") | ||
lines = file_id.readlines() | ||
file_id.close() | ||
|
||
new_lines = list(map(lambda line: line.replace("#VERSION", version), lines)) | ||
|
||
f = open(sys.argv[2], "w") | ||
f.writelines(new_lines) | ||
f.close() | ||
|
||
print(version) |