Client Dialog

Content and general development discussion, including quest scripts and server code. TMW Classic is a project comprising the Legacy tmwAthena server & the designated improved engine server based on evolHercules.


Forum rules

This forum houses many years of development, tracing back to some of the earliest posts that exist on the board.

Its current use is for the continued development of the server and game it has always served: TMW Classic.

Post Reply

Anime Faces or Pixel Faces?

Anime Face
16
26%
Pixel Face
37
61%
Doesn't Matter
8
13%
 
Total votes: 61
User avatar
Korcha
Novice
Novice
Posts: 96
Joined: 08 Oct 2006, 13:35
Location: Sinkhole Prone Pennsylvania, USA

Re: Client Dialog

Post by Korcha »

D-d-d-d-d-double post!
Mind the sloppiness, I'm feeling blah today. Ya know, one of those delightful days where you feel like doing absolutely nothing?
Yeah well, I'm having one of those..
Image

Chicka, I'm going to need 7 more npc's in order to continue. I have unofficially ran out, of orders. Also, before I head out, please give me an in depth description for Alan & Phaet so I can finally start on Alan, and for the love of all things, are the twins wearing helmets!? Looks like it unless my eyes are deceiving me..
The most active, unofficial, TMW Pixel Artist
TMW contributor? Have a vision but lack the art? In need of assistance? What the fudge are you waiting for! Drop me a PM, bro!
GPL and CC-BY-SA approved, use what you will as long as credit is given.

Image
User avatar
Chicka-Maria
TMW Adviser
TMW Adviser
Posts: 1562
Joined: 19 Feb 2010, 02:10
Location: Internet

Re: Client Dialog

Post by Chicka-Maria »

Sure thing korcha, Ill send you more in a pm soon. Once again your work looks great :)

regards,
Chicka
Yubaba
TMWC Member of The Mana World
Leader of The Mana Empire (TME)
[19:41] Ladysugar: he told me to push a setzer up his rear
www.deviantart.com/comfycheeks - Old Deviant Art
William James wrote:Act as If what you do make's a difference, because It does.
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: Client Dialog

Post by 4144 »

May be now time to test it in client?
Because i think after anyway will be need some changes.

Sorry i not created wiki pages for this.
I will try explain in short here.

In avatar box manaplus can show any npc with default direction (even animated).
This mean to add avatar to normal npc, need create additional npc what will show only avatar image without any other sprites (In file npcs.xml) after need remember id of created pseudo npc.

And final step to npc where you want show avatar add attribute atavat="ID". where ID is remembered id of newly added npc.

Example with non avatars npc (from file npcs.xml)
Was:

Code: Select all

...
  <!-- Dyer -->
  <npc id="326">
    <sprite>npcs/npc-dyer.xml</sprite>
  </npc>
...
Replace to

Code: Select all

...
  <!-- Dyer -->
  <npc id="326" avatar="302">
    <sprite>npcs/npc-dyer.xml</sprite>
  </npc>
...
After apply this, if i used correct id (without testing in game i not sure) if start dialog with selim, he will show avatar with shop keeper
User avatar
Jenalya
TMW Adviser
TMW Adviser
Posts: 717
Joined: 22 Sep 2010, 19:28

Re: Client Dialog

Post by Jenalya »

4144 wrote: In avatar box manaplus can show any npc with default direction (even animated).
This mean to add avatar to normal npc, need create additional npc what will show only avatar image without any other sprites (In file npcs.xml) after need remember id of created pseudo npc.
Why is it needed to define an extra npc? Couldn't there be a node called e.g. "avatar" within an npc node where the path to the avatar graphic is given?

However, I tried out what you described (using an existing NPC sprite, not the new avatars):
ManaPlus_Screenshot_3.png
ManaPlus_Screenshot_3.png (116.32 KiB) Viewed 3281 times
User avatar
Chicka-Maria
TMW Adviser
TMW Adviser
Posts: 1562
Joined: 19 Feb 2010, 02:10
Location: Internet

Re: Client Dialog

Post by Chicka-Maria »

Jenalya wrote:
4144 wrote: In avatar box manaplus can show any npc with default direction (even animated).
This mean to add avatar to normal npc, need create additional npc what will show only avatar image without any other sprites (In file npcs.xml) after need remember id of created pseudo npc.
Why is it needed to define an extra npc? Couldn't there be a node called e.g. "avatar" within an npc node where the path to the avatar graphic is given?

However, I tried out what you described (using an existing NPC sprite, not the new avatars):
ManaPlus_Screenshot_3.png
Wow it looks great, i noticed there is some space left over as well...korcha maybe can possibly widen the frames? That way there can be a little more details of the npcs added. What do you think korcha?

regards,
Yubaba
TMWC Member of The Mana World
Leader of The Mana Empire (TME)
[19:41] Ladysugar: he told me to push a setzer up his rear
www.deviantart.com/comfycheeks - Old Deviant Art
William James wrote:Act as If what you do make's a difference, because It does.
Ablu
Manasource
Manasource
Posts: 288
Joined: 23 Jul 2011, 08:31
Location: Germany

Re: Client Dialog

Post by Ablu »

This white frame around looks really odd to me. And abusing npc definitions as npc display sounds a bit odd to me too.

Regards
Ablu
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: Client Dialog

Post by 4144 »

Jenalya wrote:
4144 wrote: In avatar box manaplus can show any npc with default direction (even animated).
This mean to add avatar to normal npc, need create additional npc what will show only avatar image without any other sprites (In file npcs.xml) after need remember id of created pseudo npc.
Why is it needed to define an extra npc? Couldn't there be a node called e.g. "avatar" within an npc node where the path to the avatar graphic is given?
Full npc need because it can be more than one xml or png file.
With server support it also support animation/rotation/sit/die etc.
Also some times may be need use normal npc image.
Because this i dont see why need duplicate xml defenition for almost same object.
4144
Knight
Knight
Posts: 965
Joined: 03 Aug 2009, 11:57

Re: Client Dialog

Post by 4144 »

Ablu wrote:This white frame around looks really odd to me. And abusing npc definitions as npc display sounds a bit odd to me too.

Regards
Ablu
This is "playerbox" object by default in this theme it have white background.
I can disable this background permanently for npc dialogs. or may be better add theme option.

But what it should be in npc dialog and default theme? with or without background?
User avatar
Korcha
Novice
Novice
Posts: 96
Joined: 08 Oct 2006, 13:35
Location: Sinkhole Prone Pennsylvania, USA

Re: Client Dialog

Post by Korcha »

The portraits where designed the way they are as a work-around for the size restriction, and now that the restriction is no longer in place, they don't need to be either.. Wish I wasn't left in the dark, though it appears I am not the only one that is. I'm not mad or anything, just a tad bit disappointed. Could've saved time & effort (and hair), not to mention we'd be at the half way mark by now.

Whining aside, I'll start work on converting their sizes (yet again) today and I'll have them all ready (excluding the new set) by tomorrow night. My timezone of course. But before that, I want to give you an extra option, Chicka. Do you still want the current one-sided style or opt for the originals that brought me here? They too can also be re-sized with minimal sacrifice now that there's plenty of wiggle room to work with. My only request is that everyone's in the loop with this, I don't wanna be that guy that finds out when he's 75% finished that "whoops, the portraits need to be bigger/smaller".

To make that choice a little bit easier, I prepared an example!
Image

So yeah, your call. Let's make this one final so I can eventually work on something else.
The most active, unofficial, TMW Pixel Artist
TMW contributor? Have a vision but lack the art? In need of assistance? What the fudge are you waiting for! Drop me a PM, bro!
GPL and CC-BY-SA approved, use what you will as long as credit is given.

Image
User avatar
Chicka-Maria
TMW Adviser
TMW Adviser
Posts: 1562
Joined: 19 Feb 2010, 02:10
Location: Internet

Re: Client Dialog

Post by Chicka-Maria »

Korcha wrote:The portraits where designed the way they are as a work-around for the size restriction, and now that the restriction is no longer in place, they don't need to be either.. Wish I wasn't left in the dark, though it appears I am not the only one that is. I'm not mad or anything, just a tad bit disappointed. Could've saved time & effort (and hair), not to mention we'd be at the half way mark by now.

Whining aside, I'll start work on converting their sizes (yet again) today and I'll have them all ready (excluding the new set) by tomorrow night. My timezone of course. But before that, I want to give you an extra option, Chicka. Do you still want the current one-sided style or opt for the originals that brought me here? They too can also be re-sized with minimal sacrifice now that there's plenty of wiggle room to work with. My only request is that everyone's in the loop with this, I don't wanna be that guy that finds out when he's 75% finished that "whoops, the portraits need to be bigger/smaller".

To make that choice a little bit easier, I prepared an example!
Image

So yeah, your call. Let's make this one final so I can eventually work on something else.

Sorry you feel you were left in the dark Korcha I also had no idea about the sizing or else i would have told you sooner, I believe the style you started out with before might be a bit better than the ones you recently made..so try to re size the older ones?

Thanks a lot for your patience and hard work.

Once your finished with the lining maybe i can give the coloring a try.

regards,
Chicka
Last edited by Chicka-Maria on 08 Feb 2013, 09:22, edited 1 time in total.
Yubaba
TMWC Member of The Mana World
Leader of The Mana Empire (TME)
[19:41] Ladysugar: he told me to push a setzer up his rear
www.deviantart.com/comfycheeks - Old Deviant Art
William James wrote:Act as If what you do make's a difference, because It does.
User avatar
Jenalya
TMW Adviser
TMW Adviser
Posts: 717
Joined: 22 Sep 2010, 19:28

Re: Client Dialog

Post by Jenalya »

Korcha wrote:Do you still want the current one-sided style or opt for the originals that brought me here? [...]
To make that choice a little bit easier, I prepared an example!
Image
I like the ones where the entire face is visible much better than those with only half the face.
User avatar
Crush
TMW Adviser
TMW Adviser
Posts: 8046
Joined: 25 Aug 2005, 16:08
Location: Germany

Re: Client Dialog

Post by Crush »

I would implement this through "magic strings" in the dialog texts. Like when the string <<Portrait:images/npc/girl-happy.png>> occurs in a NPC text, the client omits this from the output and loads the according image. That would allow to change the portrait during the dialog to show different facial expressions.

Drawback: This wouldn't be backward-compatible. Older clients would show the magic string to the user.
  • former Manasource Programmer
  • former TMW Pixel artist
  • NOT a game master

Please do not send me any inquiries regarding player accounts on TMW.


You might have heard a certain rumor about me. This rumor is completely false. You might also have heard the other rumor about me. This rumor is 100% accurate.
User avatar
Korcha
Novice
Novice
Posts: 96
Joined: 08 Oct 2006, 13:35
Location: Sinkhole Prone Pennsylvania, USA

Re: Client Dialog

Post by Korcha »

Hate to say it but I'm going to have to postpone work for today. Not to say I didn't get any work done, oh no far from it! I just wasn't able to churn out any significant. It just has been a real stressful day for me. I guess what I'm saying is; I'm not in the mood.
Yeah, that's it!

The good news is - well it should be, tomorrow's a brand new day! So who knows, I may feel 100x better....or worse! Regardless of whichever mood I'll evidently end up with, everything will be up and ready by tomorrow. Scouts honor!
The most active, unofficial, TMW Pixel Artist
TMW contributor? Have a vision but lack the art? In need of assistance? What the fudge are you waiting for! Drop me a PM, bro!
GPL and CC-BY-SA approved, use what you will as long as credit is given.

Image
User avatar
Korcha
Novice
Novice
Posts: 96
Joined: 08 Oct 2006, 13:35
Location: Sinkhole Prone Pennsylvania, USA

Re: Client Dialog

Post by Korcha »

Didn't have a lot of time allotted today, so I had to rush a bit. Here they are in their jaggi glory:
Image

Making new portraits for Alan and Phaet, that's why they're missing.
The most active, unofficial, TMW Pixel Artist
TMW contributor? Have a vision but lack the art? In need of assistance? What the fudge are you waiting for! Drop me a PM, bro!
GPL and CC-BY-SA approved, use what you will as long as credit is given.

Image
User avatar
o11c
Grand Knight
Grand Knight
Posts: 2262
Joined: 20 Feb 2011, 21:09
Location: ^ ^

Re: Client Dialog

Post by o11c »

Crush wrote:I would implement this through "magic strings" in the dialog texts. Like when the string <<Portrait:images/npc/girl-happy.png>> occurs in a NPC text, the client omits this from the output and loads the according image. That would allow to change the portrait during the dialog to show different facial expressions.

Drawback: This wouldn't be backward-compatible. Older clients would show the magic string to the user.
Hm, what does the client do if it receives an embedded NUL before the end of the packet?
Former programmer for the TMWA server.
Post Reply