Ihnatus branch for 2.6 Longturn server/client

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

Re: Ihnatus branch for 2.6 Longturn server/client

Post by Ignatus »

Minor client fixes: addded Tile:center() as alias to client.center(Tile), made City:is_(un)happy working in client (in the standard branch, work for your home cities only).
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Ihnatus branch for 2.6 Longturn server/client

Post by Ignatus »

Minor server fix: on this server unit can be given an order for mine- and irrigate-transform. The patch is suggested for mainstream 2.6.3 at HRM but no warranty it works on the server you play on.
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Ihnatus branch for 2.6 Longturn server/client

Post by Ignatus »

Some recent patches:
  • City.worker_tasks - a sequence of tables {tile = (Tile), act = (activity rule name), tgt = (extra name), want = 100} representing autosettlers' tasks set for the city.
  • Clients do not collapse from botched chat messages, worker tasks or unit activities (such things are sometimes produced by standard 2.6 2 clients as well as some experimental servers).
  • You can attack a transporting vessel from aboard of another one if your unit is capable of it (standard clients used to have troubles with it trying to board enemy vessel instead).
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Ihnatus branch for 2.6 Longturn server/client

Post by Ignatus »

Recent patches:
  • Tile:has_extra(name) now supports also resource names (like it can do in v.3.0)
  • Qt client: Trade planning fixed (as it is in v.2.6.2.1)
  • some other minor corrections, was short of time
An example client Lua module is attached that was actually used in LT54 game. Its functionality:
  • All catchable signals are printed to the chat log (not sent to other users). That includes unit movement, appearing/disappearing and full combat info (enemy type, ID, old/new veteranship/health)... On reconnecting a game it prints almost everything present on the gameboard.
  • airlifts() - prints to Lua console links on your cities where you have spare airlifts (remark: in Gtk clients links from Lua console are green on the map only since you click them)
  • focus_w() - sends all selected units a command to wait full move points (i.e., stop attracting focus until the next turn)
  • res_not_on(res_name, ter_name) - links in the chat log all the tiles where resource res_name (e.g. "Resources") is not on a terrain of type ter_name (e.g. "Grassland"), so you can see where climatic messup has moved the resources on a terrain where they are unavailable (e.g. swamps).
Attachments
lt2_6.zip
(1.25 KiB) Downloaded 201 times
Ignatus
Elite
Posts: 644
Joined: Mon Nov 06, 2017 12:05 pm
Location: St.Petersburg, Russia
Contact:

Re: Ihnatus branch for 2.6 Longturn server/client

Post by Ignatus »

A fix for AI fighters was added! Now AI players launch fighters and do not lose them so stupidly. Also, some support is made for long-ranged aviation but it needs better testing.
Now AI considers the ability of units to fortify calculating wants for city defenders. Now AI produces much less fighters.
Also, in civ2 ruleset aviation was enabled.
Post Reply