Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > The real world > Idle chatter

Reply
 
Thread Tools Display Modes
Old April 30, 2007, 08:57   #11
pav
Administrator
 
pav's Avatar
 
Join Date: Apr 2007
Location: Prague, Czech republic
Age: 39
Posts: 779
pav is on a distinguished road
Send a message via ICQ to pav
You may still want to set white foreground - it can get embedded into the page that redefines font color to something else, like light blue here on forums...
pav is offline   Reply With Quote
Old April 30, 2007, 14:00   #12
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
You may still want to set white foreground - it can get embedded into the page that redefines font color to something else, like light blue here on forums...
Happily, this is an easy fix (also fixed the html version). Code updated.



Quote:
Originally Posted by Pete Mack View Post
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.
1. Excellent!
2. Yes, I shouldn't have changed that. It's back.
3. The code above does this and, yes, I discovered that it does give a slight reduction in file size versus the code previously in V. The line I changed was:
Code:
			/* Color change */
			if (oa != a)
to
Code:
			/* Color change -- only for non-space */
			if ((a != oa) && (c != ' '))
__________________
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, 15:34   #13
Pete Mack
Prophet
 
Join Date: Apr 2007
Location: Seattle, WA
Posts: 5,327
Donated: $40
Pete Mack is on a distinguished road
pav -- it's no worry, the entire block is also nested in [COLOR=white]
See the diff.

Leon; sorry about that; I didn't actually use your code, so I missed the fact you made that change too. I was just looking at the actual output and saw weird color-change stuff embedded in the middle of a sea of blank-space. I also used
Code:
const char *new_color_fmt = (mode == 0) ? 
 		                           "<font color=\"#%02X%02X%02X\">" 
 		                           : "[color=\"#%02X%02X%02X\"]"; 
const char *change_color_fmt = (mode == 0) ? 
	                                 "<\/font><font color=\"#%02X%02X%02X\">" 
 		                            : "[\/color][color=\"#%02X%02X%02X\"]"; 
const char *close_color_fmt = mode ==  0 ? "<\/font>" : "[\/color]";
to tighten things up a little. (Extra backslashes put in to disable vBulletin)

Last edited by Pete Mack; April 30, 2007 at 15:49.
Pete Mack is offline   Reply With Quote
Old April 30, 2007, 19:26   #14
Kiyoshi Aman
Scout
 
Kiyoshi Aman's Avatar
 
Join Date: Apr 2007
Age: 32
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
Quote:
Originally Posted by Leon Marrick View Post
Are you using a dial-up connection? If you are, I can easily imagine screenshots taking a moment or two to load.
Nope. I'm complaining because of the scrolling being slow, not the page loading, which is just fine. Please take the time to read my posts through before replying blindly to them.

And my suggestion was for us to do the conversion from text to an image, rather than third parties [and image hosts which auto-convert to JPEG just aren't worth keeping around]. Which, believe it or not, is quite possibly assuming the PHP on angband.oook.cz has GD or ImageMagick support.

Re screen dumps: I think you could do a little CSS-style separation of colour from the dungeon, at least for dungeon glyphs. That may cut down on the file size still further.
__________________
"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
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 07:09.


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