Search found 418 matches

by Lachu
Sun Jun 21, 2020 7:28 pm
Forum: Contribution
Topic: Compilation problems.
Replies: 3
Views: 118

Re: Compilation problems.

I have an question. Where could I find autogen/configure documentation? When calling ./autogen.sh --help, it not display help. I will compile lua in different directory and copy object files.
by Lachu
Fri Jun 19, 2020 5:14 pm
Forum: Contribution
Topic: Compilation problems.
Replies: 3
Views: 118

Re: Compilation problems.

OpenSUSE Tumbleweed

liblua5_3-5 | The Lua integration library

Above one is installed.

libluajit-5_1-2 | Library for JIT Lua compiler

Above one too.

But I don't have header installed and it isn't available in setup repositories.
by Lachu
Thu Jun 18, 2020 2:19 pm
Forum: Contribution
Topic: Compilation problems.
Replies: 3
Views: 118

Compilation problems.

I use debug flag for autogen. It's not my error, because on master the same error occur. Is the a way to suppress this single error? Compile this file with different autogen options set and copy an object file? Maybe better approach? CC lstring.lo In function ‘createstrobj’, inlined from ‘luaS_creat...
by Lachu
Wed Apr 15, 2020 9:42 am
Forum: Rulesets and modpacks
Topic: Player lost.
Replies: 3
Views: 358

Player lost.

How do player lost effect (in effects.ruleset file)? I need this, because I will demonstrate how counters will work (not yet introduced mechanism) in modified ruleset. Ruleset will be called environmentalism and have player lost effect. Player win in they emit smallest amount of CO2 to atmosphere an...
by Lachu
Tue Apr 14, 2020 7:55 pm
Forum: Rulesets and modpacks
Topic: Civ5 Ruleset and New Community Graphics+Sounds
Replies: 19
Views: 3015

Re: Civ5 Ruleset and New Community Graphics+Sounds

Hi.
Counters feature is nearly done. I don't send everything. I made progress with allowing environment win, when co2 emitted is bigger than some value and player emotion is lower.
by Lachu
Sat Mar 28, 2020 3:32 pm
Forum: Contribution
Topic: Difference between phase and turn?
Replies: 4
Views: 476

Re: Difference between phase and turn?

I thnik I understood now. Progress has mechanism to use lua signals as requirements of effect. It uses signals tables/linked list, put signal name with parameters once called and clear this list once new turn appear. But I think we need to count counter, when lua event being fired, not once effect a...
by Lachu
Sat Mar 28, 2020 9:32 am
Forum: Contribution
Topic: Difference between phase and turn?
Replies: 4
Views: 476

Re: Difference between phase and turn?

Ignatus wrote:May we call counters recalculation by the same function that invokes the corresponding Lua callback?

I don't known exactly, what you mean. I think for AI better is do not use LUA, but I known nothing about programming AI, so I don't known making AI understand counters is doable.
by Lachu
Fri Mar 27, 2020 10:25 am
Forum: Contribution
Topic: Difference between phase and turn?
Replies: 4
Views: 476

Difference between phase and turn?

I prepared player-related counters ;patch, so I could probably selects between phase or turn end code http://www.hostedredmine.com/issues/859061 But I need to add recalculation of world counters, when each player end moving, so I need to clarify difference between phase and turn, so calculations won...
by Lachu
Fri Mar 27, 2020 9:14 am
Forum: Rulesets and modpacks
Topic: Civ5 Ruleset and New Community Graphics+Sounds
Replies: 19
Views: 3015

Re: Civ5 Ruleset and New Community Graphics+Sounds

So I need also to implement other counter types (World, Units, Cities) and add a way to multiply effect value by counter value. Progress allows to multiply effect value by counter value. Mod vendor could use string vector in effect section. Each element of string vector represent counter/multipliers...
by Lachu
Thu Mar 26, 2020 5:27 pm
Forum: Rulesets and modpacks
Topic: Civ5 Ruleset and New Community Graphics+Sounds
Replies: 19
Views: 3015

Re: Civ5 Ruleset and New Community Graphics+Sounds

http://www.hostedredmine.com/issues/859061 It seems to works, but I need suggestions about code formatting/quality. I known, that in one place I should free memory after use, but I will repair this tomorrow. Today I wait for suggestions. Aha. I discovered, that my work related to progress covers onl...