Jump to content

AsciimojisFor0ad


Recommended Posts

Hello !

I have recently written a very little mod which provides asciimojis for 0ad chats, and I found it good to share it :)

The mod can be found on github at https://github.com/Atepir/AsciimojisFor0ad (please follow this link to get the latest versions) or here as attachment.

All the download, installation and usage instructions and implications can be found on my github repo https://github.com/Atepir/AsciimojisFor0ad.

If you have suggestions, I would be happy to improve the mod :)

Kind regards,

mod.zip

  • Like 5
Link to comment
Share on other sites

Nice work!! If you are interested, we could make this part of the vanilla game. Feel free to submit a patch at code.wildfiregames.com. Some comments on your code: you seem to duplicate some lists, it would be nice to reduce that duplication (also it would be nice to unduplicate some of the chat handling of the vanilla). Maybe one can use (exerts from) https://github.com/hpcodecraft/ASCIImoji somehow? Especially the dictionary in https://github.com/hpcodecraft/ASCIImoji/blob/master/src/asciimoji.js seems useful.

Link to comment
Share on other sites

6 hours ago, bb_ said:

Nice work!! If you are interested, we could make this part of the vanilla game. Feel free to submit a patch at code.wildfiregames.com. Some comments on your code: you seem to duplicate some lists, it would be nice to reduce that duplication (also it would be nice to unduplicate some of the chat handling of the vanilla). Maybe one can use (exerts from) https://github.com/hpcodecraft/ASCIImoji somehow? Especially the dictionary in https://github.com/hpcodecraft/ASCIImoji/blob/master/src/asciimoji.js seems useful.

Ohh interesting !

Yes the code is not clean yet, I will follow your suggestions and do all these optimisations very soon.

For the merge to vanilla, it would really be nice but the code need to be nicer first in my opinion.

As I have already said, I will try to do the needed improvements and come to you very soon :)

In addition, this dictionary is really awsome to perform the mod ! I will take a look !

Thanks and cya !

 

Link to comment
Share on other sites

  • 2 months later...

Hi, I was pretty busy that last times.

 

@bb_ I have token a look  at the asciimoji.js.

I have token its minify and performed the mod with it (and yes, it was much easier and performant !).

But I got a problem as I am editing many folders and didn't wanted to replicate asciimoji.min.js.

First I have tried to make a module by exporting the asciimoji function but 0ad warned me about the fact that modules aren't implemented yet.

Then, I have seen that the game (particularly the mods) are using some global functions (I guess defined in the engine or a in a specific folder maybe ?) but didn't found my way.

In addition, I have seen (while performing Common Bot) that there is also a kind of intern modules definitions or declarations I don't know...

If you can take a look to that and tell me the way to follow, it would be nice !

Greetings :)

Edited by BoredRusher
Bad english :)
Link to comment
Share on other sites

Global function? You mean any call that starts with "Engine". Those are the cpp interface function, defined in the various interface files. The cpp files are in the source directory of the game (at least if you have downloaded the source, I hope you would work on top of the svn/dev version, see https://trac.wildfiregames.com/wiki/BuildInstructions). Any other global function could be in the globalscripts (grepping is usually a good idea).

  • Like 1
Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

×
×
  • Create New...