BoredRusher Posted October 19, 2020 Report Share Posted October 19, 2020 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 5 Quote Link to comment Share on other sites More sharing options...
bb_ Posted October 20, 2020 Report Share Posted October 20, 2020 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. Quote Link to comment Share on other sites More sharing options...
badosu Posted October 20, 2020 Report Share Posted October 20, 2020 Omg, where's shrug? ¯\_(ツ)_/¯ Quote Link to comment Share on other sites More sharing options...
BoredRusher Posted October 20, 2020 Author Report Share Posted October 20, 2020 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 ! Quote Link to comment Share on other sites More sharing options...
BoredRusher Posted October 20, 2020 Author Report Share Posted October 20, 2020 3 hours ago, badosu said: Omg, where's shrug? ¯\_(ツ)_/¯ Haha, that kind guy is coming soon 2 Quote Link to comment Share on other sites More sharing options...
BoredRusher Posted December 25, 2020 Author Report Share Posted December 25, 2020 (edited) 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 December 25, 2020 by BoredRusher Bad english :) Quote Link to comment Share on other sites More sharing options...
bb_ Posted December 25, 2020 Report Share Posted December 25, 2020 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). 1 Quote Link to comment Share on other sites More sharing options...
nani Posted December 26, 2020 Report Share Posted December 26, 2020 @BoredRusher if you want to know all the 0ad Engine functions definitions you can search them in my autociv mod (forum one), inside I have made a list of all the Engine functions with definitions and type info (a23) they are stored in files ending with d.ts Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.