View Full Version: Chat Windows Mod

DimensioneX Forum > Developers' Pub > Chat Windows Mod



Title: Chat Windows Mod


cotteux - October 22, 2007 06:13 PM (GMT)
Hi


I'm working on a modification of my chat box.

I just want to know how remove the x and a voice ...

i know how to modify the quote "a voice ..." in the message system but i can't remove it with a blank.

I search in client.script and i find nothing.

I try to put the chat system on a cellphone but everytime a message enter, they take 1 line for the x, one line a voice ... and the la line for the message.

I just want one ligne and a short one because the screen of cellphone a little.

thanks

Cotteux

Cris - October 22, 2007 06:45 PM (GMT)
it'snot clear to me what you're doing, perhaps a link to a working demo might give some hint...

however: the name of the system voice "a voice" is in the messages_xxx.properties file you're using. this one can be customised.

The x for erasing the message can't be customised (perhaps you can change the font/look of the link by using the skin and CSS, but I'm not sure.
You can do of course by modifying the gam engine.


Also consider other systems: the new Hooks feature let you generate a dynamic HTML page that you can use for any purpose


cotteux - October 22, 2007 08:21 PM (GMT)

I Cris



I change the messages_xxx.properties file and remove the msg011=a voice ... but the the quote a voice is speak again. Only way is replace msg011=- and that speak - but i want to remove the the quote not replace it.


The x for erasing the message is necessairy to remove this for my engine.

To see my prototype, I send you the link directly.

You need to use Opera mini for cell phone.

Cris - October 23, 2007 08:50 AM (GMT)
I see, it seems you're after developing a game designed for mobile users.

The first problem you seem to have here is that you are mis-using the game engine.

You have a TALK button that makes the system voice to speak "Cris says: (text)". Pretty complicated.

why don't you use it simple and directly make the person speak?

So instead of using something like

Speak SYS,$WORLD,$AGENT.name + " -> " + input("txtBox")

Which produces

A voice.. | Cris -> Hello!

(This complicated solution makes you want to remove the System voice's name "A voice..." from the chat box...)

Do use instead:

Speak $AGENT,input("txtBox")

That produces:

Cris | Hello!

It's plain simple, and doesnt involve the System voice at all.

Conclusion: Creativity is Ok, but when serching for a solution, the simpler is the the better!



Second problem you have here: DimX unfortunately uses frames, which are badly handled by a cellphone.
This is a very sad situation. Once upon a time, DimensioneX was producing output in a single HTML page that was refreshing every time.
Then we got tired by the continuous refresh and changed this solution to another one using frames, that saves bandwidth and time but is bad for cellphones.

Nowadays I use the cellphone to check how many people are connected to Underworld:

http://www.gamesclan.it/dimx/servlet/multi...format=extended

This output is actually a single HTML page. Unfortunately I cannot log in and play nowadays.
I tried with Opera Mini, but it is a pain.

I learned how to use CSS and AJAX, today it would be possible to completely rewrite the client part so that it fits in a single HTML page that could be good either for browsers or for cellphones.

Probably the best solution would be to have a separate way to display the content for cellphones.

Whatever system we think of, it takes time and it is exactly what I'm missing now so perhaps somebody which is reading and working on DimX for academic purposes can take the challenge and work on it.

Also, you can try implementing an entire game using dynamic pages implemented with the new HOOKS feature, but I think at this point you would better use a normal, dynamic PHP script on a plain standard Apache Server!

I'm sorry for I seem not be helping so much...

I think at the moment DimX is not the best technology to implement a mobile game... perhaps it will do in the future.

Thanks for posting anyway!




Hosted for free by InvisionFree