Just some my random patches

Can you help improve your favourite game? Hardcore C mages, talented artists, and players with any level of experience are welcome!
Ignatus
Hardened
Posts: 200
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Just some my random patches

Postby Ignatus » Tue Aug 06, 2019 6:06 pm

Here I'll put some patches to 2.5 client (and maybe other Freeciv components) that I find useful. Sorry, they are chaotic tweaks of a thing tweaked before me (some old version of pneu's Longturn client) so they need some time to be worked around to fit to other builds (that's why they are not yet on HostedRedMine, and because the version Longturn is played now gets deprecated).

The first patch to put here is Lua tweaks:
* client unit selection manipulation (focus.iterate() etc.)
* find cities and players by string names;
* Unit.hp, Unit.moves_left /in move fragments/, Unit.veteran /integer/
* direction.name(Direction)
* Tile:coords(), Tile:map_coords() - just example functions returning two values
* City.supported_count, City:supported_iterate()

Another patch is an attemptto protect from misclicking cheap techs in tech tree when loss percent is not 100% without confirming that you want the tech now (already published in Discord).
Attachments
immetech-2_5.patch
(11.64 KiB) Downloaded 3 times
my-2.5-lt-lua.patch
(18.06 KiB) Downloaded 5 times
Last edited by Ignatus on Wed Aug 07, 2019 6:13 am, edited 1 time in total.

cgalik
Posts: 4
Joined: Sun Oct 08, 2017 12:40 pm

Re: Just some my random patches

Postby cgalik » Wed Aug 07, 2019 2:12 am

Cool! Thanks for sharing!