v50 Steam/Premium information for editors
  • v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
  • Use this page to report any issues related to the migration.
This notice may be cached—the current version can be found here.

Difference between revisions of "User talk:Kaos"

From Dwarf Fortress Wiki
Jump to navigation Jump to search
 
(20 intermediate revisions by 3 users not shown)
Line 12: Line 12:
 
::: take a look, one picture is better than a thousand words... :)
 
::: take a look, one picture is better than a thousand words... :)
  
:::{| class="wikitable"
+
{| class="wikitable"
 
|-
 
|-
 
| style="border:1px #AAA solid;padding:0.2em;" | Dwarf
 
| style="border:1px #AAA solid;padding:0.2em;" | Dwarf
Line 27: Line 27:
 
just that the template doesn't seem to accept the nested table for some reason... any ideas?
 
just that the template doesn't seem to accept the nested table for some reason... any ideas?
  
<!--
+
you were right i didn't need 18 columns in the template... i was confused about how the template worked... I edited it back to 1 colors column and I have made what I want to do for the dwarves in the [[creature]] page,
you were right i didn't need 18 columns in the template... i was confused how the template worked... I edited it back to 1 color column and I have made what I want to do for the dwarves in the {{L|creature}} page,
+
:I've just created a template you might find useful - {{tl|rgb|COLOR_NAME}}. --[[User:Quietust|Quietust]] 00:05, 29 March 2011 (UTC)
-->
+
 
 +
==You read my mind!==
 +
I got it working with nested tables as you can see in the [[creature]] page, basically I did this:
 +
<nowiki>{{CreatureCurrent table head}}
 +
{{CreatureCurrent table row|name=[[Dwarf]]|symbol=☺|color=3:0:0|hostile=No|food=No|size=60,000|value=Not tameable|biome=Fortresses|note=Trading race|colors=<span></span>
 +
                                                  {{{!}}
 +
                                                    {{!}}-
 +
                                                    {{!}} width="20em" style="background: {{rgb|BROWN}}"      {{!}} &nbsp;
 +
                                                    {{!}} width="20em" style="background: {{rgb|BURNT_UMBER}}" {{!}} &nbsp;
 +
                                                    {{!}} width="20em" style="background: {{rgb|CINNAMON}}"    {{!}} &nbsp;
 +
                                                  {{!}}}
 +
}}
 +
{{CreatureCurrent table row|name=[[Elf]]|symbol=e|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Forest retreats|note=Trading race}}
 +
{{CreatureCurrent table row|name=[[Goblin]]|symbol=g|color=7:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Dark fortresses|note=Trading race}}
 +
{{CreatureCurrent table row|name=[[Human]]|symbol=U|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=70,000|value=Not tameable|biome=Towns and cities|note=Trading race}}
 +
{{CreatureCurrent table row|name=[[Kobold]]|symbol=k|color=6:0:0|hostile=Variable<sup>1</sup>|food=No|size=20,000|value=Not tameable|biome=Caves|note=Skulking race}}
 +
|}</nowiki>
 +
I was thinking of making a Template with the nested table before I found how to work around the pipe selector problem I had changing "<nowiki>|</nowiki>" for "<nowiki>{{!}}</nowiki>" and adding "<nowiki><span></span></nowiki>" so it recognizes the table starting in a new line...
 +
 
 +
That's why I tried creating this page [[Template:CreatureCurrent_table_cell_colors]] but it seems you got a better way using the descriptor file.... just that I don't seem to get it to work....
 +
I tried <nowiki>{{rgb|brown}}</nowiki>  and  <nowiki>{{rgb|BROWN}}</nowiki> and I get this result
 +
{{rgb|brown}}
 +
and 
 +
{{rgb|BROWN}}
 +
am I doing something wrong??--[[User:Kaos|Kaos]] 00:55, 29 March 2011 (UTC)
 +
:The {{tl|rgb}} template is namespace-sensitive - it can only be used within the DF2010, 40d, or 23a namespaces (technically only DF2010 right now, since I haven't uploaded descriptor_color_standard.txt for any other version, but 23a and 40d didn't make any significant use of color tokens aside from dyes), and it cannot be used on talk pages. --[[User:Quietust|Quietust]] 01:02, 29 March 2011 (UTC)
 +
:: when I try a preview in the creature page I get:
 +
not found
 +
::and
 +
rgb(150,75,0)
 +
::I assume they are case sensitive and the COLOR_NAME parameter is what token from the description file
 +
[NAME:aqua]
 +
::or
 +
[COLOR:AQUA]
 +
::I'm assuming the latter based on my last tryout....--[[User:Kaos|Kaos]] 01:11, 29 March 2011 (UTC)
 +
:::It must be uppercase - it's searching based on the object ID. --[[User:Quietust|Quietust]] 01:56, 29 March 2011 (UTC)
 +
::::I tried in the creature page:
 +
<nowiki>{{rgb|BROWN}}</nowiki>
 +
::::and I get this in the preview:
 +
rgb(150,75,0)
 +
::::is the template working as designed?? what am I missing?? --[[User:Kaos|Kaos]] 02:08, 29 March 2011 (UTC)
 +
:::::Yes, that's how it's supposed to work - you feed it the color ID, and it returns the RGB values in that particular format so you can feed them into a CSS 'background' attribute. --[[User:Quietust|Quietust]] 03:03, 29 March 2011 (UTC)
 +
::::::You mean this:
 +
<nowiki>style="background: {{rgb|BROWN}}"</nowiki>
 +
::::::then why does it say it's a new template, since I copied that code from the Colors page??
 +
::::::How can I get permission to create new pages? I want to create a template that reads the creature raws and gets the data for the colors automatically... =D
 +
 
 +
== Raw Templates ==
 +
 
 +
I've reverted your recent change to Template:CreatureCurrent table row‎ in order to make the Creatures page actually possible to load. Adding 18 {{tl|rgb}} calls to every single row was more than enough to completely overload the wiki - even with the current implementation of the rgb template, using it more than 33 times consumes the regex limit for the entire page, causing everything else to stop working. --[[User:Quietust|Quietust]] 16:57, 29 March 2011 (UTC)
 +
:Some further testing on a partial mirror of this wiki (running on my own web server) reveals that even if we switch to a custom extension designed solely for parsing Dwarf Fortress raws, there's simply too much information on the Creature page - after auto-populating the creature colors for the main races and animal peoples, the wiki itself '''stops parsing templates altogether''' because there are too many on the page. --[[User:Quietust|Quietust]] 18:03, 29 March 2011 (UTC)
 +
::when I was testing the changes I did notice that after the 33th call to the rgb template, it didn't render any more colors... I thought that it was some limitation of the preview engine, like in the talk pages....
 +
::what does exactly the rgb template do? does it cycle through the entire raw colors file everytime it's called?
 +
::I'm thinking about two possible solutions:
 +
::* Tweak the rgb template... for specifics I need a better understanding of what it does behind the scenes, I'm not familiar with wikimarkup...
 +
::* Add the color details to each creature page: it will still call the rgb but instead of the hundreds that would result in the Creatures page it would be a few decens (it would be neat to add the hair and eye colors too) --[[User:Kaos|Kaos]] 19:21, 29 March 2011 (UTC)
 +
:::The rgb template has to search through the entire raw colors file every time it wants to fetch a color, but the process of doing that search and then fetching the RGB values out of the data uses 3 regular expression calls, and the wiki is limited to 100 regex calls per page. Optimizing the rgb template is certainly possible, but it still won't permit using it that many times on the Creature page. Displaying the colors on each individual creature page is certainly possible, though until my DF Raw parsing extension is installed, it won't be feasible to do it automatically. --[[User:Quietust|Quietust]] 20:26, 29 March 2011 (UTC)
 +
 
 +
== Creature Table Iteration ==
 +
 
 +
Hey there, seeing the work you've been doing on the tissue layer colors I thought you might be interested in [[Template:CreatureWorking_table_row|this template]] I'm currently working on. Any suggestions you make I will take into consideration. Following the links in the discussion page will lead you to a template which automatically fills in table values based on the raws, which you may also find interesting. Thanks. --[[User:DUMBELLS|dUMBELLS]] 18:10, 16 April 2011 (UTC)
 +
 
 +
== Deleteing your WIP table in "Appointed noble selection" sections ==
 +
 
 +
I'm deleting the hidden comments you've added way back. At this point I'll assume you have no intention of finishing it.
 +
[http://dwarffortresswiki.org/index.php?title=DF2014:Noble&action=edit&section=3 here]
 +
[http://dwarffortresswiki.org/index.php?title=v0.34:Noble&action=edit&section=3 here]
 +
and
 +
[http://dwarffortresswiki.org/index.php?title=v0.31:Noble&action=edit&section=3 here]
 +
[[User:Brightgalrs|Brightgalrs]] ([[User talk:Brightgalrs|talk]]) 21:10, 1 August 2014 (UTC)

Latest revision as of 21:10, 1 August 2014

Creatures[edit]

What exactly is the purpose of having 18 "Colors" columns? --Quietust 21:26, 28 March 2011 (UTC)

I want to put all the colors a creature can have, i'm working on it right now....
I want to make 18 cells with the 18 color variations a dwarf can have...
the same with the elves, and so on...
So far I guess 18 is the maximum color variations a creature can have....
If you're referring to the colors that are based on professions (e.g. Miner, Stoneworker, Farmer, etc.), then you should know that those are all hardcoded (and even so, Dwarf Fortress itself only supports 16 colors, one of which is black) - the only colors that can be changed in the raws are caste-specific colors, and no creature has more than 5 castes. --Quietust 21:35, 28 March 2011 (UTC)
no, I'm refering to the skin/fur/outter tissue layer colors that a creature can have, can't you make nested tables when using the templates???
take a look, one picture is better than a thousand words... :)
Dwarf blah
     

just that the template doesn't seem to accept the nested table for some reason... any ideas?

you were right i didn't need 18 columns in the template... i was confused about how the template worked... I edited it back to 1 colors column and I have made what I want to do for the dwarves in the creature page,

I've just created a template you might find useful - {{rgb|COLOR_NAME}}. --Quietust 00:05, 29 March 2011 (UTC)

You read my mind![edit]

I got it working with nested tables as you can see in the creature page, basically I did this:

{{CreatureCurrent table head}}
{{CreatureCurrent table row|name=[[Dwarf]]|symbol=☺|color=3:0:0|hostile=No|food=No|size=60,000|value=Not tameable|biome=Fortresses|note=Trading race|colors=<span></span>
                                                   {{{!}}
                                                    {{!}}-
                                                    {{!}} width="20em" style="background: {{rgb|BROWN}}"       {{!}}  
                                                    {{!}} width="20em" style="background: {{rgb|BURNT_UMBER}}" {{!}}  
                                                    {{!}} width="20em" style="background: {{rgb|CINNAMON}}"    {{!}}  
                                                   {{!}}}
}}
{{CreatureCurrent table row|name=[[Elf]]|symbol=e|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Forest retreats|note=Trading race}}
{{CreatureCurrent table row|name=[[Goblin]]|symbol=g|color=7:0:0|hostile=Variable<sup>1</sup>|food=No|size=60,000|value=Not tameable|biome=Dark fortresses|note=Trading race}}
{{CreatureCurrent table row|name=[[Human]]|symbol=U|color=3:0:0|hostile=Variable<sup>1</sup>|food=No|size=70,000|value=Not tameable|biome=Towns and cities|note=Trading race}}
{{CreatureCurrent table row|name=[[Kobold]]|symbol=k|color=6:0:0|hostile=Variable<sup>1</sup>|food=No|size=20,000|value=Not tameable|biome=Caves|note=Skulking race}}
|}

I was thinking of making a Template with the nested table before I found how to work around the pipe selector problem I had changing "|" for "{{!}}" and adding "<span></span>" so it recognizes the table starting in a new line...

That's why I tried creating this page Template:CreatureCurrent_table_cell_colors but it seems you got a better way using the descriptor file.... just that I don't seem to get it to work.... I tried {{rgb|brown}} and {{rgb|BROWN}} and I get this result

and

am I doing something wrong??--Kaos 00:55, 29 March 2011 (UTC)

The {{rgb}} template is namespace-sensitive - it can only be used within the DF2010, 40d, or 23a namespaces (technically only DF2010 right now, since I haven't uploaded descriptor_color_standard.txt for any other version, but 23a and 40d didn't make any significant use of color tokens aside from dyes), and it cannot be used on talk pages. --Quietust 01:02, 29 March 2011 (UTC)
when I try a preview in the creature page I get:
not found 
and
rgb(150,75,0)
I assume they are case sensitive and the COLOR_NAME parameter is what token from the description file
[NAME:aqua]
or
[COLOR:AQUA]
I'm assuming the latter based on my last tryout....--Kaos 01:11, 29 March 2011 (UTC)
It must be uppercase - it's searching based on the object ID. --Quietust 01:56, 29 March 2011 (UTC)
I tried in the creature page:
{{rgb|BROWN}}
and I get this in the preview:
rgb(150,75,0)
is the template working as designed?? what am I missing?? --Kaos 02:08, 29 March 2011 (UTC)
Yes, that's how it's supposed to work - you feed it the color ID, and it returns the RGB values in that particular format so you can feed them into a CSS 'background' attribute. --Quietust 03:03, 29 March 2011 (UTC)
You mean this:
style="background: {{rgb|BROWN}}"
then why does it say it's a new template, since I copied that code from the Colors page??
How can I get permission to create new pages? I want to create a template that reads the creature raws and gets the data for the colors automatically... =D

Raw Templates[edit]

I've reverted your recent change to Template:CreatureCurrent table row‎ in order to make the Creatures page actually possible to load. Adding 18 {{rgb}} calls to every single row was more than enough to completely overload the wiki - even with the current implementation of the rgb template, using it more than 33 times consumes the regex limit for the entire page, causing everything else to stop working. --Quietust 16:57, 29 March 2011 (UTC)

Some further testing on a partial mirror of this wiki (running on my own web server) reveals that even if we switch to a custom extension designed solely for parsing Dwarf Fortress raws, there's simply too much information on the Creature page - after auto-populating the creature colors for the main races and animal peoples, the wiki itself stops parsing templates altogether because there are too many on the page. --Quietust 18:03, 29 March 2011 (UTC)
when I was testing the changes I did notice that after the 33th call to the rgb template, it didn't render any more colors... I thought that it was some limitation of the preview engine, like in the talk pages....
what does exactly the rgb template do? does it cycle through the entire raw colors file everytime it's called?
I'm thinking about two possible solutions:
  • Tweak the rgb template... for specifics I need a better understanding of what it does behind the scenes, I'm not familiar with wikimarkup...
  • Add the color details to each creature page: it will still call the rgb but instead of the hundreds that would result in the Creatures page it would be a few decens (it would be neat to add the hair and eye colors too) --Kaos 19:21, 29 March 2011 (UTC)
The rgb template has to search through the entire raw colors file every time it wants to fetch a color, but the process of doing that search and then fetching the RGB values out of the data uses 3 regular expression calls, and the wiki is limited to 100 regex calls per page. Optimizing the rgb template is certainly possible, but it still won't permit using it that many times on the Creature page. Displaying the colors on each individual creature page is certainly possible, though until my DF Raw parsing extension is installed, it won't be feasible to do it automatically. --Quietust 20:26, 29 March 2011 (UTC)

Creature Table Iteration[edit]

Hey there, seeing the work you've been doing on the tissue layer colors I thought you might be interested in this template I'm currently working on. Any suggestions you make I will take into consideration. Following the links in the discussion page will lead you to a template which automatically fills in table values based on the raws, which you may also find interesting. Thanks. --dUMBELLS 18:10, 16 April 2011 (UTC)

Deleteing your WIP table in "Appointed noble selection" sections[edit]

I'm deleting the hidden comments you've added way back. At this point I'll assume you have no intention of finishing it. here here and here Brightgalrs (talk) 21:10, 1 August 2014 (UTC)