Currently Online

Latest Posts

Topic: News about AI

Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2017-08-01, 13:11

Latest AI branch was just merged into trunk, there are two significant changes:

  • AI now saves and load the AI genetic algorithm (~DNA) data to and from files
  • I did some long-games testing with hope to teach AI to behave better at longer games, because as also reported AI was too poor in late stages of game. It should behave better now, but this is something I want to focus in next turn (branch)

please, report any critical issues


Top Quote
Ex-Member
Avatar
Joined: 2014-09-12, 09:53
Posts: 184
Ranking
Widelands-Forum-Junkie
Posted at: 2017-08-02, 09:11

I get a build error trying to make 8410.

../../third_party/libthird_party_eris.a(loslib.c.o): In function os_tmpname': loslib.c:(.text+0x2ac): warning: the use oftmpnam' is dangerous, better use mkstemp' /usr/bin/ld: CMakeFiles/test_scripting.dir/scripting_test_main.cc.o: relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

repeated many times for different files then

/usr/bin/ld: final link failed: Nonrepresentable section on output collect2: error: ld returned 1 exit status make[2]: [src/scripting/test/CMakeFiles/test_scripting.dir/build.make:134: src/scripting/test/test_scripting] Error 1 make[1]: [CMakeFiles/Makefile2:29958: src/scripting/test/CMakeFiles/test_scripting.dir/all] Error 2 make: *** [Makefile:141: all] Error 2 ==> ERROR: A failure occurred in build(). Aborting...

This is using the AUR package for widelands-bzr on Archlinux which I always use. Did something change between 8401 and 8410?


Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2017-08-02, 10:35

I have no idea...


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 19:48
Posts: 2440
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-08-02, 18:08

Tinker, i just use the AUR package and it compiles fine here, no problems (except some known uncritical ones).

Please try to remove (rename) the build directory. The build directory is part of the directory 'src' (so src/build) in the directory where you run the makepkg command. After renaming try to run makepkg again. If this doesn't fix your issue, you may have to delete the directory 'widelands-bzr' and run over the whole process of downloading the PGKBUILD to create a clean build environment.

If you are using yaourt: Looks like using yaourt for managing packages from AUR does not work for widelands: See the comments in AUR widelands-bzr


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote
GunChleoc
Avatar
Joined: 2013-10-07, 14:56
Posts: 3324
Ranking
One Elder of Players
Location: RenderedRect
Posted at: 2017-08-03, 14:52

../../third_party/libthird_party_eris is a third-party library that we use. I always get the warning too, but only once. So, I don't think that the warning itself is the issue.

/usr/bin/ld: CMakeFiles/test_scripting.dir/scripting_test_main.cc.o: relocation R_X86_64_32 against.rodata.str1.1' can not be used when making a shared object; recompile with -fPIC

This looks like it might be an issue with the boild environment https://stackoverflow.com/questions/19364969/compilation-fails-with-relocation-r-x86-64-32-against-rodata-str1-8-can-not?rq=1


Busy indexing nil values

Top Quote
Ex-Member
Avatar
Joined: 2014-09-12, 09:53
Posts: 184
Ranking
Widelands-Forum-Junkie
Posted at: 2017-08-03, 15:26

I removed the build directory as suggested bt kaputtnik and it upgraded OK. Expect some test reports sometime soon. (tm)


Top Quote
hessenfarmer
Avatar
Joined: 2014-12-11, 22:16
Posts: 2650
Ranking
One Elder of Players
Location: Bavaria
Posted at: 2017-08-04, 22:55

hi just tried build 8409 and all scenarios with an opponent (means ai is needed) are crashing. see following part from stdout.txt.

SoundHandler: songset "ingame" does not exist!
ComputerPlayer(2): initializing as type 0
2: DNA initialization...
There's no configuration file, using default values.
Fatal exception: [C:\data\bzr\widelands\working\src\profile\profile.cc:559] in "" section [magic_numbers] not found
FATAL ERROR - game crashed. Attempting emergency save.
Game: Writing Preload Data ...


Top Quote
Tibor

Topic Opener
Joined: 2009-03-23, 22:24
Posts: 1377
Ranking
One Elder of Players
Location: Slovakia
Posted at: 2017-08-04, 23:06

oops, It fails to find ai_input_[1-4].wai files. They should be located in new folder: ai, in data dir, alongside with tribes, world, sound folders. Maybe problem with makefile

Also line "There's no configuration file, using default values." is bit unclear/misleading. I will have to remove it, but this is not reason of the crash of course...


Top Quote
Ex-Member
Avatar
Joined: 2014-09-12, 09:53
Posts: 184
Ranking
Widelands-Forum-Junkie
Posted at: 2017-08-05, 10:13

I get the same error, running the game adds a folder ai, but it is empty.


Top Quote
kaputtnik
Avatar
Joined: 2013-02-18, 19:48
Posts: 2440
OS: Archlinux
Version: current master
Ranking
One Elder of Players
Location: Germany
Posted at: 2017-08-05, 10:28

There should be 4 files in the data/ai -folder by default.

I have no such problems.

SoundHandler: songset "ingame" does not exist!

Never seen this.


Fight simulator for Widelands:
https://wide-fighter.netlify.app/

Top Quote