Config
Log for #openttd on 21st February 2023:
Times are UTC Toggle Colours
14:02:34  *** sla_ro|master has quit IRC
14:03:57  *** geli has quit IRC
15:01:47  *** nielsm has joined #openttd
15:40:19  *** TROILUS has quit IRC
15:40:27  *** TROILUS has joined #openttd
15:45:30  *** D-HUND is now known as debdog
16:11:49  *** Wormnest has joined #openttd
16:16:28  *** TROILUS3 has joined #openttd
16:18:07  *** TROILUS has quit IRC
16:18:07  *** TROILUS3 is now known as TROILUS
16:38:28  *** Wormnest has quit IRC
16:43:02  <petern> Wait, really no chat since midnight?
16:52:02  <andythenorth> I had day off
16:52:14  <andythenorth> well actually we all just talked in jgr channel
16:59:53  <LordAro> wow
17:03:23  *** Wormnest has joined #openttd
17:22:27  *** Wolf01 has joined #openttd
17:36:34  *** sla_ro|master has joined #openttd
18:00:28  <Samu> hello, i have a quest
18:01:08  <Samu> turn those excessive cpu valuating AIs into working AIs
18:02:12  <Samu> but I wanted to do it in a fast way
18:03:17  <andythenorth> we should take AIs out of the game
18:03:35  <andythenorth> they should run as lambdas, connecting like a human player does
18:03:43  <andythenorth> oh, wait, single-player mode 😛
18:03:44  <andythenorth> silly me
18:04:45  <Samu> i wanted a macro or something in squirrel equivalent that replaces Valuate into a for loop
18:05:00  <Samu> without me having to edit the entire code
18:05:21  <glx[d]> valuate is a for loop
18:05:47  <Samu> well, yes, but it's done in openttd instead
18:05:51  <glx[d]> and if you do it in squirrel it will be slower
18:05:53  <andythenorth> I thought valuate was optimised 😛
18:06:14  <andythenorth> hmm
18:06:26  <andythenorth> maybe the model is all wrong
18:06:35  <andythenorth> we gave AI full view of the map / world
18:06:40  <Samu> rather do it slower than having the ai crash
18:06:40  <andythenorth> but then it's slow
18:06:52  <andythenorth> maybe we should have agent-based
18:06:56  <andythenorth> so each vehicle gets an AI
18:07:00  <andythenorth> etc
18:07:17  <andythenorth> I used to write agent-based flash games accidentally without knowing what they were
18:07:43  <andythenorth> e.g. it was easier in Flash IDE to just write a self-contained loop on a monster sprite for a game
18:07:59  <andythenorth> handling movement, health, etc
18:08:00  *** Flygon has quit IRC
18:08:16  <andythenorth> compared to a single central game loop taking care of everything
18:08:34  <andythenorth> the sprite was then just placed on the main stage as an actor and would run
18:09:17  <andythenorth> hmm vehicles with self-modifying orders? o_O
18:09:48  <glx[d]> main issue I can see with changing list values in squirrel is the automatic sorting
18:10:07  <Samu> https://gist.github.com/SamuXarick/d9337407bc094417e2a5c41931df735a
18:10:19  <Samu> how do i do a replacement for Valuate?
18:10:30  <Samu> using <- assignment or something
18:11:37  <andythenorth> it's just a for loop no?
18:11:56  <andythenorth> for i in [x1, x2, x3] etc
18:12:22  <Samu> yes, but I wanted it to automagically substitute any Valuate that is found into that for loop
18:12:25  <andythenorth> use lookups to populate arrays/slots
18:12:37  <Samu> without me having to dig the entire AI
18:12:42  <andythenorth> oh don't know
18:13:03  <Samu> many different AIs crash due to evaluator
18:13:03  <andythenorth> whatever you do, I'd time it over multiple sizes of dataset
18:13:09  <andythenorth> Valuate is allegedly fast
18:15:25  <Samu> oh, it's not retu

Powered by YARRSTE version: svn-trunk