Transport Tycoon Forums

The place to talk about Transport Tycoon
It is currently Tue Dec 18, 2018 8:23 pm

All times are UTC




Post new topic  Reply to topic  [ 68 posts ]  Go to page Previous 1 2 3 4
Author Message
 Post subject: Re: BorkAI
PostPosted: Tue May 10, 2016 7:34 am 
Offline
Engineer
Engineer

Joined: Tue Aug 16, 2011 1:26 am
Posts: 37
Thanks for reporting the bug.
I released a new version that should fix it.

The problem though was caused by the AI not being able to find a proper engine. Can you tell me the train set that you're using ?


Top
   
 Post subject: Re: BorkAI
PostPosted: Tue May 10, 2016 2:49 pm 
Offline
Engineer
Engineer

Joined: Sun Jul 14, 2013 12:33 pm
Posts: 87
Location: Netherlands
It was a game without any NewGRF so just the plain vanilla OpenTTD trains. Started the game in 1930. Note that I had inflation on.


Top
   
 Post subject: Re: BorkAI
PostPosted: Thu May 19, 2016 9:59 am 
Offline
Engineer
Engineer

Joined: Sun May 12, 2013 10:28 pm
Posts: 89
Location: Argentina
It seems that it didn't find a road vehicle for the cargo, not in rail task...


Top
   
 Post subject: Re: BorkAI
PostPosted: Fri Jun 10, 2016 10:47 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 240
I'm testing BorkAI v23 downloaded from bananas, on a 100 year challenge, running on 1.6.1-RC1. The test is still running, it's been ~45 years without issues, but I am concerned about something else: RAM usage is considerably high for BorkAI and it has been slowly ramping up. I estimate that by the end of the test, it will be using 11.6 GB RAM.

The screenshot is showing several other AIs running for different years, BorkAI is the 5th openttd.exe from the list. Still, any of the others that I've tested so far haven't used this much ram. I wonder if it's how Bork works or if there's some memory leak.


Attachments:
bandicam 2016-06-10 23-03-22-732.png [1.22 MiB]
Not downloaded yet
openttdCore5.cfg [11.04 KiB]
Downloaded 37 times
BorkAI, 1st Dec 1996.sav [2.05 MiB]
Downloaded 46 times

_________________
Formerly known as Samu


Last edited by xarick on Sat Jun 11, 2016 4:13 pm, edited 1 time in total.
Top
   
 Post subject: Re: BorkAI
PostPosted: Fri Jun 10, 2016 11:28 pm 
Offline
Traffic Manager
Traffic Manager

Joined: Thu Feb 26, 2015 12:52 am
Posts: 240
Update, BorkAI just crashed right after I posted that. There seems to be a limit to how much RAM it can work with and it just reached it.

Not only did BorkAI crash, but the spectating instance I had open to watch the game also closed with network-connection lost. I must have missed it, but for such thing to happen, there must have been a server stall of over 20 seconds, which is the timeout for connection losses.

Working Set is now down to 505.820K. Seems that the limit is somewhere about 3.80 GB to 4.00 GB (4.384.684K - 505.820K = 3.878.886K)?

Quote:
dbg: [script] The script died unexpectedly.


That's the only line.

EDIT: whole server log

Quote:
dbg: [net] [core] starting network...
dbg: [net] [core] loading windows socket library
dbg: [net] [udp] initializing listeners
dbg: [net] [core] network online, multiplayer available
dbg: [net] Detected broadcast addresses:
dbg: [net] 0) 192.168.1.255
dbg: [net] [udp] closed listeners
dbg: [net] [udp] initializing listeners
dbg: [net] [udp] closed listeners
dbg: [net] [udp] initializing listeners
dbg: [net] starting listeners for clients
dbg: [net] [tcp] listening on IPv6 port [::]:3984 (IPv6)
dbg: [net] [tcp] listening on IPv4 port 0.0.0.0:3984 (IPv4)
dbg: [net] starting listeners for incoming server queries
dbg: [net] [udp] listening on IPv6 port [::]:3984 (IPv6)
dbg: [net] [udp] listening on IPv4 port 0.0.0.0:3984 (IPv4)
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] listening on IPv4 port 0.0.0.0:0 (IPv4)
dbg: [net] [udp] listening on IPv6 port [::]:0 (IPv6)
dbg: [net] Generating map, please wait...
dbg: [net] Map generation percentage complete: 5
dbg: [net] Map generation percentage complete: 10
dbg: [net] Map generation percentage complete: 15
dbg: [net] Map generation percentage complete: 20
dbg: [net] Map generation percentage complete: 25
dbg: [net] Map generation percentage complete: 30
dbg: [net] Map generation percentage complete: 35
dbg: [net] Map generation percentage complete: 40
dbg: [net] Map generation percentage complete: 45
dbg: [net] Map generation percentage complete: 50
dbg: [net] Map generation percentage complete: 55
dbg: [net] Map generation percentage complete: 60
dbg: [net] Map generation percentage complete: 65
dbg: [net] Map generation percentage complete: 70
dbg: [net] Map generation percentage complete: 75
dbg: [net] Map generation percentage complete: 80
dbg: [net] Map generation percentage complete: 85
dbg: [net] Map generation percentage complete: 90
dbg: [net] Map generation percentage complete: 99
dbg: [net] Map generated, starting game
dbg: [net] [udp] advertising to master server
dbg: [net] [server] Client connected from 84.91.250.188 on frame 1093
dbg: [net] Closed client connection 2
dbg: [net] [server] Client connected from 84.91.250.188 on frame 1164
‎*** Xarick Preto has joined the game (Client #3)
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [server] Client connected from 95.53.231.221 on frame 678772
dbg: [net] Closed client connection 4
dbg: [net] [server] Client connected from 95.53.231.221 on frame 678798
‎*** 123 has joined the game (Client #5)
‎*** 123 has started a new company (#2)
‎*** 123 has left the game (leaving)
dbg: [net] Closed client connection 5
Auto-cleaned company #2 with no vehicles
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [server] Client connected from 87.158.100.237 on frame 750099
Client #6 is dropped because it took longer than 100 ticks to start the joining process
dbg: [net] Client 6 made an error and has been disconnected. Reason: 'general timeout'
dbg: [net] Closed client connection 6
dbg: [net] [server] Client connected from 87.158.100.237 on frame 752631
Client #7 is dropped because it took longer than 100 ticks to start the joining process
dbg: [net] Client 7 made an error and has been disconnected. Reason: 'general timeout'
dbg: [net] Closed client connection 7
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [server] Client connected from 31.133.9.18 on frame 849663
dbg: [net] Closed client connection 8
dbg: [net] [server] Client connected from 31.133.9.18 on frame 849903
‎*** Player has joined the game (Client #9)
dbg: [net] [udp] advertising to master server
‎*** Player has left the game (leaving)
dbg: [net] Closed client connection 9
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
[984788] Client #3 is slow, try increasing [network.]frame_freq to a higher value!
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
‎*** Xarick Preto has left the game (leaving)
dbg: [net] Closed client connection 3
dbg: [net] [server] Client connected from ::1 on frame 1109436
‎*** Xarick Preto has joined the game (Client #10)
[1111454] Client #10 is slow, try increasing [network.]frame_freq to a higher value!
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [script] The script died unexpectedly.
One of the running scripts crashed. Please report this to the script author with a screenshot of the AI/Game Script Debug Window
‎*** Xarick Preto has left the game (leaving)
dbg: [net] Closed client connection 10
dbg: [net] [server] Client connected from 84.91.250.188 on frame 1303406
dbg: [net] Closed client connection 11
dbg: [net] [server] Client connected from 84.91.250.188 on frame 1303503
‎*** Xarick Preto has joined the game (Client #12)
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] advertising to master server
dbg: [net] [udp] removing advertise from master server
dbg: [net] Closed client connection 12
dbg: [net] [server] closed listeners
dbg: [net] [admin] closed listeners
dbg: [net] [udp] closed listeners
dbg: [net] [udp] initializing listeners
dbg: [net] [udp] closed listeners

_________________
Formerly known as Samu


Top
   
 Post subject: Re: BorkAI
PostPosted: Mon Jun 20, 2016 5:56 am 
Offline
Engineer
Engineer

Joined: Tue Aug 16, 2011 1:26 am
Posts: 37
Thanks for reporting.

I keep some tables for speeding up computations, I guess that either I forgot to cleanup somewhere, or I am just keeping too much information...
I will make a few checks.


Top
   
 Post subject: Re: BorkAI
PostPosted: Fri Sep 16, 2016 2:06 pm 
Offline
Tycoon
Tycoon

Joined: Wed Aug 26, 2009 6:33 am
Posts: 2493
Location: Poland
BorkAI makes unprofitable aircraft connection (caused by infrstructure maintemance costs).


Attachments:
Unnamed, 18th Oct 2064.sav [128.72 KiB]
Downloaded 32 times

_________________
Correct me If I am wrong - PM me if my English is bad
AIAI - AI for OpenTTD
Top
   
 Post subject: Re: BorkAI
PostPosted: Fri Oct 07, 2016 6:33 am 
Offline
Engineer
Engineer

Joined: Tue Aug 16, 2011 1:26 am
Posts: 37
I have been busy lately so I had no chance to make fixes; I will try as soon as I have more free time.
Meanwhile you can disable the use of planes from the AI settings if you prefer so.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic  [ 68 posts ]  Go to page Previous 1 2 3 4

All times are UTC


Who is online

Users browsing this forum: No registered users and 1 guest


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot post attachments in this forum

Search for:
Jump to:  
Powered by phpBB © 2000-2018 phpBB Limited

Copyright © Owen Rudge/The Transport Tycoon Forums 2001-2018.
Hosted by Zernebok Hosting.