Git Product home page Git Product logo

Comments (17)

tico-tico avatar tico-tico commented on July 26, 2024

Check this experimental WIP branch https://github.com/tico-tico/Rodent_III/tree/relative_paths .

Now on linux you MUST set BOOKSPATH and PERSONALITIESPATH.
basic.ini lives in PERSONALITIESPATH. Paths of personalities are relative to PERSONALITIESPATH (or absolute).
Paths of books are relative to BOOKSPATH (or absolute).

I can't properly test it on Linux 'coz I don't use Linux myself. I have Arch on VirtualBox and the only thing i can say to you is "it can be compiled".

Changing of Makefile is on you too, linux dudes and dudettes.

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

but your update of makefile is not included :-) ...So, it doesnt compile at first place ..SORRY (but no big deal)

from rodent_iii.

tico-tico avatar tico-tico commented on July 26, 2024

but your update of makefile is not included :-)

just like i said, i haven't changed makefile coz i don't use linux and don't know how to change it for your satisfaction

Changing of Makefile is on you too

see this line?

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

sorry, yes i saw it
but i mean your changes y did on #40.

forgive me please

from rodent_iii.

tico-tico avatar tico-tico commented on July 26, 2024

Actually those changes from #40 are included, Maybe you trying a wrong branch? You need this one https://github.com/tico-tico/Rodent_III/archive/relative_paths.zip

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

my fault...
startup working so far, now testing it inside picochess (takes some time)

from rodent_iii.

tico-tico avatar tico-tico commented on July 26, 2024

If picochess can show output from the engine then check out info strings from Rodent. It reports fail/success on book and personalities opening.

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

with RodentII i had the problem that the personalities book files weren't loaded. That was an error for long, cause hidden - and i had to patch the C code (which i don't like) ....right now, looks better.

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

I changed our pers files, and removed the "book/" infront, cause i now set the bookpath ending on "books"

Here is the debug log from picochess:

2017-08-14 17:42:02.284 DEBUG uci - on_line_received: <PopenProcess at 0x7f833183ed68 (pid=15312)> >> info string opening book file 'hist/_post06.bin' (success/m)

2017-08-14 17:42:02.285 DEBUG uci - send_line: <PopenProcess at 0x7f833183ed68 (pid=15312)> << setoption name GuideBookFile value players/ph-anand2.bin

ups..
2017-08-14 17:42:02.288 DEBUG uci - on_line_received: <PopenProcess at 0x7f833183ed68 (pid=15312)> >> info string opening book file 'players/ph-anand2.bin' (success/m)

All fine, as it seems.

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

basically my Makefile now looks this way:

DATADIR = $(PREFIX)/rodent3

BOOKSDIR = $(DATADIR)/books

PERSONALITIESDIR = $(DATADIR)/personalities

CXX = g++

CFG = -DNDEBUG -DUSEGEN -DUSE_THREADS -DNEW_THREADS -DBOOKSPATH=$(BOOKSDIR) -DPERSONALITIESPATH=$(PERSONALITIESDIR)
CFG1 = -DUSEGEN -DUSE_THREADS -DNEW_THREADS -DBOOKSPATH=$(BOOKSDIR) -DPERSONALITIESPATH=$(PERSONALITIESDIR)

from rodent_iii.

tico-tico avatar tico-tico commented on July 26, 2024

I changed our pers files, and removed the "book/" infront, cause i now set the bookpath ending on "books"

All personalities book paths in the rep are without books/ prefix already.

2017-08-14 17:42:02.288 DEBUG uci - on_line_received: <PopenProcess at 0x7f833183ed68 (pid=15312)> >> info string opening book file 'players/ph-anand2.bin' (success/m)

For some time RodentIII has a ability to fully cache opening books into memory (see this /m letter after success?). It helpful for PC's with rotating/mechanical HDD.
I don't know that picochess is, but if it don't use any HDD you may want to disable the ability. I just added checking for NO_BOOK_IN_MEMORY which you may add into your makefile.
Just -DNO_BOOK_IN_MEMORY .
Don't forget to redownload https://github.com/tico-tico/Rodent_III/archive/relative_paths.zip beforehand.

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

target platform for picochess is raspberry pi => the program is on a sdcard.

i had such copied my old rodent2 pers files, and changed them .... should be updated for rodent3 => but it was just a quick test.

from rodent_iii.

tico-tico avatar tico-tico commented on July 26, 2024

target platform for picochess is raspberry pi => the program is on a sdcard.

sdcards sometime can be really dead slow. maybe it's better to keep full caching intact if you have enough RAM of source. by default Rodent fully caches books < 16 MB in size.

basically my Makefile now looks this way:

What about "install" you mentioned in the OP?

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

i install all by myself :-)

i left this away (its easy to change) , cause the makefile with its path's is also special for picochess.
=>users prob. not follow my way to organize files. The makefile is working so far like the relative paths y did.
Also this pers files need to be changed to some ini files (we call them *uci files)...Thats all special.

Thanks!

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

we use something like this:
GuideBookFile = guide/steinitz.bin
MainBookFile = hist/_pre30.bin

[Tarrasch]
; Tarrasch personality for Rodent III chess engine
; author: Pawel Koziol
; mobility, emphasis on bishops, likes open game

=> this steinitz.bin is MISSING (since rodent2 already)

from rodent_iii.

LocutusOfPenguin avatar LocutusOfPenguin commented on July 26, 2024

Following bin files are missing:

guide/mini.bin
ph-gambitbook.bin
ph-exoticbook.bin
players/marshall.bin
players/reti.bin
guide/steinitz.bin

from rodent_iii.

tico-tico avatar tico-tico commented on July 26, 2024

If you think it's a bug then you'd better create a separate bug-report and some day Pawel will add missing books to the repo. Otherwise your report here can be just lost and forgotten.

In the meantime you can check windows distribution here https://github.com/nescitus/Rodent_III/blob/master/windows_distrib/distrib_full.zip , it has some missing books like steinitz.bin.

from rodent_iii.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.