Dialogue Question...

Grab your favourite IDE and tinker with the innards of game engines

Re: Dialogue Question...

Postby zombie@computer on Sat Dec 10, 2011 10:15 pm

the errors make it look like you forgot to include the "dialogShared.cpp" to the server project. The linker errors at least say the compiler cant find the code specified in that file.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Dialogue Question...

Postby Armageddon on Sat Dec 10, 2011 10:42 pm

Maybe I didn't set it up right, because it's not showing in the client or server projects.

Image

Someday I'm going to learn to code. :P
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Dialogue Question...

Postby Gary on Sat Dec 10, 2011 11:01 pm

Didn't you do the "Add existing file..." file thing?
Have a question related to modding or something I posted? Something that needs staff attention? I haven't been active lately, but feel free to PM me or message me on Steam(link below)

User avatar
Gary
Interlopers Staff
Interlopers Staff
 
Joined: Wed Dec 16, 2009 12:40 am
Location: USA, FL

Re: Dialogue Question...

Postby zombie@computer on Sat Dec 10, 2011 11:04 pm

Ok, i think you made a little mistake there :)

if you reference (#include) a file in c++, eg dialogshared.h, visual studio will go look for it; in your case, it will find it in game/shared, and compile it. This does not happen automatically for dialogshared.cpp (for a reason, yet difficult to explain). Rightclick your project in the solution explorer (left in your screen), 'add existing files', and select the files you need to add
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Dialogue Question...

Postby Armageddon on Sat Dec 10, 2011 11:12 pm

Well that was easy. Thanks!

EDIT: This is great, though I do wish there was a way to have them display their own text instead of playing a sound.

Image

EDIT EDIT: Okay so I did a little hack by removing the numbers and I put them in myself when you have an option you can choose and just leave it blank when I want the NPC to say something, it works fine. Though I do want to remove the little indent where the number used to be.
User avatar
Armageddon
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Sun Dec 14, 2008 5:53 am

Re: Dialogue Question...

Postby GodAndAirborne on Mon Dec 12, 2011 12:46 am

Gentlemen, as promised, my donation of $10 to Interlopers.net will be delivered shortly; this will be the first of three payments that'll culminate to a total of $60. I do have to ask, is there a donate link somewhere on site or should I just log-in to Paypal and make a payment from there? Again, you all have my thanks.

Joshua.
User avatar
GodAndAirborne
Member
Member
 
Joined: Mon Nov 28, 2011 11:17 pm

Re: Dialogue Question...

Postby zombie@computer on Mon Dec 12, 2011 11:48 am

Armageddon wrote:Well that was easy. Thanks!

EDIT: This is great, though I do wish there was a way to have them display their own text instead of playing a sound.

Image

EDIT EDIT: Okay so I did a little hack by removing the numbers and I put them in myself when you have an option you can choose and just leave it blank when I want the NPC to say something, it works fine. Though I do want to remove the little indent where the number used to be.

if you type 'vgui::surface()->' in the code editor (TYPE it, dont copypaste) then you are presented with all drawing functions you are ever going to need.

this part
Code: Select all
if (ResetHeight)
      {
         SetTall(20 + (fntTall * ActiveEntries.Count()));
         int x, y;
         GetPos(x,y);
         SetPos(x, GetParent()->GetTall() - GetTall());
         ResetHeight = false;
      }

Resizes (SetTall) the panel (for instance when options have been added) and positions it at the bottom (SetPos).

You can alter the code all you like, just make sure you alter the code that draws the highlight boxes as well if you are going to change dimensions as well as the code under OnMousePressed().


GodAndAirborne wrote:Gentlemen, as promised, my donation of $10 to Interlopers.net will be delivered shortly; this will be the first of three payments that'll culminate to a total of $60. I do have to ask, is there a donate link somewhere on site or should I just log-in to Paypal and make a payment from there? Again, you all have my thanks.

Joshua.

theres a paypall link on the frontpage.
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Dialogue Question...

Postby GodAndAirborne on Tue Dec 13, 2011 3:59 am

There should be $10.41 or 6.50GBP on its way. Guys, I do have one last question to ask you-- would it be possible to add a background image to the dialogue selection tree? For instance, in the Mass Effect games, there is a dialogue wheel.

http://images.wikia.com/masseffect/images/9/98/Conversation_Wheel_Pic.png

Is something like colored dialogue and a graphic workable?

Thanks.
User avatar
GodAndAirborne
Member
Member
 
Joined: Mon Nov 28, 2011 11:17 pm

Re: Dialogue Question...

Postby zombie@computer on Tue Dec 13, 2011 9:27 am

GodAndAirborne wrote:There should be $10.41 or 6.50GBP on its way. Guys, I do have one last question to ask you-- would it be possible to add a background image to the dialogue selection tree? For instance, in the Mass Effect games, there is a dialogue wheel.

http://images.wikia.com/masseffect/images/9/98/Conversation_Wheel_Pic.png

Is something like colored dialogue and a graphic workable?

Thanks.
Yeah, the dialogue panel supports full custom painting (colored/filled rectangles, ellipses text, custom textures)
When you are up to your neck in shit, keep your head up high
zombie@computer
Forum Goer Elite™
Forum Goer Elite™
 
Joined: Fri Dec 31, 2004 5:58 pm
Location: Lent, Netherlands

Re: Dialogue Question...

Postby GodAndAirborne on Tue Jul 10, 2012 7:02 pm

It's been awhile since I last posted here, and while I hate to bump such an ancient post, I did want to report that I will have the remainder of the $60 dollars paid up by the end of July. Even though it's been about 6-7 months, I hadn't forgotten our agreement. Finally, I wanted to thank everyone who contributed to this endeavor. Though I won't be finishing my story/Mod (...dabbling in film-making--which is an easier medium for storytelling), I would still like this code to be available to anyone who wishes to use it.

Thanks,
Joshua.
User avatar
GodAndAirborne
Member
Member
 
Joined: Mon Nov 28, 2011 11:17 pm
Previous

Return to Programming

Who is online

Users browsing this forum: No registered users