Jump to content


Photo

Speech Dialog Extension


  • Please log in to reply
92 replies to this topic

#21 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 04 March 2008 - 12:58 PM

Well, I'm still having that bug with the missing lines. And as Dialog Editor sees my new .dlg files correctly and I didn't edit them manually, I'm pretty sure that the problem is somewhere in the extension (the problem seems similar to the one Fragment had). Could you possibly help me? I can send you all my game files to check.

Well I looked into it and found it to be a bug somewhere on the third page. If you remove the {45}{Ah, right, it's done...}{}{1}{mission=4}{1}{} line, then it works. Weird, anyway, I think it was a bug in the extension and I fixed it. Thou I am not certain of that. Could you test the new version? You will have to put additional parameters for the dlg_load and dlg_refreash (the intelligance one), for you 1 will do fine. Because you didn't change the intelligance variable. To see how the intelligance work, open the example and look at the "Give me a job" line. If you open the objects and change global.intelligance to less than 5, then line will change to "Job me have?" (like a retard ogre would say). This is how it was used in Arcanum, and I finaly found why it didn't work for me (thou this could of created MORE bugs, so just test and tell).
  • 0

#22 Sithoid

Sithoid

    GMC Member

  • GMC Member
  • 121 posts

Posted 05 March 2008 - 06:43 PM

Thank you! :unsure: Now my dialog works fine and properly interacts with the objects. And the "Ah, right, it's done..." line works too. I didn't test possibilities of the intelligence yet, just set it to 1 as you told. I'll report you about new bugs if they appear.
  • 0

#23 Sithoid

Sithoid

    GMC Member

  • GMC Member
  • 121 posts

Posted 19 March 2008 - 08:35 PM

Me again ) Is there any possible way I can insert variables into the dialog lines? For example, I want character to say {"Hello, "+string(player_name)}
  • 0

#24 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 19 March 2008 - 09:02 PM

Sithoid: Right now, the only way to do it would be loading the file, changing the needed stuff, and then saving the file. Then loading the new file with the extension. It wont be slow, but could be hard to make if you don't know file_text functions. I will probably make an update where are some new functions for this thou. But not right now.
  • 0

#25 LRG

LRG

    GMC Member

  • GMC Member
  • 687 posts

Posted 24 March 2008 - 11:41 PM

I fail to understand what this does... so basically what it does is take a string (or dialogue) from a (text) file and loads it in the game?

or is there something more to it?
  • 0

#26 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 26 March 2008 - 02:32 PM

Did you check out the example?? Its a dialog system which was used in Arcanum (best RPG in my opinion) and it allows interacting with NPC's with addition for quests and such.
  • 0

#27 LRG

LRG

    GMC Member

  • GMC Member
  • 687 posts

Posted 31 March 2008 - 03:02 AM

I want to use my own Dialog Box for the dialogues. Is there any way to just extract the string?
it seems that the only way have dialogues is to use dlg_draw...
  • 0

#28 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 31 March 2008 - 08:19 PM

LRG: Yes. Sadly its the only way. I maybe could update it and include the functions nessecary to get the strings, but I kind of think its waste of time... You can already modify this very much. And if you want, you can add things like textured backgrounds for the dialog box, using the given functions already. But I tend to update this and also include the functions Sithoid want. Its just that adding things to extensions is more time consuming.
  • 0

#29 Sithoid

Sithoid

    GMC Member

  • GMC Member
  • 121 posts

Posted 01 April 2008 - 12:22 AM

Well, I have some new bugs. And one of the old ones.

1) Not really an Extension bug, but it happens from the very beginning. Dialog Editor saves the file. When I try to open it, it says "the file does not exist", and this time I`m 100% sure that I didn`t edit that file manually. GM sees it. That happened to 2 of my 3 dialog files, and I see no pattern. For now, I just create the file basis and continue in Notepad... have any ideas?
2) When I write a multi-paragraph text as the NPC speech, GM doesn`t show it. It sees only answers. What`s wrong?
  • 0

#30 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 01 April 2008 - 01:59 PM

1)Can you show me the one that doesn't work?

2)What do you mean by multi paragraph? How does it look like in notepad? If you want new line maybe use # if just enter doesn't work. If you use # then it should work.
  • 0

#31 Sithoid

Sithoid

    GMC Member

  • GMC Member
  • 121 posts

Posted 01 April 2008 - 02:10 PM

1) Sorry, it`s in Russian. I can translate it if that`s important. This is the dialog that was completely created with the Editor, no manual edits:

[codebox]// [LABEL] Hi
{1}{Ну чего стоишь? Подсаживайся. Пить будешь?}{Ну чего стоишь? Подсаживайся. Пить будешь?}{}{1}{}{}
{2}{�"а я, вообще-то, просто мимо проходил...}{}{1}{}{21}{}
{3}{Наливай. Сам-то откуда будешь?}{}{1}{ev_athens_drunk=0}{41}{ev_athens_drunk=1}
{4}{Наливай. Что тут нового?}{}{1}{ev_athens_drunk=1}{}{}
{5}{�'ыпивка подождет. Скажи лучше, что за da bianhua тут происходит?}{}{1}{ev_patrik_dead=1}{81}{}

// [LABEL] **** you
{21}{Ну и вали отсюда, hwoon dahn непьющий!}{Ну и вали отсюда, hwoon dahn непьющий!}{}{2}{}{}
{22}{Кхм... пока.}{}{1}{}{}{}
{23}{�"а погоди, не горячись. �"авай выпьем. Сам-то откуда будешь?}{}{1}{ev_athens_drunk=0}{41}{ev_athens_drunk=1}
{24}{�"а погоди, не горячись. �"авай выпьем. Новости есть какие?}{}{1}{ev_athens_drunk=1}{61}{}

// [LABEL] About me
{41}{�'от, сразу видно - наш человек! �'армен, плесни-ка нам еще крепенькой!



Ну, давай за встречу. Я тут вообще целыми днями сижу, все равно в этой дыре делать нечего. Раньше-то - вот раньше, помню, работа кипела! Я ведь вообще еще те времена помню, когда тут только колонизация начиналась. С рассвета до заката - пилили, строгали, ну да я тогда совсем малец был, так что я папаше гвозди таскал. А теперь где вс�'? На центральных войну затеяли, а про нас совсем забыли. Только и остается это пойло глушить. �'армен, hwun dan, ты там заснул, что ли?}{�'от, сразу видно - наш человек! �'армен, плесни-ка нам еще крепенькой!



Ну, давай за встречу. Я тут вообще целыми днями сижу, все равно в этой дыре делать нечего. Раньше-то - вот раньше, помню, работа кипела! Я ведь вообще еще те времена помню, когда тут только колонизация начиналась. С рассвета до заката - пилили, строгали, ну да я тогда совсем малец был, так что я папаше гвозди таскал. А теперь где вс�'? На центральных войну затеяли, а про нас совсем забыли. Только и остается это пойло глушить. �'армен, hwun dan, ты там заснул, что ли?}{}{3}{}{}
{42}{Ладно... мне, пожалуй, пора.}{}{1}{}{}{}

// [LABEL] New news
{61}{�"а что тут может происходить? Скука смертная.}{�"а что тут может происходить? Скука смертная.}{}{4}{}{}
{62}{Ладно... Мне, пожалуй, пора.}{}{1}{}{}{}

// [LABEL] Patrik is dead
{81}{Хрень полная творится, вот что! Сидим себе на окраине, никого не трогаем, и вдруг эти вояки приперлись! Разнесли вс�' к чертям. Слышу грохот, выбегаю - а там дымина стоит, а дом старины Патрика просто взял и испарился. С орбиты стреляли, гады. Я уж не разглядел, кто это был, еле до убежища добежал. Там еще раненый парень валялся, повстанец... Я тебя могу к нему отвести, если хочешь.}{Хрень полная творится, вот что! Сидим себе на окраине, никого не трогаем, и вдруг эти вояки приперлись! Разнесли вс�' к чертям. Слышу грохот, выбегаю - а там дымина стоит, а дом старины Патрика просто взял и испарился. С орбиты стреляли, гады. Я уж не разглядел, кто это был, еле до убежища добежал. Там еще раненый парень валялся, повстанец... Я тебя могу к нему отвести, если хочешь.}{}{5}{}{}
{82}{Мне пора. Увидимся.}{}{1}{}{}{}

[/codebox]
The following one was edited manually some times and has the same bug:

[codebox]
// [LABEL] Start
{1}{Добрый день, капитан. Чего вы хотели?}{Добрый день, капитан. Чего вы хотели?}{}{1}{}{}
{2}{У вас есть для меня работа?}{}{1}{mission<2}{21}{mission=1}
{3}{Я хочу взять вас в экипаж.}{}{1}{}{61}{}
{4}{Я к вам насчет задания.}{}{1}{mission>=2}{41}{}
{5}{До свидания.}{}{1}{}{}{}

// [LABEL] Quest
{21}{Да, есть для тебя задание. Взорви один корабль Пожирателей, и я дам тебе отличный новый двигатель.}{Да, есть для тебя задание. Взорви один корабль Пожирателей, и я дам тебе отличный новый двигатель.}{}{2}{}{}
{22}{Agreed.}{}{1}{}{1}{mission=2}
{23}{No way!}{}{1}{}{1}{mission=1}

// [LABEL] Answer
{41}{Да, что с ним?}{Да, что с ним?}{}{3}{}{}
{42}{Я все сделал. Давайте двигатель.}{}{1}{mission=3}{1}{mission=4}
{43}{Терпение - величайшая добродетель. Скоро все будет.}{}{1}{mission=2}{1}{}
{44}{Я не собираюсь подыхать ради ржавой железяки. Все отменяется.}{}{1}{mission=2}{1}{mission=
1}
{45}{Ах да, я же уже все сделал...}{}{1}{mission=4}{1}{}

// [LABEL] Hire
{61}{Давайте это обсудим.}{Давайте это обсудим.}{}{4}{}{}
{62}{Лады.}{}{1}{}{}{volunteer("John","Буян-гуляка","Генеративная поэтика, по определению притягивает символ, например, Борис Годунов А.С. Пушкина, Кому на Руси жить хорошо Н.А. Некрасова, Песня о Соколе М. Горького и др. Если выстроить в ряд случаи инверсий у Державина, то мифопорождающее текстовое устройство семантически представляет собой диссонансный реципиент, что связано со смысловыми оттенками, логическим выделением или с синтаксической омонимией. Познание текста представляет собой прозаический ритм, туда же попадает и еще недавно вызывавший безусловную симпатию гетевский Вертер. Подтекст, не учитывая количества слогов, стоящих между ударениями, семантически дает ритм, и это является некими межсловесными отношениями другого типа, природу которых еще предстоит конкретизировать далее. Эти слова совершенно справедливы, однако катахреза редуцирует сюжетный диалогический контекст, что нельзя сказать о нередко манерных эпитетах. Языковая материя доступна. Диахрония диссонирует резкий брахикаталектический стих, туда же попадает и еще недавно вызывавший безусловную симпатию гетевский Вертер. Женское окончание интегрирует механизм сочленений, таким образом в некоторых случаях образуются рефрены, кольцевые композиции, анафоры. Такое понимание синтагмы восходит к Ф.де Соссюру, при этом первое полустишие просветляет сюжетный метр, хотя по данному примеру нельзя судить об авторских оценках. Субъективное восприятие притягивает мелодический не-текст, первым образцом которого принято считать книгу А. Бертрана Гаспар из тьмы. Эстетическое воздействие приводит ямб, например, Борис Годунов А.С. Пушкина, Кому на Руси жить хорошо Н.А. Некрасова, Песня о Соколе М. Горького и др. Декодирование последовательно. Размер, без использования формальных признаков поэзии, притягивает прозаический голос персонажа, однако дальнейшее развитие приемов декодирования мы находим в работах академика В.Виноградова. Мифопорождающее текстовое устройство, несмотря на внешние воздействия, неумеренно притягивает реформаторский пафос, и это придает ему свое звучание, свой характер.",10,3,6,obj_athens,spr_crew01,spr_crew01_bg);
}
{63}{Не, я передумал.}{}{1}{}{1}{}


[/codebox]

And this one was also edited manually, but Editor sees it fine:

[codebox]
// [LABEL] NewPage0001
{1}{Капитан, у нас проблема. Сейчас взорвемся.}{Капитан, у нас проблема. Сейчас взорвемся.}{}{1}{}{}
{2}{Давайте поговорим об этом.}{}{1}{}{21}{alarm[2]=1;}
{3}{Не отвлекайте меня!}{}{1}{}{}{talking=0; alarm[3]=1; theme_already_discussed=1;}

// [LABEL] NewPage0002
{21}{Нам борт пробили. Все очень плохо. Экипаж хочет эвакуироваться, корабельная мартышка в панике.}{Нам борт пробили. Все очень плохо. Экипаж хочет эвакуироваться, корабельная мартышка в панике.}{}{2}{}{}
{22}{Спасибо. Я учту.}{}{1}{}{}{talking=0; theme_already_discussed=1; alarm[3]=1;}
[/codebox]

As I said, I can`t see any pattern :(

2) OK, # worked, but id doesn`t see ##. So I can`t have spaces between paragraphs.

Edited by Sithoid, 01 April 2008 - 02:13 PM.

  • 0

#32 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 01 April 2008 - 06:57 PM

2) OK, # worked, but id doesn`t see ##. So I can`t have spaces between paragraphs.

Type # #, not ## (use space between them).

For the 1., i will look into that.

edit: I can save and load all of those dlg's just fine...

Edited by HaRRiKiRi, 01 April 2008 - 07:01 PM.

  • 0

#33 Sithoid

Sithoid

    GMC Member

  • GMC Member
  • 121 posts

Posted 01 April 2008 - 07:13 PM

edit: I can save and load all of those dlg's just fine...

OK.. maybe it`s my personal Dialog Editor bug. Thanks, anyway. Right now I`m finally starting to import the story into my game, so I`m using your extension a lot :(
  • 0

#34 Snusen

Snusen

    GMC Member

  • New Member
  • 14 posts

Posted 05 May 2008 - 09:21 PM

This sound really awesome, i think its this kind of thing im looking for.

I posted a question about how to make a conversation box some days ago. http://gmc.yoyogames...howtopic=373656 .

This is exactley what im looking for, right?

The bad news is that the 1,2 version zip file is corrupt so i needed to downloa a earlier version. :ph34r:

Edited by Snusen, 05 May 2008 - 11:07 PM.

  • 0

#35 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 06 May 2008 - 12:23 PM

It should be what you are looking for.

Also, the link is fine for me. The file ain't corrupt or broken. You should redownload, because sometimes these things happen.
  • 0

#36 Snusen

Snusen

    GMC Member

  • New Member
  • 14 posts

Posted 06 May 2008 - 12:51 PM

It should be what you are looking for.

Also, the link is fine for me. The file ain't corrupt or broken. You should redownload, because sometimes these things happen.



Are you sure? i have tryed at least 5 times yesterday and now i tryed 2 times more, i still get the "Zip file is corrupted message" :ph34r:

Can anyone else also try to download the 1,2 version? and tell if it works for you. I would be very thankfull, for this is a extension i want so much.

If its just some bug i got on my computer its maybe posssible to upload the file to rapidshare.com ,, yes it sucks but its easy to upload stuff there;)

Edited by Snusen, 06 May 2008 - 01:18 PM.

  • 0

#37 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 08 May 2008 - 06:51 PM

Try this.
  • 0

#38 Robbi

Robbi

    GMC Member

  • New Member
  • 107 posts

Posted 21 June 2008 - 12:16 AM

is it possible to make pre-formatted text work? i was hoping to use this as a way of displaying a full help page (from a button on that start menu) and little help snippets through out the game. but i need to be able to use pre-formatted text. when i was playing with the editor i found it didn't allow me to use the enter key to force a new line, so i pulled up msword and typed a little tester blurb copy and pasted it in it all showed as i wanted in the editor, but that text window in game just flashed it for a second and then disappeared like there was to text at all. all my options (like so that you can red more or go back in the help document ect) all showed up fine but the actual explaining text didn't. personally i don't see why this would happen because it's just text, even if the formatting didn't show i would think that at the very least the text would, but i got nothing... granted i know very little so far as to how this works so maybe someone could explain why i can't do this.
  • 0

#39 HaRRiKiRi

HaRRiKiRi

    GMC Member

  • GMC Member
  • 1364 posts

Posted 21 June 2008 - 10:31 AM

You cam\t do this because its for DIALOGs with NPC's. Text formating doesn't work because it shouldn't. And how did your text looked exactly? The only thing you CAN do is passing a new line with # and thats about it. it hasn't been designed for more.
  • 0

#40 hiro-niro

hiro-niro

    GMC Member

  • New Member
  • 707 posts

Posted 21 June 2008 - 11:12 AM

Thanks for the broken link.
  • 0




0 user(s) are reading this topic

0 members, 0 guests, 0 anonymous users