Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Development

Reply
 
Thread Tools Display Modes
Old November 4, 2011, 11:42   #11
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by Shockbolt View Post
object_food_beef_jerky_1.png

object_food_ration_1.png

object_artifact_phial_of_galadriel_1.png

trap_spell_rune_of_teleportation_1.png

terrain_wall_dungeon_lower_1.png (bottom of the 2.5D wall)

terrain_wall_dungeon_top_1.png (top of the 2.5D wall, the part that would render partially ontop of player/npc/any object that was standing to the north)

terrain_floor_dungeon_1.png

weapon_sword_falchion_1.png

dragon_ancient_multi_colored_1.png

spiderkin_unique_ungoliant_1.png

spiderkin_spider_mirkwood_spider_1.png

Then either have the code downsize the graphics from 64x64 to 32x32 or smaller, or stick 64_ or 32_ to either the beginning of the file or the end of the file. Obviously, having the code downsize the graphics from 64 to smalles would mean a smaller .zip to download for the players.

As you see, I've ended each file with _1 , incase I go mental and decide that I want to make many versions of the same tile. This would be somewhat fun, as you could then call for the image of a broken sword, a rusty sword, a new sword, a sword that has flames running up it's blade, a sword with dripping poison etc.
No problems with the extra versions, that's fine.

Your names don't follow a clear hierarchy though. Some start with a tile category - object, trap, terrain - others start with monster type. In order to code the recognition/loading of tiles properly, the name has to break down into elements:

category_basename_name_number.png

or something. Buzzkill is right that we could use subfolders instead of long names:

lib/xtra/graf/64x64/objects/

with similar folders for monsters/ terrain/ artifacts/ misc/ etc.

But we do need to separate different-sized tiles into different-sized folders. The game supports multiple tile sets, and the code needs to know what size it's loading (regardless of whether it then shrinks or stretches the tiles).

@buzzkill: IIUC takkaria has long wanted to move to indexless edit files, so that they can be edited without breaking savefiles and without requiring any concomitant changes. If we use index numbers in tile names, they need changing every time they change in object.txt. I can't see any advantage in using them.
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old November 4, 2011, 11:47   #12
Shockbolt
Knight
 
Shockbolt's Avatar
 
Join Date: Jan 2011
Location: Norway
Posts: 632
Shockbolt is on a distinguished road
Send a message via MSN to Shockbolt
I was not providing the "final" solution, merely adding fuel to the discussion-fire

removing:

terrain_
object_
monster_
weapon_
spell_
trap_
misc_
etc_

and instead just use the appropriate subfolders would work also. My only wish is that they/the tiles/the files should be easy to recognize and easy to alter/replace for non-programmers.
__________________
http://www.rpgartkits.com/
Fantasy art kits for personal and commercial use. Commercial use requires a Developer license, also available through my website.

Last edited by Shockbolt; November 4, 2011 at 11:53.
Shockbolt is offline   Reply With Quote
Old November 4, 2011, 11:50   #13
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by Shockbolt View Post
I was not providing the "final" solution, merely adding fuel to the discussion-fire

removing:

terrain_
object_
monster_
weapon_
spell_
trap_
misc_
etc_

and instead just use the appropriate subfolders would work also.
Note that "weapon" and "object" are overlapping types. Categories must be MECE: mutually exclusive and collectively exhaustive - i.e. every tile belongs in one and only one category.

Since all objects are in one edit file (object.txt), there's no point in having separate tile folders/types for weapons, armour, devices, scrolls etc. But OTOH it doesn't particularly hurt if you want to, as long as the folder/type names are as set out in object_base.txt
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old November 4, 2011, 11:54   #14
Shockbolt
Knight
 
Shockbolt's Avatar
 
Join Date: Jan 2011
Location: Norway
Posts: 632
Shockbolt is on a distinguished road
Send a message via MSN to Shockbolt
Quote:
Originally Posted by Magnate View Post
Note that "weapon" and "object" are overlapping types. Categories must be MECE: mutually exclusive and collectively exhaustive - i.e. every tile belongs in one and only one category.

Since all objects are in one edit file (object.txt), there's no point in having separate tile folders/types for weapons, armour, devices, scrolls etc. But OTOH it doesn't particularly hurt if you want to, as long as the folder/type names are as set out in object_base.txt

Yes, but you got my point didn't you. What I forgot to type was object_ infront of weapon_ , then again as I wrote earlier, I was not providing a final solution.
__________________
http://www.rpgartkits.com/
Fantasy art kits for personal and commercial use. Commercial use requires a Developer license, also available through my website.
Shockbolt is offline   Reply With Quote
Old November 4, 2011, 11:56   #15
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Quote:
Originally Posted by Shockbolt View Post
Yes, but you got my point didn't you. What I forgot to type was object_ infront of weapon_ , then again as I wrote earlier, I was not providing a final solution.
Of course - but since you're the guy who gets to choose how your tiles are organised in folders, I just wanted to make sure you didn't end up with something we couldn't use!
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old November 4, 2011, 12:08   #16
Shockbolt
Knight
 
Shockbolt's Avatar
 
Join Date: Jan 2011
Location: Norway
Posts: 632
Shockbolt is on a distinguished road
Send a message via MSN to Shockbolt
Quote:
Originally Posted by Magnate View Post
Of course - but since you're the guy who gets to choose how your tiles are organised in folders, I just wanted to make sure you didn't end up with something we couldn't use!
Ok, so how about this setup then:

Main folders:

Shockbolt_64/
Shockbolt_32/

Then the subfolders would be the same for both:

Objects/
potion_
weapon_
armor_
helmet_
shield_
food_
drink_
lightsource_
scroll_
ring_
amulet_
cloak_


Terrain/
wall_top_
wall_bottom_
wall_vertical_
floor_
door_vertical_
door_horizontal_
stair_up_
stair_down_
shop_door_

Shops/
Graphics for the various shops on lvl 0


Spells/
bolt_
bolt_lightning_dir1_ (directional bolt that travels from 9 to 1)
bolt_lightning_dir9_ (directional bolt that travels from 1 to 9)
ball_
ball_mana_1_


Traps/
spell_
acid_
physical_
physical_pit_


UI/
files for future UI graphics


Monsters/
dragon_
humanoid_
spiderkin_
undead_
unique_

Player/
dunadan_male_fighter_
elf_female_mage_

Misc/
If anything


I have not included everything, on purpose, but these examples would be something to improve upon.
__________________
http://www.rpgartkits.com/
Fantasy art kits for personal and commercial use. Commercial use requires a Developer license, also available through my website.

Last edited by Shockbolt; November 4, 2011 at 12:14.
Shockbolt is offline   Reply With Quote
Old November 4, 2011, 12:26   #17
Magnate
Angband Devteam member
 
Join Date: May 2007
Location: London, UK
Posts: 5,057
Magnate is on a distinguished road
Send a message via MSN to Magnate Send a message via Yahoo to Magnate
Looking at object_base.txt:
Quote:
Originally Posted by Shockbolt View Post
Objects/
potion_
weapon_ -- this needs to be sword, hafted, polearm
armor_ -- this needs to be hard_armor, soft_armor
helmet_ -- helm
shield_
food_
drink_ -- this needs to be food also (drinks are not separate)
lightsource_ -- light
scroll_
ring_
amulet_
cloak_
Looking at terrain.txt:
Quote:
Terrain/
Shops/
Graphics for the various shops on lvl 0 -- General_Store_ etc.

Traps/
spell_ -- strange_rune or discolored_spot
acid_ -- gas_X (several types of each)
physical_ -- dart_X (ditto)
physical_pit_ -- just pit
Looking at monster_base.txt:
Quote:
Monsters/
dragon_
humanoid_
spiderkin_ -- spider
undead_ -- ghost_, lich_, skeleton_, vampire_, wraith_, zombie_
unique_
__________________
"3.4 is much better than 3.1, 3.2 or 3.3. It still is easier than 3.0.9, but it is more convenient to play without being ridiculously easy, so it is my new favorite of the versions." - Timo Pietila
Magnate is offline   Reply With Quote
Old November 4, 2011, 12:33   #18
Shockbolt
Knight
 
Shockbolt's Avatar
 
Join Date: Jan 2011
Location: Norway
Posts: 632
Shockbolt is on a distinguished road
Send a message via MSN to Shockbolt
kk...I'll leave the rest up to you guys and keep pumping out tiles here myself
__________________
http://www.rpgartkits.com/
Fantasy art kits for personal and commercial use. Commercial use requires a Developer license, also available through my website.
Shockbolt is offline   Reply With Quote
Old November 4, 2011, 17:27   #19
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 8,917
Derakon is on a distinguished road
Buzzkill: index numbers are bad because they mean reordering the list is a major pain. For example, monster.txt is mostly in order of increasing monster level, with townspeople at the beginning and Morgoth...not quite at the end, because new monsters got added and rather than reorder the entire list so they'd be at the right place, they were just tacked onto the end where there was room for them.

It's like how BASIC's enforced code line numbers were bad; any time you want to insert something into the middle, you have to push everything else down.
Derakon is offline   Reply With Quote
Old November 7, 2011, 04:48   #20
Nick
Vanilla maintainer
 
Nick's Avatar
 
Join Date: Apr 2007
Location: Canberra, Australia
Age: 54
Posts: 7,835
Donated: $60
Nick will become famous soon enough
I have started a list of the distinct tiles needed for FAangband (and Beleriand) here.

There are a few relevant comments about FA which may affect tile drawing:
  1. Traps and runes are not terrain, but exist 'on top of' terrain.
  2. The races are quite different from Vanilla (although a lot of them are elves...)
  3. There are a number of monster races which come in player race varieties; so, for example, you can have Dwarf Hardened Warrior, Green Elf Hardened Warrior, etc. Moreover, these use the same monster number and (currently) tile; the race is kind of an add-on.

I think number 3 is trickiest to deal with - as a mainly ASCII player, I haven't really let it concern me much...
__________________
One for the Dark Lord on his dark throne
In the Land of Mordor where the Shadows lie.
Nick is offline   Reply With Quote
Reply

Tags
64 x 64, angband, faangband, graphics, tiles


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

Similar Threads
Thread Thread Starter Forum Replies Last Post
No graphics? biff Vanilla 14 August 27, 2009 17:44
[O] Graphics? hero Variants 4 September 9, 2007 00:40
What variants use graphics beyond the @? Ghen Variants 7 July 13, 2007 01:05
problem with graphics mjtokarski Vanilla 11 July 8, 2007 01:40
Cannot initialize graphics katkt Vanilla 2 June 15, 2007 00:05


All times are GMT +1. The time now is 15:59.


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