Search found 200 matches

by Lachu
Fri Sep 15, 2017 5:11 pm
Forum: Rulesets and modpacks
Topic: 2.6 plans and installing (was More diverse governments)
Replies: 10
Views: 133

Re: 2.6 plans and installing

I've properly created flatpak package of Progress game, so maybe it's good idea to create flatpak package of Freeciv-2.6?
by Lachu
Wed Sep 13, 2017 7:29 pm
Forum: Rulesets and modpacks
Topic: More diverse governments: social engineering Alpha Centauri style
Replies: 9
Views: 348

Re: More diverse governments: social engineering Alpha Centauri style

You can use binary policies, where policies have only two or three values (for example -1, 0 and 1).
by Lachu
Tue Aug 15, 2017 7:28 am
Forum: General discussion
Topic: Postęp game
Replies: 35
Views: 3152

Re: Postęp game

I introduced diplomacy points. Diplomacy points are used, when accepting diplomacy tready. Each clausule will costs some points for both side. Only Palace provides diplomacy points (10 points). I also introduces culture type. Diplomacy costs will be increased by difference of each culture type of tw...
by Lachu
Wed Aug 02, 2017 9:28 am
Forum: Rulesets and modpacks
Topic: [Requirement Vector] Another unit on the same tile
Replies: 0
Views: 316

[Requirement Vector] Another unit on the same tile

I wish to add possibility of checking scout unit are on the same tile to add move point bonus to units. It will be realistic. It there a way to handle this?

Maybe I will add check unit go to known terrain check in future.
by Lachu
Thu Jul 27, 2017 6:26 pm
Forum: General discussion
Topic: Postęp game
Replies: 35
Views: 3152

Re: Postęp game

I have done some changes in requirement vector handling. By now two new range are introduced: lua_event and OBJ(x), where X is a name of object given in type of lua_event requirement. Example could be very simple: reqs = { "type", "value", "range: "city_built(X)", ...
by Lachu
Mon Jul 24, 2017 5:19 pm
Forum: Tech support
Topic: [Scripting][Lua] Checking custom type of variable.
Replies: 2
Views: 181

Re: [Scripting][Lua] Checking custom type of variable.

Ok. I found solution for my problem, but never problem occurs. How to add a new universal(type in requirement list)?
by Lachu
Mon Jul 24, 2017 9:09 am
Forum: Tech support
Topic: [Scripting][Lua] Checking custom type of variable.
Replies: 2
Views: 181

[Scripting][Lua] Checking custom type of variable.

Is there possibility to check type of lua variable in lua or C code? Type in this case means City, Tech, Player, etc.
by Lachu
Sun Jul 23, 2017 5:24 pm
Forum: General discussion
Topic: Postęp game
Replies: 35
Views: 3152

Re: Postęp game

I have done problem described in previous post.

I now must asks: how to translate lua type onto type, which can be understood by requirements system? That's biggest problem I now have.
by Lachu
Sat Jul 22, 2017 3:45 pm
Forum: Gameplay
Topic: Tile bonus during atack
Replies: 4
Views: 1444

Re: Tile bonus during atack

Maybe archers should have attack bonus from hills/mountains? What do you think?
by Lachu
Fri Jul 21, 2017 4:01 pm
Forum: General discussion
Topic: Postęp game
Replies: 35
Views: 3152

Re: Postęp game

I have found this C function:

Code: Select all

void luascript_signal_callback(struct fc_lua *fcl, const char *signal_name,
                               const char *callback_name, bool create)

callback struct have only name field and I don't know, how to attach custom C function to lua.