Topic: scenario AI
Tibor |
Posted at: 2017-03-31, 08:49
@kaputtnik Videos look great!!! Top Quote |
SirVer |
Posted at: 2017-03-31, 11:44
The random one looks amazing! But it should probably be faster and not depend on the size of the area being revealed - i.e. constant time. It looks really awesome though! Top Quote |
kaputtnik |
Posted at: 2017-03-31, 19:56
Thanks For the curtain: I think it would be nice to have lua acces to the state where a field is 'half' hidden. I guess it's the state 'seen' but hidden (no military or other thing has sight to it). This state appears for example if a military building on the border is dismantled. Having access to it (set/reveal it) would make the curtain much smoother. Anyway my code to extract rows seems not to work correct. I have adjusted the random hide/reveal to make it dependent of time and number of fields. That looks better Current code looks like this (for reveal):
I am unsure about the table rand_tbl. Prior i used reveal_fields() directly in the loop with random, like here for random_hide() (call of hide_fields() instead of reveal_fields()):
I guessed that removing a value from a Lua table is much time consuming, because the remaining values have to be shifted. The time used for shifting may has to be added to the time for sleep(). Don't know if this could be measured... in some small tests i can't see any noticeable difference, if an extra table is used or not. Any hints? Fight simulator for Widelands: |
kaputtnik |
Posted at: 2017-04-02, 21:29
Here is another one: Code:
Fight simulator for Widelands: |
GunChleoc |
Posted at: 2017-04-03, 10:20
Extra sleep time needed for shifting the table is probably below 1ms, so I'd say we don't need to do anything for that. The concentric is better for the timing, but the random looks prettier... decisions, decisions. Maybe random for a maximum radius, followed by concentric? I definitely like concentric better than curtain. As to the new function needed, please add it to the bug. It will be a few weeks until I can resume programming. Busy indexing nil values Top Quote |
hessenfarmer Topic Opener |
Posted at: 2017-04-05, 21:07
Hi everybody,
I just uploaded latest revision of my branch 8342 containing following changes From my side I consider the scenario mature now as I tested it with all of the changes and it worked very well and nicely balanced even for a not so experienced player. Only exception is the english wording of my texts. @ widelands-dev: after Tinker has done the proofreading of the texts I will upload the texts.lua again and then I'd like to propose it for merging best regards hessenfarmer Top Quote |
kaputtnik |
Posted at: 2017-04-06, 06:56
I am preparing a branch for those functions and put them into a global file to be able to use the animations also in other campaigns. The branch misses the changes to other campaigns yet.
Yes, will do. I am very busy with normal work, so i have less time for widelands these days... it may take some time to make the changes. Fight simulator for Widelands: |
Ex-Member |
Posted at: 2017-04-06, 10:43
I cannot find the d/l all I see is emp03.wmf.old and I have no idea what you are talking about with appveyor, it seems to be something to do with windows installs which are of no use to me, I have r8329 widelands. Top Quote |
GunChleoc |
Posted at: 2017-04-06, 15:48
Which operating system do you have? I could also do the first proofreading round and merge into trunk. You could do your proofreading on the trunk version then, and we can hold off on adding the translations to Transifex until you're done. Busy indexing nil values Top Quote |
Ex-Member |
Posted at: 2017-04-06, 17:43
I use arch linux but I also have a transifex account so I can do real English (not american) and nederland translations. Top Quote |