CMA in Freeciv-web
andreasrosdal opened this issue · 11 comments
Implement CMA in Freeciv-web.
https://github.com/Lexxie9952/fcw.org-server/blob/dev/freeciv-web/src/main/webapp/javascript/cma.js
@cazfi Can you please help implement support for CMA for Freeciv-web in the Freeciv C server?
What are you missing? I haven't tested server-side CMA much.
The server side changes in this needs to be cleaned up and included in the Freeciv C server:
Lexxie9952/fcw.org-server@caf342e#diff-084184354ca98a010578f7d996d79bfbca0509e9a889e1e69535bc65e2bf1d79
That commit seems to be mostly about backporting server-side CMA + completely unrelated changes.
Some of those network protocol parts have been dropped from freeciv since, as nobody was using them. Maybe we need to put them back.
First server side change -> https://osdn.net/projects/freeciv/ticket/45268
Yes, Freeciv-web needs a server side CMA. It should be fast and have a very simple API in the normal network packets system. If you will please add server side CMA to the Freeciv C server, then I can implement in Freeciv-web.
The latter part is coming in -> https://osdn.net/projects/freeciv/ticket/45485
Most probably I can implement it before the end of week.
Very nice! Also: www.fciv.net has been updated to the same version as freeciv/freeciv-web - so these are both compatible and running the latest Freeciv C server.
The latter part is coming in -> https://osdn.net/projects/freeciv/ticket/45485
The difference in the implementation there compared to one you linked is that I went for separate packets for setting cm parameter and clearing it, to avoid sending some dummy parameter data when one is about to remove the parameter.
Do you have anything on the web-client side to share (make a PR about)?
Here's a simple CMA for FCIV.NET
fciv-net/fciv-net@e2da9ce
This could be modified to be usable in Freeciv-web.
Thanks. Started working on a port.