- April 23, 2024, 15:45
- Welcome, Guest
Show Posts
This section allows you to view all posts made by this member. Note that you can only see posts made in areas you currently have access to.
Pages: [1]
1
Bug Reports / Re: [0.9.9.7|G|WinXP] Travel can lead into the lava behind the closed door.
« on: January 07, 2014, 03:59 »
Both rooms were known.
If the door is open, the guy does not go into the lava.
If the door is open, the guy does not go into the lava.
2
Bug Reports / [0.9.9.7|G|WinXP] Item can be dropped on the nearest acid square
« on: November 04, 2013, 13:26 »
Item can be dropped on the nearest acid square without warning, even if there is unoccupied floor.
http://ipic.su/img/img7/fs/20131105004.1383596476.png
Forget to check known bugs and can't delete message...
http://ipic.su/img/img7/fs/20131105004.1383596476.png
Forget to check known bugs and can't delete message...
3
Bug Reports / [0.9.9.7|G|WinXP] Travel can lead into the lava behind the closed door.
« on: October 19, 2013, 11:36 »
[0.9.9.7|G|WinXP] Travel can lead into the lava behind the closed door.
I click on the combat shotgun.
I'm wearing phaseshift boots (T) (no resists) and powered red armor.
I click on the combat shotgun.
I'm wearing phaseshift boots (T) (no resists) and powered red armor.
5
Requests For Features / Re: DoomRL on different languages
« on: May 09, 2012, 21:52 »
Доступа к репозиторию нет, но немного наговнокодил:
Code: [Select]
--[[
http://ru.wiktionary.org/wiki/Викисловарь:Использование_словаря_Зализняка
http://ru.wikipedia.org/wiki/Склонение_(лингвистика)
http://ru.wikipedia.org/wiki/Спряжение
http://ru.wikipedia.org/wiki/Одушевлённость_(грамматика)
http://ru.wiktionary.org/wiki/Категория:Шаблоны_словоизменений
http://ru.wiktionary.org/wiki/Категория:Шаблоны_словоизменений/Прилагательные
http://ru.wiktionary.org/wiki/Категория:Шаблоны_словоизменений/Существительные/Одушевлённые/Мужской_род
http://ru.wiktionary.org/wiki/Шаблон:прил_ru_3*a/b
]]
Dictionary={noun={}, adjective={}, pronoun={}, numeral={}} -- существительные, прилагательные, местоимения, числительные
Templates={}
Templates.adjective={
['4a'] = function(word, base, animacy) -- нет разных слов для одуш./неодуш.
return { type = 'adjective', word = word
, nominative = { -- именительный
singular = { masculine = base..'ий', neuter = base..'ее', feminine = base..'ая'}
, plural = base..'ие' }
, genitive = { -- родительный
singular = { masculine = base..'его', neuter = base..'его', feminine = base..'ей'}
, plural = base..'их' }
, dative = { -- дательный
singular = { masculine = base..'ему', neuter = base..'ему', feminine = base..'ей'}
, plural = base..'им' }
, accusative = { -- винительный
singular = { masculine = (animacy and base..'его' or base..'ий'), neuter = base..'ее', feminine = base..'ую'}
, plural = (animacy and base..'их' or base..'ие') }
, instrumental ={ -- творительный
singular = { masculine = base..'им', neuter = base..'им', feminine = base..'ей'}
, plural = base..'ими' }
, prepositional={ -- предложный
singular = { masculine = base..'ем', neuter = base..'ем', feminine = base..'ей'}
, plural = base..'их' }
}
end
}
Templates.noun = {
['a 1a'] = function(word, base) -- http://ru.wiktionary.org/wiki/Шаблон:сущ_ru_m_a_1a http://ru.wiktionary.org/wiki/Шаблон:сущ_ru_f_a_1a http://ru.wiktionary.org/wiki/Шаблон:сущ_ru_n_a_1a
return { type = 'noun', word = word
, nominative = { singular = { masculine = base..'', neuter = base..'о', feminine = base..'а'}
, plural = { masculine = base..'ы', neuter = base..'а', feminine = base..'ы' } }
, genitive = { singular = { masculine = base..'а', neuter = base..'а', feminine = base..'ы'}
, plural = { masculine = base..'ов', neuter = base..'', feminine = base..''} }
, dative = { singular = { masculine = base..'у', neuter = base..'у', feminine = base..'е'}
, plural = { masculine = base..'ам', neuter = base..'ам', feminine = base..'ам'} }
, accusative = { singular = { masculine = base..'а', neuter = base..'о', feminine = base..'у'}
, plural = { masculine = base..'ов', neuter = base..'', feminine = base..''} }
, instrumental = { singular = { masculine = base..'ом', neuter = base..'ом', feminine = base..'ой'}
, plural = { masculine = base..'ами', neuter = base..'ами', feminine = base..'ами'} }
, prepositional = { singular = { masculine = base..'е', neuter = base..'е', feminine = base..'е'}
, plural = { masculine = base..'ах', neuter = base..'ах', feminine = base..'ах'} }
}
end
}
-- verb - глаголы?
-- число, род, падеж
-- основа, основа1, основа2
-- краткая форма?
-- одушевленность (animacy) - винительный?
function adjective(word, dtype, base, animacy)
local a = Dictionary.adjective
-- добавляет (если не было) слово word в таблицу Dictionary.adjective и возвращает таблицу
-- dtype - тип склонения по классификации А. Зализняка (Dictionary.adjective.Templates)
-- base - строка или таблица с основами
if not a[word] then
a[word] = Templates.adjective[dtype](word, base, animacy)
end
return a[word]
end
function noun(word, dtype, base)
local n = Dictionary.noun
if not n[word] then
n[word] = Templates.noun[dtype](word, base)
end
return n[word]
end
Monsters = {
former_sergeant={
name = {
adjective('бывший', '4a', 'бывш', true) -- http://ru.wiktionary.org/wiki/бывший
, noun('сержант','a 1a','сержант', true) -- http://ru.wiktionary.org/wiki/сержант
}, gender = 'masculine'
}
}
function declension(monster, case, number)
local tbl = {}
for k, v in ipairs(monster.name) do
local tmp = Dictionary[v.type][v.word][case][number]
if type(tmp) == 'table' then tmp = tmp[monster.gender] end
table.insert(tbl, tmp)
end
return table.concat(tbl,' ')
end
local mfs = Monsters.former_sergeant
print( 'именительный', declension(mfs, 'nominative', 'singular'), declension(mfs, 'nominative', 'plural') )
print( 'родительный ', declension(mfs, 'genitive', 'singular'), declension(mfs, 'genitive', 'plural') )
print( 'дательный ', declension(mfs, 'dative', 'singular'), declension(mfs, 'dative', 'plural') )
print( 'винительный ', declension(mfs, 'accusative', 'singular'), declension(mfs, 'accusative', 'plural') )
print( 'творительный', declension(mfs, 'instrumental', 'singular'), declension(mfs, 'instrumental', 'plural') )
print( 'предложный ', declension(mfs, 'prepositional', 'singular'),declension(mfs, 'prepositional', 'plural') )
Code: [Select]
>lua test.lua
именительный бывший сержант бывшие сержанты
родительный бывшего сержанта бывших сержантов
дательный бывшему сержанту бывшим сержантам
винительный бывшего сержанта бывших сержантов
творительный бывшим сержантом бывшими сержантами
предложный бывшем сержанте бывших сержантах
6
Bug Reports / [0.9.9.6 G lq] High CPU usage
« on: May 07, 2012, 12:47 »
Game consumes 30% CPU (one core of 3), after disabling the midi music load is reduced to ~ 11% (too much for idle), after calling help it rises to 30%.
XP SP3, Athlon II X3 445, doomrl-win-0996-lq.zip
http://forum.chaosforge.org/index.php/topic,2713.msg23581.html#msg23581
XP SP3, Athlon II X3 445, doomrl-win-0996-lq.zip
http://forum.chaosforge.org/index.php/topic,2713.msg23581.html#msg23581
Pages: [1]