Page 2 of 4

Re: BorkAI

Posted: 02 Jun 2013 08:39
by marco.r
Hi, thanks for the report.

I'll soon upload a new release that (among other things) should fix this issue

Thanks again !

Re: BorkAI

Posted: 02 Jun 2013 18:10
by Phrossi_TTD
another bug ;( ;( ;(
it happened when it tried to make its first plane..............

Re: BorkAI

Posted: 02 Jun 2013 18:54
by marco.r
Phrossi_TTD wrote:another bug ;( ;( ;(
it happened when it tried to make its first plane..............
Ouch :(.
Aircraft handling is still much experimental so for a while (until I enable it by default) it will be somewhat buggy.
Thanks for the report, I'll try to fix this one in a short time... :).

Re: BorkAI

Posted: 03 Jun 2013 18:32
by Steffl
Hi,
I saw you wrote a new version so I started a game with it and... found a bug. :-)
But maybe just a typo, because I found a function called shuffle in your AI, but you use randomize() instead. See Screenshot below.
Bye.
BorkCrash.png
BorkCrash.png (18.67 KiB) Viewed 973 times

Re: BorkAI

Posted: 03 Jun 2013 21:47
by marco.r
Steffl wrote:Hi,
I saw you wrote a new version so I started a game with it and... found a bug. :-)
But maybe just a typo, because I found a function called shuffle in your AI, but you use randomize() instead. See Screenshot below.
Bye.
BorkCrash.png
Ouch. Yes, for some reason I wrote the same function two times with different names, in different times.
When I realized that I removed one, but it seems I forgot to fix all the references.
I'll fix it right away !

Phrossi_TTD: I'm unable to reproduce the error. Could you please write the options (or mods) that you used ? A savegame would be event better...

Re: BorkAI

Posted: 03 Jun 2013 22:05
by Phrossi_TTD
marco.r wrote:
Phrossi_TTD: I'm unable to reproduce the error. Could you please write the options (or mods) that you used ? A savegame would be event better...
i will make an save soon.
here is my config:

Re: BorkAI

Posted: 03 Jun 2013 22:12
by Phrossi_TTD
the new version crashed!
look:
THE INDEX "aaa" does NOT exist

Re: BorkAI

Posted: 03 Jun 2013 22:22
by Phrossi_TTD
here is save.
the ai crashes when it looks for an suitable airport, not when it tries to build its first plane.

Re: BorkAI

Posted: 03 Jun 2013 22:36
by marco.r
Phrossi_TTD wrote:here is save.
the ai crashes when it looks for an suitable airport, not when it tries to build its first plane.
Memo to self... always test the release even for minor fixes,
and never release right before going to sleep :D

Sorry for the mess, please update again :)

Re: BorkAI

Posted: 03 Jun 2013 22:50
by marco.r
The savegame uses some NewGRF that arent available on Bananas.
They seem to be local modification of some package (check the screenshot for the names).
Do you know where I could get them ?

Re: BorkAI

Posted: 03 Jun 2013 23:16
by Phrossi_TTD
marco.r wrote:The savegame uses some NewGRF that arent available on Bananas.
They seem to be local modification of some package (check the screenshot for the names).
Do you know where I could get them ?
for the wasdev:http://bundles.openttdcoop.org/worldair ... ies/r1167/
for the others: http://bundles.openttdcoop.org/grfpack/ ... ck_8.0.zip

Re: BorkAI

Posted: 03 Jun 2013 23:58
by Steffl
Phrossi_TTD wrote:another bug ;( ;( ;(
it happened when it tried to make its first plane..............
Try to replace tiles.len() with tiles.Count() in line 149 and 151 in air.nut. You get the tiles in an AIList back from a function and not in an array I think.

I also found another bug in route.nut in line 126.

Code: Select all


local path = buildRoad([newPos],[front],ROADINESS);

I found function BuildRoad in truck.nut, with a uppercase "B".

Ok. That's it for a while :-)

Re: BorkAI

Posted: 04 Jun 2013 06:45
by marco.r
Phrossi_TTD wrote:
marco.r wrote:The savegame uses some NewGRF that arent available on Bananas.
They seem to be local modification of some package (check the screenshot for the names).
Do you know where I could get them ?
for the wasdev:http://bundles.openttdcoop.org/worldair ... ies/r1167/
for the others: http://bundles.openttdcoop.org/grfpack/ ... ck_8.0.zip
Thanks, I'll give it a check as soon as I have some free time

Re: BorkAI

Posted: 04 Jun 2013 06:54
by marco.r
Steffl wrote:
Phrossi_TTD wrote:another bug ;( ;( ;(
it happened when it tried to make its first plane..............
Try to replace tiles.len() with tiles.Count() in line 149 and 151 in air.nut. You get the tiles in an AIList back from a function and not in an array I think.

I also found another bug in route.nut in line 126.

Code: Select all


local path = buildRoad([newPos],[front],ROADINESS);

I found function BuildRoad in truck.nut, with a uppercase "B".

Ok. That's it for a while :-)
uhmm, very strange, my tests should have triggered this kind of error.
Anyway many thanks, I'll try to fix it tonight.

Re: BorkAI

Posted: 04 Jun 2013 06:55
by marco.r
Steffl wrote:
Phrossi_TTD wrote:another bug ;( ;( ;(
it happened when it tried to make its first plane..............
Try to replace tiles.len() with tiles.Count() in line 149 and 151 in air.nut. You get the tiles in an AIList back from a function and not in an array I think.
As a temporary workaround remove the lines, it's just some logging.

Re: BorkAI

Posted: 10 Jun 2013 20:43
by R-TEAM
Hi,

The AI runs pretty good ...
But after an load of an savegame he crashes first time .... then after reload of AI it runs nice again ...
This happen every load of an save.
Actual HardGame version ... many NewGFX ...
Savegame + pictures included.

Regards
R-TEAM

Re: BorkAI

Posted: 10 Jun 2013 23:50
by marco.r
R-TEAM wrote:Hi,

The AI runs pretty good ...
But after an load of an savegame he crashes first time .... then after reload of AI it runs nice again ...
This happen every load of an save.
Actual HardGame version ... many NewGFX ...
Savegame + pictures included.

Regards
R-TEAM
For some reasons I'm unable to load the save and test it (it's says I'm using and old version... but I tried also with the development version ?( )
In any case the fix seemed trivial so I uploaded it anyways. Let me know if the new release still has the issue.

Re: BorkAI

Posted: 10 Jun 2013 23:53
by marco.r
I forgot. The issues reported by Phrossi_TTD and Steffi should be ok also (actually for a few days now).

Re: BorkAI

Posted: 12 Jun 2013 21:00
by Phrossi_TTD
R-TEAM wrote:Hi,

The AI runs pretty good ...
But after an load of an savegame he crashes first time .... then after reload of AI it runs nice again ...
This happen every load of an save.
Actual HardGame version ... many NewGFX ...
Savegame + pictures included.

Regards
R-TEAM
same here, loaded 1913 save and crash!
see attachments below.
it needs last FISH and 2cc trainset nightly at devzone at http://bundles.openttdcoop.org/

Re: BorkAI

Posted: 12 Jun 2013 21:04
by Phrossi_TTD
marco.r wrote:
R-TEAM wrote:Hi,

The AI runs pretty good ...
But after an load of an savegame he crashes first time .... then after reload of AI it runs nice again ...
This happen every load of an save.
Actual HardGame version ... many NewGFX ...
Savegame + pictures included.

Regards
R-TEAM
For some reasons I'm unable to load the save and test it (it's says I'm using and old version... but I tried also with the development version ?( )
In any case the fix seemed trivial so I uploaded it anyways. Let me know if the new release still has the issue.
hard game pack is old (1.0.x - 1.1.x Era)
also save needs WAS nightly