Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > The real world > Idle chatter

Reply
 
Thread Tools Display Modes
Old April 28, 2007, 14:04   #1
Leon Marrick
Sangband maintainer
 
Leon Marrick's Avatar
 
Join Date: Apr 2007
Location: Heavens only knows
Posts: 31
Leon Marrick is on a distinguished road
VB formatting test

Code:

                                                                                                          
Èomer        ##################################################################                           
Adventurer   #................................................................#                           
             #................................................................#                           
EXP 98004606 #......########8...................##########....................#                           
AU       444 #......#########......########.....##########.......######.......#                           
K            #......#########......#######3.....##########.......######.......#                           
STR:      12 #......#########......########.....##########.......######.......#                           
INT:      15 #......#########......########.....7#########.......6#####.......#                           
WIS:      13 #..................................##########........@...........#                           
DEX:      15 #..................................t....................>........#                           
CON:      13 #................................................................#                           
CHR:      12 #............................................t...................#                           
             #................................................................#                           
Cur AC     1 #......................#####5#.......#######.....................#                           
HP   11/  11 #......#######2#.......#######.......######4......1#########.....#                           
             #......#########.......#######.......#######......##########.....#                           
             #......#########.......#######.......#######......##########.....#                           
[Singing, h] #......#########.......#######.......#######......+#########.....#                           
[Aimless-lo] #....................................#######.....................#                           
             #................................................................#                           
             #................................................................#                           
Unknown      ##################################################################                           
Luck                                                                                                      
(no quest)                                                                                                
                                                                                                          
Regen: HP                                                                                                 
(no target)                                                                                               
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                          
                                                                                                     Town 

This works. But it could stand some improvement:

1. I'd prefer not to have to use the "CODE" tag, but haven't figured out how to make spaces appear properly just using "TT".

2. The screendumps are fairly large files, especially if the user has a large main Term or shows a picture with lots of color changes.
__________________
S(all) W/D H+ D c+ f? PV++ s? d- P++ M+
C S !I !So SQ RQ V+ F:<<buffer overrun>>
http://angband.oook.cz/code

Last edited by Leon Marrick; April 30, 2007 at 02:57.
Leon Marrick is offline   Reply With Quote
Old April 28, 2007, 17:33   #2
Leon Marrick
Sangband maintainer
 
Leon Marrick's Avatar
 
Join Date: Apr 2007
Location: Heavens only knows
Posts: 31
Leon Marrick is on a distinguished road
Example for Angband

Code:

                                                                                
Human        ################################################################## 
Warrior      #................................................................# 
Rookie       #................................................................# 
LEVEL      1 #......##########...................................######.......# 
EXP        5 #......##########...................................######.......# 
AU       100 #......##########.....#########.....6#####..........######.......# 
|    ~       #......##########.....########8.....######..........######.......# 
STR:   18/20 #......2#########.....#########.....######..........######.......# 
INT:      13 #.....................#########.....................3#####.......# 
WIS:      10 #................................................................# 
DEX:      13 #................................................................# 
CON:      14 #............................@...................................# 
CHR:      14 #.......................>........................................# 
             #..........#####4...................#####5#..........7#####......# 
Cur AC     0 #..........######.......#####.......#######..........######......# 
Max HP    19 #..........######.......#####.......#######..........######......# 
Cur HP    19 #..........######.......#####.......#######..........######......# 
             #..........######.......#####........................######......# 
             #..........######.......##1##........................######......# 
             #................................................................# 
             #................................................................# 
             ################################################################## 
                                                                         Town   

There are now two versions of the code: One for Angband 3.0.8:
http://www.runegold.org/angband/ang_screenshot_code.txt

And one derived from Sangband:
(being updated - not available)

If your variant uses bigtile (you poor deluded fool), work off of the Angband version. Otherwise, use the Sangband version. If you develop another version that other maintainers might be interested in, let me have it and I'll post it here.


Documentation

Screenshots:
There are three different ways to take screenshots from within the game.

Pure ASCII screenshots (monochrome):
Type ')' and choose text. Suitable for newsgroup and other pure-text
environments.

Forum screenshots (color):
Type ')' and choose forum. Suitable for posts to the Angband Forum.

HTML screenshots (color):
Type ')' and choose html. Suitable for websites and browsing.
__________________
S(all) W/D H+ D c+ f? PV++ s? d- P++ M+
C S !I !So SQ RQ V+ F:<<buffer overrun>>
http://angband.oook.cz/code

Last edited by Leon Marrick; April 30, 2007 at 15:01.
Leon Marrick is offline   Reply With Quote
Old April 28, 2007, 17:49   #3
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 39
Posts: 782
pav is on a distinguished road
Send a message via ICQ to pav
Quote:
Originally Posted by Leon Marrick View Post
1. I'd prefer not to have to use the "CODE" tag, but haven't figured out how to make spaces appear properly just using "TT".
I'll check if I can add code tag without the viewport thingie.
Quote:
Originally Posted by Leon Marrick View Post
2. The screendumps are fairly large files, especially if the user has a large main Term or shows a picture with lots of color changes. The above example is more than 6K, uncomfortably close to the 10K per-post limit.
I have bumped up the limit to 25,000 characters.
pav is offline   Reply With Quote
Old April 28, 2007, 18:19   #4
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 39
Posts: 782
pav is on a distinguished road
Send a message via ICQ to pav
Quote:
Originally Posted by pav View Post
I'll check if I can add code tag without the viewport thingie.
Okay, I have beated CODE tag to behave (all with just clever reconfiguration in admin interface). Bad news is that vBulletin hardcodes 16px line height when computing the height of the code block. Hope that's tolerable.
pav is offline   Reply With Quote
Old April 29, 2007, 08:37   #5
Kiyoshi Aman
Scout
 
Kiyoshi Aman's Avatar
 
Join Date: Apr 2007
Age: 33
Posts: 27
Kiyoshi Aman is on a distinguished road
Send a message via ICQ to Kiyoshi Aman Send a message via AIM to Kiyoshi Aman Send a message via MSN to Kiyoshi Aman Send a message via Yahoo to Kiyoshi Aman
This sort of thing also slows down scrolling on crappier machines [like my 1.66GHz Sempron 2400+...]

Could you perhaps use GD or ImageMagick or something to convert to PNG?
__________________
"The Earth...is for the living. The dead have neither rights nor powers on it." -- Thomas Jefferson
"Aim above morality. Be not simply good, be good for something." -- Mark Twain
Kiyoshi Aman is offline   Reply With Quote
Old April 30, 2007, 03:14   #6
Leon Marrick
Sangband maintainer
 
Leon Marrick's Avatar
 
Join Date: Apr 2007
Location: Heavens only knows
Posts: 31
Leon Marrick is on a distinguished road
Quote:
Originally Posted by pav View Post
Okay, I have beated CODE tag to behave (all with just clever reconfiguration in admin interface). Bad news is that vBulletin hardcodes 16px line height when computing the height of the code block. Hope that's tolerable.
It looks a whole lot better than I thought we were going to get at the start. Thanks for working with me!


Quote:
Originally Posted by Kiyoshi Aman View Post
This sort of thing also slows down scrolling on crappier machines [like my 1.66GHz Sempron 2400+...]

Could you perhaps use GD or ImageMagick or something to convert to PNG?
Are you using a dial-up connection? If you are, I can easily imagine screenshots taking a moment or two to load.

Graphics are larger. My tests indicate that the smaller of .gif or .png (sometimes one is better, sometimes the other) ranges between 25% and 200% larger than vB screenshots, depending on how graphics-intensive your screen is.

Another advantage to vB screenshots is that the Forum hosts them for you. People who want to display graphics need to have a provider. Many free providers try to turn your images into .jpgs, which are lousy for typical *band screens.

The disadvantage of vB screenshots is that they show nothing but text. For showing exactly what you see, graphics are the only way to fly.
__________________
S(all) W/D H+ D c+ f? PV++ s? d- P++ M+
C S !I !So SQ RQ V+ F:<<buffer overrun>>
http://angband.oook.cz/code
Leon Marrick is offline   Reply With Quote
Old April 30, 2007, 04:46   #7
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,425
Donated: $40
Pete Mack is on a distinguished road
Quote:
Originally Posted by Leon Marrick View Post
Example for Angband

There are now two versions of the code: One for Angband 3.0.8:
http://www.runegold.org/angband/ang_screenshot_code.txt
Note that V no longer uses get_default_tile. I stole the hack from UnAngband that clears all preferences before doing the dump and restores them after, and uses get_tile instead.


Quote:
If your variant uses bigtile (you poor deluded fool), work off of the Angband version. Otherwise, use the Sangband version. If you develop another version that other maintainers might be interested in, let me have it and I'll post it here.
Yeah, yeah, 3x2 tiles are on the schedule for V, just not in 3.0.8. There's a lot of work to do it properly.
Pete Mack is offline   Reply With Quote
Old April 30, 2007, 05:30   #8
Leon Marrick
Sangband maintainer
 
Leon Marrick's Avatar
 
Join Date: Apr 2007
Location: Heavens only knows
Posts: 31
Leon Marrick is on a distinguished road
Quote:
Originally Posted by Pete Mack View Post
Yeah, yeah, 3x2 tiles are on the schedule for V, just not in 3.0.8. There's a lot of work to do it properly.
__________________
S(all) W/D H+ D c+ f? PV++ s? d- P++ M+
C S !I !So SQ RQ V+ F:<<buffer overrun>>
http://angband.oook.cz/code
Leon Marrick is offline   Reply With Quote
Old April 30, 2007, 05:38   #9
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,425
Donated: $40
Pete Mack is on a distinguished road
Further note: the current V implementation uses white as the default foreground color by default, which allows for a lot fewer <font="0xffffff"></font> pairs, and probably cuts the file size by 20%.

I'm integrating the changes now.
Pete Mack is offline   Reply With Quote
Old April 30, 2007, 07:28   #10
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,425
Donated: $40
Pete Mack is on a distinguished road
Another test embedded html

Test of V angband
OK, this is now in V. There are 3 differences with Leon's version
  • get_default_tile removed; now works by resetting the preferences and using Term_what() (UnAngband)
  • No COLOR= emitted for change to white.
  • No COLOR= emitted for color "change" for unknown grid (' '); color change is deferred to next visible character. This makes a big (20%) difference, at least in V.

Code:

                                                                                                      
Dwarf        #                                                                                        
Paladin      #                                               #################                        
Knight       #                                               #               #                        
LEVEL     29 #          #####%###############                #               #                        
NXT    13396 #          #                   #                #               #                        
AU      4446 #          #         s         #                #       TT      #                        
|}=="~[( ]]] #          #                   #                #      TTT      #                        
STR:  18/100 %          #     "             #                #-     TTT      #                        
INT:       7 #          #                   #                #######T#########                        
WIS:   18/61 %          ###%##%#### #########                      # #                                
DEX:      14 %                   #  #                              # #                                
CON:   18/82 %                   # ##                              # #                                
CHR:      10 *                 %## #                               # #                                
             #                 %   #             ################# #d#                                
Cur AC    22 ####%#%#%%#       # ###             #     ,         # # #                     ########## 
HP  416/ 416           #       % #               #               ### #                     #......... 
SP   38/  66           #       # #               #               #   #######################......... 
                       %       # #         #######               #...............@....'.'............ 
                   s   #       % #         #                     #+####################'####......... 
                       %       % #         # # ########## ######## #                  #.#  #......... 
             %## ####%%#       # #         # ###        # #      # #                  #.############# 
               # #             % #         # #          # #      # #                  #.    #         
               # %             % #         # #         ## #      # #                  ##### #         
               # %       ##%%#%% #         # #         #  #      # #                      # #         
               % #       #       #         # #         # ######### ###########            # #         
               % #       # ##%####     ### # #    ###### #                   #            # #         
               # #       # #           # # # #    # ' +                      #            # #         
             ###+######### %#%%%######## ###+########+####                   #            # #         
               + '                           + "    + +  '  d                #            # #         
             #############   ##########  ## #########+####                   #            # #         
                         ###+#        #   # #       #:#  #                   #            # #         
                           # #        ### # #       # ####                   #            # ###       
                           #'%          #   #    ####   ######################            #   ####### 
                           # %          ### #    #        #                               ###         
                           #+#            # #    ######## ##                                ######### 
                           # #            # #        #     #                                        # 
                           % #            # #        #     #                                        # 
                                                                Study 1800 ft                         
Pete Mack is offline   Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 06:42.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2019, vBulletin Solutions Inc.