Angband.oook.cz
Angband.oook.cz
AboutVariantsLadderForumCompetitionComicScreenshotsFunniesLinks

Go Back   Angband Forums > Angband > Vanilla

Reply
 
Thread Tools Display Modes
Old January 24, 2013, 05:57   #11
Deof Movestofca
Rookie
 
Join Date: Jan 2013
Posts: 19
Deof Movestofca is on a distinguished road
Quote:
Originally Posted by Magnate View Post
It may well have been there all the time, but not read in until you appended your changes to the file. Did that solve the problem?
It was a new character, so I went ahead and simply decided to delete and start over. However, it's happening again with the Iron Spikes, except at Line 407, column 5: "K:spike:Iron Spike~:25:222". Changed the line to "K:spike:& Iron Spike~:25:222" and no joy. Just to make sure, I removed the space ("K:spike:&Iron Spike~:25:222") and it still doesn't work. I even tried "K:spike:Iron~ Spike:25:222", a la "Flask~ of oil" and "Piece~ of Elvish Waybread".
Deof Movestofca is offline   Reply With Quote
Old January 24, 2013, 06:41   #12
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,022
Derakon is on a distinguished road
The ~ indicates where the pluralization goes, so "Iron Spikes", "Flasks of Oil", "Pieces of Elvish Waybread", etc. The & is for the article/quantity ("an Iron Spike", "26 Flasks of Oil", etc.), which is why it appears at the beginning of practically every "non-flavored" item in object.txt.
Derakon is offline   Reply With Quote
Old January 24, 2013, 08:08   #13
Deof Movestofca
Rookie
 
Join Date: Jan 2013
Posts: 19
Deof Movestofca is on a distinguished road
1) So you mean you can't have Irons Spike?
2) Just curious as to why "Iron Spike~" would require an ampersand in front of it when a search of the .prf file doesn't show any others?
Deof Movestofca is offline   Reply With Quote
Old January 24, 2013, 13:11   #14
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Deof Movestofca View Post
1) So you mean you can't have Irons Spike?
2) Just curious as to why "Iron Spike~" would require an ampersand in front of it when a search of the .prf file doesn't show any others?
Heh, well. So a long time ago the pref files were basically unreadable because they had the format:

Code:
K:number in object.txt:graphic
which in practice looked like

Code:
K:533:0x44:0x76
Which reads like an ancient rite in a long-forgotten archaic form of magic.

So I moved us to using

Code:
K:tval name:sval name:graphic
Which is a lot more readable, but you had to inlcude & at the beginning of basically every item. So I added code to ignore that bit, and, more recently, always use the singular form of the name so you don't use the ~ anymore. But the pref file writing code hasn't caught up, and while it omits '&' it doesn't omit the plural signifier, ~.

IOW, my bad, I've got a fix locally and I'll push it to github ASAP. Thanks for the bug report!
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Old January 24, 2013, 21:31   #15
Deof Movestofca
Rookie
 
Join Date: Jan 2013
Posts: 19
Deof Movestofca is on a distinguished road
Quote:
Originally Posted by takkaria View Post
...which in practice looked like

Code:
K:533:0x44:0x76
Which reads like an ancient rite in a long-forgotten archaic form of magic.

So I moved us to using

Code:
K:tval name:sval name:graphic
Which is a lot more readable...
Sorry, but to us non-programmers, it still looks like a long-forgotten archaic form of magic. If it conjures up drolems, I'm outta here.

Looking forward to the fix.
Deof Movestofca is offline   Reply With Quote
Old January 24, 2013, 21:46   #16
Derakon
Prophet
 
Derakon's Avatar
 
Join Date: Dec 2009
Posts: 9,022
Derakon is on a distinguished road
Sounds like the workaround for now is to remove all the "~"s from the file. Is that right, Takkaria?
Derakon is offline   Reply With Quote
Old January 25, 2013, 09:46   #17
takkaria
Veteran
 
takkaria's Avatar
 
Join Date: Apr 2007
Posts: 1,951
Donated: $40
takkaria is on a distinguished road
Quote:
Originally Posted by Derakon View Post
Sounds like the workaround for now is to remove all the "~"s from the file. Is that right, Takkaria?
Yes, that's right.
__________________
takkaria whispers something about options. -more-
takkaria is offline   Reply With Quote
Reply

Tags
customization, interact, parse error, unrecognized sval, visuals


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
Feature Request Omnipact Vanilla 6 October 28, 2010 13:38
Feature request Jungle_Boy Vanilla 9 June 12, 2010 04:33
Feature Request dhegler Vanilla 5 March 11, 2010 11:29
Feature request Antoine Vanilla 5 January 8, 2009 04:27
Feature Request Zero Vanilla 1 February 5, 2008 18:21


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


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