Search found 324 matches

by nef
Tue May 16, 2023 7:11 am
Forum: Contribution
Topic: SP Lua utilities
Replies: 8
Views: 8240

Re: SP Lua utilities

STOLEN. The first type 4 utility I have for you is 'stolen'. Civ I keeps TWO lists of cities that have had a tech stolen by a diplomat. Those that involve the human player as victim (and perpetrator?) Those that involve all players. The reason for the first list is that these are the only cities tha...
by nef
Tue May 16, 2023 7:07 am
Forum: Contribution
Topic: SP Lua utilities
Replies: 8
Views: 8240

Re: SP Lua utilities

Type 4 utilities that use tables require additional support: continuity.txt This support module could be loaded manually, but since type 4 utilities should only be run in the server the recommendation is to place this module in an autoscript. If this is done no other support modules are required (in...
by nef
Tue May 16, 2023 6:55 am
Forum: Wishlist
Topic: Relations syntax
Replies: 3
Views: 3868

Re: Relations syntax

MapDist, RealMapDist, DistSq (Tile) To e.g. unhardcode minimal trading distance. This would be an opportunity to implement parametric metrics . I have never liked presumptive names like RealMapDist. There is no such thing as a "real map distance". It is ALWAYS a matter of what metric you ...
by nef
Tue May 16, 2023 6:35 am
Forum: Wishlist
Topic: Cycle through all units of the same type, every where.
Replies: 7
Views: 5472

Re: Cycle through all units of the same type, every where.

Just wondering about ... Would it be possible to have a LUA script that will _hotlink/box/frame_ all units of one type in every spot of the map? That would already help much tracking down 'lost' units when one just 'scrolls' around on the map view. I will add this to my list of SP utilities: I am a...
by nef
Tue Apr 25, 2023 7:09 am
Forum: General discussion
Topic: Your Battleship was bribed
Replies: 8
Views: 7530

Re: Your Battleship was bribed

In civ1 (fc.6) I bribe barb units all the time. Especially helpful if all I have left in a city is a diplomat.
by nef
Tue Mar 07, 2023 5:40 am
Forum: Contribution
Topic: Developer's request for comment: direct railway path
Replies: 7
Views: 5090

Re: Developer's request for comment: direct railway path

Below is the demo for the pathfinder. I used this opportunity to 'refresh' both the pathfinder and the project that uses it. The principal changes I made to the pathfinder were: A minor improvement in performance for applications like the demo (but not my project). The use of a coroutine to make it ...
by nef
Tue Feb 28, 2023 7:37 am
Forum: Contribution
Topic: SP Lua utilities
Replies: 8
Views: 8240

Re: SP Lua utilities

3. Extended. Currently just two utilities in this class: home. This utility can be used for two purposes: When provided with a unit, it will identify the home city. When provided with a city, it will list all owned units. The list will provide featured text 'hot links' to those units not in the city...
by nef
Tue Feb 28, 2023 6:41 am
Forum: Single player
Topic: Technology: how do I keep up with AI?
Replies: 22
Views: 74654

Re: Technology: how do I keep up with AI?

Some feedback about civ2civ3 ruleset! (I don't know if bard is around any more, but already some years ago he was unhappy that there has been no feedback, to guide the development, all that time that the ruleset has been available - at least since freeciv-2.5) I know it was only a one sentence of f...
by nef
Tue Feb 21, 2023 8:01 am
Forum: Contribution
Topic: SP Lua utilities
Replies: 8
Views: 8240

Re: SP Lua utilities

There are two modules required for type 2 utilities. These are: FEATURED_TEXT. This module contains the functions used to prepare featured text and includes: bbcode which can be used for the simple 'buis' formatting (bold, underline, italic, strike) color to provide colored text and/or colored backg...
by nef
Tue Feb 21, 2023 7:17 am
Forum: Contribution
Topic: SP Lua utilities
Replies: 8
Views: 8240

Re: SP Lua utilities

The discussion over featured text has led to a number of developments in my SP utilities. First you may recall that I was preparing three functions for use by Lua scribes, two of which I published. Some changes have accrued since then: The link function has been split into two due to the next change...